Lion Cipher Lab

Find (and fix) privilege-escalation paths on your own Linux lab

Why it matters

Attackers rarely land as root. They get in as some low-privilege user — a web-app account, a compromised login — and then look for a misconfiguration that lets them climb to full control of the machine. That climb is privilege escalation, and it almost always exploits something an administrator left wrong: an over-broad sudo rule, a dangerous SUID binary, a writable file that runs as root. The best way to understand these paths is to hunt for them on a machine you own, see why each one is dangerous, and fix it — which is exactly what a defender does when hardening a host. Learning to…

What you'll learn

Steps in this lab

  1. The one rule, and what privilege escalation is
  2. Check your sudo rights: sudo -l
  3. Read a dangerous entry with GTFOBins
  4. Find SUID binaries
  5. Enumerate systematically with a tool
  6. Fix what you found
  7. Why hunting your own box is the point

Open the full interactive lab →