Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.21 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.21 KB

Sysmon Config Tester

WARNING This project is still under development

Purpose

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.

Dependencies

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.

Usage

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.

Author

Romain Durban ([email protected])

License

The project is licensed under MIT License