Control: AWS > PCI v3.2.1 > EC2 > 5 Security groups should not allow ingress from 0.0.0.0/0 to port 22
This control checks whether security groups in use disallow unrestricted incoming SSH traffic.
It does not evaluate outbound traffic.
Note that security groups are stateful. If you send a request from your instance, the response traffic for that request is allowed to flow in regardless of inbound security group rules. Responses to allowed inbound traffic are allowed to flow out regardless of outbound rules.
Remediation
Perform the following steps for each security group associated with a VPC.
- Open the Amazon VPC console.
- In the navigation pane, under Security, choose Security groups.
- Select a
security group
. - In the bottom section of the page, choose
Inbound rules
. - Choose Edit
inbound rules
. - Identify the rule that allows access through port 22 and then choose the
X
to remove it. - Choose Save rules.
PCI requirement(s): 1.2.1, 1.3.1, 2.2.2
Resource Types
This control targets the following resource types:
Category
In Your Workspace
Developers
- tmod:@turbot/aws-pciv3-2-1#/control/types/vpcSecurityGroupRemoteAdministration
- tmod:@turbot/turbot#/control/categories/compliancePci
- turbot graphql controls --filter "controlTypeId:tmod:@turbot/aws-pciv3-2-1#/control/types/vpcSecurityGroupRemoteAdministration"
Get Controls
Control Type URI
Category URI
GraphQL
CLI