Skip to content

Lesson 6 of 14 · 15m

The Fifteen Event IDs

4624 logon types, 4625 substatuses, 4688 with CommandLine enabled, 7045 installs, and 1102 as its own evidence.

The Windows Security event log is not a stream. It is a set of typed evidence records, and a working hunt lives inside about fifteen of them. Memorize the IDs, the fields that carry weight, and — the part people skip — which events are lying to you by omission because their useful field is off by default.

Authentication events

4624 — successful logon. The Logon Type field is the entire signal. Type 2 is console, 3 is network (SMB, service access — the lateral-movement workhorse), 7 is unlock, 9 is NewCredentials (runas /netonly — also the shape tools make when they inject credentials), 10 is RemoteInteractive (RDP), 11 is cached credentials. The Logon ID hex field is your join key to everything else the session did.

4625 — failure. Status/SubStatus does the diagnosis: 0xC0000064 is a bad username, 0xC000006A is a good username with a bad password, 0xC0000234 is locked out, 0xC0000071 is expired. Password spraying and brute forcing are different events wearing the same ID — spray is thousands of 0xC000006A across hundreds of distinct accounts from one source; brute force is thousands against one.

4648 — explicit credentials (runas, PsExec-style tooling). 4672 — special privileges assigned: the "an admin-equivalent just logged on" marker. 4768/4769/4771 — Kerberos TGT, service ticket, preauth failure. 4769 with Ticket Encryption Type 0x17 (RC4) requested for service-account SPNs is the kerberoast shape — modern domains negotiate AES unless someone asks for the downgrade. 4776 — NTLM validation on the DC: the source of truth for NTLM spray and pass-the-hash.

Activity events

4688 — process creation. With "Include command line in process creation events" enabled it carries CommandLine and Creator Process Name; without that GPO it tells you a process ran and hides what it ran with — which is the entire signal. 4689 — exit, useful for short-lived process bursts. 4697 and System-log 7045 — service install; 7045's fields — Service Name, Service File Name, start type, run-as account — are a persistence report in one record. 4698/4702/4699 — scheduled task created, changed, deleted; TaskScheduler/Operational 106 and 200 give the operational side. 4720/4726/4732 — account created, deleted, added to a local group. 4740 — lockout. 1102 — the Security log was cleared; it names the account that did it, and if you forward events, the attacker's own clearing event survives on your collector even though the local log is gone.

The share-access joins

Two more IDs do quiet work in lateral hunts. 5140 — share access — fires every time something touches \\HOST\ADMIN$, C$, or IPC$; 5145 adds the relative file name accessed. ADMIN$ hits from workstations that never deploy software are a lateral-movement tripwire, and IPC$ plus named-pipe access is the connective tissue of PsExec-style tooling. 7040 — service start-type changed — catches the subtler persistence trick of flipping a disabled legit service to auto instead of installing a new one.

The omission that eats analysts

The wrong model is "forward everything, grep later." Volume is not the problem — coverage is. An environment forwarding every event but never enabling command-line auditing, PowerShell script block logging (4104), and module logging (4103) has logs that look complete and can't answer what powershell.exe actually ran. 4104 is especially load-bearing: it logs the deobfuscated script block, which is why -enc blobs and string-split tricks still end up readable in the log even when AMSI was patched or bypassed. Verify the audit policy with auditpol /get /category:* before you trust an absence. In hunting, a quiet log is a claim — and claims need evidence too.

The same applies to the log itself. auditpol /get /category:* on a suspect box tells you whether the audit policy was changed — disabling process tracking or Kerberos auditing mid-intrusion is itself an event worth hunting, and it shows up as Security 4719, system audit policy change. An absence of evidence paired with a 4719 and an 1102 is not an absence.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.