Path: blob/master/tutorials-and-examples/example-notebooks/SigmaRuleImporter.ipynb
3253 views
Import and convert Neo23x0 Sigma scripts
This notebook is a is a quick and dirty Sigma to Log Analytics converter. It uses the modules from sigmac package to do the conversion.
Only a subset of the Sigma rules are convertible currently. Failure to convert could be for one or more of these reasons:
known limitations of the converter
mismatch between the syntax expressible in Sigma and KQL
data sources referenced in Sigma rules do not yet exist in Microsoft Sentinel
The sigmac tool is downloadable as a package from PyPi but since we are downloading the rules from the repo, we also copy and import the package from the repo source.
After conversion you can use an interactive browser to step through the rules and view (and copy/save) the KQL equivalents. You can also take the conversion results and use them in another way (e.g.bulk save to files).
The notebook is all somewhat experimental and offered as-is without any guarantees
Download and unzip the Sigma repo
Note that this can take some time to complete
Check that we have the files
You should see a folder with folders such as application, apt, windows...
Convert Sigma Files to Log Analytics Kql queries
Display the results in an interactive browser
Note: in order to execute a query from the browser, run the cells in the "Execute query" section first. Then come back to the browser.
Click the Execute query button below to run the currently displayed query
Notes:
To run the queries, first authenticate to Microsoft Sentinel
If you added a date filter to the query set the date range below in the control below