Security operations

Windows Privilege Escalation: Techniques, Detection and Fixes

Privilege escalation is the bridge between a foothold and full control of a Windows machine. Here are the techniques attackers use most, and the defenses that stop them.

Cysoro Security TeamPublished · 8 min read
Standard user Administrator SYSTEM TA0004 SECURITY OPERATIONS Windowsprivilege escalation From standard user to SYSTEM.
Quick answer

Windows privilege escalation is when an attacker with a standard user account gains administrator or SYSTEM privileges on a Windows machine. Common techniques include exploiting unpatched vulnerabilities, abusing misconfigured services and scheduled tasks, stealing tokens, bypassing User Account Control, and abusing powerful user rights. The fix is least privilege, patching, strong service configuration, and monitoring for the events each technique produces.

Key takeaways

  • Most Windows privilege escalation comes from misconfigurations such as unquoted service paths, weak service permissions and overpowered accounts, not zero-day exploits.
  • MITRE ATT&CK maps privilege escalation to tactic TA0004, with techniques including exploitation (T1068), token manipulation (T1134) and UAC bypass (T1548).
  • Least privilege, prompt patching, hardened UAC and monitoring for suspicious process creation stop most escalation paths.

An attacker who lands on a Windows machine as a standard user has limited power: they cannot install drivers, change system settings or read other users' files. Privilege escalation is how they break out of that box — and once they reach administrator or SYSTEM, the machine is theirs.

What is Windows privilege escalation?

Windows privilege escalation is the act of gaining higher permissions than your current account allows, usually moving from a standard user to an administrator or to SYSTEM, the most powerful account on a Windows machine.

It sits between initial access and lateral movement in an attack. If you want the wider context, our spear phishing guide shows how attackers get that first foothold. The attacker first gets a foothold, often through phishing or an exposed service, then escalates to run code with higher privileges, steal credentials, disable defenses and move to other machines. MITRE ATT&CK maps it to tactic TA0004, Privilege Escalation, which lists 28 techniques.

There are two kinds. Vertical escalation gains a higher level, such as standard user to administrator. Horizontal escalation gains another user's access at the same level, such as reading a colleague's files. This article focuses on vertical escalation on Windows, the kind that leads to full control.

How does privilege escalation work on Windows?

Windows decides what a process can do using access tokens, which carry the user's identity, group memberships and privileges. A standard user token is limited; an administrator token is powerful; a SYSTEM token is the most powerful of all.

Attackers escalate by finding a path to run code under a more powerful token. That path can be a bug in the operating system, a service that runs as SYSTEM and can be tricked into running the attacker's code, a scheduled task that runs as SYSTEM, or a token that can be stolen or copied from another process.

Most real escalation paths are not exotic. In penetration tests, the common findings are misconfigurations: a service with a weak permission, a folder a standard user can write to, or an account with a powerful user right it does not need. Fixing those is usually cheaper than buying new tools.

The Windows privilege ladder Standard userown files, own apps, no system changes Administratorinstall software, change settings, manage users SYSTEMfull control of the machine, including the operating system itself Escalation is climbing this ladder without permission.
Each step up the ladder gives an attacker more control. Illustration by Cysoro.

What are the main privilege escalation techniques?

The table below summarises the techniques defenders see most often, with their MITRE ATT&CK identifiers. The sections after it explain each one in plain terms.

TechniqueMITRE IDWhat the attacker abusesTypical fix
Exploiting vulnerabilitiesT1068Unpatched OS, driver or software bugsPatch promptly
Service abuseT1543.003Misconfigured Windows servicesFix service permissions
Scheduled tasksT1053.005Tasks running as SYSTEMAudit task permissions
Token manipulationT1134Stolen or copied access tokensLeast privilege, Credential Guard
UAC bypassT1548.002Trusted binaries that self-elevateHarden UAC, monitor
DLL hijackingT1574.001Missing DLLs in writable pathsFix folder permissions
Valid accountsT1078Stolen admin credentialsMFA, password hygiene

Exploiting vulnerabilities (T1068)

Attackers exploit unpatched bugs in Windows, drivers or installed software to run code in a higher-privileged context. Well-known examples include PrintNightmare, a print spooler flaw, and HiveNightmare, which exposed registry hives to standard users.

Kernel exploits are the last resort for most attackers because they can crash the machine. Misconfigurations are quieter and more reliable, which is why they come first in practice.

