Privilege escalation explained: how attackers become admin and how to stop them
In short: Privilege escalation is when an attacker who has ordinary access gains higher rights, such as administrator or root (vertical), or another user's access (horizontal). It usually relies on missing patches, weak settings or stored passwords. Least privilege, patching, removing local admin rights and monitoring stop most of it.
What is privilege escalation?
Most attacks begin with limited access: a phished staff account, a weak web form or a compromised laptop. That access is rarely enough to reach the attacker's goal. Privilege escalation is the step where they turn limited access into more power, usually administrator on Windows or root on Linux. In an authorised test, ethical hackers look for escalation paths so the organisation can close them before a criminal finds them. The wider attack stages are covered in the phases of ethical hacking.
Vertical and horizontal escalation
Vertical escalation means moving up: from a normal user to an administrator. Horizontal escalation means moving sideways: from one customer's account to another's, at the same privilege level. Web applications suffer most from horizontal problems, which the OWASP Top 10 calls broken access control (see the OWASP Top 10).
Common weaknesses that allow it
| Weakness | Why it helps an attacker | Fix |
|---|---|---|
| Missing operating system patches | Known local privilege escalation bugs are published regularly | Patch quickly, especially flaws marked as exploited |
| Everyday users with local admin rights | No escalation needed at all | Remove local admin; use separate admin accounts |
| Passwords stored in scripts, files or browsers | Gives access to higher-privileged accounts | Use a secrets manager and scan for stored credentials |
| Services running with too many rights | A weak service becomes a route to full control | Run services with the least privilege they need |
| Weak file and folder permissions | Users can change programs that run as admin | Review permissions on system folders and scheduled tasks |
| Same local admin password on every PC | One cracked machine unlocks all of them | Use Windows LAPS to give each PC a unique password |
How to defend against it
- Least privilege: give people and services only the rights they need. See privileged access management.
- Patch operating systems and drivers on a regular schedule, faster for known exploited flaws.
- Separate admin accounts that are never used for email or web browsing.
- Application control, such as Windows App Control or AppLocker, so users cannot run unknown programs.
- Monitoring: alert on new admin accounts, changes to admin groups and unusual use of system tools.
Real-world example: a help desk PC
During an authorised internal test at a fictional logistics firm, the tester starts with a normal staff account. They find a script on a shared drive that maps network drives using a service account with a password written inside it. That account is a local administrator on every help desk PC. Within an hour the tester has admin rights on twelve machines. The firm removes the password from the script, moves the account into a secrets manager with least privilege, deploys LAPS and adds an alert for new members of local admin groups. A retest finds no path from a normal user to administrator.
Practice
What is the difference between vertical and horizontal privilege escalation?
Why is giving everyday users local admin rights risky?
What does Windows LAPS prevent?
Key takeaways
- Privilege escalation turns limited access into admin, root or another user's access.
- Vertical escalation moves up; horizontal escalation moves sideways between users.
- Missing patches, stored passwords and too many admin rights cause most escalation paths.
- Least privilege, patching, LAPS and separate admin accounts stop most of it.
- Monitor admin group changes so escalation is spotted quickly.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.