Security operations

Privilege Escalation: What It Is, Techniques and How to Stop It

An attacker who lands as an ordinary user is not stuck there. Escalation is how they climb to admin, root or SYSTEM — and how you stop the climb.

Cysoro Security TeamPublished · 8 min read
SECURITY OPERATIONS Privilegeescalation User to admin — and how to stop it Standard userL1 Local adminL2 ROOT / SYSTEML3 !
Quick answer

Privilege escalation is when an attacker gains higher permissions than they started with, moving from an ordinary user account toward administrator, root, SYSTEM or domain-wide control. MITRE ATT&CK lists it as tactic TA0004. Attackers escalate by exploiting vulnerabilities, abusing misconfigurations and legitimate features such as sudo and scheduled tasks, or by using stolen credentials for a privileged account.

Key takeaways

  • Privilege escalation turns a low-level foothold into admin, root, SYSTEM or domain control.
  • The main routes are vulnerability exploits, misconfiguration abuse and stolen privileged credentials.
  • Least privilege, patching and removing standing admin rights are the most effective defenses.

Most intrusions do not start with an administrator account. They start with an ordinary user — a phished employee, a vulnerable web application, a stolen low-level credential — and then the attacker climbs. Privilege escalation is that climb: turning limited access into the power to install software, read any file, disable defenses and take over a network.

What is privilege escalation?

Privilege escalation is gaining higher-level permissions on a system or network than you were given. MITRE ATT&CK, the framework security teams use to classify attacker behavior, lists it as tactic TA0004.

The elevated levels attackers aim for include SYSTEM or root, local administrator, or a user account with admin-like access. MITRE ATT&CK tactic TA0004 notes that attackers can often enter a network with unprivileged access but need elevated permissions to follow through on their objectives.

Escalation is not a single trick. It is a goal, and many different techniques reach it: exploiting a software flaw, abusing a misconfiguration, or simply logging in with a stolen privileged credential. That is why defenses have to cover all three routes at once.

What is vertical vs horizontal privilege escalation?

Vertical escalation means moving up: from a standard user to an administrator, root or SYSTEM. Horizontal escalation means moving sideways at the same level: gaining another user's access without gaining more power.

Vertical escalation is usually the more dangerous of the two, because an administrator can do almost anything on a system. But horizontal escalation matters too. Reading a colleague's mailbox or files can expose the credentials, documents or access that make vertical escalation possible next.

Attackers often chain the two. A horizontal move into a developer's account might reveal a deployment credential, which then enables a vertical move to a server administrator. Defenders should treat unexpected access to another user's data as a serious incident, not a minor policy breach.

How does privilege escalation work?

Almost every escalation follows the same shape: the attacker lands with low privileges, looks around for a path upward, and uses it. The looking-around stage is often the noisiest part, and the best chance to catch them.

The escalation ladder1Footholdphishing, flaw orstolen low-level login2Discoverywho am I, what runsas admin, what is open3Escalationexploit, misconfig orstolen admin credential4Objectivesteal data, movesideways, deploy malwareStopping the climb at stage 2 or 3 limits everything that follows.
The four stages from foothold to objective. Illustration by Cysoro.

First, the attacker checks who they are and what the system allows: the current user, group memberships, running processes and their owners, scheduled tasks, installed software and its versions. On Linux that means commands like id, sudo -l and listing services; on Windows it means checking local admin groups, services and scheduled tasks.

Then they pick the weakest path. A kernel flaw, a service running as SYSTEM with a writable program file, a sudo rule that allows a text editor as root, or an admin password stored in a file — any one of these is enough.

Once elevated, they usually create a more durable foothold, such as a new admin account or a scheduled task, so they keep access even if the original flaw is fixed.

What are the main privilege escalation techniques?

MITRE ATT&CK groups the techniques under TA0004. The table below covers the ones defenders see most often, with the MITRE technique ID for each.

TechniqueMITRE IDWhat the attacker does
Exploitation for privilege escalationT1068Exploits a flaw in the OS, kernel or a privileged app to run code as SYSTEM or root
Abuse elevation controlT1548Bypasses UAC on Windows or abuses sudo and setuid on Linux
Valid accountsT1078Logs in with stolen or default credentials for a privileged account
Account manipulationT1098Changes credentials or group membership to raise an account's power
Access token manipulationT1134Steals or impersonates another process's token, often admin to SYSTEM
Scheduled task or serviceT1053 / T1543Creates or hijacks a task or service that runs with elevated rights
Hijack execution flowT1574Plants a file the system loads with high privilege, such as a DLL or unquoted service path
Domain policy modificationT1484Changes domain or cloud tenant policy to escalate across the organization

