Skip to main content
T1134Privilege Escalationhard difficulty

Access Token Manipulation

Windows uses access tokens to decide which security context a process runs under, and this technique manipulates them so a process impersonates another user or SYSTEM and bypasses access checks. Adversaries duplicate, steal, or spawn processes with stolen tokens. For detection, analysts focus on token-related API calls such as DuplicateToken, ImpersonateLoggedOnUser, and CreateProcessWithTokenW from processes with no business reason to perform them, and on processes whose effective user does not match their logon.

Practice detecting Access Token Manipulation on realistic XDR, SIEM alerts in SOCSimulator Operations.

XDRSIEM

What is Access Token Manipulation?

Access Token Manipulation is documented as technique T1134 in MITRE ATT&CK® v19.1 under the Privilege Escalation tactic. Detection requires visibility into XDR, SIEM telemetry.

Detection Strategies

The following detection strategies help SOC analysts identify Access Token Manipulation activity. These methods apply across XDR, SIEM environments and can be implemented as detection rules, correlation queries, or behavioral analytics in your security platform.

  1. 1

    Monitor for Windows API calls associated with token manipulation including OpenProcessToken, DuplicateToken, ImpersonateLoggedOnUser, and CreateProcessWithTokenW, particularly from processes with no legitimate reason to perform token operations.

  2. 2

    Alert on processes running under a different user context than expected based on their process ancestry, as token manipulation often results in processes appearing to belong to privileged accounts while descending from unprivileged processes.

  3. 3

    Detect SeImpersonatePrivilege and SeAssignPrimaryTokenPrivilege being exercised by service accounts or standard users, as these privileges are not normally used in day-to-day operations and their use warrants investigation.

  4. 4

    Monitor for parent process ID spoofing by correlating reported parent PIDs with actual process ancestry, as attackers use this technique to make malicious processes appear to be children of trusted processes.

  5. 5

    Track unusual service account activity following periods of interactive session establishment, as attackers may use token impersonation to pivot from interactive sessions to service account contexts for lateral movement.

Example Alerts

These realistic alert examples show what Access Token Manipulation looks like in your security tools. Use them to tune detection rules and train analysts to recognize true positives versus false positives in live environments.

CriticalXDR

Token Impersonation via SeImpersonatePrivilege

Metasploit Meterpreter pattern detected: process executing in SYSTEM context via token impersonation using a named pipe exploit. The attack exploited a vulnerable service with SeImpersonatePrivilege to intercept a SYSTEM token through a named pipe connection. This technique, known as Potato attack variants, is frequently used to escalate from service account to SYSTEM privileges.

HighXDR

Process Running Under Unexpected User Context

Calculator.exe process detected running under NT AUTHORITY\SYSTEM context while process tree shows it was spawned by a standard user interactive session. This anomaly indicates token theft or impersonation has occurred. The child processes of this instance are making network connections to external C2 infrastructure, confirming malicious use.

HighXDR

CreateProcessWithToken API Called by Non-Privileged Process

EDR telemetry captured CreateProcessWithTokenW API call from a process running as a standard domain user account. The function was used to spawn a new process with a token belonging to the domain administrator account. This token was obtained by impersonating an active administrator session on the workstation.

Frequently Asked Questions

How do SOC analysts detect Access Token Manipulation?
Detection centers on XDR, SIEM telemetry for the privilege escalation phase of the attack. Monitor for Windows API calls associated with token manipulation including OpenProcessToken, DuplicateToken, ImpersonateLoggedOnUser, and CreateProcessWithTokenW, particularly from processes with no legitimate reason to perform token operations. Alert on processes running under a different user context than expected based on their process ancestry, as token manipulation often results in processes appearing to belong to privileged accounts while descending from unprivileged processes.
What does a Access Token Manipulation alert look like?
A representative XDR detection is "Token Impersonation via SeImpersonatePrivilege" (critical severity): Metasploit Meterpreter pattern detected: process executing in SYSTEM context via token impersonation using a named pipe exploit. The attack exploited a vulnerable service with SeImpersonatePrivilege to intercept a SYSTEM token through a named pipe connection. This technique, known as Potato attack variants, is frequently used to escalate from service account to SYSTEM privileges.
Which tools detect Access Token Manipulation, and how can I practice?
Access Token Manipulation (T1134) is best surfaced with XDR, SIEM telemetry, which exposes the privilege escalation signals described above. Practice detecting it on those exact consoles in SOCSimulator Operations, free.

Build the Skills Behind Access Token Manipulation

We don't have a dedicated room for Access Token Manipulation yet. Practice the surrounding detection skills across SOCSimulator Operations, free.

Explore Operations
Glossary

What is Privilege Escalation? SOC Glossary

Privilege escalation is the set of techniques an attacker uses to gain higher access rights than they initially obtained…

Read more
Glossary

What is Least Privilege? SOC Glossary

The principle of least privilege states that users, processes, and systems should hold only the minimum access rights re…

Read more
Glossary

What is EDR? SOC Glossary

Endpoint Detection and Response (EDR) is a security technology that continuously monitors endpoint activity, recording p…

Read more
Glossary

What is Zero Trust? SOC Glossary

Zero Trust is a security architecture philosophy based on "never trust, always verify," requiring continuous authenticat…

Read more
Career Path

Security Engineer Career Guide: Salary & Skills

Security Engineers build and maintain the infrastructure that SOC analysts depend on. You deploy SIEMs, configure firewa…

Read more
Career Path

Incident Responder Career Guide: Salary & Skills

Incident Responders lead the technical response when confirmed breaches happen. You coordinate containment, run forensic…

Read more
Tool

XDR Training Console: SOCSimulator

The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Comparison

SOCSimulator Vs. Letsdefend: Platform Comparison

SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…

Read more
Glossary

SOC Glossary: Security Operations Terminology

Complete glossary of Security Operations Center terminology for aspiring SOC analysts.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more
Feature

Operations: Guided Training Operations

Structured CTF-style investigation operations covering real-world attack scenarios.

Read more