Skip to content

fix(validation): pin pysigma-backend-sqlite back to 2.0.0 — 2.1.0 nee… - #361

Merged
Gerrrt merged 2 commits into
mainfrom
fix/zircolite-sqlite-pin
Oct 14, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
fix/zircolite-sqlite-pin

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

What & why

docker/validation/zircolite-constraints.txt pins pysigma-backend-sqlite back to 2.0.0, and renovate.json holds it below 2.1.0 until the rest of the Sigma toolchain crosses to pySigma 2.

#354 bumped the backend to 2.1.0 as a routine minor. 2.1.0 is the backend's pySigma-2 release (pysigma>=2.0.0,<3.0), and the same constraints file pins pysigma==1.5.1, so the set became a contradiction. pip install -c … -r .zircolite/requirements.txt stops at ResolutionImpossible, and sigma rules fire on synthetic event logs has been red on main since 2026-10-10 — on the #354 merge commit, on #357, and on anything else that would have run it — with 0 of 123 rows executed. Nothing caught it: main's ruleset requires sigma validate + compile but neither validation-plane job, and the job is path-filtered so the Core syncs that followed never re-ran it. The file's own prose still said "the backend is pinned at 2.0.0"; Renovate moved the pin out from under the comment.

With 2.0.0 (pysigma>=1.5.1,<2) the set resolves to pySigma 1.5.1 / sqlite 2.0.0 / pipeline-sysmon 2.0.0 / pipeline-windows 2.0.1, and run-sigma-validation.sh against zircolite v3.7.6 passes 123/123 (93 with a true-negative) locally.

Which layer does this belong to?

  • It is not in core/ — that tree is vendored from
    dotfiles-core and is overwritten on
    the next sync. Identical-everywhere config is fixed upstream.
  • Changes with the OS (packages, paths, an ID= gate) belong in the matching
    OS repo, not here. Changes with the analyst → defense/, detections/.

If you touched a detection

No rule, fixture, or generated artifact changed; only the validation plane's pip constraints, renovate.json, and CHANGELOG.md.

Environment data never enters this repo

  • No real hostnames, internal IPs, user names, credentials, or captured telemetry
    from a live estate. Fixtures are synthetic or vendor-documented — see
    docker/validation/check-fixture-provenance.sh.

Checks

  • make lint — not run locally (no npx on the box); check-readme-gates.sh and check-readme-tables.sh pass, renovate.json parses. CI's lint leg is the real verdict.
  • make test — not run locally.
  • pip install --dry-run with the new constraints + zircolite v3.7.6's requirements resolves; the host-plane run passes 123/123.

Notes

#353 (pysigma 2.0.1) stays open and red on purpose; see the comment there. sigma-cli 3.1.0 and every pinned backend and pipeline still declare pysigma<2 (upstream "Support pySigma 2.0" PRs are drafts as of 2026-10-06), and pysigma 2's google-re2 dependency has no Python 3.15 wheel. The grouped major PR picks the releases up and goes green by itself. The new Renovate rule says in its description to delete it in that same PR.

Follow-up worth its own decision: the ruleset on main requires sigma validate + compile but not the two sigma-validation.yml jobs, which is how a red merge got through. That workflow is path-filtered on PRs, so it needs to run unfiltered (as sigma.yml already does) before its jobs can be required. Note #353 has GitHub auto-merge enabled: once sigma validate + compile goes green upstream it will squash even if the host-plane job is still red.

🤖 Generated with Claude Code

