Skip to content

Lesson 1 of 13 · 16m

Collect Less Than You Think You Need

Which log sources carry detection weight — Sysmon event IDs, Windows Security, Zeek, and auth telemetry — and why volume is not visibility.

Here is what happens when a SOC decides to "collect everything": the ingest bill climbs, the indexer slows under log volume nobody reads, and the analyst still cannot answer whether anyone ran rundll32.exe against comsvcs.dll last night. Volume is not visibility. Visibility is having the specific event that proves or disproves the hypothesis you are chasing, with its fields intact.

The Windows core

Sysmon is the single highest-value source on a Windows estate. It is a free Sysinternals driver from Microsoft, configured by an XML file, and it writes to Microsoft-Windows-Sysmon/Operational. The event IDs worth memorizing:

  • 1 — process creation: command line, parent image, hashes, integrity level.
  • 3 — network connection initiated by a process.
  • 7/8 — image load and CreateRemoteThread (injection primitives).
  • 10 — ProcessAccess: who opened whom, with the GrantedAccess mask. This is where LSASS dumping shows up.
  • 11/15 — file create, and FileCreateStreamHash for alternate data streams.
  • 13 — registry value set (Run keys, IFEO hijacks).
  • 17/18 — named pipes created and connected (C2 channels, PsExec-style tooling).
  • 22 — DNS query per process. Not per host — per process. That attribution is what makes Sysmon 22 worth its noise.
  • 23/26 — file deleted, and FileDeleteDetected when deletion was blocked.

Two configs dominate: SwiftOnSecurity/sysmon-config (broad, opinionated) and Olaf Hartong's sysmon-modular (one XML module per ATT&CK technique). Default Sysmon logs everything and is unusable on a busy box; both configs exist because somebody already made the include/exclude decisions for you.

Layer the Windows Security log on top: 4624/4625 logons with LogonType, 4648 explicit credentials (runas, lateral tooling), 4662 object operations — the DCSync signal lives there — 4688 process creation, 4698 scheduled task creation, 1102 audit log cleared. One trap: 4688 records the command line only when "Include command line in process creation events" is enabled under Audit Process Creation. Enable it before the incident, because the incident will not wait for a GPO change.

PowerShell script block logging — event 4104 in Microsoft-Windows-PowerShell/Operational — records the deobfuscated script body, not the encoded command line that launched it. That distinction is the whole point: attackers encode; the script block is post-decode.

The network core

Zeek's conn.log, dns.log, and http.log give you session metadata without payloads: durations, byte counts, JA3/JA3S fingerprints. Suricata's eve.json gives you alert events plus flow records. A firewall log tells you a SYN was permitted; Zeek tells you what the session did. During the December 2021 scramble over CVE-2021-44228, the teams who could answer "did any host reach an LDAP server we don't own" fastest were the ones with Zeek or Suricata telemetry already indexed — not the ones grep-ing firewall accept lines.

Auth infrastructure

sshd/auditd on Linux, Okta System Log events, Entra sign-in logs, VPN concentrator logs. Authentication telemetry is where account attacks live; endpoint telemetry is where execution lives. Password spraying never touches an endpoint until it succeeds — an endpoint-only pipeline is blind to it by construction.

What EDR is and isn't

An EDR is a sensor plus a console, not a substitute for pipeline-owned telemetry. Its data lives behind the vendor's API and licensing tier; if your detection rules depend on fields only the EDR sees, your detections are rented. The durable pattern is endpoint telemetry you own — Sysmon, Security, PowerShell — with the EDR's alerts forwarded as one more source, not the only one. SolarWinds' SUNBURST hunt in December 2020 was driven largely by endpoint telemetry and DNS resolution data, and the organizations with their own copies could hunt while vendors were still pushing signatures.

What to skip

Raw switch logs, printer spool logs, and resolver-level DNS at enterprise scale are the classic traps: enormous volume, near-zero detection value. The economics are concrete — SIEM licensing is historically priced per GB ingested per day, index-time CPU scales with volume, and every retained byte multiplies under compliance retention windows. One year of everything costs roughly 365× the daily ingest; one year of the right things costs the same and answers questions.

The check

For each candidate source, ask three questions: which detection hypothesis does it answer, what does it see that nothing else sees, and what does it cost per GB per day? A source that fails all three is not telemetry; it is storage with pretensions.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.