Skip to content

docs(security): stop describing the ML malware classifier as working; fix landing-page security claims - #8446

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
docs-security-ml-claims
Nov 14, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
docs-security-ml-claims

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Fixes the FALSE and VAGUE rows of the security claims inventory (sections A and B, "Most serious problems" item 1) in five docs. Docs only, no code. Each claim was checked against the code before rewording.

ML classifier (no model ships, so inference never runs; #8430)

  • 02-20 summary "executes a trained XGBoost multiclass model … predict Trojans, Stealers, Droppers, Botnets" → new lead section: no model ships, inference is skipped in every install, goldens record "Inference Ran": false, tests use mocks or a synthetic stand-in, --fail-on-malware cannot fire.
  • 02-20 "detecting … zero-day threats" / "identify malicious intent" → removed; no detection rate measured.
  • 02-20 diagram "XGBoost Inference → Threat Classification Telemetry" → reach counts run; inference shown as skipped.
  • README.md "what needs the optional engines is … ML threat classification" → [full] installs the packages but no model ships, so the classifier does not run in any install (Remove the XGBoost malware classifier and --fail-on-malware (owner 2026-11-19); docs say removed, research pending #8430).
  • zero_dependency_mode.md:10 "What you lose: … ML threat classification" → removed from "what you lose"; new short-version bullet: ML classification never runs in any mode (the old caveat from the ai_threat layer unexercised in validation scans (ML deps absent) — provide a full-deps leg or document the boundary #2986 section, moved up).
  • zero_dependency_mode.md:16 [full] install line → note that [full] does not turn on ML classification.
  • zero_dependency_mode.md:65-76 "Inference needs all four, so a missing one disables it" / "Without" column → it also needs a model, none ships; the rows are what every install reports today.
  • zero_dependency_mode.md:82 "The model classifies malware …" → output classes exist in code; no model trained on them ships; no measured detection rate.
  • 04-00 "evaluates … to identify anomalous files and potential Trojans" → the classifier exists in code but never runs (Remove the XGBoost malware classifier and --fail-on-malware (owner 2026-11-19); docs say removed, research pending #8430).
  • 04-00 Semgrep row "complemented by ML threat classification" → removed.
  • 04-00 diagram "ML & Graph Classification → Risk Metrics & Vulnerability Flags" → "Graph Metrics → Signature Counts & Structural Vectors".
  • 04-00 Future Work "Refining the XGBoost classifier to reduce FP rates" → open decision: ship a measured model or remove it (Remove the XGBoost malware classifier and --fail-on-malware (owner 2026-11-19); docs say removed, research pending #8430).
  • github-action-readme.md:71 "runs ML threat inference when an XGBoost model is supplied and full_precision is on" → no ML classification: no model ships, the Action has no model input, the hash-pinned full.txt lacks scikit-learn; the template's "ML Malware Gate" job is a no-op.
  • github-action-readme.md:99 full_precision "for token counts and ML threat inference" → for token counts; does not enable ML inference.

Other claims

  • github-action-readme.md:71 "Gates do not run on an --incremental scan" → gates run on full and --incremental scans alike (galaxyscope.py delta path calls _enforce_policy_gates; test_cli_contract.py::test_gates_run_on_an_incremental_scan_and_catch_an_added_secret). --fail-on-malware dropped from the working-gates list.
  • 02-20 "is_shadow_patch overrides ML inference for unverified binary changes" → a manual flag, no hash or version compared, labels every file with file_impact > 0.5 a Trojan, unreachable without a model (--shadow-patch-detected compares no hash or version, mislabels files as Trojans, and is unreachable #8431).
  • 02-20 "integrates … global architectural distances" → those features are frozen constants (Repo-level ecosystem_baseline clustering's feature vocabulary is stale -- 3 of 4 static-file archetype slots never populated #1159).
  • 02-20 "Graph BFS traversal is capped at 10,000 nodes" → the 50M edge-scan work budget (PATH_METRICS_WORK_BUDGET, network_risk_sensor.py).
  • 02-20 "non-deterministic confidence scores" → probabilistic predict_proba scores, deterministic per model and input, unmeasured error rate.
  • 04-00 "security analysis … across 50+ programming languages" → security lens checked with a planted-secret probe in 44 languages (validation.md).
  • 04-00 "identifying potential vulnerabilities" / "vulnerability flags" → describes each file's security-relevant surface; cites validation.md "Per-file standing structural risk does not predict defects"; no detector has a measured recall, precision or FP rate.
  • 04-00 Endor Labs / govulncheck "generates function reachability graphs natively across 50+ languages" → builds a call graph but does not link it to vulnerable symbols, so no CVE reachability analysis.
  • 04-00 "relies on … NetworkX" → native standard-library graph code; networkx not used at runtime (test_no_networkx_runtime.py).
  • 04-00 "allows … zero-day detection" → removed.
  • 04-00 "False positive rates are controlled via configurable allowlists" → no FP rate measured; findings can be suppressed with allowlists.
  • github-action-readme.md:1 "Zero-Trust DevSecOps Action" → "DevSecOps Action"; :5 Zero-Trust badge removed; :17 "Zero-Trust Sentinel pipeline" → "sentinel pipeline"; :73 "(Zero-Trust Enforcement)" → "(Build-Breaking Gates)"; :114 "Universal Zero-Trust SBOM Generation" → "CycloneDX SBOM Generation".
  • github-action-readme.md:7 "50+ different languages" → "59 languages" linking the README's language list (same figure as the README).

Checks: python tests/doc_refs_audit.py --ci OK; tests/tools/test_cli_contract.py and tests/test_doc_refs_audit.py 53 passed.

Added in f99b408

Not in this PR (other files): action.yml's full_precision description and the template's malware-gate job itself (code/config, not docs); wiki/index.md and gitgalaxy/security/README.md ML and shadow-patch text.

Refs #8426, #8430, part of #8427

🤖 Generated with Claude Code

… fix landing-page security claims

No trained model ships for the XGBoost classifier (security_auditor.py loads
gitgalaxy_malware_xgb_multiclass.json, which is not in the repo; both golden
masters record "Inference Ran": false), so inference never runs in any install.
02-20 now leads with that; README, zero_dependency_mode.md, 04-00 and the Action
readme no longer say [full] / full_precision enables ML classification.

Also: gates do run on --incremental scans; shadow patch is a manual flag with
no hash comparison (#8431); the 50M work budget replaces "BFS capped at 10,000
nodes"; frozen distance features (#1159); no networkx, zero-day, measured FP
rate or CVE reachability claims; security output described as surface
description with the negative defect-prediction result; Zero-Trust labels gone.

Refs #8426, #8430, 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:48
github-action-readme.md: supply-chain-firewall checks imports (blacklist, which
ships empty, or strict allowlist) and secrets_risk >= 50 inside a galaxyscope
scan; no steganography or tainted I/O; the standalone CLI never blocks on real
scan output (#8428); other gaps in #8432.

04-00: the Dependabot/Socket/Phylum row now says what the SBOM recorder does
(first 8 KB of .js/.py/.ts/.php/.rs, dense-string or language-identity
anomaly, no measured FP rate, no comparison run).

Refs #8426, part of #8427

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (f99b408) 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 13, 2026 23:49
auto-merge was automatically disabled November 13, 2026 23:49

Pull request was converted to draft

@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 13, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). 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 13, 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 13, 2026 23:50
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 13, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 13, 2026 23:53
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@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 b643151 into main Nov 14, 2026
75 of 97 checks passed
@squid-shepherd
squid-shepherd Bot deleted the docs-security-ml-claims branch November 14, 2026 00:33
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