AWS-EC2-Public-Instances
Severity : Medium
Description: This control checks if EC2 instances have public IP address associated with instance ENIs. EC2 instances are reachable over the internet even if they have protections such as NACLs or security groups if a public IP address is associated with an instance. EC2 instances can contain sensitive information and access control is required. To minimize the risk of unauthorized access to your instances, do not allow public IP associations unless absolutely necessary.
Remediation Steps:
Perform following to disable Public IP association by default EC2 Instances in Subnet:
Login to the AWS Console at https://console.aws.amazon.com.
Navigate to VPCÂ console.
In the navigation pane, choose Subnets.
Select your subnet for the reported instance.
Choose Actions and Select Edit subnet settings.
In the Auto-assign IP settings, Clear the check box for Enable auto-assign public IPv4 address.
Choose Save.
Perform following to Remove Public IP association to the instances:
Login to the AWS Console at https://console.aws.amazon.com.
Navigate to EC2Â console.
In the navigation pane, choose Instances.
Select the instance reported with the Public IP address, and stop the instance.
Select Action, Networking and Manage IP Addresses.
Select the interfaces and if Public IP address is allocated to ENI, Select Unassign.
Select Save.
Important:
Reference:
Blue Hexagon Proprietary