Home > Hands-On Labs > Lab 

🧪Hands-On Lab
Help/Info

Discover AWS Account ID via S3 Bucket-banner

Login or register a free account to launch this lab!

Create Free Account or Login

Comments

Responses

Your email address will not be published. Required fields are marked *

  1. Can we apply this same technique for other resource like ec2, lambda for ResourceAccount condition with *? This tool works using “aws sts” and –policy options, can we use other commands like aws ec2/lambda and –policy option with manual approach? and get the account ID?

    1. Hey, s3:ResourceAccount is an action that’s limited to S3 only, so you’d have to find a comparable action for other services in order to use this trick, and I’m not aware of any right now. There is another similar trick that was used to find Organization IDs with S3 VPC Endpoints though, and that’s published here.

  2. Does it apply only to global namespace service resources ? and can other attributes like ResourceOrgID, ResourceOrgPath and ResourceTag/tag-key also be enumerated in the same way?

What's a Hands-On Lab?

1-Click Deployments
AWS lab environments at the click of a button. Skip the hassle of creating or managing practice accounts and dive straight into using real resources.

Practical Learning
Learn cloud security with real AWS resources and real-world scenarios, not just theory.

Risk Free
No surprise bills when you forget to delete learning resources, and keep vulnerable training environments safely isolated from your corporate and production resources.