WARNING This project is still under development
The purpose of this project is to test a set of event log field values against a Sysmon configuration to verify if they would be included or excluded.
None!
Script is based on the native XML parser Element Tree xml.etree.ElementTree
which is a simple and fast implementation.
xml.dom.minidom
is also used to prettyfy the output file.
Put your Sysmon XML configuration in sysmonconfig-export.xml
or use another filename but update the sysmon_conf_tester.py
to import your file instead.
Write your tests in the tests_input.xml
file. Structure is similar to the Sysmon configuration file:
<Tests>
<NetworkConnect>
<DestinationPort>22</DestinationPort>
</NetworkConnect>
<ProcessCreate>
<CommandLine>C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\Ngen.exe args1 args2</CommandLine>
</ProcessCreate>
</Tests>
Results will be outputed in a XML file, sorted by match type. none
match type is used when the value did not match any rule.
Note that a field value can match several match types.
Romain Durban ([email protected])
The project is licensed under MIT License