More Info:

Non-default security groups were defined which were unused and may not be required. This being the case, their existence in the configuration increases the risk that they may be inappropriately assigned. The unused security groups should be reviewed and removed if no longer required.

Risk Level

Low

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the issue of unused security groups in AWS, follow these steps using the AWS Management Console:

  1. Sign in to the AWS Management Console: Go to https://aws.amazon.com/ and sign in to your AWS account.

  2. Navigate to the EC2 Dashboard: Click on the “Services” dropdown menu at the top of the page, select “EC2” under the Compute section.

  3. View Security Groups: In the EC2 Dashboard, locate the “Security Groups” option in the navigation pane on the left and click on it.

  4. Identify Unused Security Groups: Review the list of security groups to identify the ones that are not associated with any running instances or resources. You can check the “Description” tab of each security group to see if it is actively being used.

  5. Check Rules and Dependencies: Before deleting a security group, ensure that there are no dependencies on it. Check if any other resources are using the security group for inbound/outbound rules.

  6. Delete Unused Security Groups: To delete a security group, select the checkbox next to the security group(s) you want to remove, click on the “Actions” dropdown menu, and select “Delete security group”.

  7. Confirm Deletion: A confirmation dialog will appear asking you to confirm the deletion. Review the security group details once more and click “Yes, Delete” to confirm.

  8. Verify Deletion: Once the security group is deleted, verify that it has been removed from the list of security groups. Also, ensure that there are no adverse effects on any resources due to the deletion.

  9. Repeat if Necessary: Repeat the above steps for any other unused security groups that need to be removed.

By following these steps, you can identify and remove unused security groups in AWS using the AWS Management Console. This helps in maintaining a clean and secure environment by reducing the attack surface and minimizing the risk of misconfigurations.

Additional Reading: