Repository navigation
security lens: stop SARIF false errors from comments/prose; real line+column; public keys are not leaks (Part of #4548) - #4983
Merged
Conversation
…e+column in SARIF, public keys not leaks (Part of #4548) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…4548) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
7 tasks done
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 12, 2026 13:14
squid-protocol
enabled auto-merge (squash)
October 12, 2026 13:14
Owner
Author
|
No description provided. |
Owner
Author
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
… (Part of #4548) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
CI shepherd: the head of this PR (57c50d7) is not the one a maintainer labelled |
squid-protocol
disabled auto-merge
October 12, 2026 13:40
Owner
Author
|
No description provided. |
This was referenced Oct 13, 2026
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 #4548 (item 1: SARIF false errors; item 2's SARIF-adjacent
has_credentialson a public key). Not closing: items 3-7 remain.Cause (one mechanism)
SecurityLens.scan_contentran every regex over the raw buffer: comments, prose and data files included, no language, no column. Each reported member is that, plus signature looseness:DEAD_CODEon GPL line /// http…httpalternative matched every comment URLhttponly right after a quote/paren (a commented-out call); bash/curl/eval… unchangedHIGH_RISK_EXECUTION(error) onassert(assertlisted as an RCE verb for all languagesassert("…")/assert($x)HARDCODED_SECRETSon "acs" in changelogKEYstem +VALUE "…") matched English "keyword value"SHADOW_IMPORTSon MAPINFOincludecode_stream; dead_code / secrets / hidden unicode / entropy stay on raw text on purposestartColumn1scan_contentreturnssites= (line, col) aligned 1:1 with each snippet; SARIF uses it, omitsstartColumnwhen unknownhas_credentialsonllvm-snapshot.gpg.key.key/.crt/.pub/.asc…)PRIVATEmarker is not a leak;SECRETS_EXACTnames and anything ambiguous stay leaksThe changelog's
has_credentialsfollows from the secrets fix (it readssec_hardcoded_secrets).Evidence
Tiny git repo (GPL/URL/assert C file, changelog, MAPINFO txt, public key, plus positive controls
system(c)in C andinclude "payload.png"in PHP), SARIF from origin/main vs this branch:assert+system, DEAD_CODE x2), allstartColumn: 1,src/c.phpreported at line 1.system(c)at3:5, PHPinclude "payload.png"at2:1.tests/security_auditing/test_sast_prose_noise_4548.py: one fixture per member, plus the positive controls and a public/private key matrix.Golden drift (re-blessed both legs via
golden-lock.sh crucible_check.py --update --yes)Only lens-derived channels moved (commented-out logic, dynamic code execution, network I/O hooks, env mutation, bitwise, DB sinks, api_near_db_sink, sarif/gpu/graph snapshots, repo threat totals). The big mover is
Dynamic Code Executionfalling to 0 in assert-heavy C/zig files (cpythondictobject.c232 -> 0). No structure/language keys changed; no files excluded by timeouts.Gates:
pr_gates --fast5/5,--ratchets7/7 (0 skipped).Cross-repo: none; no companion PRs. Does not touch the typosquat radar (#4981); expect a golden re-bless on whichever of the two merges second.
🤖 Generated with Claude Code