Repository navigation
Add mcp-review-toolbox: pinned scanner image, action, and CI - #4
Merged
Merged
Conversation
toolbox/ builds a pinned, cosign-signed container image bundling the static security scanners used to review MCP servers (gitleaks, trufflehog, osv-scanner, syft, pip-audit, snyk-agent-scan). Base image digest-pinned; Go tools verified against release-published checksums; Python tools exact-pinned to PyPI wheels. - actions/mcp-review-toolbox: composite action wrapping the image for CI - build-toolbox.yml: build + SBOM + provenance + cosign keyless sign + GHCR push - dogfood-scan.yml: build the toolbox from source and scan this repo - scripts/check-tool-updates.sh: pinned-vs-latest tool drift check - README and CHANGELOG updated (0.2.0) Static analysis only; dynamic analysis stays in the caller's isolated environment.
garymike
force-pushed
the
feat/mcp-review-toolbox
branch
from
July 3, 2026 17:32
1f17f2a to
af1dfc4
Compare
garymike
added a commit
that referenced
this pull request
Sep 8, 2026
The docs said SkillSpector "has no fail-on mode" and "exits 0 regardless". Both are false, and had been since at least v2.3. It gates on exit code: exit 1 above a risk_score of 50. Measured against our own fixtures, on the pinned v2.3.11 and on v2.5.0 (identical results): gecko-demo reviewer.test.ts typescript / Executable: Yes 73/100 exit 1 gecko-hook-demo .husky/pre-commit other / Executable: No 28/100 exit 0 benign-skill util.test.ts typescript / Executable: Yes 0/100 exit 0 So SkillSpector blocks half this surface. It finds the payload in both carriers (PE3 credential access at 90% confidence in the hook too), but classifies a git hook as non-executable, so the score stays under its own threshold. The differentiator is carrier coverage, not enforcement versus advice, and it is narrower than what we published. Reframed accordingly in the README, walkthrough, threat model, references, threat profile, both fixtures, the Dockerfile and the gate header. Added a dated correction under the 1.3.1 changelog entry rather than editing the record. gate-proof.sh #4 now pins both halves: SkillSpector must block gecko-demo and clear gecko-hook-demo. The old one-sided assertion could not have caught this. Verified passing against both images. Co-authored-by: Claude Opus 5 <[email protected]>
This was referenced Oct 19, 2026
garymike
added a commit
that referenced
this pull request
Oct 19, 2026
Eight releases behind, because the drift check exempted it. Bumping it changes measured behaviour, so the pin, the proof and the docs move together. Re-measured against our own fixtures (files forced to git modes; podman's Windows mount presents 777 and v2.11+ reads mode & 0o111, which inflates every score): gecko-demo 64/100 exit 1 BLOCKS gecko-hook-demo 76/100 exit 1 BLOCKS (was 28/100 exit 0) config-injection-demo 100/100 exit 1 BLOCKS sibling-config-demo 51/100 exit 1 BLOCKS (was 28/100 exit 0) memory-poisoning-demo 0/100 exit 0 SAFE So four of the five carriers the gate was built for are now blocked upstream too. The .husky/ gap closed in v2.11, which added a shebang/mode fallback to the executable classification. Said plainly in the docs rather than reworded. One carrier is left. A test file that appends to MEMORY.md scores 0/100 SAFE, "no security issues detected", at Coverage 100.0% with the file typed Executable: Yes. Holding the mechanism fixed and varying the payload: 0/100 inert, 35/100 with a literal injection string, against 27/100 for that same string as inert SKILL.md prose with no write at all. The write is worth ~8 points of prose matching and nothing blocks. gate-proof.sh #4 used to hard-assert that SkillSpector clears the git-hook carrier, so this bump would have turned the dogfood build red. It now hard-asserts only the memory-write carrier and prints the live score and verdict for all five. sibling-config-demo clears the threshold of 50 by one point, so asserting it would go red on any upstream rescoring. Also: the drift check is a real gate for skillspector now. It was advisory because upstream "publishes no releases" and a HEAD-tracking pin would drift on every push. Upstream tags monthly since v2.10.0, so that premise expired and the exemption is what let it fall eight behind. Kept out of --emit-drift on purpose: apply-tool-bumps.py would rewrite tools.lock and leave SKILLSPECTOR_REF alone, since the ARG is a SHA not <TOOL>_VERSION. Added a lock-vs-ARG cross-check and verified it fires on a simulated half-bump. Co-authored-by: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
mcp-review-toolbox— a pinned, cosign-signed container image bundling the static security scanners used to review MCP servers — plus a composite Action and CI. Consolidates into this repo per the "one security-automation home" approach.What's here
toolbox/Dockerfile+tools.lock— pinned image: gitleaks 8.30.1, trufflehog 3.95.8, osv-scanner 2.4.0, syft 1.46.0, pip-audit 2.10.1, snyk-agent-scan 0.5.12. Base image digest-pinned; Go tools verified against release-published checksums; Python tools exact-pinned PyPI wheels.actions/mcp-review-toolbox/action.yml— composite action wrapping the image (inputs:path,scanners,fail-on-findings,sbom-output)..github/workflows/build-toolbox.yml— build + SBOM + provenance (mode=max) + cosign keyless sign + push to GHCR; weekly and on change; reports pinned-tool drift..github/workflows/dogfood-scan.yml— builds the toolbox from source and runs it against this repo on push/PR (also validates the Dockerfile).scripts/check-tool-updates.sh,.gitattributes, README + CHANGELOG (0.2.0).Design
mcp-security-reviewskill stays decoupled — it points to this image as an optional fast path, never a dependency.Notes / follow-ups
mcp-scanwas renamed tosnyk-agent-scanon PyPI (Invariant Labs → Snyk); pinned to the successor at the same 0.5.12 line.toolbox/README.md): bake out-of-band binary SHA-256 pins (currently verified against each release's own checksums file).