kevmap

TechniquesT1134.001 › AN1324

AN1324 Analytic 1324

Windows · attack.mitre.org · ATT&CK Enterprise v19.2

<p>Detection of token duplication and impersonation attempts by correlating suspicious command-line executions (e.g., runas) with API calls to DuplicateToken, DuplicateTokenEx, ImpersonateLoggedOnUser, or SetThreadToken. The chain includes the initial command execution or in-memory API invocation → token handle duplication or thread token assignment → a new or existing process assuming the impersonated user's context.</p>
Detects
T1134.001 Token Impersonation/Theft
Part of
DET0482 Behavior-chain detection for T1134.001 Access Token Manipulation: Token Impersonation/Theft on Windows

Log sources and channels

Exactly as MITRE states them in x_mitre_log_source_references. Where a channel is vague, it is vague in the source; kevmap does not tidy it.

Log sourceChannelData component
WinEventLog:SecurityEventCode=4688DC0032 Process Creation
WinEventLog:SysmonEventCode=10DC0035 Process Access
ETW:Tokenapi_call: DuplicateTokenEx, ImpersonateLoggedOnUser, SetThreadTokenDC0021 OS API Execution

Mutable elements

Parameters MITRE marks as environment-specific. These are the knobs you are expected to tune; they are why an analytic is not a rule.

FieldDescription
AllowedSystemProcessesWhitelist of known processes that legitimately duplicate tokens (e.g., services.exe).
TimeWindowTime interval between API call and subsequent impersonated process (e.g., 5m).
UserContextFilterFilter for service accounts or known administrative accounts that perform legitimate impersonation.
ParentProcessAnomalyThresholdThreshold for parent-child process lineage anomalies indicating token theft.

KEV CVEs whose mapped technique this analytic detects

CVEVendor / productState
CVE-2023-4966Citrix NetScaler ADC and NetScaler GatewayMapped