Repository navigation
X-Ray: stop claiming XOR loops; print only the repeated indexed XOR it detects (Part of #7187) - #7242
Merged
Merged
Conversation
…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]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #7187. Fixes the XOR claim: the tool now prints only what it can detect.
Checklist: done [c:63c3b707]
What
SecurityLens.bitwise_opsmatches 3+ repeatedbuf[i] ^= k;statements (plus an odda ^ b c ^ dform). It does not match a plain XOR decode loop or ana ^ b ^ cchain. X-Ray printed "XOR loops". Reworded the message, the banner and the docs to the repeated indexed XOR. No detector orSecurityLenschange, 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).SecurityLenssignals 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_opsalt 1 needs\w ^ \wpairs with no operator between, soa ^ b ^ cnever matches; probe a regex before describing it.🤖 Generated with Claude Code