Introduction to S3 Enumeration
Learn how to enumerate Amazon S3 including understanding how to use the AWS S3 CLI, which has unique quirks compared to other AWS services. You'll learn how to list buckets & objects, as well as how to download objects from S3 to your local computer. Enumeration is a critical part of security assessments because it gives us a lay of the land, and can help us find potential weaknesses that can be exploited. This lab gives you a safe environment to do exactly that. Capture the flag by submitting the value in object.txt.
- 7 guided tasks
- Capture the flag
- Video walkthrough

Scenario
Amazon S3, short for Simple Storage Service, is a cloud storage service provided by AWS. It allows you to store and retrieve data of all kinds: files, documents, images, videos, and just about anything else.
Because it's used by individuals and organizations for all sorts of data, it can also be a juicy target for attackers. Just do a quick Google search for "Amazon S3 data leak news" and you'll see what I mean.
It's been one of the cloud services with the most publicized data leaks, but every single one of those leaks have been a direct result of customer misconfiguration. Learning how to enumerate S3 is a step in the direction of how to learn how to find some of those misconfigurations.
What you will learn
- Set up the AWS CLI with the access keys the lab gives you.
- Read an IAM user policy to find which S3 actions it allows.
- List S3 buckets and the objects inside them with the AWS CLI.
- Download an S3 object and read what is inside it.
- Explain why a bucket policy can block access that an IAM policy allows.