Exploiting vulnerabilities (T1068)

The classic route is an unpatched kernel, driver or privileged application flaw. Because the vulnerable component already runs at high privilege, exploiting it hands the attacker that privilege directly. This is why escalation-class flaws are patched urgently, and why CISA's Known Exploited Vulnerabilities catalog is a useful priority list.

Abusing misconfigurations and legitimate features

This route is often easier than exploiting a bug, and quieter. A service running as SYSTEM whose program file a normal user can overwrite, a scheduled task pointing at a writable script, or a sudo rule that allows an editor as root all let an attacker elevate using the system's own features.

No malware signature fires, because nothing unusual is running — just a normal tool used the wrong way.

Using stolen credentials (T1078)

Sometimes there is no technical trick at all: the attacker finds or steals credentials for an account that already has more access. Browser password stores, files containing cleartext passwords, default credentials on devices, and inactive accounts of people who left the organization are common sources. Protecting privileged credentials is therefore a privilege-escalation control, not just an identity control.

What are real examples of privilege escalation?

Real cases show the same pattern: a small foothold, a missed patch or misconfiguration, and a rapid climb. Three well-documented patterns are worth knowing.

First, unpatched escalation flaws are routinely exploited in the wild. CISA adds flaws to its Known Exploited Vulnerabilities catalog precisely because attackers are actively using them, and many of the entries are local privilege escalation flaws in operating systems and drivers. When a flaw appears in that catalog, patching it moves to the top of the queue.

Second, misconfigured services have driven major breaches. Attackers who land on a workstation look for services and scheduled tasks running as SYSTEM with weak file permissions, then replace the program the service runs. The service restarts, their code runs as SYSTEM, and the workstation is theirs.

Third, stolen privileged credentials have enabled domain-wide compromise. An attacker who recovers a domain admin credential — from a helpdesk ticket, a script, or a compromised admin workstation — does not need to exploit anything. They simply log in. That is why credential theft and privilege escalation are usually investigated together.

How do you detect privilege escalation?

Detection starts with knowing what normal elevation looks like, so the abnormal stands out. Most organizations already generate the logs; the gap is usually that nobody watches them.

Five signals worth alerting on1. A standard account joins the admin or Domain Admins group2. A new scheduled task or service appears running as SYSTEM3. Sudo or UAC elevation at odd hours, or by an unusual account4. A process runs with higher privileges than its parent5. A new admin account is created, especially outside change windows
Alert on these five privilege changes. Illustration by Cysoro.
  • Centralize authentication and sudo logs. Send Windows security events, Linux auth logs and sudo logs to one place, and alert on group changes, new admin accounts and elevation outside business hours.
  • Watch for persistence that runs elevated. New services, scheduled tasks and startup items running as SYSTEM or root are a classic post-escalation move.
  • Baseline normal elevation. Know which accounts legitimately elevate, and when. An admin elevating at 3 a.m. from a workstation they never use is a signal, not a coincidence.
  • Use endpoint detection. Modern endpoint tools flag token manipulation, process injection and known escalation techniques directly, rather than waiting for a log review.

When an alert fires, treat it as an incident until proven otherwise. Check whether the change was approved, who made it, and what else that account did in the same session. Our spear phishing guide explains how attackers get the first foothold that escalation builds on.

How do you prevent privilege escalation?

Prevention shrinks both the opportunities to escalate and the damage if someone does. The controls below are the ones MITRE and NIST recommend most often, and they work best together.

  • Enforce least privilege. Give accounts only the rights they need, and remove standing local administrator rights from regular users. NIST SP 800-53 control AC-6 states the same principle. An attacker who lands on a user account that is not a local admin has a much harder climb.
  • Patch aggressively, especially escalation flaws. Prioritize flaws in CISA's Known Exploited Vulnerabilities catalog, and patch kernel, driver and privileged-application flaws first. The CISA KEV catalog is the practical priority list for this.
  • Require a password and MFA for elevation. On Linux, require a password every time sudo runs, keep tty_tickets enabled, and edit the sudoers file strictly. On Windows, keep UAC enabled and do not let standard users bypass it.
  • Control who can change roles and policies. The permission to attach a policy or add someone to an admin group is itself a privileged permission. Audit it, limit it to a few accounts, and review membership regularly.
  • Protect privileged credentials. Store admin passwords in a vault, use a password strength checker when setting them, rotate them, and never store them in scripts, tickets or shared documents.
  • Harden services and scheduled tasks. Services should run with the lowest privilege they need, their program files should not be writable by standard users, and scheduled tasks should point at protected paths.

