| name | cis-aws-database-2.9 |
| description | Ensure Database is not Publicly accessible |
| category | cis-database |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","database","aurora","public-access","network","vpc","security"] |
| cis_id | 2.9 |
| cis_benchmark | CIS AWS Database Services Benchmark v2.0.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-database-2.1","cis-aws-database-2.11"] |
| prerequisites | [] |
| severity_boost | {} |
2.9 Ensure Database is not Publicly accessible (Manual)
Description
AuroraDB databases must not be publicly accessible. This means the database's network configuration should prevent assignment of public IP addresses or exposure to the public internet, ensuring that connections are only permitted from trusted internal networks.
Rationale
Restricting public access to databases greatly reduces the attack surface for malicious actors. Publicly accessible databases are highly vulnerable to unauthorized login attempts, exploitation of software vulnerabilities and data breaches. Enforcing private access restricts connectivity and enforces the principle of least privilege and network segmentation.
Impact
If public access is not properly restricted on databases, data stored in the database is at risk of exposure to the internet, increasing the likelihood of data loss and service disruption.
Audit Procedure
Using AWS Console
- Sign in to the AWS Management Console where the Aurora database cluster you are auditing resides.
- Navigate to the Amazon Aurora and RDS Dashboard.
- You can find this under the Database category.
- Select the DB instance name you wish to audit.
- This opens the details page for your specific Aurora DB instance.
- Under the Connectivity & security tab, check the value of Publicly accessible:
- If Set to No, the instance is not publicly accessible; no further network verification is needed.
- If Set to Yes, continue with additional steps to fully assess exposure.
- In the Networking section under Connectivity & security, locate the Subnets for the database:
- Right-click on the subnet link and open it in a new tab for further inspection.
- With the subnet selected, review the attached Route Table:
- Check for routes with Destination: 0.0.0.0/0 and Target: an Internet Gateway (ID starts with igw-).
- If such a route exists, it enables access to the database from the public internet.
If the database is marked as "Publicly accessible: Yes" and the subnets contain a route to 0.0.0.0/0 via an Internet Gateway, the instance is exposed to the public internet.
Using AWS CLI
- List your Aurora cluster's DB instances with:
aws rds describe-db-instances --query "DBInstances[?DBClusterIdentifier=='<your-cluster-identifier>'].DBInstanceIdentifier"
Replace with your actual Aurora cluster identifier.
- For each DB instance, check public accessibility: