Linux privilege escalation: common misconfigurations and fixes
10 steps · about 4 h 35 min · Intermediate
- Linux privilege escalation: sudo and SUID binaries — lesson (guide, cmagic.dev, 25 min)
It starts with the trust-boundary idea behind sudo and SUID, and shows the hardening fix next to each finding.
- Linux Privilege Escalation: Exploiting SUID Binaries and Misconfigurations (article, Wylie Bayes, 15 min)
It explains how the SUID bit works, using passwd as the example, before you look at how it gets abused.
- Linux Privilege Escalation: Techniques Guide (2026) (article, HackerDNA, 20 min)
It gives a map of the main escalation paths and the first three enumeration commands: id, sudo -l and the SUID search.
- GTFOBins (reference, GTFOBins, 15 min)
This is the reference for which ordinary binaries can be abused under sudo, SUID or capabilities. Learn to read it before you run any labs.
- Linux Privilege Escalation using SUID Binaries (tutorial, Hacking Articles, 30 min)
It walks through a complete SUID lab on your own VM, from planting the misconfiguration to exploiting it.
- Linux Privilege Escalation: Complete Guide for Pentesters (tutorial, ComputingForGeeks, 40 min)
It adds capabilities, writable cron scripts and PATH hijacking to the sudo and SUID cases, all in one lab you build yourself.
- Linux Privilege Escalation Guide: From Low-Priv Shell to Root (tutorial, GoLinuxCloud, 35 min)
It includes a checklist and a troubleshooting table that explain why an exploit sometimes fails, such as a nosuid mount or a restricted sudo rule.
- LinPEAS (privilege-escalation-awesome-scripts-suite) (repo, carlospolop / GitHub, 25 min)
Run it on your lab box to see how automated enumeration finds the misconfigurations you just found by hand.
- Linux - Privilege Escalation - HackTricks (reference, HackTricks, 45 min)
It is a broad reference for the rarer vectors, such as writable Docker sockets, process privileges and doas.
- Linux Privilege Escalation: Attack Techniques and How to Detect Them — Hive Security (article, Hive Security, 25 min)
It finishes on the defender's side, with auditd detection rules, MITRE ATT&CK mappings and a hardening checklist.