Lesson 9 of 12 · 20m
Provenance: Prove What You Shipped
A signature says who signed it; provenance says which commit and which build run made it — cosign keyless, in-toto attestations, SLSA levels, and admission enforcement.
When Kubernetes pulls registry.internal/app:1.4.2, it trusts the tag because the registry said so. The tag is mutable, the registry is a network service that can be compromised, and the "identity" of the artifact is a string anyone with push access can re-point. That is trust-on-first-use, re-performed on every deploy. Signing and provenance exist to replace it with something checkable.
The SolarWinds hole in "it was signed"
December 2020: SolarWinds disclosed that its Orion build system had been compromised, and builds shipping SUNBURST were signed with SolarWinds' real certificate. The signature was genuine. What it proved was "SolarWinds' build infrastructure produced this" — which was exactly the problem. A signature binds an artifact to a signing identity; what you actually want is a statement binding it to a source commit and a specific build run. That statement is provenance, and it's a different thing.
The format that carries it is an in-toto attestation — a signed JSON claim like "GitHub Actions run 8847, workflow .github/workflows/release.yml, commit a1b2c3, produced digest sha256:4b2f…". SLSA (v1.0, three levels) grades how strong the claim's backing is: L1 is "we documented a build process," L2 is "a hosted builder signed provenance for it," L3 is "the build ran isolated and ephemeral enough that tampering mid-build is hard." Level 4 was dropped in v1.0 — anyone citing it is reading an old spec.
Keyless signing is the part that made this usable
Managed private keys were why nobody signed anything for twenty years. Sigstore's cosign kills the excuse: inside GitHub Actions, id-token: write gives the job an OIDC token; cosign trades it for a short-lived Fulcio certificate bound to the workflow's identity, signs, and logs the signature to the Rekor transparency log. No key exists to steal, rotate, or lose.
permissions:
id-token: write # OIDC for keyless signing
contents: read# sign the digest, never the mutable tag
cosign sign registry.internal/app@sha256:4b2f…
# verify at deploy/admission time
cosign verify registry.internal/app@sha256:4b2f… \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp 'https://github\.com/acme/app/\.github/workflows/release\.yml@refs/tags/v.*'The identity regexp is the control: it says which workflow on which ref is allowed to sign production images. A build from a random branch or a fork fails verification even with a perfect signature.
Attest the metadata too
cosign attest --type cyclonedx --predicate sbom.json registry.internal/app@sha256:4b2f…Now the SBOM travels with the image, signed, bound to the digest. gh attestation verify does the same for GitHub's native artifact attestations (actions/attest-build-provenance), npm publish --provenance stamps npm packages with their CI run's identity, and slsa-verifier verify-artifact checks SLSA provenance for binaries built by slsa-github-generator. Verification runs downstream too — cosign verify-blob and the same identity flags work on release binaries your users download. The ecosystem has converged on in-toto + Sigstore — learn it once.
Worth saying plainly: this doesn't stop a compromised maintainer pushing a poisoned legitimate release, and it doesn't replace scanning. It answers one question — "is this artifact the thing my pipeline built" — that otherwise has no answer at all.
Enforcement at the door
Verification in a runbook nobody runs is decoration. The real pattern is admission control: Sigstore's policy-controller or a Kyverno verifyImages rule in the cluster, configured so pods only start if their image verifies against the allowed workflow identity. Unsigned image, no pod — and now the supply chain has teeth.
Field notes
- Sign digests; verify digests; deploy digests. The tag is a label for humans.
- Provenance ≠ integrity ≠ identity. You want all three; the signature gives two, the attestation carries the third.
- If the build runs on a shared, persistent runner, your SLSA claim is L2 at best — and that's honest. Write the level you can defend.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
Buying Time: Package Managers Are Adding Delay as a Security Control
Composer 2.11 shipped a cooldown that refuses to install a version until it has aged. vlt now holds npm publishes until their dependencies actually exist, because 22% of new npm versions land broken. And Ruby Central's reviewers threw out 90% of what an AI scanner flagged.
Your npm Install Just Ran Someone Else's Code: Why Dependency Security Has to Start Before CI
A pull request checkout, a poisoned GitHub Actions cache, and an OIDC token pulled straight out of runner memory. That's how 84 malicious versions of TanStack's packages hit npm in six minutes.
CVE-2025-62718: Critical Axios SSRF Vulnerability Explained
A critical SSRF flaw in Axios was used in a North Korean supply chain attack. Here's what it does and how to patch it today.
What is Supply Chain Security? Dependencies, SBOMs, and the Attack That Hit 2.6 Billion npm Downloads
Your application is only as secure as every package it depends on. In September 2025, attackers compromised 27 npm packages with 2.6 billion weekly downloads by phishing one maintainer.