Network ACLs should enforce outbound traffic restrictions

Cette page n'est pas encore disponible en français. Nous travaillons sur sa traduction.
Si vous avez des questions ou des commentaires concernant notre projet de traduction actuel, n'hésitez pas à nous contacter !

Description

Check AWS network access control lists (NACLs) for outbound allow entries that open every port, so that outbound traffic is limited to the port ranges your application needs.

A network ACL fails when an outbound allow entry permits every port. This includes an entry for all protocols, TCP or UDP entries with no port ranges or ranges that cover all ports, or entries for protocols other than TCP, UDP, ICMP, or ICMPv6. AWS allows all ports for these protocols regardless of any port range. ICMP and ICMPv6 entries have no ports and do not fail this rule. An allow entry does not count when a lower-numbered deny entry in the same direction applies to all protocols, or to the same protocol on every port, for every address (0.0.0.0/0 or ::/0) or for the same CIDR, because AWS applies the lowest-numbered matching entry. A network ACL with no entries also fails.

Rationale

Eliminate the threat of unauthorized access by setting a specified port range.

Remediation

Replace each outbound allow entry that opens every port with entries for only the protocols and port ranges your workloads need, following Add rules to a network ACL.