Lion Cipher Lab

Map AWS IAM privilege-escalation attack paths as a graph with PMapper — then close the edge

Why it matters

Real privilege escalation in AWS is rarely one bad policy — it is a chain no single policy reveals. Alice cannot administer the account. But Alice can assume deploy-role; deploy-role can pass admin-role to a Lambda function it creates and invokes; that Lambda now runs AS admin-role. Three ordinary, individually-defensible grants compose into a path to full control. Per-policy scanners like Cloudsplaining flag the primitives, but they read each policy alone and cannot see that these principals CONNECT. The only way to see the chain is to model the whole account as a directed graph — nodes are…

What you'll learn

Steps in this lab

  1. Why single-policy scanning misses transitive escalation
  2. What PMapper is — and how it sits ABOVE the Cloudsplaining lab
  3. Install the tools — Docker, LocalStack, PMapper
  4. Stand up the deliberately-vulnerable principals in LocalStack
  5. Build the graph — `pmapper graph create`
  6. Query the graph — who can reach admin, and by what path
  7. Close the edge — remove ONE permission and re-prove the path is gone
  8. Judgment — model limits, false paths, and the offense/defense duality

Open the full interactive lab →