Windows API reference
CreateProcessAsUserW
Creates a process in another user security context, requiring SeAssignPrimaryToken or SeIncreaseQuota.
- Library
- Advapi32.dll
- Category
- Privilege Escalation
- Suspicion
- high
Detection summary
CreateProcessAsUserW maps to Sysmon Event 1 and Microsoft-Windows-Kernel-Process, Microsoft-Windows-Security-Auditing; these events record the OS effect, not the API call.
- Sysmon: Sysmon Event 1
- ETW: Microsoft-Windows-Kernel-Process, Microsoft-Windows-Security-Auditing
- Notes: Sysmon Event 1 records the new process image, command line and parent; the event does not name the API that requested creation. Microsoft-Windows-Kernel-Process provides process, thread and image lifecycle events when enabled. 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
- CreateProcessWithTokenW — Advapi32.dll
- DuplicateTokenEx — Advapi32.dll