Service abuse (T1543.003)

Windows services often run as SYSTEM. If a service binary sits in a folder a standard user can write to, or the service itself can be reconfigured by a standard user, the attacker replaces the binary or changes the service path and waits for the service to start.

Unquoted service paths are a classic example. If a service path contains spaces and is not wrapped in quotes, Windows tries each part of the path in turn, and an attacker who can write to an earlier folder can plant a malicious program there.

Scheduled tasks (T1053.005)

Scheduled tasks can run as SYSTEM on a timer or at logon. If the program a task runs is writable by a standard user, or the task itself can be modified, the attacker replaces the program and gains SYSTEM privileges the next time the task runs.

Token manipulation (T1134)

Windows access tokens define what a process can do. If an attacker can access a process running as SYSTEM or as an administrator, they may steal or copy its token and use it for their own process. Service accounts with the SeImpersonatePrivilege user right are a common target, because that right is designed to let a service act on behalf of a user.

Accounts with SeBackupPrivilege can read files regardless of permissions, and accounts with SeDebugPrivilege can inspect other processes. Give these rights only to accounts that genuinely need them.

UAC bypass (T1548.002)

User Account Control prompts you before an action runs with administrator rights. Some trusted Windows binaries elevate without a prompt, and attackers abuse those binaries by redirecting them through registry keys or COM objects to run attacker code at high integrity instead.

MITRE's mitigation for UAC, M1052, recommends enabling Admin Approval Mode, requiring credentials rather than a simple confirmation, and prompting on the secure desktop. UAC is a useful layer, but it is not a security boundary by itself.

DLL hijacking (T1574.001)

When a program loads a DLL, Windows searches a list of folders. If a required DLL is missing and one of the searched folders is writable by a standard user, the attacker plants a malicious DLL there and it loads with the program's privileges.

Valid accounts (T1078)

Sometimes there is no bug at all: the attacker simply logs in with a stolen administrator password, a service account credential, or a hash captured from the network. This is why credential hygiene, phishing-resistant MFA and keeping administrators off everyday browsing matter so much.

What do real privilege escalation attacks look like?

PrintNightmare, disclosed in 2021, let a standard user exploit the Windows print spooler to run code as SYSTEM. It was patched, then patched again, because the first fix was incomplete — a reminder that patching is a process, not a single event.

HiveNightmare, also in 2021, exposed the registry hives that store password hashes to standard users on some Windows 10 and 11 systems. An attacker who could read those hives could extract hashes and crack them offline.

In ransomware cases, privilege escalation is usually a middle step, not the headline. The attacker phishes a user, escalates to administrator, disables or blinds endpoint protection, steals credentials, and then moves across the network. Stopping escalation early breaks that chain.

How do you detect privilege escalation?

Each technique leaves traces, and the best detections watch for the traces rather than the exploit itself. Start with these signals:

  • New or changed services: watch for service creation and configuration changes, especially services pointing at unusual paths.
  • Scheduled task changes: alert on new tasks and changes to existing tasks, particularly tasks that run as SYSTEM.
  • Suspicious process parents: a command prompt or PowerShell launched by a trusted binary such as fodhelper or eventvwr is a classic UAC bypass signal.
  • Processes running as SYSTEM that should not be: know which programs normally run as SYSTEM on your machines, and investigate the rest.
  • Token and privilege use: monitor for SeDebugPrivilege, SeImpersonatePrivilege and SeBackupPrivilege being used by unusual processes.
  • Event ID 4688: process creation logging, ideally with command-line data, gives you the raw material for all of the above.

Centralise these logs. An attacker who escalates on one machine will often clear the local event log, so a copy held elsewhere is the difference between detection and a shrug. The full technique list is in the MITRE ATT&CK privilege escalation tactic page.

Six signals worth alerting on New or changed servicesespecially pointing at odd paths Scheduled task changestasks running as SYSTEM Odd process parentsshells launched by trusted binaries Unexpected SYSTEM processesknow what normally runs as SYSTEM Powerful privilege useSeDebug, SeImpersonate, SeBackup Process creation logsEvent ID 4688, with command lines
Alert on the traces, not just the exploit. Illustration by Cysoro.

How do you prevent Windows privilege escalation?

