Lion Cipher Lab
Sweep your OWN AWS account, in every region, for resources shared with the world
- Cloud Security
- Intermediate
- ~75 min
- Free · no account required
Why it matters
The famous cloud leaks are rarely clever. They are a snapshot someone shared with everyone, a topic anyone can publish to, a function with a public URL and no login. These resources are scattered across regions and services, and no single console page lists them. A short read-only sweep that you can run any time finds them before a stranger does, and writing it yourself teaches you what each exposure looks like in the raw policy text so you can judge the output of any tool.
What you'll learn
- looping an AWS CLI check over every region
- finding public EBS snapshots and AMIs
- reading SNS and SQS resource policies for a wildcard principal
- telling a real open policy from the default one that has a condition
- finding Lambda function URLs with no authentication
- checking ECR repository policies
- testing a scanner against a resource you seeded on purpose
- turning on account-level block public access for snapshots and AMIs
Steps in this lab
- The rule, and what shared with the world means
- Walk every region
- Snapshots and AMIs: two flags, both documented
- Topic and queue policies: read the policy, not just the name
- Lambda function URLs and ECR repositories
- Put it in one script
- Seed one open topic and prove the sweep sees it
- Fix it, turn on the account guard rails, and re-sweep
- The defender's view, and what this sweep cannot see
Open the full interactive lab →