Cosign
$ cosign Foundation High Riskcosign signs and verifies OCI container images, SBOM attestations, and release blobs using either keypairs or Sigstore keyless OIDC identities backed by Rekor transparency logs. Verification is read-only, while signing writes signatures/attestations to registries and public logs.
brew install cosign Cryptographic artifact signing and verification must execute directly inside cosign with local keys/OIDC tokens rather than over MCP.
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
cosign verify outputs JSON natively and supports --yes/COSIGN_YES, though keyless signing triggers browser OIDC unless ambient CI OIDC or --key is used.
- JSON output on
verify;--yesskips Rekor confirmation prompt
Verification is strictly read-only, whereas cosign sign publishes artifacts to OCI registries and immutable public Rekor logs.
- Keyless signing publishes permanent entries to public transparency logs
Single Go binary via brew, go install, and GitHub releases across macOS, Linux, and Windows.
- Cross-platform static binary
Industry standard for SLSA provenance, SBOM attestations, and keyless container signing.
- Native OCI signature and in-toto attestation support
Linux Foundation / OpenSSF flagship Sigstore project under Apache-2.0.
- Foundation stewardship with broad cloud-native adoption
Well-maintained Sigstore documentation covering verify, sign, and attest workflows.
- Official docs at docs.sigstore.dev/cosign/overview
Security, Auth & Guardrails
Public verification requires no secrets; signing uses private keys (COSIGN_PASSWORD) or ambient/browser OIDC tokens plus OCI registry auth (~/.docker/config.json).
100% free and open-source (Apache-2.0) under the Linux Foundation / Sigstore.
# Cosign Agent Rules - Restrict agents to `cosign verify` / `cosign verify-blob` unless signing is explicitly requested in CI. - Always note that keyless `cosign sign` uploads identity metadata to the public Rekor transparency log unless `--tlog-upload=false` is intended.
Agent-Ready Command Recipes
Safe Read-Only Queries
cosign verify --certificate-identity-regexp='.*@org\.com$' --certificate-oidc-issuer='https://accounts.google.com' ghcr.io/org/app:v1.0.0
Validates keyless Fulcio certificate and Rekor inclusion proof as JSON on stdout.
cosign verify-blob --bundle app.tar.gz.bundle [email protected] --certificate-oidc-issuer=https://token.actions.githubusercontent.com app.tar.gz
Checks blob authenticity read-only without registry writes.
Controlled Writes & Previews
cosign sign --yes --key cosign.key ghcr.io/org/app@sha256:...
Pushes a signature artifact to the OCI registry and logs to Rekor (with --yes confirmation).
Strengths for Agents
- + Read-only
cosign verifyemits JSON proofs and requires no signing secrets. - + Foundation-backed standard for keyless OIDC signing and SBOM attestations.
Caveats & Pitfalls
- ! Keyless
cosign signopens an interactive browser OIDC flow outside CI and writes permanently to public Rekor logs. - ! Always sign immutable image digests (
@sha256:...) rather than mutable tags.