Enumerate Secrets in AWS
Tips and tricks for discovering secrets in AWS
Secrets Enumeration
CloudFormation
# provides details of the stacks including parameter key/values
aws --region us-east-1 cloudformation describe-stacks
# view the source code for a specific stack
aws --region us-east-1 cloudformation get-template --stack-name execution | jq -r '.TemplateBody'EC2 Instances
User-data
AWS CLI
IMDSv1
IMDSv2
EC2 Launch Templates
EBS Snapshots
Lambda
Environment Variables
Functions
RDS Snapshots
Secrets Manager
SSM
Documents
Parameters
Terraform State
Last updated