Skip to content

security lens: dead_code prose, per-line count, locations for every key, per-signal comment decisions (Part of #4987) - #5029

Merged
squid-protocol merged 2 commits into
mainfrom
fix/4987-lens-comment-awareness
Oct 13, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
fix/4987-lens-comment-awareness

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4987 (siblings of #4548 / PR #4983). Boxes ticked: dead_code prose keywords, dead_code double count, safety_bypasses/reflection/homoglyphs decision, threat_locations for every key. Left open: recorders audit, aperture secrets shunt, COBOL continuation line (different mechanisms: recorders, aperture, COBOL regex).

Class: the lens reads raw text with no comment awareness

Member Decision / fix
dead_code bash/curl/wget/eval/base64 fire only in command/call shape (curl -x/curl http://, | bash, bash -c, eval(/eval "$x", base64 -d, | base64); prose ("the bash shell") no longer fires. nc -e, /dev/tcp, BPXBATCH, quoted-URL unchanged
dead_code double count // curl http://x: the // in http:// opened a 2nd match. One count per line now
threat_locations positions recorded for every key (incl. entropy), not 4
safety_bypasses reads the comment-blanked code stream (a commented-out verify=False is not a bypass; dead_code reports commented logic). Already skipped on prose files
reflection_metaprogramming split: atob/base64_decode/\x/\u/long-base64 read code stream; invisible/bidi Unicode still reads RAW (HIDDEN_TEXT_SIGNATURES): comments carry real hidden-text attacks
homoglyphs split: Cyrillic/Greek/math letters on an import line read code stream; the invisible U+3164 filler still reads RAW

Evidence

tests/security_auditing/test_sast_comment_awareness_4987.py (prose vs command for each word x //,#,--,/* */; once-per-line; per-signal comment matrix incl. bidi/zero-width/filler in a comment still firing; positions for every hit key). test_security_lens.py ungateable-set comment updated (reflection's remaining ungated reason is the long-base64 branch).

Golden drift (blessed both legs via golden-lock + crucible_check --update --yes)

Only lens channels moved: commented_out_executable_logic, high_entropy_obfuscated_logic (3 bytes; reflection-fed), raw threat totals, sarif/gpu/graph snapshots (sarif shrinks 316 KB -> 269 KB: dead_code prose findings gone). No structure keys. Excluded-file list identical to before (aperture static blobs only, no timeouts). Same fixtures as #5027: expect a re-bless on whichever merges second.

Gates: pr_gates --fast 5/5, --ratchets 7/7 (0 skipped).

Cross-repo: none.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 13, 2026 09:08
…ry key, per-signal comment decisions (Part of #4987)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 13, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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