RDS Database Enumeration
List DB Instances
Key fields: PubliclyAccessible and Endpoint.Address. A publicly accessible instance with a security group open to 0.0.0.0/0 is directly reachable.
Snapshots
List manual and automated snapshots:
Public RDS snapshots can be restored by any AWS account. They frequently contain full database dumps with credentials and application data.
Cluster Snapshots (Aurora)
DB Subnet Groups
Shows which VPC subnets the RDS instance is deployed in:
Parameter Groups
Parameter groups store DB engine configuration. Some parameters expose attack surface:
For MySQL/MariaDB, general_log and slow_query_log settings indicate whether query logging is active. log_output=FILE means logs go to the filesystem.
Master Credentials Location
RDS master passwords are not stored in the RDS API. They are typically in:
Secrets Manager (
aws secretsmanager list-secrets)SSM Parameter Store (
aws ssm describe-parameters)Environment variables of the application (Lambda, ECS, EC2 user data)
Security Group Check
For each instance's VPC security group, check inbound rules:
Port 3306 (MySQL), 5432 (PostgreSQL), 1433 (MSSQL), 1521 (Oracle) open to 0.0.0.0/0 means direct internet access to the database.
Was this helpful?
Your feedback helps improve this page.