Enumerate AWS Account IDs
To maintain security, AWS Account IDs should be handled carefully, even though they are not deemed confidential. While they are not secrets, they can lead to exposure of sensitive resources or data.
Are AWS Account IDs considered to be a secret?
What is the risk of exposed AWS Account IDs?
Methods to Enumerate AWS Account IDs
Using valid AWS Access Keys
aws --profile dev sts get-caller-identity
{
"UserId": "AIDAxxxxxxx",
"Account": "111111111111",
"Arn": "arn:aws:iam::111111111111:user/dev_user"
}Using AWS Access Key ID
Using an S3 Bucket Name
Using EC2 metadata
Using Amazon Bedrock API Keys


Last updated