← All articles
Blog

Sysmon for incident response: how to install, configure and read it

How to install Sysmon, write or choose a Sysmon config (SwiftOnSecurity, sysmon-modular), read the Sysmon logs in an investigation, and spot tampering.

2 December 2026 8 min read

Sysmon (System Monitor) is a free Microsoft Sysinternals tool that writes a detailed record of what processes do (starting, connecting, writing files and changing the registry) into a dedicated Windows event log. Of everything an organisation can switch on before an incident, it is one of the cheapest ways to make the eventual investigation faster: process trees with full command lines and hashes, network connections tied to the program that made them, and DNS queries tied to the process that asked.

This guide is for the people who will deploy it and later read it. It covers how to install and update Sysmon, how its configuration works and which community configurations to start from, how to read the Sysmon log in an investigation, how to tell whether it was tampered with, and what it would have added to an intrusion we investigated in our lab, where it was not installed. For a reference of every Sysmon event ID, see the Sysmon event IDs page.

How to install Sysmon

Sysmon is distributed as a zip from Microsoft's Sysinternals site. It contains a 32-bit and a 64-bit executable (and an ARM64 build); on any current 64-bit Windows, use Sysmon64.exe. From an elevated command prompt:

Sysmon64.exe -accepteula -i sysmonconfig.xml

That installs a service and a kernel driver, both named Sysmon64 and SysmonDrv by default, applies the configuration file, and starts logging to Microsoft-Windows-Sysmon/Operational. Without sysmonconfig.xml, Sysmon installs with a minimal default set that is not useful for investigations, so always install with a configuration.

The other commands you will need:

TaskCommand
Apply a new or changed configurationSysmon64.exe -c sysmonconfig.xml
Show the configuration in forceSysmon64.exe -c
Print the event schema for this versionSysmon64.exe -s
UninstallSysmon64.exe -u (add force if the service is stuck)
Install with a different driver nameSysmon64.exe -accepteula -i sysmonconfig.xml -d <name>

Before relying on the log, make it bigger. The default size of the Sysmon log is small for the volume a good configuration produces, and a busy workstation can roll it over in a day. Set the maximum size with wevtutil sl Microsoft-Windows-Sysmon/Operational /ms:<bytes>, or through Group Policy, and forward the log to a central store where you can.

For more than a handful of machines, deploy it the way you deploy other software: a Group Policy startup script that installs Sysmon if the service is missing and re-applies the configuration if its hash differs, or your endpoint management tool (Intune, Configuration Manager or similar). Store every version of the configuration in a repository, so that for any date in a future investigation you can say exactly which rules applied.

How a Sysmon configuration works

A Sysmon configuration is an XML file. Its EventFiltering section contains rule groups, each for one event type, set to include or exclude matches:

<Sysmon schemaversion="4.90">
  <HashAlgorithms>sha256,imphash</HashAlgorithms>
  <CheckRevocation/>
  <EventFiltering>
    <RuleGroup name="" groupRelation="or">
      <ProcessCreate onmatch="exclude">
        <Image condition="is">C:\Windows\System32\SearchProtocolHost.exe</Image>
      </ProcessCreate>
    </RuleGroup>
    <RuleGroup name="" groupRelation="or">
      <NetworkConnect onmatch="include">
        <Image condition="end with">\powershell.exe</Image>
        <Image condition="end with">\certutil.exe</Image>
        <DestinationPort condition="is">3389</DestinationPort>
      </NetworkConnect>
    </RuleGroup>
  </EventFiltering>
</Sysmon>

Two rules govern how this reads. An include rule logs only what matches; an exclude rule logs everything except what matches. So ProcessCreate onmatch="exclude" with a short list logs almost all process creation, which is what you want, while NetworkConnect onmatch="include" logs connections only for the listed programs and ports, which keeps volume down at the cost of coverage. Conditions include is, contains, begin with, end with, contains any, excludes and image (which matches a file name or full path). The schemaversion must be one the installed Sysmon supports; -s prints it.

The trade-off is always volume against blind spots. Each exclusion is also somewhere an attacker can hide; excluding a whole program folder, for example, also excludes any tool an attacker drops into it. When you exclude, exclude narrowly (a full path and, ideally, a signer) rather than whole folders.

Which Sysmon config to start from

Few organisations write a configuration from scratch. The two most widely used community starting points are:

  • SwiftOnSecurity's sysmon-config: a single, heavily commented file designed as a high-quality baseline, with sensible exclusions for common Windows noise. Easy to read and adapt.
  • Olaf Hartong's sysmon-modular: a configuration built from modules per event type and technique, mapped to MITRE ATT&CK, which you merge into one file. Easier to tune piece by piece and to keep aligned with new techniques.

Either is a far better start than nothing. Whichever you choose, test it on a few representative machines for a week, look at which event IDs produce the most volume, and tune the noisiest rules before rolling it out. Then do one thing many deployments skip: run a few known attacker-like actions on a test machine (a download with certutil, a new service, a scheduled task, an LSASS access by a test tool) and confirm each one appears in the log.

Reading the Sysmon log in an investigation

The log is C:\Windows\System32\winevt\Logs\Microsoft-Windows-Sysmon%4Operational.evtx. Collect it alongside the other event logs. To browse it on a live machine, open Event Viewer and expand the Microsoft, Windows and Sysmon folders under Applications and Services Logs. For quick work on a single exported file, PowerShell is enough:

Get-WinEvent -Path .\Sysmon.evtx -FilterXPath "*[System[EventID=1]]" |
  Where-Object { $_.Message -match 'certutil|mshta|rundll32' } |
  Select-Object TimeCreated, Message

For an investigation across hosts, a method works better than ad hoc searches:

  1. Check coverage first. Look at the first and last record, count events per ID, and read event 16 (configuration changes) and event 4 (service state). An event ID with no records at all was probably not configured.
  2. Start from a lead. An alert, a known-bad file name or address, a suspicious logon. Find the Sysmon events that mention it.
  3. Build the process tree. From any event 1, follow ParentProcessGuid up to something expected (explorer.exe, services.exe, a management agent) and ProcessGuid down to everything it started. GUIDs, unlike process IDs, are not reused.
  4. Follow the process sideways. Search every event type for that ProcessGuid: event 3 and 22 for network and DNS, 11 for files written, 13 for registry values set, 10 for access to other processes.
  5. Tie it to a logon. The LogonId in event 1 matches the 4624 that started the session, which gives the account's source address and logon type.
  6. Turn findings into indicators. Hashes, file paths, domains, addresses and registry keys from the tree become searches across every other host.

Checking whether Sysmon was tampered with

Attackers who find Sysmon often try to blind it. The signs:

SignWhere
Event 4 "Sysmon service state changed" to stoppedSysmon log
Event 16 with a new configuration hashSysmon log; compare with the deployed configuration
Event 255 errors around the time activity stopsSysmon log
A gap in Sysmon events while Security and System logs continueCompare record times across logs
fltmc unload of the Sysmon driver, sc stop, or Sysmon64 -u4688, Prefetch for fltmc.exe
The Sysmon log clearedEvent 104 in the System log

A gap is the most important of these. Sysmon going quiet on one host in the middle of an intrusion, while the same host's other logs keep recording, is a finding in itself.

What Sysmon would have added to a real case

Neither workstation in our Halden Freight lab case ran Sysmon, as is usual for an office of that size. Process creation auditing with command lines was on, and with PowerShell logging, the System log and the USN Journal, the investigation rebuilt the intrusion completely. It is still instructive to see what Sysmon would have added at each step, using the case's real events:

Step (HF-WS01, UTC)What the built-in sources recordedWhat Sysmon would have added
22:08:48 curl.exe downloads u.ps1 from 10.211.55.24688 command line; file creation in the USN JournalEvent 3 tying the connection to curl.exe; event 11 for the file write, with the same ProcessGuid
22:09:03 reg.exe adds Run value HFUpdate4688 command lineEvent 13 with the exact key and value data, attributed to reg.exe
22:10:02 HF Update Service installed7045 in the System log; sc.exe in 4688Events 12 and 13 for the service's registry keys (written by services.exe), and event 1 linking sc.exe back to the RDP session
22:10:09 Compress-Archive creates q4-close.zip4104 script block; USN creationEvent 11 for the archive, attributed to powershell.exe
22:10:22 curl.exe uploads the archive4688 command lineEvent 3 with the destination and port; SRUM gives bytes
22:14:16 PSReadLine history deletedUSN Journal deletionEvent 23 or 26 for the deletion; with event 23, a copy of the deleted file

The conclusion is useful in both directions. Sysmon would not have changed the findings, because process creation with command lines was on, and that one policy captures much of Sysmon's value. But it would have tied every file and registry change to its process directly, rather than by matching times, and kept a copy of the deleted history file. On hosts where 4688 is off, which is still the default, Sysmon is often the difference between knowing what ran and guessing from Prefetch.

Sysmon in Arcsentry

When a collection includes the Sysmon log, Arcsentry parses it like any other channel, and every field in its events becomes queryable by name. The AI investigator reads Sysmon events where a host has them and falls back on the built-in logs and file system artifacts where it does not, and each conclusion it reaches points to the record behind it. For how Sysmon events compare with the built-in ones, see the Windows event log analysis guide and the event ID reference.

Frequently asked questions

How do I install Sysmon?

Download Sysmon from Microsoft's Sysinternals site, then run Sysmon64.exe -accepteula -i sysmonconfig.xml from an elevated prompt with a configuration file. It installs a service and a driver and starts logging to Microsoft-Windows-Sysmon/Operational.

Where are Sysmon logs stored?

Sysmon writes to its own channel, Microsoft-Windows-Sysmon/Operational. On disk that is the file Microsoft-Windows-Sysmon%4Operational.evtx, in the same folder as the other Windows event logs (C:\Windows\System32\winevt\Logs).

What is the best Sysmon config?

There is no single best one. SwiftOnSecurity's sysmon-config is a well-commented baseline, and Olaf Hartong's sysmon-modular is easier to tune by technique. Start from one, test it on representative machines, tune the noisiest rules narrowly, and keep it under version control.

How do I update a Sysmon configuration?

Run Sysmon64.exe -c newconfig.xml from an elevated prompt. The change takes effect immediately and is recorded as event 16 in the Sysmon log.

Does Sysmon slow down computers?

With a tuned configuration the overhead is small on typical workstations. The main cost is log volume, especially from image loads (event 7), process access (event 10) and network connections (event 3), which is why configurations filter those most heavily.

Can I install Sysmon after an incident has started?

Yes, to monitor what the attacker does next, but it records nothing about the past. Collect existing evidence first, because installing software changes the host, and document when and how you installed it.

How we wrote this

Drafted with AI from evidence in our own lab, with Laura Pompeu responsible for the article. The evidence comes from Halden Freight office intrusion (Windows, two hosts), built and investigated in our lab, so every example can be checked against real records.

Sources

  1. Microsoft Learn: Sysmon (Sysinternals), Microsoft
  2. SwiftOnSecurity: sysmon-config, GitHub (community project)
  3. Olaf Hartong: sysmon-modular, GitHub (community project)
  4. Microsoft Learn: Get-WinEvent, Microsoft
Photo of Laura Pompeu
Laura Pompeu
Marketing Manager & Cybersecurity Content Strategist, Proven Data

Laura Pompeu is a Marketing Manager and Cybersecurity Content Strategist with 10+ years of experience across journalism, SEO, and digital marketing. She produces expert-level content on ransomware, incident response, and data recovery for technical and business audiences, and has led multinational content teams across global markets.

LinkedIn

See it on your own evidence. Free for 7 days.

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial