Privilege escalation is the set of techniques attackers use to gain higher permissions than they started with, moving from a limited user toward administrator, root, SYSTEM or domain control. Common techniques include exploiting vulnerabilities, abusing UAC and sudo, stealing access tokens, hijacking scheduled tasks and services, and using stolen valid accounts. MITRE ATT&CK catalogs it as tactic TA0004.
Key takeaways
- Privilege escalation turns a minor foothold into admin, root, SYSTEM or domain control — it is the bridge to full compromise.
- Most techniques abuse legitimate features and misconfigurations, not just software vulnerabilities.
- Least privilege, patching, MFA and monitoring for new admin accounts and service changes stop most escalation paths.
Most intrusions start small: a phished user, a vulnerable web app, a stolen password for a low-privilege account. Privilege escalation is what turns that small foothold into control of a machine, a network or an entire domain.
What is privilege escalation?
Privilege escalation is the set of techniques an attacker uses to gain higher permissions than they started with, moving from a limited user toward administrator, root, SYSTEM or domain-wide control.
MITRE ATT&CK, the framework security teams use to classify attacker behavior, catalogs it as a dedicated tactic, Privilege Escalation (TA0004), defined as the techniques adversaries use to gain higher-level permissions on a system or network. It lists 13 techniques under this tactic, as detailed in ManageEngine's privilege escalation detection guide.
Escalation sits between initial access and lateral movement in an intrusion. Without it, an attacker is stuck with whatever a low-privilege account can do. With it, they can disable security tools, read sensitive files, create new accounts and move to other systems.
What is vertical vs horizontal privilege escalation?
Vertical escalation gains a higher level of permission, such as moving from a standard user to a local administrator or root. Horizontal escalation gains the same level of access as another user, such as reading another user's files or acting as that user.
Vertical escalation is the more dangerous of the two, because it unlocks system-wide control. Horizontal escalation still matters: it can expose another user's data, let an attacker pivot to a more valuable account, or provide the credentials needed for a vertical jump.
Defenders should watch for both. A sudden change in which files a user can read, or a process running with another user's identity, can signal horizontal escalation that precedes a vertical attempt.
What are the main privilege escalation techniques?
Attackers escalate through three broad avenues: exploiting vulnerabilities, abusing legitimate features and misconfigurations, and using stolen credentials. Each maps to a MITRE ATT&CK technique.
| Technique | What the attacker does | ATT&CK | Main platform |
|---|---|---|---|
| Exploitation for privilege escalation | Exploits an OS or software flaw to run code at a higher level | T1068 | Windows, Linux |
| Abuse elevation control mechanism | Bypasses UAC, or abuses sudo and setuid | T1548 | Windows, Linux, macOS |
| Access token manipulation | Steals or impersonates another process's token | T1134 | Windows |
| Valid accounts | Uses stolen or default credentials for a privileged account | T1078 | All |
| Scheduled task / job | Creates or hijacks a task that runs with elevated rights | T1053 | Windows, Linux |
| Create or modify system process | Creates or hijacks a service running as SYSTEM | T1543 | Windows, Linux |
| Hijack execution flow | Plants a malicious file the system loads with high privilege | T1574 | Windows, Linux |
| Account manipulation | Adds a user to an admin group or changes credentials | T1098 | All |
The table is a map, not a ranking: which technique an attacker uses depends on what is open in your environment, which is why defense needs to cover all of them.
How does exploitation for privilege escalation work?
Exploitation for privilege escalation (T1068) uses an unpatched vulnerability in the operating system, a driver or installed software to execute code in a higher-privileged context. A standard user runs the exploit and ends up with SYSTEM or root access.
Well-known Windows examples include PrintNightmare (CVE-2021-34527) and HiveNightmare (CVE-2021-36934), both of which granted SYSTEM access to standard users. On Linux, kernel exploits serve the same purpose.
The defense is straightforward in principle and hard in practice: patch promptly, especially kernel and privilege-related flaws, and remove software you do not need. Every unpatched, privileged component is a potential escalation path.
How do attackers abuse UAC, sudo and setuid?
Abuse of elevation control mechanisms (T1548) bypasses the controls that are supposed to gate privilege escalation behind explicit consent. On Windows that control is User Account Control (UAC); on Linux and macOS it is sudo and the setuid and setgid bits.
On Windows, trusted binaries that silently self-elevate can be redirected through COM object or registry key hijacking to run attacker-controlled code at high integrity, with no consent prompt. On Linux, misconfigured sudo rules such as NOPASSWD entries or wildcard paths, and world-writable setuid binaries, allow escalation without credentials.
Setuid is a legitimate feature: when the setuid bit is set on a binary, it runs with the privileges of its owner, often root, rather than the user who launched it. That is useful for tools that need elevated access, and dangerous when the binary is writable or exploitable.
Defenses include auditing sudoers rules regularly, removing NOPASSWD entries, finding and fixing world-writable setuid binaries, and keeping UAC at its highest enforcement level. Our small business cybersecurity checklist includes least-privilege checks that catch these misconfigurations.
How do stolen tokens and valid accounts enable escalation?
Access token manipulation (T1134) and valid account abuse (T1078) do not exploit a flaw at all: they use credentials and tokens that already grant elevated access. If an attacker can steal a token or a password for a privileged account, they do not need to escalate — they simply log in as that account.
Windows access tokens define a process's privileges and group memberships. Attackers duplicate or impersonate another user's token, spawn a new process with that token, or create a new token from credentials they hold. This is a common technique in post-exploitation tooling.
Valid account abuse is equally simple: service account credentials, domain admin hashes and cloud IAM access keys all grant elevated rights directly. Default credentials on appliances and applications are a frequent source.
Defenses include MFA for every privileged account, unique passwords for service accounts, credential vaulting, and monitoring for logons with privileged accounts at unusual times or from unusual systems.
How are scheduled tasks, services and DLL hijacking abused?
Scheduled tasks, services and execution-flow hijacking all exploit the same idea: something that runs automatically with high privileges can be pointed at attacker-controlled code.
Windows Scheduled Tasks (T1053) can be created or modified to run under SYSTEM privileges. Windows services (T1543) run as SYSTEM by default, so an attacker who creates a new service pointing to a malicious binary, or tampers with an existing service binary, gets code execution at SYSTEM level on the next service start or reboot.
Hijack execution flow (T1574) plants a malicious file that the system loads with high privilege, for example a DLL placed where a privileged program looks for it first, or a binary in an unquoted service path that Windows resolves to an attacker-controlled location.
Defenses include auditing who can create or modify tasks and services, fixing unquoted service paths, restricting write access to directories in the service and DLL search order, and alerting on new service or task creation.
How do Windows and Linux privilege escalation differ?
The concept is universal but the specifics differ by platform, and defenders need both. Windows escalation targets SYSTEM and domain admin, and revolves around access tokens, UAC, service and task permissions, DLL hijacking and Active Directory attacks.
Linux escalation targets root and revolves around setuid binaries, sudo misconfigurations, writable cron jobs, kernel exploits and weak file permissions. Cloud escalation adds a third surface: over-privileged IAM roles, instance metadata abuse and misconfigured identity policies.
Small teams often focus on one platform and miss the other. Audit both, and include cloud IAM in the same review: an over-privileged cloud role is privilege escalation waiting to happen.
How do you detect and prevent privilege escalation?
No single tool stops privilege escalation. The goal is layers, so that when one fails, the next one catches the attack — and detection that fires while the attacker is still escalating, not after they have finished.
Prevention
- Apply least privilege. Remove local admin rights from everyday accounts, use just-in-time elevation for privileged work, and audit admin group membership regularly.
- Patch promptly. Prioritize kernel, driver and privilege-related vulnerabilities, and remove software you do not need.
- Audit sudo, setuid, services and tasks. Review sudoers rules, setuid binaries, service permissions and scheduled tasks on a schedule, not just after an incident.
- Protect privileged accounts. Use MFA, unique credentials, credential vaulting and dedicated admin workstations where possible.
Detection
- New administrator accounts or group changes. Alert immediately when a user is added to an admin group.
- New or changed services and scheduled tasks. These are classic escalation and persistence signals.
- Processes running as SYSTEM or root that should not be. Baseline normal privileged processes and alert on the rest.
- Unusual privileged logons. Admin logons at odd hours, from odd systems, or with new tokens deserve investigation.
For a wider starting point, see our guide to how to know if your phone is hacked for the personal-device side of the same problem.
Check your site's headers with the free security headers checker, and read the full technique list in MITRE ATT&CK tactic TA0004.
The bottom line
Privilege escalation is not one technique but a family of them, and most abuse legitimate features and misconfigurations rather than exotic vulnerabilities. That is good news for defenders: auditing sudo, services, tasks and admin rights closes many paths at once.
Start with least privilege and patching, audit the escalation paths on both Windows and Linux, and monitor for new admins and new services. You can check your own site's security posture with the free SSL checker.
Frequently asked questions
What is privilege escalation?
Privilege escalation is the act of gaining higher permissions than an account is supposed to have, moving from a limited user toward administrator, root, SYSTEM or domain control. MITRE ATT&CK catalogs it as tactic TA0004.
What is the difference between vertical and horizontal privilege escalation?
Vertical escalation gains higher-level permissions, such as moving from a standard user to an administrator. Horizontal escalation gains the same level of access as another user, such as reading another user's files or acting as that user.
What is the most common privilege escalation technique?
There is no single most common technique, because attackers use whichever path is open. Exploiting unpatched vulnerabilities, abusing misconfigured sudo and UAC controls, and using stolen valid accounts are among the most frequently seen routes.
How do attackers escalate privileges on Windows?
On Windows they exploit vulnerabilities such as PrintNightmare, bypass User Account Control, steal or impersonate access tokens, hijack services and scheduled tasks, and abuse DLL loading or unquoted service paths.
How do attackers escalate privileges on Linux?
On Linux they abuse misconfigured sudo rules, world-writable setuid binaries, writable cron jobs, kernel exploits and weak file permissions. Sudo misconfigurations are one of the most common Linux escalation paths.
How can you detect privilege escalation?
Monitor for new administrator accounts, changes to scheduled tasks and services, new setuid or sudo rules, unexpected processes running as SYSTEM or root, and logons with privileged accounts at unusual times. Centralized logging and alerting on these events is essential.
How do you prevent privilege escalation?
Apply least privilege, patch promptly, remove unnecessary admin rights, audit sudo and service permissions, use MFA for privileged accounts, and monitor for the detection signals above. No single control covers every technique, so use layers.
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 ManageEngine and CyberDefenders guides to privilege escalation detection.
How we write and fact-check →