Skip to content

docs(security): correct supply-chain firewall and X-Ray claims; flag the CLI bug - #8445

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
docs/security-firewall-xray-claims
Nov 14, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
docs/security-firewall-xray-claims

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Corrects the supply-chain firewall and X-Ray claims listed in section C of the security claims inventory (#8426). Docs only, five files.

Claims changed (old → new)

  • Firewall blocks blacklisted/unknown imports and behavioural threats, exit 1 → known-bug note on every firewall page: the standalone CLI and the Action's tool: supply-chain-firewall never block on real scan output (supply-chain-firewall CLI never blocks on real input: it reads audit-JSON keys that do not exist #8428); the engine-internal call works and records its result in ecosystem_audits.firewall without failing the scan.
  • Scans every dependency file in node_modules/venv → gates the repo's own files; node_modules, venv, .venv, vendor, third_party are excluded by the default config.
  • Flags network requests, typosquatting, I/O hooks, install-time hooks → removed; listed under "does not check".
  • Risk categories "Hidden Malware, Data Injection, Secrets Leak" → one gated vector, secrets_risk >= 50 (_FIREWALL_RISK_MAP), with a link to its REWORK flag in docs/vectors.md.
  • Firewall hunts homoglyphs, shadow-import steganography, tainted I/O (cookbook) → section deleted.
  • 10x multiplier on package.json hooks, trips on any I/O or execution → 10x on secrets risk for setup.py, build.rs, preinstall.js, postinstall.js; package.json is skipped by the .json shield and npm scripts are not parsed.
  • Manifest flags handed to the firewall to block → written but not read; logged only (Supply-chain firewall enforcement gaps: manifest flags, package.json hooks, node_modules, test-path skip, secrets-only gate #8432).
  • Centrality multiplier (undisclosed default) → opt-in via FIREWALL_NETWORK_WEIGHTING.
  • (new) BLACKLISTED_IMPORTS ships empty, so audit mode blocks nothing until configured.
  • (new) Paths containing /test/, /tests/, or names containing test_/_test are skipped (substring match, Supply-chain firewall enforcement gaps: manifest flags, package.json hooks, node_modules, test-path skip, secrets-only gate #8432).
  • Alias dereferencing catches dependency confusion → engine path only, needs a blacklist entry; the CLI passes an empty alias map.
  • "RAM-exclusive, zero disk I/O, sub-second across tens of thousands of dependencies" → removed.
  • Blocks packages like xz / colors.js → removed.
  • Terraform firewall showcase → removed (current CLI cannot produce it).
  • tRPC (Vault Sentinel) and pwntools (X-Ray) showcases → kept, marked historical: no committed command or artifact, not re-run.
  • Cookbook "Mission Report" sample (fabricated counts, old format) → the format the CLI prints, with placeholders, labelled as not real output.
  • X-Ray "Entropy > 4.8 flags packed malware" → three thresholds with scopes: string literals 4.8, raw first 8 KB 7.95 (scan_binary), dense text runs 5.0 (DENSE_RUN_ENTROPY); bypassed types (images, archives, .json, .yml) get the magic-byte check only.
  • X-Ray "reads only the first 8 KB, O(1) memory, guarantees no OOM" → 8 KB head for binaries; text files up to 5 MB are read whole for the dense-run check (MAX_DENSE_SCAN_BYTES, test_a_large_payload_after_the_first_8_kb_fails).
  • X-Ray detects steganographic payloads → removed; images get a header check only.
  • X-Ray test-folder exemption described as skipping → findings there are counted as allowed, not failing; same for ALLOWLIST_PATHS/XRAY_BYPASS_PATHS.
  • tools/README firewall entries (table row and list) → real scope plus the supply-chain-firewall CLI never blocks on real input: it reads audit-JSON keys that do not exist #8428 note.
  • tools/README Vault Sentinel "regex + Shannon entropy" → hardcoded_secrets regexes plus EXTRA_SECRETS, no entropy check.
  • Tested checks stated as effectiveness (firewall import checks, Sentinel tiers, X-Ray checks) → "tested on planted inputs; no measured real-world detection rate".
  • SCA tools "blindly trust" manifests → SCA tools typically work from manifests; no comparison has been run.

Checks

  • python tests/doc_refs_audit.py --ci: OK.
  • tests/tools/test_readme_hand_counts.py (reads the supply_chain_security README timing labels), tests/tools/test_cli_contract.py, tests/core_engine/test_signal_display_names_wiki.py: pass.

Refs #8426, #8428, #8432, part of #8427

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 13, 2026 18:42
…the CLI bug

State what the firewall gates (import blacklist/allowlist plus secrets_risk >= 50),
flag that the standalone CLI and Action step never block (#8428), disclose the
#8432 gaps, and correct X-Ray's entropy thresholds, read sizes and steganography
claim. Showcases without a committed artifact are marked historical or removed.

Refs #8426, #8428, #8432, part of #8427

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 13, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 13, 2026 23:49
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 13, 2026 23:53
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8445 @ f4a2c80: 1 failed check(s)

== Pre-gate (Vault Sentinel, X-Ray, Supply Chain) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/43529773316/job/132244293885
repro: python tests/tools/pr_gates.py --only secrets xray
errors:
##[error]Process completed with exit code 1.
log tail:
🧱 SUPPLY CHAIN FIREWALL: SCAN SUMMARY
===========================================================================
Mode : Audit (Allow Whitelist + Unknown)
Files Evaluated : 2,455
---------------------------------------------------------------------------
Approved Packages : 0
Banned Packages : 0
Unknown Packages : 0
---------------------------------------------------------------------------
Active Threats : 0
Allowlist Bypasses : 0
---------------------------------------------------------------------------
[SUCCESS] Dependency supply chain is clean.
===========================================================================
##[end-action id=__self_3.__run_2;outcome=success;conclusion=success;duration_ms=96079]
Post job cleanup.
##[start-action display=Set up Python;id=__8aa75392-19d2-4860-b465-6811dbfbce8f.__actions_setup-python]
##[end-action id=__8aa75392-19d2-4860-b465-6811dbfbce8f.__actions_setup-python;outcome=skipped;conclusion=skipped;duration_ms=0]
Post job cleanup.
##[start-action display=Set up Python;id=__aede1a7b-4b05-4712-9f22-3a697fb6a604.__actions_setup-python]
##[end-action id=__aede1a7b-4b05-4712-9f22-3a697fb6a604.__actions_setup-python;outcome=skipped;conclusion=skipped;duration_ms=0]
Post job cleanup.
##[start-action display=Set up Python;id=__f100fd46-e55b-44f6-bb02-1f33ebb309fb.__actions_setup-python]
##[end-action id=__f100fd46-e55b-44f6-bb02-1f33ebb309fb.__actions_setup-python;outcome=skipped;conclusion=skipped;duration_ms=0]
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/ec01f5ed-a71d-403f-a063-a62ded6a1b42' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 13, 2026
X-Ray (the repo's own pre-gate) flagged this README: it quoted the literal
shebang string in its first 8 KB, which the check reads as an embedded
execution header. Reworded and noted the behaviour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UP3D7QbYRR7fbAooD967Ep
@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (ff7a9e6) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 14, 2026 12:43
@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 14, 2026
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 14, 2026 13:43
@squid-shepherd squid-shepherd Bot added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 14, 2026 13:50
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd
squid-shepherd Bot merged commit b7d1cd3 into main Nov 14, 2026
80 of 104 checks passed
@squid-shepherd
squid-shepherd Bot deleted the docs/security-firewall-xray-claims branch November 14, 2026 14:22
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