Local privilege escalation is an attack in which someone who already has limited access to a computer, such as a standard user account, gains higher privileges on that same machine, typically local administrator, SYSTEM on Windows or root on Linux. Attackers use unpatched flaws, misconfigurations, abused elevation controls and stolen credentials, so patching, least privilege and monitoring are the main defenses.
Key takeaways
- Local privilege escalation needs a foothold first: it turns a limited account into admin, SYSTEM or root on the same machine.
- MITRE ATT&CK tracks it as tactic TA0004, with 13 techniques including exploitation, UAC and sudo abuse, token theft and service hijacking.
- Patching, least privilege, removing local admin rights and watching for elevation events stop most real-world escalations.
Most break-ins do not start with admin rights. An attacker phishes one employee, exploits one web flaw or logs in with one stolen password, and lands as an ordinary user. Local privilege escalation is the next step: turning that limited foothold into full control of the machine.
What is local privilege escalation?
Local privilege escalation is an attack in which a person or process that already has limited access to a computer gains higher privileges on that same machine. The usual goal is local administrator, SYSTEM on Windows or root on Linux, or an account with admin-like access.
MITRE ATT&CK, the framework security teams use to classify attacker behavior, tracks it as tactic TA0004, Privilege Escalation. MITRE defines it plainly: the adversary is trying to gain higher-level permissions, using system weaknesses, misconfigurations and vulnerabilities. See the MITRE ATT&CK TA0004 tactic page for the full list of 13 techniques.
The word local matters. The attacker already has a foothold on the machine, perhaps a standard user session, a web shell running as the web server account, or a compromised container. The escalation happens on that host, even if the next step is to use the new rights to reach the wider network.
What is vertical vs horizontal privilege escalation?
Vertical privilege escalation gains a higher permission level than the account was given, such as a standard user becoming local administrator or SYSTEM. Horizontal privilege escalation gains another account at the same level, such as one user reading another user's files.
Most people mean vertical escalation when they say privilege escalation, and that is what MITRE TA0004 describes. Horizontal escalation is still serious, especially in web applications, where changing an ID in a request can expose another customer's records, but it is usually classed as broken access control rather than TA0004.
| Vertical escalation | Horizontal escalation | |
|---|---|---|
| What changes | The permission level the attacker holds | The identity: same level, someone else's account or data |
| Example | Standard user to SYSTEM through an unpatched driver flaw | Changing an invoice ID in a URL and reading another customer's invoice |
| Typical route | Local exploit, misconfigured service, cracked service-account password | Stolen session token, reused password, an app that trusts a user-controlled ID |
| Main defense | Least privilege, patching, hardening, endpoint detection | Access checks on every object, session controls, testing |
Do not confuse either with lateral movement. Escalation raises rights on one machine; lateral movement, MITRE tactic TA0008, uses those rights to reach other machines. Escalation usually comes first.
How does local privilege escalation work?
Local privilege escalation follows a short pattern: get a foothold, look for a weak spot that runs with higher rights, abuse it, and then use the new rights to persist and spread. The weak spot is usually a flaw, a misconfiguration or a legitimate feature used the wrong way.
First the attacker enumerates the host: what operating system and patch level it runs, which services and scheduled tasks exist, who can write to them, which drivers are loaded, and which accounts have admin rights. Then they pick the weakest path. Often there is no need for a new exploit at all, because a misconfigured service or a reused admin password does the job.
What are the common local privilege escalation techniques?
The common techniques are exploiting a vulnerability, abusing elevation controls, stealing or manipulating access tokens, using valid high-privilege accounts, and hijacking services, scheduled tasks or execution flow. MITRE TA0004 lists 13 techniques in total.
| Technique | ATT&CK | What the attacker does |
|---|---|---|
| Exploitation for privilege escalation | T1068 | Exploits an OS, kernel or driver flaw to run code as SYSTEM or root |
| Abuse elevation control mechanism | T1548 | Bypasses UAC, or abuses sudo, setuid and setgid binaries |
| Access token manipulation | T1134 | Steals or impersonates another process's access token |
| Valid accounts | T1078 | Logs in with stolen, default or shared admin credentials |
| Scheduled task or job | T1053 | Creates or changes a task that runs with elevated rights |
| Create or modify system process | T1543 | Creates or hijacks a service that runs as SYSTEM or root |
| Hijack execution flow | T1574 | Plants a DLL or file the system loads with high privilege |
| Account manipulation | T1098 | Adds an account to a privileged group or adds cloud roles |
Exploitation for privilege escalation (T1068)
The classic route: an unpatched kernel or driver flaw, or a vulnerable application running with high privilege, lets the attacker execute code at a higher level. This is why local flaws matter as much as remote ones, and why CISA's Known Exploited Vulnerabilities catalog includes local privilege escalation flaws that must be patched quickly.
Abuse elevation control mechanism (T1548)
Windows User Account Control, Linux sudo and setuid binaries exist to limit who can elevate. Attackers bypass UAC, abuse a sudo rule that allows a dangerous command, or exploit a setuid binary that runs as root. A single over-broad sudo entry can hand over the whole machine.
Access token manipulation (T1134)
On Windows, access tokens decide what a process can do. An attacker who can duplicate or steal the token of a more privileged process can run code under that identity, without knowing its password. This is a common step after landing on a machine where an admin session is already running.
Valid accounts and account manipulation (T1078, T1098)
Sometimes no exploit is needed. A stolen service-account password, a default admin password or a shared local admin account gives the attacker elevated rights directly. Once in, they may add their own account to a privileged group, add cloud credentials or register a device for multi-factor authentication, so access survives a password change.
Services, tasks and hijacked execution (T1053, T1543, T1574)
Services and scheduled tasks often run as SYSTEM or root. If a standard user can write to the service binary, its folder or an unquoted service path, they can replace it with their own code and wait for the system to run it with full rights. The same idea applies to DLL hijacking, where a planted library is loaded by a privileged program.
What are real examples of local privilege escalation?
Real examples include PwnKit on Linux, Windows driver flaws used by ransomware groups, and Copy Fail, a Linux kernel flaw disclosed in April 2026. Each one turned a limited local account into root or SYSTEM.
PwnKit (CVE-2021-4034)
PwnKit was a flaw in polkit's setuid pkexec tool on Linux. A local unprivileged user could exploit it to gain root. It was added to CISA's Known Exploited Vulnerabilities catalog in June 2022, which shows how quickly a local flaw becomes a practical tool for attackers.
Copy Fail (CVE-2026-31431)
Copy Fail, disclosed on 29 April 2026, is a critical local privilege escalation flaw in the Linux kernel's cryptography interface. An unprivileged local attacker could trigger a controlled write into the page cache of a protected file, modifying system binaries or authentication files in memory without changing the file on disk.
Because the kernel page cache is shared with the host, it could also act as a container escape, letting an attacker break out of a container to compromise the underlying host, as ExtraHop's analysis of Copy Fail explains.
Windows driver flaws and ransomware
Ransomware operators have repeatedly used local flaws in the Windows Common Log File System driver and in Windows Error Reporting to gain SYSTEM rights. Vulnerable signed drivers are also abused: once an attacker has admin rights, a signed but vulnerable driver can give kernel access. That is why Microsoft's vulnerable driver blocklist and memory integrity matter.
How does local privilege escalation differ on Windows and Linux?
On Windows the targets are usually SYSTEM, local administrator and domain admin, reached through UAC bypasses, token theft, services and scheduled tasks. On Linux the targets are root and privileged service accounts, reached through setuid binaries, sudo rules, kernel flaws and writable system files.
Windows detection leans on event logs: process creation, logons with special privileges, service installation and group membership changes. Linux detection leans on sudo logs, setuid inventories, audit rules and unexpected root processes. Both need endpoint detection, because a successful kernel exploit may leave almost no log footprint on its own.
Cloud adds a third path. A low-privilege cloud identity that can request just-in-time role activation, pass a role to a resource or add roles to an account can escalate to account administrator without touching a host at all. MITRE tracks that as a sub-technique of T1548, temporary elevated cloud access.
How do you detect local privilege escalation?
Detect it by watching for elevation that has no legitimate path: a normal user spawning a child process as SYSTEM or root, a new service or scheduled task, a sudden group membership change, or a privileged logon at an odd hour. No single event proves an attack, so look for the pattern.
- Process lineage: a user process spawning a child running as SYSTEM or root without a legitimate elevation path.
- Service and task changes: new services, changed service binaries, new scheduled tasks, especially ones created outside working hours or with encoded commands.
- Account changes: users added to admin groups, new local accounts, new cloud roles or keys, and password resets on admin accounts.
- Elevation controls: UAC bypass attempts, unusual sudo use, new setuid binaries, and sudoers file changes.
- Driver and kernel events: new kernel drivers, crashes in privileged services shortly before suspicious activity, and vulnerable driver loads.
Send these events to a central log or SIEM and alert on them, rather than relying on each host to notice. A single host may be compromised, but a central alert still fires. Keep logs long enough to investigate: escalation is often found days after it happened, when the attacker uses the new rights.
For the wider basics, our security baseline platform overview explains how to track these controls across your systems.
How do you prevent local privilege escalation?
Prevent it with least privilege, prompt patching, hardened services and strong credential hygiene. No single control covers every technique, so layer them: remove the easy paths first, then watch the hard ones.
Patch local flaws like remote ones
Many teams patch internet-facing flaws first and defer local ones. Attackers count on that. Patch operating system, kernel and driver flaws promptly, and prioritize anything in CISA's Known Exploited Vulnerabilities catalog, including local privilege escalation entries. Enable the vulnerable driver blocklist and memory integrity on Windows.
Apply least privilege everywhere
Remove local administrator rights from everyday accounts. Give staff a separate admin account used only for admin work, and never for email or browsing. On Linux, review sudoers rules and setuid binaries regularly, and remove any that are not needed. In the cloud, grant the minimum IAM roles and review just-in-time access.
Harden services, tasks and the endpoint
Quote service paths, restrict write access to service folders and scheduled task definitions, and audit them on a schedule. Limit what standard users can install and run, and use application allowlisting where you can. Keep endpoint detection running and tamper-protected, so a local exploit cannot quietly disable it.
What should you do if you suspect privilege escalation?
Treat it as a possible full compromise of that host: isolate the machine, preserve logs, reset credentials that were on it, and hunt for persistence. Do not just remove the suspicious file and carry on.
- Isolate the host from the network, but do not power it off until logs and memory have been preserved if you can.
- Preserve evidence: export event logs, endpoint alerts and the list of services, tasks and admin group members.
- Look for persistence: new services, scheduled tasks, accounts, SSH keys, cloud roles and startup items.
- Reset credentials that were used on the host, especially admin and service accounts, and revoke sessions.
- Rebuild if in doubt: a kernel-level escalation can hide persistence that a scan will miss, so rebuild the host from a known-good image.
For a wider starting point, our small business cybersecurity checklist covers patching, least privilege and logging alongside the other basics.
The bottom line
Local privilege escalation is the step that turns a small foothold into full control. Attackers do not need a new zero-day for it: an unpatched driver, a misconfigured service or a reused admin password is usually enough.
Patch local flaws as urgently as remote ones, take admin rights off everyday accounts, harden services and watch for elevation. You can check the basics of your own public-facing posture in seconds with our free security headers checker.
Frequently asked questions
What is local privilege escalation?
It is an attack where someone with limited access to a computer gains higher rights on that same computer, such as moving from a standard user to local administrator, SYSTEM or root.
What is the difference between local and remote privilege escalation?
Local privilege escalation needs access to the machine first, such as a logged-in account or a running process. Remote privilege escalation can be triggered over the network without prior access to that machine.
What is vertical vs horizontal privilege escalation?
Vertical escalation gains a higher permission level, such as user to admin. Horizontal escalation gains another account at the same level, such as reading another user's files.
What is an example of local privilege escalation?
PwnKit, CVE-2021-4034, was a flaw in the polkit pkexec tool on Linux that let an unprivileged local user gain root. Another is Copy Fail, CVE-2026-31431, a Linux kernel flaw disclosed in April 2026.
How do you detect local privilege escalation?
Watch for a standard user spawning a process as SYSTEM or root, new services or scheduled tasks, changes to admin groups, UAC bypasses and unusual sudo or setuid use, and alert on those events in your endpoint and log tools.
How do you prevent local privilege escalation?
Patch promptly, remove local admin rights from everyday accounts, use separate admin accounts, harden services and scheduled tasks, block vulnerable drivers, and apply least privilege to cloud and directory roles.
Is privilege escalation the same as lateral movement?
No. Privilege escalation raises rights on one machine. Lateral movement uses those rights to reach other machines and services, which MITRE tracks as a separate tactic.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against MITRE ATT&CK tactic TA0004 and its technique pages, plus documented cases including PwnKit and Copy Fail.
How we write and fact-check →