Lion Cipher Lab

Find privilege-escalation paths in your AWS IAM with Cloudsplaining

Why it matters

The permissions you already handed out are an attack surface. AWS IAM privilege escalation is rarely a single magic action — it's a chain: a role is allowed to create a new version of a policy, or attach an admin policy to itself, or pass a powerful role to a service it controls (a Lambda function, an EC2 instance) and inherit that role's power. Reading thousands of actions across dozens of policies by hand to spot those chains is hopeless. Cloudsplaining does it in seconds: it scans the IAM authorization details offline and flags every identity policy that grants a known escalation,…

What you'll learn

Steps in this lab

  1. What Cloudsplaining is, and when you'd reach for it
  2. Install Cloudsplaining (pip or pipx — no AWS anything)
  3. Understand the input — the IAM authorization file
  4. Create a sample authorization file (the offline path — no account needed)
  5. Generate the exclusions file (tune out the noise)
  6. Scan the file and open the HTML report
  7. Read the findings — what each category actually means
  8. Triage — true risk vs. acceptable risk
  9. Fix it — least privilege, kill the wildcards, guard PassRole
  10. When NOT to lean on it — the limits, and what to pair it with

Open the full interactive lab →