Free module
Linux privilege escalation
Reach root on your own lab machine through everyday Linux misconfiguration, then close and detect each gap: sudo, setuid, capabilities, cron and services.
The lessons
Each lesson is free and interactive. Press Start lab to run its commands in a live lab and to sit its quizzes and tasks, with no account needed.
1 · Virtual machine lab
Enumerating the machine
I can enumerate a Linux machine for the ways an ordinary account might reach root.
Read the lesson2 · Virtual machine lab
A sudo rule that gives too much
I can judge whether a sudo rule hands an account more power than it should.
Read the lesson3 · Virtual machine lab
Setuid binaries and capabilities
I can tell whether a setuid file or a capability lets an ordinary account reach root.
Read the lesson4 · Virtual machine lab
Writable cron scripts and the PATH
I can find a scheduled job an ordinary account can turn into a root shell.
Read the lesson5 · Virtual machine lab
Writable services and timers
I can find a systemd service an ordinary account can turn into a root shell.
Read the lesson6 · Virtual machine lab
Fixing and detecting it all
I can fix the common privilege-escalation gaps and detect when one returns.
Read the lesson
Worked in a real lab
Every lesson of this module is worked in a lab started for you alone. The labs it uses:
Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.