Skip to content

X-Ray: stop claiming XOR loops; print only the repeated indexed XOR it detects (Part of #7187) - #7242

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7187-20261031T0235Z
Oct 31, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7187-20261031T0235Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7187. Fixes the XOR claim: the tool now prints only what it can detect.

Checklist: done [c:63c3b707]

What

SecurityLens.bitwise_ops matches 3+ repeated buf[i] ^= k; statements (plus an odd a ^ b c ^ d form). It does not match a plain XOR decode loop or an a ^ b ^ c chain. X-Ray printed "XOR loops". Reworded the message, the banner and the docs to the repeated indexed XOR. No detector or SecurityLens change, so no scoring or golden effect (no bless needed).

Class

A tool prints a detection claim that its backing signal cannot deliver. Siblings fixed here: detector message, banner, wiki 04-05, cookbook, gate_controls open_gap.

Sibling gaps

  • github-action-readme.md:76 ("sub-atomic XOR loops"), docs/wiki/02-06-security-lens.md:33 ("dense XOR loops"): same wording, over the 5-file cap. No burned-estate program needs them (docs only).
  • Actually detecting plain XOR decode loops would move SecurityLens signals and goldens: not proposed.

Tests

test_xray_control.py: the xfail known-miss became a test that a plain loop is not claimed, plus a test that repeated indexed XOR fails with the new message.

Lessons for agents

  • bitwise_ops alt 1 needs \w ^ \w pairs with no operator between, so a ^ b ^ c never matches; probe a regex before describing it.

🤖 Generated with Claude Code

…t detects (Part of #7187)

bitwise_ops matches 3+ repeated `buf[i] ^= k;` statements (and an a ^ b c ^ d form), not
a plain XOR decode loop or an a ^ b ^ c chain. Reword the message, banner and docs to that.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 31, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 31, 2026 03:05
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 31, 2026 03:10
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 3b0aeb5 into main Oct 31, 2026
90 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7187-20261031T0235Z branch October 31, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant