Skip to content

Lesson 6 of 13 · 17m

Windows Event IDs Are Headlines, Not Answers

LogonType codes, hex substatus values, TicketEncryptionType 0x17, and replication GUIDs — the payload fields that turn an event ID into a detection.

Event IDs are headlines. The payload fields are the article. A rule matching EventID = 4624 fires on unlocks, service startups, and cached-credential logons alongside actual network logons — the ID alone tells you almost nothing.

4624 and the LogonType field

Every 4624 carries LogonType, and the code decides whether the event matters at all:

  • 2 — interactive, console logon
  • 3 — network: SMB, net use, lateral movement's bread and butter
  • 4 — batch: scheduled task execution
  • 5 — service: SCM starting a service account; a machine doing routine work
  • 7 — unlock: someone came back to their desk
  • 9 — NewCredentials: runas /netonly — credentials injected for remote use
  • 10 — RemoteInteractive: RDP
  • 11 — CachedInteractive

A hunting query for lateral movement that doesn't filter LogonType = 3 (and often also 10) is drowning in type-5 noise before it starts. AuthenticationPackageName separates NTLM from Kerberos — relevant when your environment is supposed to be Kerberos-only and NTLM use is itself a finding (NTLM relay and downgrade paths announce themselves this way). And IpAddress = "-" means the logon was local; the dash is not a missing value to filter out, it is the field telling you there is no network source. A correlation rule grouping 4624s by IpAddress will happily aggregate hundreds of local logons into a fake "spray from dash-dash."

4625's hex status codes

Failed logons carry Status/SubStatus that classify the failure: 0xC0000064 the account doesn't exist, 0xC000006A the password was wrong, 0xC0000234 the account is locked, 0xC0000072 it's disabled, 0xC0000071 the password expired. Password spraying produces a distinctive shape — 0xC000006A across distinct usernames from one source — while a fat-fingered user produces the same code on one account. Enumeration shows a different shape again: 0xC0000064 across many usernames is someone probing which accounts exist. Same event ID, three different attacks; the substatus field separates them. 4771 (Kerberos pre-auth failure) carries its own failure codes — 0x18 is wrong password — and 4776 covers NTLM validation.

4769 and the Kerberoast signal

A service ticket request (4769) carries TicketEncryptionType. 0x17 is RC4-HMAC; 0x11/0x12 are AES128/AES256. A domain where modern accounts negotiate AES by default sees RC4 requests mostly when tooling asks for RC4 — which is what Kerberoasting does, because RC4 tickets crack faster offline. The detection: 4769, TicketEncryptionType = 0x17, service name not ending in $ (those are machine accounts), not krbtgt. Mimikatz's kerberos::golden/kerberoast workflows and Rubeus's kerberoast command both produce this shape.

4662 and replication rights

DCSync is the replication-rights abuse: an attacker holding Replicating Directory Changes asks a DC to replicate password hashes. It surfaces as 4662 — an operation on an object — where Properties contains the replication GUIDs (1131f6aa-9c07-11d1-f79f-00c04fc2dcd2 and siblings) and the actor is not a DC. Event ID plus GUID plus actor — all three fields required; directory reads happen constantly and only the property GUIDs mark replication.

The supporting cast

  • 4648 — explicit credential use: runas, psexec -u, anything logging on with a different account than the session's.
  • 4698–4702 — scheduled task lifecycle: created, deleted, enabled, disabled, updated.
  • 1102 — the audit log was cleared. This one should page on sight; nothing legitimate clears the Security log.
  • 4672 — special privileges assigned at logon (admin-equivalent token issued).

4688's empty stomach

Process creation events only contain CommandLine if "Include command line in process creation events" is enabled. A rule matching powershell -enc in 4688 output on a domain where it isn't enabled doesn't fail — it sees events without the field and matches nothing. Check the field exists in your data before trusting the rule.

The correct practice: write rules on the payload, not the headline, and keep a field dictionary per event ID — a file that says what each field means, which values exist, and what - means. That file is documentation your future self will read during an incident.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.