Windows API reference
OpenProcessToken
Opens the access token associated with a process.
- Library
- Advapi32.dll
- Category
- Credential Access, Privilege Escalation
- Suspicion
- high
Detection summary
OpenProcessToken has no reviewed Sysmon/ETW event; token acquisition is inferred from EDR handle telemetry and subsequent token operations.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Correlate with DuplicateTokenEx, GetTokenInformation, AdjustTokenPrivileges, SetThreadToken and CreateProcessWithTokenW. Sysmon 10 can add process-access context when a handle is opened to another process.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- MITRE ATT&CK T1134.001: Access Token Manipulation: Token Impersonation/Theft
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
Password managers, backup tools, SSO clients and forensic suites.
Related APIs
- GetTokenInformation — Advapi32.dll
- DuplicateTokenEx — Advapi32.dll
- AdjustTokenPrivileges — Advapi32.dll