Lesson 11 of 14 · 14m
Sysmon Is the Sensor the OS Forgot
One driver install adds DNS queries, remote threads, image loads, and process-access masks to telemetry — and the config file is the detection policy.
The telemetry Windows always needed
sysmon64.exe -i sysmonconfig.xml installs a driver (SysmonDrv.sys) plus a service (Sysmon64), and the OS grows the senses people assume it had: process creation with full command line and a SHA256 hash, network connections with the process attached, DNS queries by name, driver loads, image loads, CreateRemoteThread calls, WMI activity, file deletes. -c reloads the config without a reboot, -u uninstalls, sysmon64 -s prints the running schema. Events land in Microsoft-Windows-Sysmon/Operational — query and forward it like any other channel.
The driver is why it works: event generation happens in kernel callbacks, not by polling logs — Sysmon sees the process create as the kernel reports it, with the parent PID resolved at that instant.
Kill two wrong models. First: "Sysmon is an AV/EDR." It blocks nothing (ID 27 FileBlockExecutable notwithstanding); it sees — which also means it has no quarantine, no remediation, no verdict. It's a camera, not a guard. Second: "4688 with command line covers it." Native auditing has no event for DNS lookups, remote threads, image loads, named pipes, WMI subscriptions, or process-access masks. The gap is the point: Sysmon fills exactly the blind spots a defender and an attacker both know exist.
The ID map that matters
- 1 ProcessCreate:
Image,CommandLine,ParentImage,Hashes, signer — the Sigma-rule workhorse - 2 FileCreateTime changed — timestomping
- 3 NetworkConnect, with process attribution
- 5 ProcessTerminated; 6 DriverLoad — load an unsigned driver, get seen
- 7 ImageLoad — DLL loads, signed flag; heavy, tune it
- 8 CreateRemoteThread — the classic injection primitive
- 10 ProcessAccess with a
GrantedAccessbitmask — LSASS opened with ~0x1010/0x1c10is the dump-detection rule - 11 FileCreate; 15 FileCreateStreamHash — alternate data streams
- 12–14 registry create/delete/rename and value sets
- 17/18 named pipes created/connected
- 19–21 WMI filter, consumer, binding — fileless persistence
- 22 DnsQuery — the query name, which nothing else on the box records
- 23 FileDelete archived; 25 ProcessTampering (hollowing); 26 FileDeleteDetected; 29 FileExecutableDetected; 255 Sysmon's own error
Config is the product
Sysmon without a config is noise with ambitions. The XML is rule pairs per event type — include and exclude conditions — plus global knobs:
<Sysmon schemaversion="4.90">
<HashAlgorithms>sha256,imphash</HashAlgorithms>
<DnsLookup>True</DnsLookup>
<CheckRevocation>True</CheckRevocation>
<EventFiltering>
<ProcessCreate onmatch="exclude">
<Image condition="end with">MsMpEng.exe</Image>
</ProcessCreate>
</EventFiltering>
</Sysmon>SwiftOnSecurity's sysmon-config is the community baseline — most production configs start there and prune. The cost model is real: ImageLoad against everything on a build server is a CPU bill you will notice, and a chatty rule floods the channel until it rolls. Excludes are how you keep signal: tune per host class, not per wish — a dev box's excludes will eat a server's signal.
Deployment is ordinary fleet work: ship sysmon64.exe + config via GPO startup script, SCCM/Intune, or a scheduled task; version the XML in git (the config is the detection policy — diff reviews are alert reviews); sysmon64 -c reloads without a reboot and doesn't drop the driver. Then forward Microsoft-Windows-Sysmon/Operational over WEF with Security, and the alerts write themselves: 8 to anything, 10 against lsass.exe, 6 for drivers you didn't ship, 22 for domains on your blocklist, and 1 where ParentImage is Office spawning powershell.
Two more operational facts. The schema is versioned — schemaversion="4.90" in your config must match the installed binary or -c rejects it, and the sysmon releases move (the ID map runs 1–29 plus 255 today — 26 and 29 arrived in later builds), so pin a binary version per fleet. And the service is removable by anyone who can stop drivers — sysmon64 -u — so tamper detection on the Sysmon64 service itself belongs in your alert list, alongside the events.
Real-world weight: modern detection engineering assumes Sysmon IDs — Sigma rules are keyed to them — so the sensor is the difference between "we have logs" and "we have the events the rules expect."
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
BlueHammer: The Unpatched Windows Zero-Day That Weaponizes Microsoft Defender Against Your Own System
BlueHammer is an unpatched, publicly released Windows local privilege escalation exploit that chains Microsoft Defender's update workflow, Volume Shadow Copy, Cloud Files callbacks, and opportunistic locks to reach NT AUTHORITY\SYSTEM from a standard user account.
A Fake GTA 6 ISO Didn’t Install a Game. It Installed a Wiper.
A fake GTA 6 ISO used a believable installer error to cover remote-access malware, browser-data theft, and destructive file wiping. The “License not found” message wasn’t the crack failing. It was there so the victim would stop looking.
Running a Minecraft Network: Four JVMs, One Box, and the Settings That Lie to You
Four servers on one host means four JVMs each sizing its thread pools for a machine it does not own. The measured cost of that, the systemd ordering that guarantees nothing, and the throttle that switches itself back on when your forwarding breaks.
Building a Minecraft Network: Four Servers Pretending to Be One Place
A proxy, a lobby, an SMP and a PvP arena is four JVMs that know nothing about each other. What actually has to be shared, why your permissions don't follow players, and the two LuckPerms defaults that silently share nothing at all.