Access Token Manipulation: Token Impersonation/Theft T1134.001

Tactics: Stealth, Privilege Escalation

Adversaries may duplicate then impersonate another user's existing token to escalate privileges and bypass access controls. For example, an adversary can duplicate an existing token using `DuplicateToken` or `DuplicateTokenEx`. The token can then be used with `ImpersonateLoggedOnUser` to allow the calling thread to impersonate a logged on user's security context, or with `SetThreadToken` to assign the impersonated token to a thread.

Events covered

11 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 23 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (44 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
CommandLine5contains 5 /file:, /machine, /mkfile:, adduser , binary:
OriginalFileName5eq 4, in 1browsercore.exe, cmd.exe, powershell.exe, runas.exe, sharpdpapi.exe
EventType4eq 4token_protection_event, ProcessCreated, start
EventID3eq 310
Image3ends_with 3\cmd.exe, \sharpdpapi.exe, \sharpimpersonation.exe
LogonType3eq 3NewCredentials, Network
TargetImage3in 3*\\system32\\winlogon.exe*, *\\syswow64\\winlogon.exe*, *\\colorcpl.exe, *\\computerdefaults.exe, *\\esentutl.exe
process_name3eq 3cmd.exe, bitsadmin.exe, certutil.exe, powershell.exe, runas.exe
AuthenticationPackageName2eq 2NTLM, Negotiate
GrantedAccess2eq 20x1040
LogonProcessName2eq 1, starts_with 1Advapi
Provider_Name2eq 2Microsoft-Windows-Sysmon, Service Control Manager
endgame.event_subtype_full2eq 2token_protection_event
endgame.metadata.type2eq 2detection, prevention
event.category2eq 2authentication, process

Top indicator values (155 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
EventIDeq
10
316
EventTypeeq
token_protection_event
22
GrantedAccesseq
0x1040
22
LogonTypeeq
NewCredentials
28
TargetImagein
*\\system32\\winlogon.exe*
22
TargetImagein
*\\syswow64\\winlogon.exe*
22
endgame.event_subtype_fulleq
token_protection_event
22
event.kindeq
alert
236
event.moduleeq
endgame
215
process_nameeq
cmd.exe
277
process_nameeq
powershell.exe
2104
AuthenticationPackageNameeq
NTLM
19
AuthenticationPackageNameeq
Negotiate
14
AwsSecurityFindingGeneratorIdeq
security-control/IAM.4
1
CommandLinecontains
/file:
1
CommandLinecontains
/machine
1
CommandLinecontains
/mkfile:
1
CommandLinecontains
/password:
1
CommandLinecontains
/pvk:
1
CommandLinecontains
/server:
1
CommandLinecontains
/target:
1
CommandLinecontains
/unprotect
1
CommandLinecontains
adduser
1
CommandLinecontains
backupkey
1
CommandLinecontains
binary:
1
CommandLinecontains
blob
1
CommandLinecontains
certificates
1
CommandLinecontains
credentials
1
CommandLinecontains
exec
13
CommandLinecontains
keepass
1

Exclusions (39 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
Imagein
%systemroot%\\*
2
Imagein
*c:\\program files (x86)\\*
1
Imagein
*c:\\program files\\*
1
Imagein
*c:\\windows\\system32\\*
1
Imagein
*c:\\windows\\syswow64\\*
1
Imagein
c:\\program file*
1
Imagein
c:\\windows\\*
1
CommandLinecontains
?:\program files
1
CommandLinecontains
\windows\system32\edgehtml.dll
1
CommandLinecontains
\windows\system32\winethc.dll
1
CommandLinecontains
davclnt.dll,davsetcookie
1
CommandLinecontains
mpcmdrun
1
CommandLinecontains
shell32.dll,shcreatelocalserverrundll
1
Imagewildcard
c\:\\program*files*\(x86\)\\*.exe
1
Imagewildcard
c\:\\program*files\\*.exe
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 10 rules

Elastic 7 rules

Splunk 4 rules

Kusto 2 rules