This plugin ensures that Amazon Network ACLs do not allow outbound/egress traffic to all ports
Risk Level: Low
Description
This plugin ensures that Amazon Network ACLs do not allow outbound/egress traffic to all ports. Network ACLs should not allow outbound traffic to all ports to avoid unauthorized access.
About the Service
Amazon EC2: Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud. With the EC2 instance, you can launch as many virtual servers as you need, configure security and networking, and manage storage without worrying about the hardware needs of the process. Security Groups act as a firewall for an EC2 instance to control the incoming and outgoing traffic. You can read more about security groups here.
Impact
As Network ACL rules control all the inbound and outbound traffic to the AWS resource, it must be configured appropriately. Network ACLs should not allow outbound traffic to all ports to avoid unauthorized access.
Steps to Reproduce
Using AWS Console-
- Log In to your AWS Console.
- Open the VPC Management Console. You can use this link (https://console.aws.amazon.com/vpc) to navigate directly if already logged in.
- Move to the Network ACLs in the Security section from the left navigation pane.
- A list of ACLs in the region will appear. Select the ACL you wish to examine by clicking on its ID.
- Move to the Outbound Rules tab.
- Now check the outbound rules. If there are rules which have both Allow and 0.0.0.0/0 values, the vulnerability exists.
- Repeat steps for all the ACLs you want to investigate.
Steps for Remediation
Update Network ACL to allow outbound/egress traffic to specific port ranges only:
- Log In to your AWS Console.
- Open the VPC Management Console. You can use this link (https://console.aws.amazon.com/vpc) to navigate directly if already logged in.
- Move to the Network ACLs in the Security section from the left navigation pane.
- A list of ACLs in the region will appear. Select the vulnerable ACL.
- Move to the Outbound Rules tab.
- Click on Edit Inbound Rules.
- One of the following actions can be performed:
- Remove the vulnerable rule by clicking on Remove next to it.
- Denying the traffic for that Destination range.
- Changing the destination range to only trusted IPs.
- Click on Save Changes after the modifications.
- Repeat steps for all the vulnerable ACLs.