Skip to content

feat: add KQL output and CI validation for Sigma rules - #1

Merged
finsecguy merged 1 commit into
mainfrom
feat/kql-ci
Nov 22, 2026
Merged

finsecguy merged 1 commit into
mainfrom
feat/kql-ci

Conversation

@finsecguy

Copy link
Copy Markdown
Owner

Summary

  • Generate Microsoft Sentinel and Defender KQL with pySigma and pysigma-backend-kusto 1.0.1 (scripts/build_kql.py, pipelines/sigmafin_kusto.yml, output under build/kql/). The layout matches the Splunk build: support rules are not written alone, and correlation rules the backend cannot convert are listed in scripts/policy.yml. Generated files stay uncommitted because build/ is gitignored, the same as SPL. CI uploads them as kusto-kql.
  • CI (.github/workflows/ci.yml) keeps permissions: contents: read, pins actions to commit SHAs, runs sigma check --fail-on-issues --fail-on-error, and requires both SPL and KQL conversion to succeed. sigma check reported no rule errors.
  • Add CHANGELOG.md with a v0.1.0 entry and a README section on KQL usage (Sentinel tables, Defender table swap, bracket quotes for dotted fields).
  • Prepare a SigmaHQ contribution in docs/sigmahq-submission.md and apply the convention fixes in this repo. The three m365_* finance rules are renamed to microsoft365_*, and attack.mitre.org links are removed from their references (techniques stay in tags). Not submitted.

Test plan

  • sigma check --fail-on-issues --fail-on-error rules
  • python scripts/check_metadata.py
  • python scripts/check_no_em_dash.py
  • python scripts/gen_docs.py --check
  • python scripts/build_spl.py
  • python scripts/build_kql.py
  • python -m pytest -q tests (183 passed)
Open in Web Open in Cursor 

Generate Microsoft Sentinel and Defender KQL with pySigma and
pysigma-backend-kusto, in the same layout as the Splunk build.
Pin CI actions by commit SHA, run sigma check, and require both
SPL and KQL conversion to succeed. Add a v0.1.0 changelog, a KQL
usage section, and SigmaHQ filename and reference fixes for the
Microsoft 365 finance rules.
@finsecguy
finsecguy merged commit b6b2829 into main Nov 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant