Lion Cipher Lab

Chain a full AWS attack path in LocalStack — SSRF to IMDS to S3 exfil to privilege escalation to persistence — then tell the detection story

Why it matters

Real cloud breaches are almost never one big hole. They are a CHAIN of small, individually-defensible mistakes that an attacker walks from one to the next: a web bug lets them reach the instance metadata service, which hands over the workload's temporary credentials, which happen to be allowed to read a storage bucket AND to assume a more powerful role, which can create a new access key that survives long after the original bug is patched. The 2019 Capital One breach — roughly 100 million people — was the first three links of exactly this chain. Defenders who only ever look at findings one at…

What you'll learn

Steps in this lab

  1. The mindset: attack paths, not findings
  2. What LocalStack is — and the one honest caveat you must hold
  3. Set up: LocalStack in Docker + the AWS CLI
  4. Build the target: a crown-jewels bucket, a workload role, and a juicier role
  5. Stage 1 — initial access: obtain the workload role's temporary credentials
  6. Stage 2 — recon and exfiltration: read the crown jewels
  7. Stage 3 — privilege escalation: assume the more-powerful role
  8. Stage 4 — persistence: plant a backdoor access key
  9. Switch hats — the detection story, stage by stage
  10. Cut the path — the layered controls, each breaking a different link
  11. What you did — and the reflex to keep
  12. Clean up

Open the full interactive lab →