Skip to content

build(deps): bump github.com/cawalch/go-yara from 0.10.0 to 0.11.1 in the go-yara group - #559

Open
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/go_modules/dev/go-yara-2b43f231f1
Open

dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/go_modules/dev/go-yara-2b43f231f1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the go-yara group with 1 update: github.com/cawalch/go-yara.

Updates github.com/cawalch/go-yara from 0.10.0 to 0.11.1

Release notes

Sourced from github.com/cawalch/go-yara's releases.

Release v0.11.1

What's Changed

Full Changelog: cawalch/go-yara@v0.11.0...v0.11.1

Release v0.11.0

What's Changed

... (truncated)

Changelog

Sourced from github.com/cawalch/go-yara's changelog.

[v0.11.1] - 2026-11-19

Performance

  • Dense-root & heavy-regex prefilter verification: Stream sorted step-1 prefilter candidate ranges in $O(1)$ memory without intermediate slice growth (#618); reject non-empty fullword regex candidates before Thompson VM execution (#619); deduplicate identical StringKindHex atoms in sharedAutomaton with fanout (#620); and pre-filter hex candidates using atom-adjacent definite bytes, Tokens[0], and a 1-byte fanout discriminator (hexFanoutDiscriminator) (#622). On Apple M3 Max (-p 4), 256 MB dense-root scanning improved from 28 MB/s (1.82 GiB RSS) in v0.11.0 to 144–145 MB/s (305–307 MiB RSS), and 100 MB Bitcoin/JWT regex scanning improved from 41–42 MB/s to 107–113 MB/s.

[v0.11.0] - 2026-11-19

Added

  • PE overlay fields: Expose pe.overlay.data_offset, pe.overlay.data_size, and pe.overlay.certificate_size (#595).

Changed

  • Updated github.com/cawalch/go-pe dependency to v0.1.0 (#574).
  • Unified rule finalization across contiguous, streaming, and block scanners (#578), removed non-compact MatchContext duplication (#576), consolidated peSchema construction (#583), and replaced 15 serialized*Entry structs with generic serializedEntry[K, V] (#584).

Fixed

  • Preserve complete nested first alternatives in the hex byte representation exposed by CompiledRule.Strings; matching continues to use the full typed pattern (part of #542).

  • Memoize failed hex matching states across converging jumps and alternatives to prevent exponential re-exploration of nonmatching tails, preserving successful endpoint order and callback behavior (part of #542).

  • Cancellable SIMD Teddy scans no longer skip candidates at or beyond the 1 MiB cancellation window. Kernel searches are bounded between cancellation checks and retain overlap for prefixes crossing window boundaries (part of #540).

Performance

  • Measured release gains (v0.10.1 → v0.11.0, Apple M3 Max, benchstat n=6 p=0.002):

    • 2,000-rule compilation (LargeCorpusCompile/rules=2000): 143.64 ms → 39.92 ms (-72.2%), 390.16 MiB → 43.48 MiB (-88.9%), 762.3k → 342.4k allocs (-55.1%).
    • 2,000-rule serialization (LargeCorpusSerialization): Marshal 15.73 ms → 13.26 ms (-15.7%), 41.89 MiB → 35.38 MiB (-15.5%), 66.68k → 24.98k allocs (-62.5%); Unmarshal 125.06 ms → 23.74 ms (-81.0%), 536.88 MiB → 44.40 MiB (-91.7%), 452.1k → 386.3k allocs (-14.6%).
    • 10K-rule High-EPS scanning (HighEPSSelectivity / HighEPSParallel10K): literal/dense -43.9% (637.8 → 357.9 ns), mixed/dense -41.9% (700.2 → 406.8 ns), regex/dense -39.7% (707.0 → 426.5 ns), regex/near_miss -35.2% (514.3 → 333.1 ns), HighEPSParallel10K/*/dense -35.4% to -36.1%, and -15.4% geomean (+18.2% throughput) across the 19-benchmark High-EPS suite.
  • Batch PE import/export detail objects and their lazy field state, reducing per-symbol allocations; reuse parser-owned section names when they already match YARA semantics while preserving special-name snapshots (part of #544).

  • Cache formatted certificate fields per certificate within each PE scan, sharing results across signature, certificate-array, and chain views while preserving undefined results and scan isolation (part of #544).

  • Release Aho-Corasick construction states after the flat transition table is built, retaining only per-state output ranges; compiled automaton state memory drops ~66% for 16-bit tables and ~50% for 32-bit tables (part of #538).

  • Defer per-rule automaton construction to the first local per-rule search: CompileRule and UnmarshalCompiledProgram store pattern metadata only, and normal shared-automaton scans never materialize per-rule tries. Unmarshaling a 2,000-rule program drops from 126.7 ms / 537 MiB to 30.9 ms / 78.6 MiB per operation and compiling from source roughly halves (part of #538).

  • Stop duplicating every automaton pattern buffer at insertion time and drop the redundant exported acAutomaton.Strings compatibility slice; GetStrings and GetPatternData remain the owned accessors (part of #538).

  • Reuse regex atom-hit and candidate buffers across scans, share range and sort/deduplication helpers, and defer bounded-verification maps until an accepted match. Bound retained candidate scratch while preserving fallback limits and match ordering (completes #542).

  • Prepare hex scan metadata once per immutable compiled program, including after deserialization, avoiding repeated token analysis, XOR range expansion, and differential-anchor allocation; standalone FindHexMatches continues to observe caller edits (part of #542).

  • Derive hex byte representations from parsed tokens instead of parsing twice, remove the legacy parser, and share plain/XOR scan loops while preserving match order (part of #542).

  • Replace per-branch hex token concatenation with shared tail continuations and avoid scratch allocation for linear anchored scans; reuse branch classification within each scan (part of #542).

... (truncated)

Commits
  • 39e5a5c docs: prepare v0.11.1 patch release notes (#624)
  • 4949cfe docs: update cross-engine comparison table and Unreleased changelog for #618-...
  • 82211a5 perf(hex): add 1-byte atom-adjacent discriminator for large hex fanout groups...
  • 9900b50 perf(compiler): deduplicate identical hex atoms in sharedAutomaton with fanou...
  • 39de9d0 perf(regex): reject non-empty fullword regex candidates before VM execution (...
  • ff32dfa docs: refresh v0.11.0 refs, trim verbose notes, and compare libyara/YARA-X (#...
  • 81e346b perf(compiler): stream sorted prefilter candidate ranges without slice growth...
  • 693c548 docs: prepare v0.11.0 release site notes and README (#616)
  • ecfb69d docs(changelog): prepare v0.11.0 release notes (#615)
  • 93904d0 perf(regex,semantic,compiler): reuse regex.Parser, embed lexer, and reuse con...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Devin Review

Bumps the go-yara group with 1 update: [github.com/cawalch/go-yara](https://github.com/cawalch/go-yara).


Updates `github.com/cawalch/go-yara` from 0.10.0 to 0.11.1
- [Release notes](https://github.com/cawalch/go-yara/releases)
- [Changelog](https://github.com/cawalch/go-yara/blob/main/CHANGELOG.md)
- [Commits](cawalch/go-yara@v0.10.0...v0.11.1)

---
updated-dependencies:
- dependency-name: github.com/cawalch/go-yara
  dependency-version: 0.11.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-yara
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from Warhammer4000 as a code owner November 23, 2026 00:10
@dependabot dependabot Bot added the dependencies Dependency updates (exempt from the changelog check) label Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5ce6856a-8549-479c-900b-b73327bc90c0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

Autoapprover left this pull request for human review.

  • Risk: An engine upgrade mistake could make agents silently miss threats during file scans.

Comment thread go.mod

require (
github.com/cawalch/go-yara v0.10.0
github.com/cawalch/go-yara v0.11.1

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Stale YARA version pin blocks CI

The upgrade leaves pinnedVersion at v0.10.0, so TestPinnedVersionMatchesGoMod fails CI. Builds without dependency metadata also keep using the old YARA version in their scan cache keys.

Learn more

SentinelGo keeps a fallback YARA version for builds that do not expose the dependency in EngineVersion. The required test suite runs TestPinnedVersionMatchesGoMod, which compares that fallback with the module requirement. rulesKey also uses the resolved version to distinguish scan results produced by different engine versions.

Example: The module requires v0.11.1, but the test reads v0.10.0 from the fallback and fails. In a build without dependency metadata, the same mismatch leaves the YARA cache key unchanged when the rulesets are unchanged.

Recommended fix: Update pinnedVersion to v0.11.1 in the same PR and run go test ./internal/yara/engine.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency updates (exempt from the changelog check)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants