PermitANY

Security · python · 25 copies

Sigma Rule Validator

Validates Sigma detection rules offline and catches the defects that make a rule silently dead: a condition referencing a selection that does not exist, a mistyped logsource category, a field name with the wrong case, an invalid modifier. Each of those converts cleanly to SPL or KQL and then matches nothing forever — no tool errors, no alert fires, and the coverage matrix still shows green. Also flags quality problems a syntax checker passes: exclusions built on a bare path an attacker can write to, falsepositives left as Unknown, unused selection blocks, aggregations with no timeframe, and duplicate UUIDs across a library. Findings are split ERROR / WARNING / INFO and exit 2 on an error, so it can gate a detection-as-code pipeline.

  • Linux
  • Windows
  • macOS
$pip install "pyyaml>=6.0"
terminal

Tags

sigmadetection-engineeringsiemblue-teamdetection-as-codevalidationcicdmitre-attack