← Back to blog

2026-10-15 · 8 min read

Supply-Chain Security: SBOMs, Signing, and Provenance

After SolarWinds and Log4j, software supply-chain security is non-negotiable. A practical intro to SBOMs, artifact signing with Sigstore, and SLSA provenance in your pipeline.

#devsecops#security#supply-chain#ci-cd#containers
Supply-Chain Security: SBOMs, Signing, and Provenance

Supply-Chain Security: SBOMs, Signing, and Provenance

The biggest security breaches of recent years didn't come through the front door, they came through the build. SolarWinds shipped a compromised update. Log4j proved most teams had no idea what was even in their dependency tree. Software supply-chain security is about answering three questions for everything you ship: What's in it? Who built it? Can I prove it wasn't tampered with? SBOMs, signing, and provenance answer those three in order.

The threat: you don't ship only your code

A modern artifact is mostly other people's code, base images, transitive dependencies, build tools. Attackers target this because compromising one popular dependency or build step poisons everyone downstream. Your real attack surface is your entire dependency and build graph, not just your repo.

SBOM: know what's in it

A Software Bill of Materials is a complete inventory of every component in an artifact, every library, version, and license. When the next Log4j drops, an SBOM turns "panic and grep for weeks" into "query which artifacts contain the bad version."

Generate one in CI with Syft or Trivy:

# Syft: SBOM in CycloneDX format
syft myapp:1.2.3 -o cyclonedx-json > sbom.json

# Trivy can both generate an SBOM and scan it
trivy image --format cyclonedx --output sbom.json myapp:1.2.3

Standard formats are SPDX and CycloneDX. Store the SBOM as a build artifact (and ideally attach it to the image, see below). Then scan it continuously, because a component that's safe today gets a CVE tomorrow.

Signing: prove who built it

An SBOM tells you what's inside; signing proves the artifact came from your pipeline and hasn't been altered. Sigstore / cosign made this dramatically easier, keyless signing using short-lived certs tied to your CI's OIDC identity, so there are no long-lived private keys to leak.

# keyless sign in CI (uses the workflow's OIDC identity)
cosign sign --yes myregistry/myapp@sha256:abc...

# verify before deploy
cosign verify \
  --certificate-identity-regexp 'https://github.com/durrello/.*' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  myregistry/myapp@sha256:abc...

Then enforce verification at admission: a Kubernetes policy controller (Kyverno or Sigstore's policy-controller) rejects any image that isn't signed by your pipeline. Now an attacker who pushes a malicious image to your registry can't get it deployed, because they can't forge the signature.

Provenance: prove how it was built

Provenance is signed metadata describing how an artifact was produced: which source commit, which builder, which steps. SLSA (Supply-chain Levels for Software Artifacts) is the framework that grades this, from "no guarantees" (L0) up to "non-falsifiable provenance from a hardened builder" (L3).

The practical win: GitHub Actions can generate signed SLSA provenance for your builds via the official provenance generator, attesting "this image was built from commit X by this exact workflow." A verifier can then refuse anything whose provenance doesn't match, closing the SolarWinds-style "someone tampered with the build" gap.

Putting it in a pipeline

A hardened pipeline does all three, gated:

  1. Build the image from an immutable source commit.
  2. Generate an SBOM (Syft/Trivy) and attach it as an attestation.
  3. Scan the SBOM/image for known CVEs; fail on criticals.
  4. Sign the image with cosign (keyless, OIDC).
  5. Generate SLSA provenance attesting the build.
  6. At deploy, admission control verifies signature + provenance before the image is allowed to run.

Pin your actions and use OIDC for cloud auth too, see Hardening GitHub Actions. The devsecops-starter-kit wires this kind of pipeline together.

Start where it pays off fastest

You don't need SLSA L3 on day one. Sequence by ROI:

  1. SBOM generation + continuous scanning: biggest immediate win; you finally know what you ship.
  2. Keyless signing + admission verification: stops unsigned/tampered images from deploying.
  3. SLSA provenance: closes the build-integrity gap; layer it in as you mature.

Each step is independently valuable. Even just "we generate and scan an SBOM for every image" puts you ahead of most teams the next time a Log4j-class CVE lands.

The short version

  • Your attack surface is your whole dependency + build graph, not just your code.
  • SBOM answers what's in it: generate with Syft/Trivy, scan continuously.
  • Signing (cosign, keyless/OIDC) answers who built it: enforce at admission.
  • Provenance (SLSA) answers how it was built: non-falsifiable build metadata.
  • Build it into the pipeline, gated, and start with SBOMs for the fastest payoff.

Hardening build pipelines and software supply chains is core to my DevSecOps consulting. Reach out.

Share:LinkedInXWhatsApp

Related articles

Reactions & comments