TOKEN THEFT
SEIMPERSONATE
LOGON TYPE 9
EVENT 4703
DetectionBlue TeamSOCOctober 12, 2026•9 min read

Detecting Token Impersonation: SeImpersonate, Logon Type 9 and Token Theft

A token is just a handle to an identity. Steal one from a SYSTEM process and you are SYSTEM; the theft leaves traces in privilege events, process access and process ownership.

Scroll

Access token manipulation lets a process act as another user without knowing that user’s password. Attackers duplicate a token from a more privileged process (T1134.001), start a process with it (T1134.002), or build a new one with stolen credentials (T1134.003). Each path needs particular privileges and API calls, and those leave telemetry.

Signals at a Glance

SignalWhereATT&CK
Logon type 9 (NewCredentials) with logon process AdvapiSecurity 4624T1134.003
SeDebug, SeImpersonate, SeAssignPrimaryToken or SeTcb enabled in a non-system processSecurity 4703T1134
User-mode process opening winlogon or services with access mask 0x1400Sysmon 10T1134.001
SYSTEM-owned child whose parent runs as a lower-privilege userSysmon 1, EDRT1134.002
Special privileges assigned (4672) to an account that never holds themSecurity 4672T1134

Logon and Privilege Events

Make-token style tradecraft, including runas /netonly and Cobalt Strike’s make_token, produces a type 9 logon with the Advapi logon process. Administrators use it legitimately, so look for rare source accounts and unusual host processes rather than the event alone:

index=wineventlog source="WinEventLog:Security" EventCode=4624 Logon_Type=9
| search Logon_Process=Advapi
| stats count min(_time) as first max(_time) as last
        values(Process_Name) as procs by host, Account_Name, Source_Network_Address
| sort - count
```tune/validate: field names depend on your Windows TA; add a rarity filter on Account_Name```

Event 4703 records privileges being enabled in a token. Token theft needs SeDebug or SeImpersonate to be switched on first, so a process outside the usual set of enablers is a lead:

// Microsoft Sentinel (KQL) - sensitive token privileges enabled
SecurityEvent
| where EventID == 4703
| where EnabledPrivilegeList has_any ("SeDebugPrivilege","SeImpersonatePrivilege","SeAssignPrimaryTokenPrivilege","SeTcbPrivilege")
| where ProcessName !has_any ("lsass.exe","svchost.exe","services.exe","MsMpEng.exe")
| summarize hits=count() by Computer, SubjectUserName, ProcessName, bin(TimeGenerated, 1h)
// tune/validate: EDR and backup agents enable these routinely; build an allowlist by ProcessName.

Theft from Other Processes

Duplicating a token means opening a handle to a privileged process. Sysmon Event ID 10 shows the source image, the target and the granted access. A query-only access mask of 0x1400 against winlogon.exe or services.exe from a user-writable path is a strong lead:

title: Token Access to SYSTEM Process from Unusual Source
logsource:
  product: windows
  category: process_access
detection:
  selection:
    TargetImage|endswith:
      - '\winlogon.exe'
      - '\services.exe'
    GrantedAccess: '0x1400'
  filter_system:
    SourceImage|startswith:
      - 'C:\Windows\System32\'
      - 'C:\Program Files\'
  condition: selection and not filter_system
level: medium
# tune/validate: security products open these processes constantly; allowlist by signed path.
Vetted sources

Use SigmaHQ process-access and logon rules, Elastic’s prebuilt rules for token manipulation, MITRE CAR analytics for privilege use, and Atomic Red Team T1134 tests for validation. Baseline your own environment — endpoint security software enables these privileges as part of normal operation.

Build Detections That Fire

Mjolnir Security helps blue teams turn threat intelligence into high-fidelity detections across endpoint, network, identity and cloud telemetry.

Detection EngineeringManaged Detection & ResponseThreat HuntingIncident ResponsePurple Teaming
  • Detection Engineering We build and tune detections mapped to ATT&CK from your own telemetry.
  • Threat Hunting as a Service Hypothesis-driven hunts for the behaviours on this page.
  • 24/7 Incident Response Containment when a detection fires. Call +1 833 403 5875.
Written by: Mjolnir Threat Research (MTAC)  |  Published: October 12, 2026  |  Last reviewed: October 12, 2026