For a structured starting point, our small business cybersecurity checklist covers least privilege, patching and admin accounts alongside backups and MFA.

The security baseline page explains how Cysoro tracks these controls across a team.

How does privilege escalation differ on Linux and Windows?

The goal is the same on both systems, but the mechanisms differ. On Linux, the usual paths are sudo misconfigurations, setuid binaries, writable cron jobs and kernel flaws, with root as the target. On Windows, the usual paths are UAC bypass, service and scheduled-task abuse, token manipulation and unquoted service paths, with SYSTEM or a domain admin account as the target.

Cloud environments add a third surface: identity and access management. In AWS, Azure and Google Cloud, escalation often means gaining a role or policy permission that lets an account attach a more powerful policy to itself. The fix is the same principle — least privilege — applied to roles and policies, with regular reviews of who can change them.

Containers add a fourth. Breaking out of a container to the host (MITRE T1611, Escape to Host) is privilege escalation in a containerized environment, and it usually follows from a privileged container or a misconfigured runtime. Do not run containers as root or with the privileged flag unless you have a specific reason.

The bottom line

Privilege escalation is how a small intrusion becomes a serious one. An attacker who starts as an ordinary user climbs to admin, root or SYSTEM by exploiting a flaw, abusing a misconfiguration or using a stolen privileged credential — and MITRE ATT&CK tactic TA0004 catalogs exactly how.

Stop the climb with least privilege, fast patching of escalation flaws, password-protected elevation and tight control over who can grant admin rights. Then watch for the signals: unexpected group changes, new SYSTEM tasks and elevation at odd hours are the moments to investigate, not ignore.

Frequently asked questions

What is privilege escalation in simple terms?

Privilege escalation is when someone with limited access to a computer or network gains more access than they should have. An attacker might start as an ordinary user and end up as an administrator, root or domain admin, able to install software, read any file or disable security tools.

What is the difference between vertical and horizontal privilege escalation?

Vertical escalation means gaining higher privileges, such as moving from user to admin. Horizontal escalation means gaining the same level of access as another user, such as reading a colleague's account or data. Vertical escalation is usually more dangerous, but horizontal escalation can expose sensitive data and lead to vertical escalation later.

What is an example of privilege escalation?

A classic example is an attacker who lands on a Windows workstation as a standard user, finds a service running as SYSTEM with a weak configuration, and replaces its program file so the service runs their code as SYSTEM. On Linux, a common example is abusing a misconfigured sudo rule that lets a user run a command as root.

Is privilege escalation always malicious?

No. The same techniques are used legitimately by system administrators and by security testers with permission. The difference is authorization: an admin using sudo to install software is normal, while an attacker abusing sudo to gain root is privilege escalation.

How do you detect privilege escalation?

Look for unexpected privilege changes: a standard account suddenly in the admin group, a new scheduled task running as SYSTEM, sudo use at odd hours, or a process running with higher privileges than expected. Endpoint detection tools and centralized logging of authentication, group changes and sudo events make these visible.

How do you prevent privilege escalation?

Give accounts only the permissions they need, remove standing local admin rights from regular users, patch vulnerabilities quickly, require a password and MFA for elevation, and audit who can change roles and policies. These controls shrink both the chances of escalation and the damage if it happens.

What is the difference between privilege escalation and lateral movement?

Privilege escalation is gaining more power on a system or in a network. Lateral movement is moving from one system to another at a similar level of access. Attackers usually alternate between the two: escalate on one machine, move to the next, escalate again, until they reach their target.

Which MITRE ATT&CK techniques cover privilege escalation?

MITRE ATT&CK tactic TA0004 includes Exploitation for Privilege Escalation (T1068), Abuse Elevation Control Mechanism (T1548), Valid Accounts (T1078), Account Manipulation (T1098), Access Token Manipulation (T1134), Scheduled Task or Job (T1053) and Hijack Execution Flow (T1574), among others.

Sources

  1. MITRE ATT&CK — Privilege Escalation (TA0004)
  2. CISA — Known Exploited Vulnerabilities Catalog
  3. NIST SP 800-53 Rev. 5 — Least Privilege (AC-6)
  4. CyberDefenders — What Is Privilege Escalation?
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, CISA's Known Exploited Vulnerabilities catalog and NIST SP 800-53 least-privilege guidance.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

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

Start free