RDS - Relational Database Service
RDS exploitation
Amazon RDS - Relational Database Service
AWS Relational Database Service (RDS) is an easy-to-manage relational database service.
Amazon RDS supports several database instances including:
Amazon Aurora (port 3306)
PostgreSQL (5432)
MySQL (port 3306)
MariaDB (port 3306)
Oracle Database (port 1521)
SQL Server (port 1433)
Enumeration
Information about the clusters in RDS
aws rds describe-db-clustersInformation about the database instances in RDS
aws rds describe-db-instancesDescribe Database Snapshots
Information about the subnet group in RDS
Information about the database security groups in RDS
Information about the database proxies in RDS
Data Exfiltration
Password Based
Bruteforce attack:
MySQL (3306)The tmpdir variable provides further confirmation that this is an AWS RDS instance

IAM Based Authentication (token)
Get the database instance connection temporary token from the RDS endpoint
Connect to mysql using temporary token
Snapshots
Public snapshots from single RDS database instances that belong to AWS account ID
Public snapshots from RDS database cluster instances
The snapshot can be restored. From the Actions menuin GUI, select Restore snapshot
Interesting Book
Interesting BooksAdvanced Penetration Testing: Hacking AWS 2 This book delves deeper into analyzing the security of various AWS services and shows techniques and tactics used by an attacker to breach an AWS environment
Hands-On AWS Penetration Testing with Kali Linux Set up a virtual lab and pentest major AWS services, including EC2, S3, Lambda, and Cloud
Last updated