…ds pysigma 2 (#354)

2.1.0 is the backend's pySigma-2 release (pysigma>=2.0.0,<3.0) and the same
constraints file pins pysigma==1.5.1, so #354 made the set unresolvable: pip
stopped at ResolutionImpossible and `sigma rules fire on synthetic event logs`
has been red on main since 2026-10-10 with 0/123 rows run. With 2.0.0
(pysigma>=1.5.1,<2) it resolves and passes 123/123 against zircolite v3.7.6.

renovate.json holds the backend below 2.1.0 so it moves only with the pysigma
major in the grouped toolchain PR (#353, which stays open: sigma-cli and every
pinned backend/pipeline still declare pysigma<2, and pysigma 2's google-re2
has no Python 3.15 wheel). Delete that rule in the PR that takes pysigma 2.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 14, 2026 19:02

Copilot AI 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.

🟢 Approval recommended

The dependency pin and Renovate guard consistently resolve the documented pySigma version conflict.

0 open findings

What changed in this PR

Restores compatibility in the Sigma validation toolchain by reverting the SQLite backend to pySigma 1.x compatibility.

Changes:

  • Re-pins pysigma-backend-sqlite to 2.0.0.
  • Prevents Renovate from proposing incompatible 2.1.x updates.
  • Documents the regression and upgrade constraint.
File Description
renovate.json Holds the backend below 2.1.0.
docker/​validation/​zircolite-constraints.txt Restores the compatible 2.0.0 pin.
CHANGELOG.md Records the validation failure and resolution.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Gerrrt added a commit that referenced this pull request Oct 14, 2026
…e can run (#351)

The "sigma rules fire on synthetic event logs" job on this PR dies at pip install:
ResolutionImpossible, because the committed constraints pin pysigma-backend-sqlite
2.1.0 (the backend's pySigma-2 release) beside pysigma==1.5.1. #354 bumped it alone
and the job has been red on main since, with 0/123 rows executed — so the three new
4698 true positives and two true negatives in this PR could not be proven on CI.

Same one-line pin #360 and #361 carry; the full rationale and the Renovate cap live
there, and this line merges identically under either. Verified: a fresh venv built
from this file resolves (pysigma 1.5.1, backend 2.0.0) and run-sigma-validation.sh
passes 123/123 from it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Gerrrt added a commit that referenced this pull request Oct 14, 2026
…ree filter_ci stubs, 4698 LOLBins gated (#359)

* fix(sigma): act on the #351 detection review — /identity anchored, three filter_ci stubs, 4698 LOLBins gated (#351)

The weekly review found no coverage holes and ten scoping calls. Each was checked
against the rule body, the gates and the fixtures. Seven adopted, two documented as
stated blind spots, four sub-proposals declined in the rule bodies so they are not
re-proposed next cycle.

What each change would have missed, or stops missing:

- linux/ssh_private_key_read: `name|contains: '/identity'` matched every read under a
  directory named identity* (~/identity-service/config.yml) - a standing FP stream on a
  high rule. Now '/.ssh/identity'. The TN fixture gains that exact near-miss, which the
  old value fired on.
- cloudflare/cloudflare_api_token_created, terraform/tfc_token_backdoor,
  gitlab/gitlab_token_backdoor: bare `condition: selection` while every folder sibling
  carried a DEPLOY-REQUIRED filter_ci, on actions the IaC provider performs on every
  apply. Each gets the sibling's stub, a _ci_suppressed manifest row and a README
  deploy-time row. aws_login_profile_created declined in-rule (actor != target is the
  triage criterion; medium is a triage surface).
- cloud/entra_illicit_consent_grant: comment + falsepositives record that the
  unanchored TargetResources allowlist hides a grant to a different app whenever a
  sanctioned id appears anywhere in the event, and name the Sentinel paths to anchor on.
- lateral_movement/rdp_hijack_tscon_4688: declined, reworded. The review read the arms
  the other way round - the /dest: arm is channel-independent and deliberately not
  Image-pinned; the Sysmon-only arm is the no-/dest interactive form.
- persistence/scheduled_task_suspicious_4698: \regsvr32.exe and \rundll32.exe fired at
  high as bare substrings. They now require a co-occurring attacker-controlled target
  (URL/scriptlet, UNC, user-writable dir); mshta stays bare. Two traps written into the
  block: a bare 'http' matches the <Task xmlns="http://..."> root of every real 4698 and
  would have collapsed the AND (synthetic fixtures omit the root; the new TN carries
  it), and a UNC prefix is '\\\\' because \ is Sigma's escape. Neither LOLBin had a
  fixture before; three TPs and two TNs added.
- lateral_movement/passthehash_4624_fanout: filter_machine stated as a coverage
  decision (captured machine-account hash reuse never reaches the count) and why Sigma
  cannot narrow it.
- impact/service_stop_burst: ' stop' -> ' stop ' on the net/sc arms (the anchor the
  protected-services sibling uses); a bare ' stop' also matched ' stopped' and padded the
  distinct-CommandLine burst. Cmdlet anchoring declined in-rule (piped `| Stop-Service`
  has no trailing target). Precedence allowlist row re-traced.
- impact/account_access_removal_4725: declined in-rule - 4724 pooled on purpose; the
  bulk forced reset that trips it is filter_identity_admins' job.
- registry/harbor_image_pushed_trusted_tag: retitled "Harbor artifact push or tag create
  (supply-chain triage surface)" to match the logic. File name and pairing unchanged.
- google_workspace/gws_external_mail_forwarding: verified against the Reports API
  appendix; service: user_accounts is correct. Recorded in a logsource comment.

Ledger: 124 rules, 0 added. coverage-layer.json, COVERAGE.md and HTPX-COVERAGE.md
unchanged; all three SIEM forms regenerated.

Checks run locally: sigma check, make drift, make methodology, make validation-gates,
make test, make attack-tags, make htpx, run-cloud-validation (47/47),
run-sigma-validation 123/123 (zircolite v3.7.6, with pysigma-backend-sqlite pinned to
2.0.0 locally because the committed constraints file does not resolve since #354 - a
pre-existing red gate, not touched here). The three new 4698 TPs and two TNs were also
run one event at a time: all three fire, both stay silent, and the rooted TN fires the
moment '>http' is loosened to 'http'. make markdown skipped - no npx on this host; the
README rows are padded to the header widths by hand.

Closes #351

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(validation): pin pysigma-backend-sqlite to 2.0.0 so the host plane can run (#351)

The "sigma rules fire on synthetic event logs" job on this PR dies at pip install:
ResolutionImpossible, because the committed constraints pin pysigma-backend-sqlite
2.1.0 (the backend's pySigma-2 release) beside pysigma==1.5.1. #354 bumped it alone
and the job has been red on main since, with 0/123 rows executed — so the three new
4698 true positives and two true negatives in this PR could not be proven on CI.

Same one-line pin #360 and #361 carry; the full rationale and the Renovate cap live
there, and this line merges identically under either. Verified: a fresh venv built
from this file resolves (pysigma 1.5.1, backend 2.0.0) and run-sigma-validation.sh
passes 123/123 from it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(sigma): legacy ssh key gets its own endswith selection; each 4698 LOLBin case its own row (#351)

Two review findings on #359, both right:

- ssh_private_key_read: '/.ssh/identity' under name|contains still took
  ~/.ssh/identity-service/config.yml while the description claimed an exact match.
  The SSHv1 key is now selection_legacy with name|endswith, ORed with the id_* list
  under the shared key term. That makes the Splunk form `(a) OR (b) NOT (filter)`, so
  the binding is traced in splunk-precedence-allowlist.tsv: key gates both branches and
  the reader/pubkey filter covers both. Proven by a single-event row (tar reading
  /root/.ssh/identity) and two near-misses on the TN (identity-service/ inside and
  outside .ssh/).
- scheduled_task_suspicious_4698: the three LOLBin true positives sat in the aggregate
  TP file, which passes when ANY event fires - the existing 21 already did, so the new
  arms could go silent unnoticed. Each is now its own single-event row
  (lolbin-userdir, -scriptlet, -unc) against a dedicated LOLBin TN file carrying the
  real <Task xmlns> root. The aggregate files go back to what they held before.

run-sigma-validation.sh 127/127 (zircolite v3.7.6); drift, methodology,
validation-gates and tests green.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
@Gerrrt
Gerrrt enabled auto-merge (squash) October 14, 2026 19:28
# Conflicts:
#	CHANGELOG.md
#	docker/validation/zircolite-constraints.txt
@Gerrrt
Gerrrt merged commit c8d03eb into main Oct 14, 2026
18 checks passed
@Gerrrt
Gerrrt deleted the fix/zircolite-sqlite-pin branch October 14, 2026 19:35
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.

2 participants