Skip to content

Lesson 8 of 14 · 22m

Correlation: Multi-Event Detection

Sprays, kerberoasting, DCSync, and pass-the-hash are invisible to single events — count distinct entities over windows in the SIEM's own language.

Password spraying is not an event. It's four hundred 4625 failures in ten minutes, each one boring in isolation. Kerberoasting is a handful of 4769s. Pass-the-hash is a single 4624 that happens to say NTLM where Kerberos was expected. Most of what actually matters in detection requires counting over windows — and single-event rules can't see any of it.

Where correlation lives

Sigma's single-event rules don't do temporal counting; the correlation spec (type: correlation, event_count, temporal) exists, but backend support is uneven — check whether your converter implements it before writing YAML that can't deploy. In practice, correlation happens in the SIEM's own language: | stats/bin in Splunk SPL, scheduled analytics rules in Sentinel KQL, aggregation queries in Elastic. That's fine — the logic is portable even when the syntax isn't.

A Sentinel-style spray detection:

SecurityEvent
| where EventID == 4625 and SubStatus == "0xC000006A"
| summarize attempts = count(), distinct_accounts = dcount(Account) by IpAddress, bin(TimeGenerated, 10m)
| where distinct_accounts > 30

Note the field choice: distinct_accounts, not attempts. That's the structural split between the two attacks people conflate —

  • Password spray: one password, many accounts. High dcount(Account) per source, modest attempts per account — specifically engineered to stay under per-account lockout thresholds.
  • Brute force: many passwords, one account. High attempts per account; the classic lockout-triggering shape.

A rule counting failures per account catches brute force and waves the spray past. A rule counting distinct accounts per source does the opposite. You want both, on purpose.

The correlation detections that pay rent

  • Kerberoasting (T1558.003): Security 4769 (TGS request) where TicketEncryptionType is 0x17 (RC4 — attack tools request it because RC4 tickets crack offline far faster than AES) and ServiceName belongs to a user-held SPN, excluding machine accounts ending in $. One RC4-for-a-user-SPN request isn't proof; a burst from one account is a pattern.
  • DCSync (T1003.006): Security 4662 "operation on an object" where Properties contain replication rights GUIDs — {1131f6aa-9c07-11d1-f79f-00c04fc2dcd2} (DS-Replication-Get-Changes) and {1131f6ad-...} (Get-Changes-All) — requested by an account that is not a domain controller. Real DCs replicate constantly; a workstation asking for replication rights is the whole attack in one event.
  • Pass-the-hash: 4624 LogonType 3 with AuthenticationPackageName: NTLM in an environment where Kerberos is the norm. Legitimate NTLM exists — local accounts, some appliances — so this one needs baselining, not blanket alerting. The sharp version: NTLM type-3 logons to servers from accounts that never authenticate that way.
  • DCSync/PtH's quiet cousin: runas /netonly produces LogonType 9 — watch for it originating from tooling accounts on unusual hosts.

Thresholds are a tuning problem, not a number

> 30 is a starting guess, not a policy. Baseline per environment: count the noise distribution, set the bar above it, then test the evasion — an attacker who slows under your threshold still fails dcount if the window is long enough, which is why mature shops run two versions: a fast rule (high threshold, short window) and a slow drip (low threshold, hour-scale window). Low-and-slow evasion trades speed for stealth; longer windows take the speed away.

One more thing thresholds hide: sequence. Some attacks are ordered chains — phish attachment → Office spawns interpreter → outbound C2. Sequence correlation (temporal ordering, not just counts) is what multi-stage products do behind the curtain; you can approximate it in the SIEM by joining the single-event rules you already have on Host/Account within a window. It produces more false positives than counting and catches things counting can't.

The practice

Pick three attacks that are structurally invisible to single events — spray, kerberoast, DCSync. Write the counting query for each in your SIEM's syntax, replay or simulate the events, and verify the aggregation actually fires. A correlation rule nobody has ever seen fire is a hypothesis with a schedule.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.