logo

Database

Aws Unrestricted Ip Protocols

Description

Detects AWS EC2 security groups configured to allow unrestricted IP protocols (all protocols) in their inbound or outbound rules. This configuration creates an overly permissive network access policy that could allow malicious traffic across any protocol.

Detection Strategy

    Scans EC2 security group inbound rules (IpPermissions) for any rule with IpProtocol set to '-1' or -1

    Scans EC2 security group outbound rules (IpPermissionsEgress) for any rule with IpProtocol set to '-1' or -1

    Reports a vulnerability for each security group that has unrestricted protocol rules in either direction

    Captures the port range (FromPort, ToPort) and protocol settings as evidence in the vulnerability report