Skip to content

Lesson 12 of 13 · 14m

Detection: What Each Attack Actually Logs

The event IDs and signatures that see roasting, relay, DCSync, and forged tickets — and the honey-object trick that makes detection deterministic.

Every attack in this course generates telemetry; the problem is that the signal drowns in normal Kerberos noise. Detection engineering for AD is mostly knowing which three or four event IDs each attack produces, and which field in each event is the discriminating one. The DC security log is the sensor. Everything else is correlation.

The event map

Event IDWhat it isAttack signature
4768TGT issued (AS)AS-REP roast: 4768 for flagged account, ticket etype 0x17, no subsequent logon. Golden ticket: absent for forged TGTs — TGS requests appear with no matching 4768.
4769Service ticket issuedKerberoast: bursts of 4769 from one account across many SPNs, ticket encryption 0x17 (RC4) when AES was deployed.
4770Ticket renewedForged-ticket detection: renewals on tickets that never had 4768.
4771Preauth failedPassword spray against AD: many 4771 from one source across distinct users.
4776NTLM validationNTLM spray/relay confirmation; 4776 bursts.
4662Object accessDCSync: replication GUID access (1131f6ad…, 1131f6aa…) on the domain object from non-DC accounts — needs "Audit Directory Service Access" enabled plus SACLs set on the domain object.
1644LDAP expensive searchSPN enumeration sweeps preceding a roast.
4624/4627Logon / membershipRelay landing: logon Type 3 from unexpected source for coerced machine account.

The wrong mental model: "install a SIEM and ingest everything." Volume kills it — a busy DC logs hundreds of 4769s per minute. The field-level filters are the detection: ticket encryption 0x17, replication ERs on non-DCs, 4769 without 4768.

Honey objects: deterministic detection

The reliable trick is objects that should never be touched. Plant a decoy user with a fake SPN (MSSQLSvc/fake.corp.local:1433) whose password is 64 random chars. Any 4769 requesting it is an attacker by definition — no false positives. Same for a decoy DONT_REQ_PREAUTH account: any 4768 is malicious. Honey SPNs and honey accounts convert probabilistic detection into alarms.

SpecterOps' published detections (the "DCSync" and "honey hash" writeups) and Sigma rules 4768-anomaly / 4662 replication-from-non-DC cover the same ground; deploy Sigma's win_security_dcsync-equivalents rather than hand-rolling.

Silences to expect

Two attacks genuinely don't log on the DC: silver tickets (never touch the KDC — only the service logs the auth, and only if it logs) and offline cracks (the roast happens on the attacker's GPU). For silver tickets you rely on service-side anomalies — PAC group mismatches, machine logons from localhost — which is why endpoint/service logging matters for Tier 0. For relayed LDAP, the DC logs the result (the ACL write) but not the relay — the 4662/5136 modification events are the signature, and the "who" field will be the relayed account, not the attacker box.

The operational practice

Enable Audit Policy "Audit Directory Service Access" + "Audit Security System Extension" on DCs. Forward 4768/4769/4770/4771/4662/1644 to the SIEM with the full message body — encryption type and SPN live in the body, not the header. Alert rules in priority order: 4662 replication from non-DC (critical), honey SPN 4769 (critical), 4769 RC4 burst (high), 4768-without-logon for honey accounts (high). Tune per-DC baselines for a week before enabling — a print server issuing 4,000 4769s at 3am is normal until you know it isn't.

Log volume is the usual objection. A five-DC estate pushing full Kerberos telemetry lands roughly 1–3 GB/day in the SIEM; filtering at the collector to just the six IDs above cuts it to a few hundred MB and keeps every field that matters. Microsoft's ATA/Defender for Identity does the same correlation at the sensor level — if MDI is deployed, most of these signatures arrive pre-built, which is the strongest argument for it on DCs.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.