Convert Sigma Rules
-
Download Sigma rules from https://github.com/SigmaHQ/sigma
-
Copy the
Convert-SigmaToDetectionRule.psm1to the Windows VM -
Open a PowerShell ISE terminal and import the script as a module:
Import-Module -Force Convert-SigmaToDetectionRule.psm1 -
Run the script against the directory of Sigma YML rule files that you want to convert to Elastic Detection Rules:
Convert-SIGMAToDetectionRule -Files $(Get-ChildItem <PATH_TO_SIGMA_RULES> -Recurse -Include *yml) -
The default filename for the output detection rules will be:
detection_rules.ndjson
