Lion Cipher Lab

Escalate to root on your own Linux VM: SUID binaries, sudo rules, and GTFOBins

Why it matters

Reading that a SUID binary or a NOPASSWD sudo rule 'could lead to privilege escalation' is abstract until you have actually turned one into a root shell with your own hands. This lab makes it concrete on a VM you own and can safely break: you deliberately plant the two most common real-world Linux privesc misconfigurations, then walk the exact path an attacker walks — enumerate the vector, look it up in GTFOBins, and run the one line that drops you to root. Doing it once permanently changes how you read a system: you stop seeing `find` or a sudo rule as 'just a tool' and start seeing…

What you'll learn

Steps in this lab

  1. The one rule: your own throwaway VM, and nothing else
  2. What the SUID bit is — the idea the whole lab turns on
  3. Plant the SUID misconfiguration (deliberate, on your VM)
  4. Enumerate: find every SUID-root binary the way an attacker would
  5. Exploit the SUID bash — and why `-p` is the whole trick
  6. Fix and revert the SUID vector — leave no vulnerability armed
  7. Plant the second vector: a NOPASSWD sudo rule
  8. Enumerate and exploit the sudo rule with GTFOBins
  9. Fix and revert the sudo vector — and the least-privilege lesson
  10. What you actually did — enumeration vs exploitation vs defense

Open the full interactive lab →