Security groups should not allow unrestricted ingress to SSH or RDP from any IP address.
Security groups provide stateful filtering of ingress and egress network traffic to AWS
resources. It is recommended that no security group allows unrestricted ingress access to
remote server administration ports, such as SSH to port 22 and RDP to port 3389.
Impact
Recommended Actions
Follow the appropriate remediation steps below to resolve the issue.
Set a more restrictive CIDR range
1
2
3
4
5
6
7
8
9
10
Resources:GoodSecurityGroup:Type:AWS::EC2::SecurityGroupProperties:GroupDescription:Limits security group egress trafficSecurityGroupIngress:- CidrIp:127.0.0.1/32IpProtocol:"6"FromPort:22ToPort:22