Windows API reference
ImpersonateLoggedOnUser
Impersonates the user represented by a token on the calling thread.
- Library
- Advapi32.dll
- Category
- Privilege Escalation, Credential Access
- Suspicion
- high
Detection summary
ImpersonateLoggedOnUser maps to Microsoft-Windows-Security-Auditing; these events record the OS effect, not the API call.
- Sysmon: No Sysmon event mapped
- ETW: Microsoft-Windows-Security-Auditing
- Notes: Security-Auditing events depend on audit policy and do not contain the API name; correlate by process, token and logon identifiers.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Installer services, UAC-elevated helpers and management agents.
Related APIs
- RevertToSelf — Advapi32.dll
- SetThreadToken — Advapi32.dll