ASSOCIATED DRATA CONTROL
This test is part of the Network Security Controls control (DCF-85) that network security controls are in place to limit inbound and outbound traffic to the environment to only what is necessary based on business justification. All other traffic is specifically denied.
WHAT TO DO IF A TEST FAILS
If Drata finds that one or more AWS Security Groups do not restrict HTTP access (Port 80) to specific IP or IP ranges only, the test will fail.
STEPS TO REMEDIATE
Sign into AWS Management Console and navigate to the EC2 dashboard.
Click on 'Security groups' under 'Network & Security'.
Look for security groups failing this test or security groups that have inbound rules with '
FromPort
' and 'ToPort
' set to '80
' and 'IpRanges.CidrIp
' set to '0.0.0.0/0
' or 'Ipv6Ranges.CidrIp
' set to '://0
'.Select a security group and click on the 'Edit inbound rules' button from the 'Inbound rules' tab.
Restrict public access by locating the rule that allows inbound traffic on port '80' from '
0.0.0.0/0
' or '::/0
' and either deleting the rule or modifying the source to restrict it to a specific IP address or range. To modify the rule, change the 'Source' from '0.0.0.0/0
' or '::/0
' to a more restrictive CIDR block, such as your organization's IP ranges.Save changes and repeat for each failing security group.