slsa-verifier
$ slsa-verifier Foundation Low Riskslsa-verifier is the OpenSSF SLSA framework's official CLI for cryptographically verifying build provenance of release binaries (verify-artifact), container images (verify-image), and npm packages against Sigstore Rekor transparency logs and trusted builders. It runs headlessly, enforces --source-uri checks, and optionally emits provenance JSON with --print-provenance.
brew install slsa-verifier Cryptographic artifact hash and Rekor inclusion-proof verification must run locally against the downloaded binary with slsa-verifier rather than trusting a remote MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Purely non-interactive verification with strict exit codes and --print-provenance JSON output, though the verification summary itself is plain text rather than --json.
- Non-interactive exit-code verification and
--print-provenanceJSON - Verification status lines are human-readable text
Strictly read-only cryptographic attestation verifier checking Rekor proofs, builder IDs, and --source-uri claims before artifact execution.
- Read-only cryptographic verification with zero artifact mutation
Single static Go binary available via brew install slsa-verifier, go install, and GitHub Releases for macOS, Linux, and Windows.
- Official Homebrew formula and multi-OS Go binaries
Authoritative SLSA verification across binaries, container images, and npm tarballs.
- Covers
verify-artifact,verify-image, andverify-npm-package
Official OpenSSF SLSA framework project maintained with Google and community security engineers.
- Maintained under github.com/slsa-framework/slsa-verifier
Detailed README and slsa.dev specification guides explaining builder trust and flags.
- Docs at github.com/slsa-framework/slsa-verifier and slsa.dev
Security, Auth & Guardrails
None required for public artifacts; verify-image uses Docker/OCI registry credentials for private images.
100% free and open-source (Apache-2.0).
# slsa-verifier Agent Rules - Always verify immutable `@sha256:` digests with `verify-image` to prevent TOCTOU tag substitution. - Always specify `--source-uri` (and `--source-tag` or `--source-branch` when applicable) so provenance from an unrelated fork cannot pass.
Agent-Ready Command Recipes
Safe Read-Only Queries
slsa-verifier verify-artifact ./release-bin --provenance-path ./release-bin.intoto.jsonl --source-uri github.com/org/repo --source-tag v1.0.0
Cryptographically verifies ./release-bin matches the signed SLSA provenance and expected --source-uri and tag.
slsa-verifier verify-image ghcr.io/org/app@sha256:0123456789abcdef --source-uri github.com/org/app --print-provenance
Verifies SLSA provenance for an immutable @sha256: image reference and prints the verified provenance JSON.
Strengths for Agents
- + Strictly read-only cryptographic verification of SLSA build provenance and
--source-uriidentity. - +
--print-provenanceemits the verified in-toto provenance payload for downstream policy checks.
Caveats & Pitfalls
- ! No
--jsonsummary envelope around pass/fail status lines. - ! Verification typically queries public Sigstore Rekor / TUF endpoints unless offline bundle flags are provided.