Repository navigation
Security Fixes
- GHSA-2j5x-hjg8-c64g – Jinja sandbox escape via
Context.callleads to command execution (High):
Templates inQueryTemplateTransformationandTemplateFinalizercould reach the internal
j2templateattribute, get a JinjaContextthroughTemplate.new_context()and use
Context.call()to call pySigma methods that the sandbox blocks (e.g.pipeline.from_yaml).
This bypasses the fix for GHSA-h72c-mm3x-7r8c from 2.0.0.Context.callis now blocked as a
callable, and templates can no longer access thej2templateattribute.
Reported by @Artur12555. - GHSA-49g2-8x9w-v6rm – ReDoS in
sigma.matching: policy regex engine not applied toMatchCompiler(Moderate):
MatchCompilercompiled regular expressions from rules (|revalues and wildcards) with
Python's backtrackingreengine and ignored the configuredSigmaPolicy. A rule like
(a+)+$together with a crafted field value could stall the matcher. All patterns are now
compiled with the policy's regex engine (RE2 under the defaultSafePolicy).SigmaMatcher
takes apolicyargument and otherwise uses the pipeline's policy.
Behaviour change: underSafePolicy, rules that use backreferences or lookaround now raise
an error when the matcher is created.
Reported by @Gideon145.
What's Changed
- Add architecture overview diagram to documentation by @thomaspatzke in #622
- Generalize agent instructions for all AI coding agents by @thomaspatzke in #623
- Bump diskcache-community from 5.8.3 to 5.8.5 by @dependabot[bot] in #619
- security: apply SigmaPolicy regex engine in sigma.matching by @thomaspatzke in #624
- Report non-mapping YAML documents as SigmaCollectionError by @hakarrr in #618
- Bump types-pyyaml from 6.0.12.20261103 to 6.0.12.20261113 by @dependabot[bot] in #620
- Report duplicate rule names when validating collections by @bingdongni in #621
- Add Sigma filters guide and filter docstrings by @MrCyberDuck in #616
New Contributors
- @hakarrr made their first contribution in #618
- @bingdongni made their first contribution in #621
Full Changelog: v2.1.0...v2.1.1