You can create tailored configurations by specifying which rules to include or exclude using the Merge-AllSysmonXml function.
List Formats
- Specific Files: Provide the relative path to the XML file (e.g.,
1_process_creation\exclude_adobe_acrobat.xml). - Entire Directories: Provide the directory name to include/exclude an entire event family (e.g.,
1_process_creation).
PowerShell Commands
Find available rules:
Use Find-RulesInBasePath to identify candidate XML files based on regex patterns.
Find-RulesInBasePath -BasePath C:\users\sysmon\sysmon-modular\ -OutputRules | Out-File available_rules.txt
Merge with Include List:
Merge-AllSysmonXml -AsString -BasePath C:\Users\sysmon\sysmon-modular\ -IncludeList C:\users\sysmon\sysmon-modular\include_rules.txt
Merge with Exclude List:
Merge-AllSysmonXml -AsString -BasePath C:\Users\sysmon\sysmon-modular\ -ExcludeList C:\users\sysmon\sysmon-modular\exclude_rules.txt
Note: The -BasePath must be the full absolute path to the sysmon-modular directory.