Windows API category
Privilege Escalation
Token manipulation, privilege enabling and process creation with alternate credentials. Legitimate installers and management agents do some of this, so watch for unusual parent/child pairs and privilege names.
Obtaining higher integrity or additional token privileges. This category contains 30 APIs.
Open Privilege Escalation in the interactive atlasPrivilege Escalation APIs
Last reviewed or generated: .
-
AdjustTokenPrivileges
Enables or disables privileges in an access token.
-
AllocateAndInitializeSid
Builds a security identifier from components, used with well-known SIDs.
-
CheckTokenMembership
Tests whether a token contains a specified security identifier, optionally using an impersonation token.
-
CoGetObject
Binds to a COM object by display name; used in UAC bypasses to activate auto-elevated objects.
-
CreateProcessAsUserW
Creates a process in another user security context, requiring SeAssignPrimaryToken or SeIncreaseQuota.
-
CreateProcessWithLogonW
Starts a process as a specified user using explicit credentials.
-
CreateProcessWithTokenW
Runs a new process with a duplicated primary token, a common token-theft step.
-
CreateServiceA
ANSI variant of CreateService.
-
CreateServiceW
Creates a service in the SCM database, specifying its binary path and start type.
-
CreateWellKnownSid
Creates a well-known SID such as the local Administrators group.
-
DeviceIoControl
Sends a control code directly to a device driver.
-
DuplicateHandle
Duplicates an object handle into another process, sometimes to pass payload or process handles.
-
DuplicateToken
Creates a new token that duplicates an existing one with a requested impersonation level.
-
DuplicateTokenEx
Duplicates an existing access token and creates a new primary or impersonation token with the requested access rights.
-
ImpersonateLoggedOnUser
Impersonates the user represented by a token on the calling thread.
-
ImpersonateNamedPipeClient
Impersonates the security context of the client connected to a named pipe; the impersonation level is negotiated when the pipe is created.
-
LookupPrivilegeValueW
Resolves a privilege name such as SeDebugPrivilege to a locally unique identifier.
-
NetLocalGroupAddMembers
Adds accounts to a local group, a common backdoor step.
-
NetLocalGroupDelMembers
Removes accounts from a local group.
-
NtDuplicateObject
Native handle duplication across processes.
-
NtLoadDriver
Loads a kernel-mode driver into the running system; requires SeLoadDriverPrivilege and a registry service key naming the driver image.
-
NtSetSystemInformation
Native call to change system-wide settings, requiring high privilege.
-
NtUnloadDriver
Unloads a kernel driver.
-
OpenProcessToken
Opens the access token associated with a process.
-
RevertToSelf
Ends impersonation and restores the process token.
-
SetThreadToken
Assigns an impersonation token to a thread.
-
SetTokenInformation
Changes token properties such as integrity level or session ID.
-
ShellExecuteExW
Executes or opens a file with an optional runas verb to request elevation.
-
WTSQueryUserToken
Obtains the primary token of a logged-on RDP user, requiring SeTcbPrivilege.
-
ZwLoadDriver
Zw alias of NtLoadDriver.