Skip to content

v2.1.1

Latest

Choose a tag to compare

@thomaspatzke thomaspatzke released this 22 Nov 09:11

Security Fixes

  • GHSA-2j5x-hjg8-c64g – Jinja sandbox escape via Context.call leads to command execution (High):
    Templates in QueryTemplateTransformation and TemplateFinalizer could reach the internal
    j2template attribute, get a Jinja Context through Template.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.call is now blocked as a
    callable, and templates can no longer access the j2template attribute.
    Reported by @Artur12555.
  • GHSA-49g2-8x9w-v6rm – ReDoS in sigma.matching: policy regex engine not applied to MatchCompiler (Moderate):
    MatchCompiler compiled regular expressions from rules (|re values and wildcards) with
    Python's backtracking re engine and ignored the configured SigmaPolicy. 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 default SafePolicy). SigmaMatcher
    takes a policy argument and otherwise uses the pipeline's policy.
    Behaviour change: under SafePolicy, 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

Full Changelog: v2.1.0...v2.1.1