Ensure that the Amazon VPC route table associated with the data-tier subnets has no default route (i.e. 0.0.0.0/0) configured to allow access to an Amazon NAT Gateway in order to restrict Internet connectivity for the EC2 instances available within the data tier. A route table contains a set of rules (also known as routes) that are used to determine where the network traffic is directed. Each subnet deployed in your VPC must be associated with a route table to control the routing. The route table associated with the data-tier subnets should not have a default route (0.0.0.0/0) that points to a NAT Gateway. This conformity rule assumes that the VPC subnets within your data tier are tagged with <data_tier_tag>:<data_tier_tag_value>
, where <data_tier_tag>
represents the tag name and <data_tier_tag_value>
represents the tag value. Before running this rule by the Trend Cloud One™ – Conformity engine, the data-tier tags must be configured in the rule settings, on your Conformity account console.
For security reasons, your data-tier instances must be protected from exposure. Therefore, the route table associated with your data-tier subnets should not have the default route pointing to an Amazon NAT Gateway as this type of network device is used only to enable instances within a private subnet to connect to the Internet.
Note: Make sure that you replace all <data_tier_tag>:<data_tier_tag_value>
tag placeholders outlined in the conformity rule content with your own tag set created for the data tier.
Audit
To determine if the route table associated with your data-tier VPC subnets contains a default route (0.0.0.0/0) that has a NAT device configured as gateway, perform the following actions:
Remediation / Resolution
To remove the default route that points to a NAT Gateway from the route table associated with your data-tier VPC subnets, perform the following actions:
References
- AWS Documentation
- VPCs and Subnets
- Route Tables
- NAT
- NAT Gateways
- CIS Amazon Web Services Foundations
- AWS Command Line Interface (CLI) Documentation
- ec2
- describe-vpcs
- describe-subnets
- describe-route-tables
- delete-route