This is a Microsoft Sysinternals Sysmon configuration repository, set up modular for easier maintenance and generation of specific configs.
Note: I do recommend using a minimal number of configurations within your environment for multiple obvious reasons, like; maintenance, output equality, manageability and so on.
Big credit goes out to SwiftOnSecurity for laying a great foundation and making this repo possible! sysmonconfig-export.xml.
Equally a huge shoutout to Roberto Rodriguez for his amazing work on the ThreatHunter-Playbook and his contribution to the community on his blog.
Final thanks to Matt Graeber for his PowerShell Modules, without them, this project would not have worked as well.
Pull requests / issue tickets and new additions will be greatly appreciated!
I strive to map all configurations to the ATT&CK framework whenever Sysmon is able to detect it. A current ATT&CK navigator map of all linked configurations is found here
I highly recommend looking at the configs before implementing them in your production environment. This enables you to have as actionable logging as possible and as litte noise as possible.
Install the PowerShell modules from PSSysmonTools
git clone https://github.com/mattifestation/PSSysmonTools.git
cd PSSysmonTools
Import-Module .\PSSysmonTools.psm1
You will need to install and observe the results of the configuration in your own environment before deploying it widely. For example, you will need to exclude actions of your antivirus, which will otherwise likely fill up your logs with useless information.
git clone https://github.com/olafhartong/sysmon-modular.git
cd sysmon modular
Get-ChildItem -Path . -Filter *.xml -Recurse -ErrorAction SilentlyContinue | Merge-SysmonXMLConfiguration -ReferencePolicyPath .\baseconfig.xml | Out-File sysmonconfig.xml
Optionally you can omit the comments from the merged config with the “-ExcludeMergeComments” switch.
You can test your config if it's schema compliant
Test-SysmonConfiguration .\sysmonconfig.xml
This repository also was made available within SysmonShell a great tool by Nader Shalabi
Run with administrator rights
sysmon.exe -accepteula -i sysmonconfig.xml
Run with administrator rights
sysmon.exe -c sysmonconfig.xml
- Link more indicators to Mitre ATT&CK techniques.
- Add / Improve comments
- Extend, extend, extend.