Sysmon & telemetry
Sysmon (System Monitor, from Sysinternals) is a Windows service and driver that logs system activity in a detail the Security log doesn’t provide: every process with its hash, command line and parent; per-process network connections; access to other processes’ memory; registry changes; DNS queries. It’s free, writes to the standard event log and underpins almost any behavioral detection on Windows. Its value depends entirely on the configuration: without one, it either collects noise or leaves gaps exactly where they matter.
What it solves
Section titled “What it solves”- Behavioral visibility without buying an EDR: who ran what, from which parent, where it connected and what it touched.
- Reliable correlation: every process gets a unique
ProcessGuid, so a chain (execution → DLL load → memory access → file created) can be rebuilt even when PIDs are reused. - Open, portable telemetry: events go to the
Microsoft-Windows-Sysmon/Operationalchannel, which any SIEM can ingest, and the community’s Sigma rules use them directly.
How it works
Section titled “How it works”flowchart LR
K["SysmonDrv driver<br/>(kernel)"] --> S["Sysmon service<br/>applies the config"]
C["XML config<br/>include / exclude"] --> S
S --> L["Channel<br/>Sysmon/Operational"]
L -->|"WEF or agent"| SIEM[("SIEM")]
SIEM --> R["Sigma rules<br/>and hunting"]
The driver captures the activity and the service decides, based on the configuration, which events to write. Filtering happens on the machine itself: whatever the configuration excludes doesn’t exist afterwards, neither for the SIEM nor for forensics.
The events
Section titled “The events”The current version is Sysmon v15.22 (September 2026), for Windows 11 and Windows Server 2019 or later.
| ID | Event | Typical detection use |
|---|---|---|
| 1 | Process creation | LOLBins, odd Office children, encoded command lines |
| 2 | File creation time changed | Timestomping |
| 3 | Network connection | Beaconing, processes that shouldn’t reach the Internet (C2) |
| 4 / 16 | Service state / configuration change | Tampering with Sysmon itself |
| 5 | Process terminated | Process lifetime, context |
| 6 | Driver loaded | Vulnerable drivers (BYOVD) |
| 7 | Image (DLL) loaded | Sideloading, unsigned DLLs |
| 8 | CreateRemoteThread | Code injection (evasion) |
| 9 | RawAccessRead | Direct disk reads (copying an in-use NTDS.dit or SAM) |
| 10 | Process access | LSASS dumping, injection |
| 11 | File created | Downloads, dumps, ransomware |
| 12 / 13 / 14 | Registry: create or delete, value, rename | Persistence in Run keys, services |
| 15 | Alternate stream with hash | Zone.Identifier, data hidden in ADS |
| 17 / 18 | Named pipe created / connected | SMB C2, PsExec, Cobalt Strike |
| 19 / 20 / 21 | WMI filter, consumer and binding | Persistence via WMI subscription |
| 22 | DNS query | DGA domains, DNS tunnels |
| 23 / 26 | File deleted (archived / logged only) | Tool removal, anti-forensics |
| 24 | Clipboard | Theft of copied credentials |
| 25 | Process image tampering | Process hollowing, herpaderping |
| 27 / 28 | Executable / shredding blocked | Prevention, not just logging |
| 29 | Executable detected | New PE files appearing on disk |
| 255 | Error | Failures in Sysmon itself |
The configuration
Section titled “The configuration”It’s an XML file with one section per event type. Each section is declared onmatch="include" (log only what matches) or onmatch="exclude" (log everything except what matches):
<Sysmon schemaversion="4.90"> <HashAlgorithms>sha256,imphash</HashAlgorithms> <EventFiltering> <RuleGroup name="" groupRelation="or"> <!-- Every process, except known noise --> <ProcessCreate onmatch="exclude"> <Image condition="is">C:\Windows\System32\backgroundTaskHost.exe</Image> </ProcessCreate> </RuleGroup> <RuleGroup name="" groupRelation="or"> <!-- Only LSASS accesses with memory read rights --> <ProcessAccess onmatch="include"> <Rule name="technique_id=T1003.001" groupRelation="and"> <TargetImage condition="image">lsass.exe</TargetImage> <GrantedAccess condition="contains any">0x1010;0x1410;0x1438;0x143a;0x1fffff</GrantedAccess> </Rule> </ProcessAccess> </RuleGroup> </EventFiltering></Sysmon>- An empty
includelogs nothing: that’s how an event is disabled. - The rule’s
nameattribute shows up asRuleNamein the event; using it for the ATT&CK technique lets the SIEM tag events without extra rules. - Common conditions:
is,contains,contains any,begin with,end with,image(compares only the executable name).
sysmon64.exe -accepteula -i sysmonconfig.xml # install with a configurationsysmon64.exe -c sysmonconfig.xml # apply a new configuration (generates event 16)sysmon64.exe -c # show the active configurationReference configurations
Section titled “Reference configurations”| Configuration | Status (November 2026) | What to know |
|---|---|---|
SwiftOnSecurity sysmon-config |
Last commit October 2021, schema 4.50 | ProcessAccess with an empty include: it doesn’t log event 10, so it doesn’t see LSASS dumping; it doesn’t log DLL loads (7) either |
Olaf Hartong sysmon-modular |
Maintained (commit from October 2026) | Per-event and per-technique modules you combine; balanced, excludes-only, research and Defender for Endpoint augmentation profiles |
sysmon-modular includes, for instance, an LSASS access module with masks 0x1FFFFF, 0x1F1FFF, 0x1010 and 0x143A, warning that in some environments it spikes CPU usage. Any baseline needs tuning: generic exclusions don’t know the organization’s own software.
Real events: a memory dump with comsvcs
Section titled “Real events: a memory dump with comsvcs”In the sysmon_10_1_memdump_comsvcs_minidump.evtx recording from EVTX-ATTACK-SAMPLES, a script launches the classic comsvcs.dll dump technique (the sample targets notepad.exe, but it’s the same technique used against LSASS). Read with python-evtx, the full chain shows up:
12:54:07 EID 1 cscript.exe cscript c:\ProgramData\memdump.vbs notepad.exe (parent: cmd.exe)12:54:08 EID 7 cscript.exe loads wbem\wmiutils.dll RuleName: Execution - Suspicious WMI module load12:54:08 EID 1 rundll32.exe rundll32 C:\windows\system32\comsvcs.dll, MiniDump 4868 C:\Windows\System32\notepad.bin full (parent: WmiPrvSE.exe -secured -Embedding)12:54:08 EID 11 rundll32.exe creates C:\Windows\System32\notepad.bin12:54:08 EID 10 rundll32.exe -> notepad.exe GrantedAccess 0x001fffff RuleName: CredAccess - Memdump CallTrace: ...dbgcore.DLL+9247|...|comsvcs.dll+3c3d4|rundll32.exe+3bcfWhat each event tells you:
- EID 1:
rundll32.execallingMiniDumpfromcomsvcs.dllis a behavioral signature on its own; and its parent isWmiPrvSE.exe, so the script launched it via WMI to break the visible parent-child link. - EID 10: the
CallTracegoes throughdbgcore.dll, Windows’ dump library; the0x1FFFFFmask is full access. - EID 11: the dump file with a misleading extension.
- The
ProcessGuidofrundll32.exeis the same in events 1, 11 and 10: that’s how they’re chained in the SIEM.
Among the SigmaHQ rules that fired on this recording are Process Memory Dump Via Comsvcs.DLL (high), Suspicious WmiPrvSE Child Process (high), WmiPrvSE Spawned A Process and Potentially Suspicious Rundll32 Activity (medium).
To read the access masks in event 10:
python3 access.py 0x1010 0x1410 0x143a 0x1fffff 0x1010 -> VM_READ | QUERY_LIMITED_INFORMATION 0x1410 -> VM_READ | QUERY_INFORMATION | QUERY_LIMITED_INFORMATION 0x143a -> CREATE_THREAD | VM_OPERATION | VM_READ | VM_WRITE | QUERY_INFORMATION | QUERY_LIMITED_INFORMATION 0x1fffff -> PROCESS_ALL_ACCESS(access.py is a ten-line script that breaks the mask down using Windows’ PROCESS_* constants.)
Sysmon for Linux
Section titled “Sysmon for Linux”There’s a Linux version (package sysmonforlinux, v1.6.0 in Microsoft’s repository) that uses eBPF and writes to syslog in the same XML format. It implements a subset of the events (processes, network, files, among others) with the same IDs as on Windows and adds event 100 (eBPF program loaded). It needs a kernel with eBPF support and access to its tracepoints; in containers without that access, Sysmon validates the configuration but telemetry doesn’t start. On Linux it usually runs alongside auditd.
When the attacker goes after Sysmon
Section titled “When the attacker goes after Sysmon”A privileged adversary tries to blind telemetry before acting (T1685, Disable or Modify Tools):
| Technique | Trace |
|---|---|
fltmc unload SysmonDrv |
Event 1 with fltMC.exe and its command line (Sigma rule Sysmon Driver Unloaded Via Fltmc.EXE); then silence |
sysmon -u or stopping the service |
Event 4 (service state) and event 1 for the uninstaller |
| Loading a configuration that excludes everything | Event 16 (configuration change) |
| Renaming Sysmon or its driver to mislead | Same events, different name: detect by hash or by OriginalFileName |
The most robust defense isn’t on the machine: it’s having the SIEM alert when a host stops sending Sysmon events (see SIEM).
Common mistakes
Section titled “Common mistakes”- Deploying a 2021 configuration without reviewing it and assuming it covers credential dumping.
- Excluding processes by name (
condition="image") without a path: ansvchost.exeinC:\Users\Publicgets excluded too. - Not versioning the configuration: nobody knows what changed when an event type disappears.
- Filtering so much that forensics runs out of data: what isn’t logged doesn’t exist on the timeline.
Checklist
Section titled “Checklist”- Sysmon deployed across the fleet (GPO, Intune or similar) and its version inventoried
- Configuration maintained, versioned in a repository and reviewed against priority techniques
- Events 1, 3, 7, 10, 11, 13 and 22 actually present in the SIEM
- Rules on
RuleNameor technique for automatic tagging - Alerts on events 4, 16 and 255, on
fltmc unloadand on hosts that stop sending data - Periodic Atomic Red Team test that techniques generate the expected events