# Cosign

> Code signing and transparency for containers and binaries

Source: https://talira.ai/catalog/cosign-m3aep1fa
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [security / supply chain / signing](https://talira.ai/categories/security/supply-chain/signing), [security / supply chain](https://talira.ai/categories/security/supply-chain)
- Platforms: linux, macos, windows, docker, cli[^8][^9]
- Licence: Apache-2.0[^6]
- Pricing: Free and open source[^6][^7]
- Pricing notes: Sigstore's public Fulcio and Rekor services are free to use.
- Free tier: yes[^6][^7]
- Self-hostable: yes[^8]
- Backed by: [Sigstore](https://talira.ai/orgs/sigstore.md), [OpenSSF](https://talira.ai/orgs/openssf.md)

Cosign is the Sigstore project's command-line tool for signing and verifying container images and other artifacts, storing the signatures in the OCI registry next to the image. By default it signs keylessly: Fulcio, Sigstore's certificate authority, issues a short-lived certificate tied to an OpenID Connect identity (Google, [GitHub](https://talira.ai/catalog/github-ppcgj756.md) or Microsoft sign-in, or a CI workload's token), and the signing event is recorded in the Rekor transparency log. It also signs with its own encrypted key pairs, cloud KMS keys (AWS, Google Cloud, [Azure Key Vault](https://talira.ai/catalog/azure-key-vault-a35dsqe3.md), [HashiCorp Vault](https://talira.ai/catalog/hashicorp-vault-ce2dgbje.md), [OpenBao](https://talira.ai/catalog/openbao-vbz8sdjd.md)), [Kubernetes](https://talira.ai/catalog/kubernetes-ftsegx3m.md) secrets, hardware tokens or your own PKI, signs arbitrary files as blobs, and attaches and verifies in-toto attestations such as SBOMs and provenance. Sigstore is an OpenSSF project under the Linux Foundation, and its public Fulcio and Rekor services are free to use.

## Links

- Website: https://docs.sigstore.dev/cosign/
- GitHub: https://github.com/sigstore/cosign
- Docs: https://docs.sigstore.dev/cosign/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/cosign>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/cosign>[^2]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/cosign>[^3]

## Problems it solves

- sign our container images in CI without managing a long-lived private signing key
- prove a container image in our registry was built by our GitHub Actions pipeline and not tampered with
- verify an image's signature before deploying it to production
- sign release binaries and tarballs so users can check they came from us
- attach an SBOM and build provenance to a container image and verify them later
- sign images with a key that lives in AWS KMS, Google Cloud KMS or Azure Key Vault
- sign container images with a YubiKey or another hardware token
- store image signatures in the same registry as the images instead of a separate signing server
- check that a base image we pull from Docker Hub is really signed by its publisher
- verify signed images in an air-gapped environment with no internet access
- a public transparency log of every signature so a stolen identity can be spotted
- sign in-toto attestations for SLSA provenance on our images
- free open source alternative to Docker Content Trust for signing images
- verify the signature of a binary someone else published, by their GitHub workflow identity
- run our own private signing certificate authority and transparency log for internal artifacts

## Features

- keyless signing with short-lived Fulcio certificates bound to an OIDC identity
- signing events recorded in the Rekor transparency log
- signatures stored in the OCI registry alongside the image
- encrypted key pairs generated by cosign, in PEM-encoded PKCS8
- KMS keys: AWS KMS, GCP KMS, Azure Key Vault, HashiCorp Vault, OpenBao, Kubernetes secrets; OVHcloud KMS through a plugin
- hardware token signing (PIV and PKCS11 builds)
- bring-your-own PKI
- sign-blob and verify-blob for arbitrary files, with Sigstore bundles
- in-toto attestations with attest and verify-attestation
- verification against an expected certificate identity and OIDC issuer
- air-gapped verification with a downloaded trusted root
- custom Fulcio, Rekor and timestamp authority services through a signing config
- tested with ECR, Artifact Registry, Docker Hub, ACR, Artifactory, GitLab, GHCR, Harbor, Quay, Nexus, zot and others
- stores Tekton bundles, WebAssembly modules and eBPF modules in OCI registries
- GitHub Action installer (sigstore/cosign-installer)

## Limitations

- Only generates ECDSA-P256 keys with SHA-256: it can store and fetch signatures made with other algorithms, but not create them[^4]
- Signatures aren't deleted with the image: they're separate objects in the registry with only a weak reference, so deleting or garbage-collecting the image leaves them[^4]
- Keyless signing records the signer's identity, such as an email address, permanently in the public Rekor transparency log, unless you run your own Sigstore services[^4][^5]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.32 out of 1.
Signals: backing 0.30, extensibility 0.20.

- backed by Sigstore and OpenSSF

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Notation](https://talira.ai/catalog/notation-qqpsk79b.md): A CLI tool to sign and verify artifacts
- [SignPath](https://talira.ai/catalog/signpath-3jcs979j.md): Software integrity and code governance: code signing with policies and verified builds
- [packslip](https://talira.ai/catalog/packslip-jn50s5gj.md): A signed release manifest for vendor binaries: what shipped, and how to verify it
- [Azure Artifact Signing](https://talira.ai/catalog/azure-artifact-signing-vjy5q88p.md): Microsoft's fully managed code signing service, formerly Trusted Signing

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^4]: https://github.com/sigstore/cosign (checked 20 Nov 2026)
[^5]: https://docs.sigstore.dev/cosign/signing/overview/ (checked 20 Nov 2026)
[^6]: https://github.com/sigstore/cosign/blob/main/LICENSE (checked 20 Nov 2026)
[^7]: https://docs.sigstore.dev/about/overview/ (checked 20 Nov 2026)
[^8]: https://docs.sigstore.dev/cosign/system_config/installation/ (checked 20 Nov 2026)
[^9]: https://github.com/sigstore/cosign/releases/latest (checked 20 Nov 2026)
