Privilege escalation detection means spotting when an account or process gains higher permissions than it should have, for example a standard user becoming SYSTEM or root, or a service account gaining domain admin rights. Detect it by watching unusual process ancestry, new privileged logons, changes to admin groups, suspicious scheduled tasks and services, and unexpected driver loads, then correlating those signals in time.
Key takeaways
- Privilege escalation is MITRE ATT&CK tactic TA0004: gaining SYSTEM, root, local admin or domain-level access from a lower-privilege foothold.
- The strongest signals are unusual parent-child processes, privileged logons such as Windows Event 4672, and unexpected changes to admin groups and services.
- Detection works best as correlation, not single alerts: one odd event is noise, several in a short window is an attack chain.
An attacker who lands on a workstation as a standard user cannot do much: no installing drivers, no reading other users' secrets, no disabling security tools. Privilege escalation changes that in seconds. Detecting the jump from low privilege to high privilege is one of the highest-leverage things a security team can do.
What is privilege escalation detection?
Privilege escalation detection is the practice of spotting when an account, process or service gains permissions it should not have. The jump might be a standard Windows user becoming SYSTEM, a Linux user becoming root, or a cloud identity assuming an administrator role.
MITRE ATT&CK defines privilege escalation as tactic TA0004: techniques adversaries use to gain higher-level permissions on a system or network. Attackers often enter with unprivileged access but need elevated permissions to follow through on their objectives, such as dumping credentials, disabling defenses or moving laterally. Our guide to spear phishing explains how many of those footholds begin.
Detection matters because escalation sits between initial access and lateral movement. Catch it here and you stop the attack before it spreads. Miss it and the next alerts are usually ransomware or data theft, when recovery is far harder and more expensive.
MITRE lists 13 techniques under this tactic, from abusing elevation controls to account manipulation, in its TA0004 privilege escalation page. The joint CISA, NSA and FBI phishing guidance makes the same point: stopping the attack cycle early matters most.
How does privilege escalation work?
Attackers escalate privilege by abusing a weakness, a misconfiguration or a legitimate feature. The four most common families are exploiting a vulnerability, abusing a valid account, misusing scheduled tasks or services, and manipulating access tokens.
Exploitation targets an unpatched kernel, driver or service. The attacker runs code that the operating system then executes with higher privilege. PrintNightmare (CVE-2021-34527), a Windows Print Spooler flaw that allowed SYSTEM execution, is a well-known example of this family.
Abuse of valid accounts is quieter. If an attacker steals an admin password, or finds a service account with excessive rights, no exploit is needed at all. They simply log in with permissions the account already has. This is why least privilege matters: an over-permissioned account is a ready-made escalation path.
Scheduled tasks, services and autostart entries are another route. A task that runs as SYSTEM, or a service whose binary path can be changed by a standard user, hands the attacker elevated execution the next time it runs. Token manipulation, including stealing or spoofing the access token of a privileged process, achieves the same result on Windows.
What are the key signals of privilege escalation?
No single log line proves privilege escalation. The reliable signals are changes in privilege, ancestry and persistence that do not match normal behavior. Watch for these first.
- A low-privilege process spawns a high-privilege one. A shell such as cmd.exe or powershell.exe running as SYSTEM with a parent of a browser, document reader or user application is a classic sign.
- New privileged logons. Windows Event ID 4672 records special privileges assigned to a new logon. It is normal for real administrators and services, and suspicious for ordinary users or at odd hours.
- Changes to admin groups. A user added to Administrators, Domain Admins or a sudo group is a high-value event, especially when done by an account that rarely makes such changes.
- New services, scheduled tasks or autostart entries. Service creation (Event 4697), task creation and registry run keys created by an unusual process deserve review.
- Driver and kernel module loads. A new driver, kernel module or setuid binary appearing outside a patching window can signal exploitation for privilege escalation.
- Access to protected memory or processes. A user process opening LSASS or another SYSTEM process, recorded by Sysmon Event 10, is a strong indicator of credential theft following escalation.
How do you detect privilege escalation on Windows?
Windows gives defenders rich logs, and most escalation techniques leave traces in them. Start by enabling process creation auditing and Sysmon, then watch the events below.
Enable audit policy for process creation (Event 4688) with command-line logging, and for privilege use (Event 4672). Sysmon adds process ancestry, hashes, driver loads (Event 6) and process access (Event 10). Without Sysmon, many escalation techniques are much harder to see.
Build rules around these patterns: a process running as SYSTEM whose parent is a user application; cmd.exe, powershell.exe or rundll32.exe spawned by an Office application or browser; a new service (4697) created by anything other than your patching or management tool; and any addition to the Administrators or Domain Admins group (Events 4728, 4732, 4756).
UAC bypass deserves its own rule. Watch for known bypass techniques such as fodhelper, computerdefaults or sdclt spawning a privileged process, and for consent.exe activity outside interactive logons. Legitimate admin tools also trigger UAC, so baseline them first and allowlist their paths.
Finally, check for token manipulation. Sysmon Event 10 showing a low-privilege process accessing LSASS, or a process whose integrity level jumps without a matching UAC prompt, is a strong escalation signal. The small business cybersecurity checklist covers the logging baseline these rules depend on.
How do you detect privilege escalation on Linux?
Linux escalation usually runs through sudo, setuid binaries, cron jobs, kernel modules or containers. The audit daemon (auditd) and system logs cover most of it.
Watch sudo usage first: every sudo invocation is logged, so alert on sudo by users who should not have it, sudo failures followed by success, and edits to the sudoers file. Review setuid and setgid binaries regularly and alert when a new one appears or an existing one changes.
Monitor cron and systemd timers, especially jobs added by non-root users or in unusual locations, and watch kernel module loads and changes to files such as /etc/passwd, /etc/shadow and SSH authorized_keys. A new root-equivalent account or an SSH key added to root's authorized_keys file is a critical alert.
For containers, watch for capset or setns syscalls, privileged container creation, and processes inside a container interacting with the host. MITRE's detection strategy DET0514 notes container breakout behavior, including exploitation followed by host interaction or escalated capability assignment, as a key pattern.
How do you detect privilege escalation in the cloud?
Cloud escalation rarely involves a kernel exploit. It usually involves an identity assuming a more powerful role, or a policy change that grants one. Cloud audit logs are the data source.
In AWS, watch CloudTrail for AssumeRole to privileged roles, AttachUserPolicy, PutRolePolicy and CreateUser, especially by identities that have never done them before. In Microsoft 365 and Azure, watch for new global administrators, role assignments and changes to conditional access policies. In Google Cloud, watch IAM policy changes and service-account key creation.
The pattern is the same as on endpoints: a low-privilege identity suddenly exercising high-privilege actions, or a policy change that quietly widens access. Alert on first-time use of powerful actions, on changes made outside business hours, and on any grant of standing admin access where just-in-time access was the norm.
Detection methods compared
Different detection methods catch different techniques, and each has blind spots. Use them together rather than relying on one.
| Method | Best at catching | Blind spot | Effort |
|---|---|---|---|
| Windows Event Logs + Sysmon | Process ancestry, services, group changes | Kernel-level attacks that hide logs | Low to medium |
| Linux auditd | sudo, setuid, cron, module loads | Needs tuning; noisy without baselines | Medium |
| EDR | Behavioral chains across techniques | Cost; coverage gaps on unmanaged devices | Medium |
| SIEM correlation | Multi-step chains over time | Only as good as the logs fed into it | Medium to high |
| Cloud audit logs | Role and policy changes | Missed if logging is disabled or scoped narrowly | Low |
| Vulnerability scanning | Known exploitable flaws before use | Cannot see misconfigurations or valid-account abuse | Low |
Signature-based detection catches known exploits. Behavioral detection catches the privilege change itself, whatever the exploit. For privilege escalation, behavioral rules age far better, because the exploit changes but the SYSTEM shell with a browser parent does not.
What detection rules should you start with?
Start with a small set of high-value rules, tune them for two weeks, then expand. Ten noisy rules nobody reads are worse than five quiet ones that get investigated.
- SYSTEM shell from a user application. Alert when cmd.exe, powershell.exe or a shell runs as SYSTEM or root with a parent that is a browser, email client or document application.
- New admin group member. Alert on any addition to Administrators, Domain Admins, Enterprise Admins or sudo, with the actor and the target named.
- New service or scheduled task by an unusual parent. Alert when a service or task is created by anything other than your known management and patching tools.
- LSASS or credential-store access. Alert when a non-security process opens LSASS or reads the SAM database.
- Sudoers, authorized_keys or passwd change. Alert on writes to privilege-defining files outside change windows.
- Cloud role or policy change. Alert on first-time privileged role assumptions and IAM policy changes.
How do you handle false positives?
Privilege escalation alerts are noisy by default, because legitimate software does privileged things all day. Patching tools install services, backup agents run as SYSTEM, and helpdesk tools spawn shells. The fix is baselining, not turning rules off.
For each rule, record which parent processes, paths, accounts and times are normal in your environment. Allowlist those precisely — by full path and hash where possible, not by process name alone, since attackers reuse trusted names. Then alert only on deviations.
Correlate before paging anyone. A single 4672 event from a known admin at midday is routine. The same event from a standard user account at 3 a.m., followed by a new service and an outbound connection, is an incident. MITRE's DET0514 and DET0665 strategies both emphasize this temporal linking: driver load, then process spawn, then privilege use, inside a short window.
What should you do when you detect privilege escalation?
Treat a confirmed escalation as an active intrusion, not a single alert to close. Isolate the host from the network, preserve logs and memory if you can, and disable the affected account rather than just changing its password.
Then hunt for what the attacker did with the new privilege: check for new accounts, services, scheduled tasks, forwarding rules and persistence mechanisms, and review credential stores that the elevated account could reach. Assume credentials on that host are compromised until proven otherwise, and reset them from a clean system.
Finally, fix the root cause. Patch the exploited vulnerability, remove the misconfigured service or over-permissioned account, and add the detection that caught it — or should have — to your permanent rule set. Every escalation you detect is a chance to close the path for the next attacker.
The bottom line
Privilege escalation detection is not about catching one exploit. It is about watching for the moment a low-privilege foothold becomes high-privilege access, and acting while the attack is still contained to one host.
Start with process ancestry, privileged logons and admin group changes, correlate them in time, and baseline your legitimate admin tools so the real signals stand out. You can check your public-facing exposure with the free security headers checker as part of the same hardening work.
Frequently asked questions
What is privilege escalation detection?
It is the practice of finding attempts to gain higher permissions than an account or process should have. Typical signs include a standard user process spawning a SYSTEM shell, a new admin account appearing, or a service being created by an unusual parent process.
What is the difference between vertical and horizontal privilege escalation?
Vertical escalation gains a higher privilege level, such as standard user to administrator or root. Horizontal escalation gains the same level of access as another user, such as reading another user's files or mailbox. Both matter, but vertical escalation is usually more dangerous.
Which Windows event IDs matter most for privilege escalation?
Event 4672 records special privileges assigned to a new logon, 4688 records process creation, 4697 records a new service installation, and 4728, 4732 and 4756 record additions to security groups. Sysmon Event 1, 6 and 10 add process, driver and process-access detail.
Can privilege escalation be detected without an EDR tool?
Yes, up to a point. Windows Event Logs, Sysmon, Linux auditd and cloud audit logs cover the core signals. An EDR or SIEM makes correlation and alerting far easier, but disciplined log collection and a few well-tuned rules catch many common techniques.
What is the most common privilege escalation technique?
There is no single most common technique across all environments. MITRE lists abuse of elevation controls such as UAC bypass and setuid, valid account abuse, scheduled task abuse, service creation and exploitation of vulnerabilities as the main families, and attackers pick whichever fits the target system.
How do I reduce false positives in privilege escalation alerts?
Baseline normal admin activity first: patching tools, backup software, management agents and helpdesk tools all do privileged things legitimately. Allowlist known parent processes, paths and accounts, then alert only on deviations from that baseline.
Does privilege escalation detection work in the cloud?
Yes. Cloud audit logs record role assumptions, policy changes and new admin users. Watch for a low-privilege identity assuming a powerful role, changes to IAM policies, and new global administrators, especially outside business hours or from an unusual location.
Sources
- MITRE ATT&CK — Privilege Escalation, Tactic TA0004
- MITRE ATT&CK — Detection Strategy for Exploitation for Privilege Escalation, DET0514
- MITRE ATT&CK — Detection of Exploitation for Privilege Escalation, DET0665
- CISA, NSA, FBI, MS-ISAC — Phishing Guidance: Stopping the Attack Cycle at Phase One
- Verizon — Data Breach Investigations Report
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 detection strategies DET0514 and DET0665.
How we write and fact-check →