Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Cosign

$ cosign Foundation High Risk
Sigstore / Linux Foundation · Security & Secrets · Apache-2.0 · macos / linux / windows

cosign 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.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install cosign
CLI vs MCP Decision CLI Only

Cryptographic artifact signing and verification must execute directly inside cosign with local keys/OIDC tokens rather than over MCP.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

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; --yes skips Rekor confirmation prompt
Trust & Safety 19 / 25

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
Setup & Portability 13 / 15

Single Go binary via brew, go install, and GitHub releases across macOS, Linux, and Windows.

  • Cross-platform static binary
Utility & Efficiency 14 / 15

Industry standard for SLSA provenance, SBOM attestations, and keyless container signing.

  • Native OCI signature and in-toto attestation support
Maintenance & Lineage 10 / 10

Linux Foundation / OpenSSF flagship Sigstore project under Apache-2.0.

  • Foundation stewardship with broad cloud-native adoption
Docs & Verifiability 9 / 10

Well-maintained Sigstore documentation covering verify, sign, and attest workflows.

  • Official docs at docs.sigstore.dev/cosign/overview

Security, Auth & Guardrails

Auth Modes
No Auth OAuth Browser Env API Key Config File
Credential Storage

Public verification requires no secrets; signing uses private keys (COSIGN_PASSWORD) or ambient/browser OIDC tokens plus OCI registry auth (~/.docker/config.json).

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

100% free and open-source (Apache-2.0) under the Linux Foundation / Sigstore.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Verify a container image signature with Sigstore identity
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.

Verify a signed release tarball using a bundle
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

Sign an image non-interactively with a local key
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 verify emits JSON proofs and requires no signing secrets.
  • + Foundation-backed standard for keyless OIDC signing and SBOM attestations.

Caveats & Pitfalls

  • ! Keyless cosign sign opens an interactive browser OIDC flow outside CI and writes permanently to public Rekor logs.
  • ! Always sign immutable image digests (@sha256:...) rather than mutable tags.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI