Security

What is Sysmon?

Sysmon (System Monitor) is a free Microsoft Sysinternals tool that logs detailed Windows activity, such as process creation and network connections.

What is Sysmon?

Sysmon, short for System Monitor, is a free tool in Microsoft's Sysinternals suite that records security-relevant activity on Windows machines in far more detail than the built-in logs. It installs as a system service backed by a kernel driver, begins recording early in the boot process and keeps running across reboots. Everything it captures goes to its own event log channel, Microsoft-Windows-Sysmon/Operational, where Event Viewer, Windows Event Forwarding or a SIEM agent can pick it up.

Sysmon is mainly an observer. Recent versions can be set to stop executable files from being written to chosen folders, but it doesn't kill processes, quarantine files or raise alerts by itself. Its value is the data it produces, which analysts and detection rules then search.

The event IDs analysts use most

Event IDWhat it recordsWhy it helps
1Process creation, with the full command line, parent process, user and file hashesShows exactly what ran and what launched it
3Network connection, with the process, addresses and portsTies a connection to the program that made it
7A DLL or other image loaded into a processExposes DLL side-loading and unusual modules
8CreateRemoteThread: one process starting a thread inside anotherA common sign of code injection
10One process opening another, such as LSASSCatches credential theft tools reading LSASS memory
11File createdShows dropped payloads and staged data
12 to 14Registry keys and values created, deleted, changed or renamedReveals persistence such as Run keys
22DNS query, with the process that made itLinks lookups of suspicious domains to a program

How Sysmon is configured

Sysmon is driven by an XML configuration file that says which events to record and which to filter out. Logging every DLL load and every connection on a busy server creates huge volume, so most organizations start from a community-maintained baseline configuration and tune it: exclude noisy, known-good activity and keep the areas attackers tend to touch. The same binary installs and updates it. sysmon64.exe -accepteula -i sysmonconfig.xml installs the service with a configuration, and sysmon64.exe -c sysmonconfig.xml loads a revised one. A Linux version also exists and writes to syslog, though Windows is where Sysmon is most widely deployed.

Example: a malicious macro in the logs

A user opens an invoice attachment, and moments later the SIEM receives this Sysmon event from the workstation:

Event ID 1: Process Create

ParentImage: C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE

Image: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

CommandLine: powershell.exe -nop -w hidden -enc SQBFAFgA...

User: CORP\tmorgan

Word has no reason to start a hidden PowerShell window with an encoded command. A few seconds later, event 3 shows the same PowerShell process connecting to an unfamiliar address on port 443, and event 11 shows a new executable written to the user's AppData folder. Three events link the attachment, the script, the outbound connection and the dropped payload, and the hashes in event 1 can be checked against threat intelligence.

Sysmon vs. Windows Security logs and EDR

  • Windows Security log: event 4688 also records process creation when auditing is enabled, and it captures the command line only if a separate policy setting is turned on. Sysmon adds file hashes, parent command lines and per-process network and DNS detail that the built-in auditing lacks or records less conveniently.
  • EDR: collects similar telemetry but also analyzes it, raises alerts and can respond by killing a process or isolating the host. Sysmon is a free sensor with no alerting, analysis or incident response of its own.
  • SIEM: aggregates and correlates logs from many sources. Sysmon is one of the sources a SIEM ingests, not a replacement for it.

Sysmon on the CompTIA Security+ exam

Sysmon fits SY0-801 objective 4.8, which covers the data sources that support an investigation, including endpoint logs. Expect it as an example of an endpoint log source. When a scenario asks which data would show the command line a process ran with, or which program opened a suspicious connection, endpoint logs such as Sysmon are the answer, not firewall logs or NetFlow, which see traffic but not the process behind it. Don't mistake it for an EDR product: Sysmon records activity but doesn't analyze it, alert on it or respond to it. Its logs also help only if they leave the host, so forwarding to a SIEM is part of any sensible deployment.

Studying for CompTIA (Security)?

ExamWizardz turns the official objectives into a guided study plan — with practice tests, realistic PBQs, and a readiness score. Start free.

Start studying free

Related terms