Repository navigation
security: firewall enforces manifest flags, package.json hooks, anchored test-path skip (Part of #8432) - #8602
Conversation
…red test-path skip (Part of #8432) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #8602 @ 60655d0: 2 failed check(s) == crucible-audit (full-precision) (failure) -- real == crucible-audit (zero-dependency) (failure) -- real |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…8432) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
Part of #8432 (security epic #8427).
The supply-chain firewall now enforces three of the gaps the audit named; the rest are documented as not enforced.
Changes
supply_chain_firewall.py: newmanifest_flag_findings().run_firewall_auditreads the manifest parser'sINSECURE_REGISTRY_*flags, direct file/git/http references and the newINSTALL_HOOK_*flags as threats (strict and audit mode alike;ALLOWLIST_PATHSon the manifest directory excuses them like any threat).package.jsonis exempt from the inert.jsonshield, so the existing 10x build-time multiplier now applies to it.test/testsskips a file. The filename no longer does, sosrc/helper_test.pyis gated.manifest_parser.py:package.jsonpreinstall/install/postinstall/preparescripts that run curl/wget/eval or pipe to a shell are flagged."build": "tsc"andnode-gyp rebuildare not.test_supply_chain_firewall.py): planted http registry, ngrok, git/file refs and acurl | shpostinstall, with near-misses; allowlist; package.json multiplier vs. a plain.json; a parametrized test-path table, each case also run throughrun_firewall_audit.Class / Sibling gaps
Class: every gap between the firewall's documented scope and its code (#8432 table).
Handled here: manifest flags (enforced), package.json lifecycle hooks (enforced via the parser flag plus the multiplier), test-path skip (anchored),
node_modules/venvand the secrets-only gate (docs already state both; nothing to change).Sibling gaps
supply_chain_firewall.py <results.json>still passesalias_map={}, so it enforces none of the manifest flags: the separate CLI issue in Epic: Security claims vs evidence (from #8426) #8427.https://tarball dependency references are not flagged (a lockfile with an internal https mirror would false-positive); needs a source-aware flag from the parser.node_modules/venvopt-in scan mode: not built; docs say the firewall gates only the repo's own files.secrets_riskonly; network/I/O/typosquat/homoglyph inputs not added.tests/directory remain skipped (disclosed in the README).Gates
pytest tests/security_auditing/test_supply_chain_firewall.py tests/core_engine/test_manifest_parser.py: 54 passed.pr_gates.py --fast: 8/9 on the first run (theaffectedgate passed); the one lint finding (RUF021) is fixed,ruff_audit.py --ciis clean.🤖 Generated with Claude Code
Golden re-bless
Both golden masters moved only in
ecosystem_audits(firewallthreats_found1 -> 3,threats_allowed2 -> 3, plus the GPU JSON hash of it). Cause: the firewall no longer skips a file by its name, socreate_secret_tls_test.goandhttp_token_authentication_test.rb(outside anytest/dir) are now gated. Blessed viagolden-lock.sh crucible_check.py --update --yes.