Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 3.02 KB

default-security-group.md

File metadata and controls

32 lines (28 loc) · 3.02 KB

CloudSploit

AWS / EC2 / Default Security Group

Quick Info

Plugin Title Default Security Group
Cloud AWS
Category EC2
Description Ensure the default security groups block all traffic by default
More Info The default security group is often used for resources launched without a defined security group. For this reason, the default rules should be to block all traffic to prevent an accidental exposure.
AWS Link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html#default-security-group
Recommended Action Update the rules for the default security group to deny all traffic by default

Detailed Remediation Steps

  1. Log into the AWS Management Console.
  2. Select the "Services" option and search for EC2.
  3. Scroll down the left navigation panel and choose "Instances".
  4. Select the "Instance" that needs to be verified and click on its name from the "Name" column.
  5. Scroll down the page and under "Description" check for "Security Groups". If the "Security Groups" is set to "default" then the EC2 network configuration is not following AWS security best practices.
  6. Repeat steps number 2 - 5 to verify other "EC2 Instances".
  7. Scroll down the left navigation panel and choose "Security Groups" under "Network & Security".
  8. Click on the "Create Security Group" to create a new group as per our "EC2 Instance" requirements.
  9. Provide a name to the "Security Group" and select the "Inbound" and "Outbound" traffic rules as per the requirements.
  10. Click on the "Create" button at the bottom of the "Create Security Group" tab to create the new security group.
  11. Scroll the left navigation panel and choose "Instances".
  12. Select the "EC2 Instance" whose "Security Group" needs to be updated.
  13. Click on the "Actions" button at the top and click on the "Networking" and choose the "Change Security Group" option.
  14. Select the new "Security Group" created and click on the "Assign Security Groups" button to attach the selected "Security Group" to the selected "EC2 Instance".
  15. Repeat steps number 8 - 14 to update the "Security Group" as per the requirements.