Skip to content
Pwnversity
DEF-SYSMONintermediate · 11 min · upd. 2026-11

Sysmon & telemetry

T1003.001T1685Sysmon

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.

  • 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/Operational channel, which any SIEM can ingest, and the community’s Sigma rules use them directly.
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 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

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 include logs nothing: that’s how an event is disabled.
  • The rule’s name attribute shows up as RuleName in 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).
Ventana de terminal
sysmon64.exe -accepteula -i sysmonconfig.xml # install with a configuration
sysmon64.exe -c sysmonconfig.xml # apply a new configuration (generates event 16)
sysmon64.exe -c # show the active configuration
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.

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 load
12: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.bin
12:54:08 EID 10 rundll32.exe -> notepad.exe GrantedAccess 0x001fffff RuleName: CredAccess - Memdump
CallTrace: ...dbgcore.DLL+9247|...|comsvcs.dll+3c3d4|rundll32.exe+3bcf

What each event tells you:

  • EID 1: rundll32.exe calling MiniDump from comsvcs.dll is a behavioral signature on its own; and its parent is WmiPrvSE.exe, so the script launched it via WMI to break the visible parent-child link.
  • EID 10: the CallTrace goes through dbgcore.dll, Windows’ dump library; the 0x1FFFFF mask is full access.
  • EID 11: the dump file with a misleading extension.
  • The ProcessGuid of rundll32.exe is 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:

Ventana de terminal
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.)

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.

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).

  • Deploying a 2021 configuration without reviewing it and assuming it covers credential dumping.
  • Excluding processes by name (condition="image") without a path: an svchost.exe in C:\Users\Public gets 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.
  • 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 RuleName or technique for automatic tagging
  • Alerts on events 4, 16 and 255, on fltmc unload and on hosts that stop sending data
  • Periodic Atomic Red Team test that techniques generate the expected events