Lesson 4 of 13 · 18m
You Can't Detect What You Don't Collect
Every detection is a rule over events, and the events only exist if a specific source generates them and the pipeline ships them.
A detection rule is a predicate over events. If the event was never generated, or was generated and never shipped, the rule is decoration. So before any adversary emulation begins, you inventory which data components each scoped technique needs and prove each source produces them end to end.
The Windows sources that matter
Sysmon is the baseline. On current builds (15.x), the event IDs you actually build detections on:
- EID 1, process creation —
CommandLine,Hashes(SHA256 and IMPHASH),ParentImage,User,IntegrityLevel. The single most-used event in detection engineering. - EID 3, network connection — process-to-destination mapping; how you see C2.
- EID 7, image load — DLL loads; useful for injection patterns, expensive in volume, enable selectively.
- EID 8, CreateRemoteThread — cross-process injection.
- EID 10, ProcessAccess — reads of another process's memory; the LSASS-credential-dump signal. Very noisy, scope it by target image.
- EID 11, FileCreate; EID 22, DNS query; EID 23/26, file delete archived/detected; EID 29, FileExecutableDetected (added in 15.0).
Sysmon's default config logs little of this. Two community baselines do the work: SwiftOnSecurity's sysmon-config.xml for a broad starting point, and Olaf Hartong's sysmon-modular, which splits rules into per-event include/exclude modules you assemble to match your noise budget. Install, then raise the Microsoft-Windows-Sysmon/Operational log's maximum size — the default 64 MB rolls over fast on busy hosts.
Native Security log: EID 4688 records process creation, but the CommandLine field only populates if the GPO "Include command line in process creation events" (Administrative Templates → System → Audit Process Creation) is set. Plenty of environments have collected 4688s for years without arguments, which makes them nearly useless for detection. EID 4104 records PowerShell script blocks — but only when Script Block Logging is enabled in Group Policy; on endpoints it is often off, and on servers almost always.
The Linux sources
auditd with execve rules (-a always,exit -F arch=b64 -S execve -k exec) gives you process execution with arguments. eBPF agents — Falco is the reference implementation — give richer syscall context without auditd's plumbing pain. osquery exposes process_events on both operating systems once --disable_events=false is set. None of this is on by default anywhere.
Alerts are not telemetry
The wrong mental model: "our EDR forwards its detections to the SIEM, that's our visibility." EDR alerts are verdicts — outputs of the vendor's model. You cannot run your own rules over them, cannot hunt the technique the vendor's model missed, cannot re-test next quarter. When the model fails, you hold nothing. Telemetry is the raw event stream the verdicts were computed from; if you want your own detection engineering, you ship the events, not just the alerts.
Why this matters in production
SUNBURST in 2020 resolved its C2 domain — avsvmcloud.com — through DNS lookups that changed subdomain as the actor retargeted. Organizations collecting resolver logs could hunt the indicator set historically; organizations relying on EDR verdicts alone could only check whether the vendor had shipped a signature. Most had no DNS telemetry at all. Volt Typhoon's multi-year dwell in U.S. critical infrastructure, disclosed in 2024, ran almost entirely on living-off-the-land binaries — netsh portproxy, wmic, ntdsutil — which no signature catches but process telemetry with command lines catches readily. Both cases reduce to the same sentence: the data source existed or it did not.
What to actually do
Map every technique in your scope layer to its ATT&CK data components, then to concrete sources: Sysmon EID list, the 4688 command-line GPO state, 4104 status per host class, auditd rules, DNS resolver logs. For each source, generate a marker event and query it in the SIEM — not in the local log. The inventory is the exercise's entry criterion, and gaps in it are backlog items before a single atomic runs.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
What is Privilege Escalation? How Attackers Go From Foothold to Full Control
An attacker starts with a low-privileged shell or user account and escalates to root or Administrator using misconfigurations, SUID binaries, kernel exploits, and Active Directory attacks. Here's every technique, the tools professionals use, and how to harden against it.
What is Penetration Testing? The Discipline of Breaking Things Before Attackers Do
Penetration testing is authorized, structured hacking — finding vulnerabilities in systems, networks, and applications before real attackers do. Here's the full methodology, every phase of a real engagement, the tools professionals use, and how to build a career in it.
What is Social Engineering? The Attacks That Bypass Every Technical Control
Phishing, vishing, pretexting, physical infiltration — here's how every technique works, how attackers use them in production breaches, and how to actually defend against them.
Jellyfin's Threat Model Is Your Brother-in-Law
Four Jellyfin CVEs landed in 2026 and not one of them needs an admin account. One needs only the ability to name a file. Meanwhile Jellyfin 12 shipped in September, the version numbers stopped starting with 10, and every "am I patched" check you wrote is now wrong.