This rule ensures that VPC Security Groups restrict Ingress access on commonly used Ports.
Rule | VPC security groups should restrict ingress access on ports 20, 21, 22, 3306, 3389, 4333 from 0.0.0.0/0 |
Framework | FedRAMP Low Revision 4 |
Severity | ✔ High |
VPC Security Group: Ingress Access Restriction for FedRAMP Compliance
Overview
Under FedRAMP Low Revision 4 guidelines, it is required to limit ingress traffic to essential ports to enhance the security posture of your cloud environment. This rule stipulates restricting ingress access to ports 20 (FTP Data), 21 (FTP Control), 22 (SSH), 3306 (MySQL), 3389 (RDP), and 4333. These ports must not be accessible from the general internet (0.0.0.0/0), which would otherwise expose your infrastructure to unnecessary risk.
Remediation Steps
AWS Management Console
Step 1: Analyze Existing Security Groups
Step 2: Modify Ingress Rules
Step 3: Update or Delete Rules
AWS CLI Commands
Analyzing Security Groups
aws ec2 describe-security-groups --query 'SecurityGroups[*].[GroupId,GroupName,IpPermissions]' --output text
Updating or Deleting Ingress Rules
aws ec2 revoke-security-group-ingress --group-id SG_ID --protocol tcp --port 22 --cidr 0.0.0.0/0
Replace
SG_ID
with your security group ID. Repeat for each port as needed.To add a more restricted rule:
aws ec2 authorize-security-group-ingress --group-id SG_ID --protocol tcp --port PORT --cidr RESTRICTED_IP_RANGE
PORT
with the port number to restrict and RESTRICTED_IP_RANGE
with the new range.Troubleshooting
Issue: Rules Not Updating
Issue: Unable to Connect to Instances After Rule Modification
Verification
Following the remediation, perform these checks:
By following these detailed steps, you can help ensure your VPC security groups are in compliance with FedRAMP Low Revision 4 ingress restrictions, thereby enhancing the security of your AWS environment. This guidance not only serves SEO purposes by providing relevant, concise, and actionable information, but also supports improved ranking by delivering a clear and precise solution to the intended audience, all without superfluous filler content.