In short
- Sysmon is a free Microsoft Sysinternals tool that records process, network, file, registry and DNS activity in detail.
- Its value depends on the configuration file; start from a mature community configuration and tune it to your environment.
- Its records are useless unless they are collected centrally and reviewed.
Windows’ built-in security logs record events such as sign-ins and account changes, but they often don’t show which process started another process, which address it connected to or which file it created. Sysmon fills that gap. This article summarises how IT teams can install and configure Sysmon and use it for attack detection. For the built-in logs, first see our article on detecting attacks with Windows event logs.
Key events Sysmon records
| Event | What it records | Detection example |
|---|---|---|
1 | Process creation (command line, parent process, file hash) | Word or Excel launching PowerShell |
3 | Network connection | An unexpected process connecting to the internet |
7 | DLL load | Libraries loaded from suspicious locations (noisy, must be filtered) |
8 | Remote thread creation | Code injection into another process |
10 | Process access | Access to LSASS memory: an attempt to steal credentials |
11 | File creation | Executables dropped in the Startup folder or temp directories |
12 / 13 | Registry changes | Persistence through Run keys |
22 | DNS query | Queries to unknown or newly registered domains |
25 | Process tampering | In-memory image replacement (process hollowing) |
Installation
Only download Sysmon from Microsoft’s official Sysinternals page. Installation is done with a single command together with the configuration file:
# Run as administrator
Sysmon64.exe -accepteula -i sysmonconfig.xml
# To update the configuration later
Sysmon64.exe -c sysmonconfig.xml
# To see the configuration schema version in use
Sysmon64.exe -s
# To uninstall
Sysmon64.exe -u
Events appear under Applications and Services Logs › Microsoft › Windows › Sysmon › Operational. The default log size is small; increase it:
# Set the log size to 200 MB
wevtutil sl Microsoft-Windows-Sysmon/Operational /ms:209715200
The configuration file
Sysmon’s value depends on the XML configuration that decides what is recorded and what is filtered out. Rather than writing one from scratch, start from mature community-maintained configurations (e.g. SwiftOnSecurity sysmon-config or Olaf Hartong sysmon-modular) and adapt them to your environment. A simple example fragment records access to LSASS memory:
<Sysmon schemaversion="4.90">
<HashAlgorithms>SHA256</HashAlgorithms>
<EventFiltering>
<RuleGroup name="lsass-access" groupRelation="or">
<ProcessAccess onmatch="include">
<TargetImage condition="is">C:\Windows\system32\lsass.exe</TargetImage>
</ProcessAccess>
</RuleGroup>
</EventFiltering>
</Sysmon>
Take the schemaversion value for your Sysmon version from the output of Sysmon64.exe -s. Try the configuration on a test machine first and measure the event volume.
Mass deployment
- Group Policy: put Sysmon and the configuration file on a read-only network share and install it with a startup script; if Sysmon is already installed, the script should only update the configuration.
- Software deployment tools: it can be deployed as a package with Intune or similar tools.
- Version tracking: keep the configuration file under version control and record changes.
Querying events and detection examples
# Recent processes accessing LSASS (event 10)
Get-WinEvent -LogName "Microsoft-Windows-Sysmon/Operational" -FilterXPath "*[System[EventID=10]]" -MaxEvents 50 |
Select-Object TimeCreated, Message
# Processes started by Office applications (event 1)
Get-WinEvent -LogName "Microsoft-Windows-Sysmon/Operational" -FilterXPath "*[System[EventID=1]]" -MaxEvents 2000 |
Where-Object { $_.Message -match 'ParentImage: .*\\(WINWORD|EXCEL|POWERPNT|OUTLOOK)\.EXE' } |
Select-Object TimeCreated, Message
- Credential theft: processes other than known security and backup software accessing LSASS
- Macro attacks: Office applications launching cmd.exe, powershell.exe, wscript.exe or mshta.exe
- Persistence: new entries in the Run/RunOnce registry keys or the Startup folder
- Command and control: unusual processes connecting to external IPs at regular intervals
- Ransomware preparation: vssadmin, wbadmin or bcdedit being run
Central collection is essential: collect Sysmon events on a central server with Windows Event Forwarding (WEF) or a SIEM, and define alert rules for the situations above. Even if an attacker deletes the logs on one machine, the copy stays safe.
Conclusion
Although it is free, Sysmon is one of the tools that does most to increase attack visibility in Windows environments. With a mature configuration, central collection and a few well-chosen alert rules, it becomes possible to spot steps such as credential theft, macro attacks and persistence attempts early. At SistemON, we configure Sysmon for your environment, collect logs centrally and set up alert rules as part of our cyber security service.
Frequently Asked Questions
Does Sysmon affect performance?
With a well-tuned configuration, the impact is usually unnoticeable. If high-volume event types such as network connections (event 3) and DLL loads (event 7) aren’t filtered, log volume and resource use increase, so it is important to start from a mature, ready-made configuration.
Does Sysmon replace antivirus or EDR?
No. Sysmon only records; it doesn’t block or respond automatically. Its records need to be collected in a SIEM or log solution and reviewed with rules. Used alongside business endpoint protection, it increases visibility.
Should we install Sysmon on every computer?
The priority is domain controllers, servers and admin computers. If you can collect logs centrally, installing it on user computers as well lets you see the first steps of an attack.
Need help with this?
Let us review your infrastructure free for the first month and share a clear list of risks and priorities.