Control: AWS > PCI v3.2.1 > EC2 > 3 Unused EC2 security groups should be removed
This control helps you maintain an accurate asset inventory of needed security groups in your cardholder data environment (CDE). It does so by checking that security groups are attached to Amazon EC2 instances or to an ENI. A failed finding indicates you may have unused Amazon EC2 security groups.
Unless there is a business need to retain them, you should remove unused resources to maintain an accurate inventory of system components.
Remediation
You must perform the following steps for each security group not attached to an ENI.
- Open the Amazon VPC console
- In the navigation pane, under Security, choose Security groups.
- Select the check box for the security group to delete.
- From Actions, choose Delete security group.
- Choose Delete.
PCI requirement(s): 2.4
Resource Types
This control targets the following resource types:
Category
In Your Workspace
Developers
- tmod:@turbot/aws-pciv3-2-1#/control/types/vpcSecurityGroupAssociated
- tmod:@turbot/turbot#/control/categories/compliancePci
- turbot graphql controls --filter "controlTypeId:tmod:@turbot/aws-pciv3-2-1#/control/types/vpcSecurityGroupAssociated"
Get Controls
Control Type URI
Category URI
GraphQL
CLI