Got shell access to an EC2 instance? You can enumerate the AWS account ID using two methods: get-caller-identity if an instance profile exists, or the metadata service at 169.254.169.254. Both reveal the account ID plus useful context like region and instance type.
buff.lyEnumerate AWS Account ID from an EC2 Instance - Hacking The CloudWith access to an ec2 instance, you will be able to identify the AWS account it runs in.
1 repost2 likes