Repository navigation
X-Ray: real-detector controls; a disguised executable fails; allowlists match folders (Part of #7155) - #7191
Conversation
…hes whole segments (Part of #7155) The scanner's proofs mocked the detector and the file filter, so a blind scanner would have passed them. These run it for real over planted fakes. Its allowlist was a substring match, so tests/ also exempted src/latests/. Known misses are strict xfails, tracked in #7179. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ts match folders (Part of #7155) X-Ray's bypass extensions also silenced its header check, so an executable named logo.png passed, the tool's own banner example. They now excuse dense data only. X-Ray and the Firewall use path_allowlisted. The controls run the real scanner; known misses are strict xfails (#7187). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No description provided. |
|
PR #7191 @ 55afb21: 2 failed check(s) == crucible-audit (full-precision) (failure) -- real == crucible-audit (zero-dependency) (failure) -- real |
Matching whole segments only also dropped unit_tests/-style folders, which the golden crucible caught: 18 corpus files lost their exemption. A folder entry now matches at a segment start or after _ or -, which still rejects latests/ and contests/, and no corpus file changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
CI shepherd: the head of this PR (1538dae) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
PR #7191 @ 1538dae: 9 failed check(s) == crucible (failure) -- infra == full-suite part 1/2 (cancelled) -- infra == full-suite part 2/2 (cancelled) -- infra == ground-truth (failure) -- real == measure (shard 1/2) (cancelled) -- infra == measure (shard 2/2) (cancelled) -- infra == publish-history (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
No description provided. |
Part of #7155. Found #7187.
Problem
X-Ray's failure proofs mock both
SecurityLensandApertureFilter. Run for real, it failed its own banner example: an executable namedlogo.pngpassed.What this does
XRAY_BYPASS_EXTENSIONSalso silenced the header check. It now excuses dense data only: a file that doesn't start the way its type requires always counts. Short headers likeMZ, which random compressed bytes contain by chance, stay excused for those types, so real images and archives pass. This covers.png,.jpg,.zipand.gz, in both the CLI and the headless audit.path_allowlisted(), sotests/no longer exemptssrc/latests/. A folder entry matches at a segment start or after_or-, sounit_tests/stays exempt.phpunitmatches a folder, not any path containing the word.tests/security_auditing/test_xray_control.py: the real scanner over inert planted content, nothing mocked. Nothing in it runs: the payloads are random bytes.gate_controls.pyat the real control.A control that passed by luck
The first version of the dense-payload control passed, then breaking the entropy check changed nothing. The random data contained
MZ, which X-Ray reads as an executable header anywhere in the first 8 KB. The fixture now has noMZ, and is short enough for the entropy check to measure.The investigation also found that
SecurityLens._armorempties lines of 250 or more characters, so long payloads and secrets are never scanned. See #7187 and #7179.Do the controls fail when something is broken?
Risk
A file with a bypassed extension and the wrong header now fails the pre-gate. X-Ray on this repo: exit 0, 0 anomalies, 5,105 files.
The golden crucible caught a stricter first version of the allowlist rule: matching whole segments dropped
*_tests/folders, moving firewall and X-Ray counts on 18 corpus files. With the rule above, no corpus file changes, so there's no re-bless.Cost
No new workflow or job, and well under a second in
full-suite.Checks
-k 'gate_controls or xray or binary or anomaly or firewall or vault or sentinel or config or resolver or workflow or classifier'): 856 passed. Not the full suite locally.tests/ruff_audit.py --cipasses.🤖 Generated with Claude Code