Prevention is mostly hygiene, applied consistently. No single control covers every technique, so layer them.

  1. Use standard accounts day to day. Nobody should browse email and the web as an administrator. Use a separate admin account, and only when you need it. Microsoft Learn notes that the built-in Administrator account should be disabled when possible, and that members of the Administrators group have full control of the device.
  2. Patch Windows, drivers and software promptly. Most exploited escalation bugs already have a patch. Prioritise privilege escalation flaws in your patching, not just remote code execution.
  3. Audit services and scheduled tasks. Check service permissions, quote service paths, and review who can modify tasks and the programs they run.
  4. Remove powerful user rights you do not need. Review SeImpersonatePrivilege, SeDebugPrivilege, SeBackupPrivilege and similar rights, and take them away from accounts that do not need them.
  5. Harden UAC. Keep UAC on, require credentials for elevation where practical, and prompt on the secure desktop.
  6. Fix folder permissions. Standard users should not be able to write to program folders, service folders or folders in the DLL search path.
  7. Use phishing-resistant MFA for admin accounts. A stolen admin password should not be enough on its own.
  8. Enable Credential Guard and LSA protection where your edition supports them, to make credential theft harder.

For a wider baseline, our small business cybersecurity checklist covers patching, accounts and backups alongside these controls.

How can you check your own machine safely?

Only test machines you own or have written permission to test. On your own machine, start with the manual checks: who is in the Administrators group, which services run as SYSTEM, and which scheduled tasks run as SYSTEM.

Penetration testers use enumeration tools such as WinPEAS, PrivescCheck, SharpUp and Seatbelt to find escalation paths quickly. These tools are for authorised testing only, and they should be run in a lab or on a machine you own, never on someone else's system.

If you find a problem, fix the configuration rather than just removing the tool's output. A finding that is not fixed will be found again by the next tester — or by an attacker.

Test only with permissionRunning privilege escalation tools on a system you do not own and have no written permission to test is unauthorised access, even if your intent is to help.

The bottom line

Windows privilege escalation turns a small foothold into full control, and most of the paths attackers use are misconfigurations you can fix today: standard accounts for daily work, patched systems, quoted service paths, audited tasks and hardened UAC.

Start with the Administrators group and your services. Those two checks alone find most of the escalation paths on a typical Windows machine, and fixing them closes the door before an attacker ever reaches it.

Strong passwords for those admin accounts matter too. See our best password manager for Safari guide for the same principles on any platform.

Frequently asked questions

What is Windows privilege escalation?

It is the process of gaining higher privileges than your current account allows on a Windows system, usually moving from a standard user to an administrator or to SYSTEM, the most powerful account on the machine.

What is the difference between vertical and horizontal privilege escalation?

Vertical escalation means gaining a higher privilege level, such as standard user to administrator. Horizontal escalation means gaining the same level of access as another user, such as reading another user's files.

What is the most common privilege escalation technique on Windows?

Misconfiguration is the most common cause in real assessments: unquoted service paths, services with weak permissions, writable scheduled tasks, and accounts with powerful user rights such as SeImpersonatePrivilege.

Can UAC stop privilege escalation?

UAC helps, but it is not a security boundary on its own. It prompts for elevation and blocks some paths, yet known bypass techniques exist, so it must be combined with least privilege, patching and monitoring.

How do you detect privilege escalation?

Monitor for new services, scheduled task changes, suspicious child processes of trusted binaries, token manipulation, and processes running as SYSTEM that should not be. Centralised logging and endpoint detection make this practical.

Is privilege escalation illegal?

Yes, when it is done without authorisation. Testing for privilege escalation on systems you own, or on systems you have written permission to test, is a normal part of penetration testing and security assessment.

What is SYSTEM on Windows?

SYSTEM, also called LocalSystem, is a built-in account with the highest privileges on a Windows machine. Services often run as SYSTEM, which is why taking over a service can give an attacker full control.

How do I check my own Windows machine for escalation risks?

Run as a standard user day to day, keep Windows and drivers patched, review who is in the Administrators group, audit services and scheduled tasks, and use the free tools in this article only on machines you own or are authorised to test.

Sources

  1. MITRE ATT&CK — Tactic: Privilege Escalation (TA0004)
  2. MITRE ATT&CK — Mitigation M1052: User Account Control
  3. Microsoft Learn — Local accounts
  4. MITRE ATT&CK — Technique Matrix, Enterprise (Windows)
Written & fact-checked byCysoro Security Team

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.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against MITRE ATT&CK tactic TA0004 and mitigation M1052, and Microsoft Learn guidance on Windows local accounts.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free