Repository navigation
security: every one-line signature reads lines of 250+ chars in chunks (Part of #8429) - #8615
Conversation
…s (Part of #8429) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #8615 @ 23ea2bd: 2 failed check(s) == crucible-audit (full-precision) (failure) -- real == crucible-audit (zero-dependency) (failure) -- real |
…ong-line chunking (Part of #8429) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (f6ce3a6) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
No description provided. |
Part of #8429 (slice 2 of 3, after #8603).
What
SecurityLens._armorempties every line of 250+ characters. #8603 re-read those lines in overlapping 200-character pieces forhardcoded_secretsonly. This slice does the same for every other one-lineTHREAT_SIGNATURESkey: the loop inscan_contentnow walks the scan plan, reads the code stream forCODE_STREAM_SIGNALS, honoursproseand thehigh_risk_executionlanguage scope, and merges counts, snippets, sites and positions. A hit seen in two pieces counts once.Class / Sibling gaps
Class: every
THREAT_SIGNATURESkey on a line of 250+ characters (13 keys). Handled here:reflection_metaprogramming,safety_bypasses,io,high_risk_execution,state_mutation,bitwise_ops,shadow_imports,db_hooks,unicode_steganography,self_propagation(each with a planted case, a near-miss and a chunk-overlap case intest_security_lens.py), plushardcoded_secrets(#8603).Documented as blind spots in
docs/known_blind_spots.md(not chunked):dead_code(reads comment text the code stream blanks),homoglyphs(needs the whole line to judge a script).Sibling gaps (slice 3 / not here): string-literal entropy over literals longer than ~248 chars (slice 3);
--fail-on-secretsCLI test with a long-line secret (slice 3); SBOM payload audit insbom_recorder.py(unverified whether it callsscan_content); a match longer than the 200-character piece is still missed; the minified nine-literal fallback and the piece scan can both count the same literal (documented).ReDoS, performance, goldens
tests/_timing.py);test_redos_poison.pyandtest_minified_fallback_*stay green.splitlines()pass; files with long lines now run the 11 regexes over pieces (work grows linearly with line length). Not A/B-measured withperf-ab.Gates
pr_gates --fast: lint, audits PASS.tests/security_auditing1064 passed (numpy-free selfscan venv;test_security_auditorneeds thefullextra in the doom-ci venv). 226 other lens-touching tests passed.Remaining slices
Slice 3: entropy over long literals;
--fail-on-secretsCLI test with a long-line secret (tests/.../test_cli_contract.py); verify SBOM payload audit.Lessons for agents
heavy-run.sh python tests/tools/pr_gates.py --fasttakes over 9 minutes: usebg-job.sh startthenbg-job.sh wait(a foregroundtimeout 580is killed with exit 143).Co-Authored-By: Claude Sonnet 5.5 [email protected]
🤖 Generated with Claude Code