githubEdit

AWS Account ID Enumeration

Commands

1) Reveals the AWS Account ID

s3-account-search ARN_OF_THE_ROLE S3_BUCKET_NAME 

2) Use this to find the S3 Bucket region

curl -I https://BUCKET_NAME.s3.amazonaws.com 

TIP: We can use this information to hunt down public resources that might have been accidently exposed by the account owner, such as public EBS and RDS snapshots.

Last updated