audit_world_open_security_groups
Audits EC2 security groups in a region and flags ingress rules open to 0.0.0.0/0 or ::/0, identifying sensitive ports as high severity and returning normalized findings.
Instructions
Audit EC2 security groups for ingress rules open to the world.
Scans every security group in the region (AWS_REGION or us-east-1 when the region argument is omitted) and flags each ingress rule whose source is 0.0.0.0/0 or ::/0. Rules allowing all traffic (protocol -1) or covering a sensitive port (SSH 22, RDP 3389, MySQL 3306, PostgreSQL 5432, Redis 6379, Elasticsearch 9200, MongoDB 27017) are HIGH; any other world-open port (for example 80 or 443) is MEDIUM.
Returns a dict {check, ok, findings, scanned} where ok is true only when no findings were produced, findings is a list of normalized finding dicts (check, severity, title, resource, detail with protocol, from_port, to_port, cidrs, group_name), and scanned is the number of security groups examined.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No |