SecurityIntermediate

Supply-Chain Security: SBOMs, SLSA, and Signing in Practice

DeveloperHat Team
15 min read

TL;DR

Stop shipping software you can't prove came from your build. SBOMs, SLSA provenance, and Sigstore signing — what each proves and what to enforce in CI.

Most teams can list the dependencies in their repository. Far fewer can answer the question that matters after an incident: what exactly is inside the artifact running in production, how was it built, and who vouches for it? When a vulnerability lands in a transitive dependency at 2am, the team that can answer those three questions from evidence — not from memory — is the team that patches in hours instead of days. The team that cannot is the team grepping containers by hand.

This article covers the three pieces of evidence that answer those questions — an SBOM, SLSA provenance, and a Sigstore signature — what each one proves, what to enforce in CI, and which parts of the usual advice are theatre. Tool behaviour, versions, and links are as checked on 23 November 2026 — treat them as a snapshot, because the tooling moves fast. The short version up front: generate the SBOM at build time, attach SLSA provenance to every release build, sign the artifact keylessly, and verify all three before anything runs — and skip any of it that nobody ever checks, because evidence nobody verifies is decoration.

The supply chain is a pipeline — and every hop is an attack surface Each stage produces one piece of evidence. Verification happens at deploy time, not at audit time. Source git + deps Build hosted CI Artifact image · binary Registry signed store Deploy admission gate SBOM what is inside Provenance how it was built Signature who vouches for it An unsigned artifact with no SBOM and no provenance is a claim. The three evidences turn it into proof.

Why the build is the attack surface

The December 2020 SolarWinds disclosure is still the clearest example of why this matters: attackers compromised the build system itself and inserted malicious code into signed Orion updates, which customers then installed because the updates looked legitimate. The code was reviewed, the signature was valid, and the artifact was still hostile — because the compromise happened between the source and the artifact, at the one stage nobody was watching.

Three attack shapes dominate the supply chain in practice:

A poisoned dependency. A compromised package, a typosquatted name, or a dependency-confusion attack where a private package name is claimed on a public registry and the resolver picks the public one. Your code is unchanged; the thing it pulls in is not.

A compromised build. A CI runner with a poisoned cache, a malicious step in a third-party action, or a build that runs on a developer's laptop and uploads whatever it produced. The source is clean, the artifact is not, and nothing in the pipeline can tell the difference.

A tampered artifact in transit. An image retagged after scanning, a release tarball replaced on a mirror, a deployment that pulls latest and gets something nobody reviewed. The build was fine; the thing that reached production was not.

An SBOM, provenance, and a signature each close one of these holes — and none of them closes all three. That is the whole point of the stack: the pieces are complementary, not interchangeable.

The three pieces of evidence

1. The SBOM — what is inside

An SBOM is an ingredients list for a software artifact: every component, its version, its license, and how the components relate. It answers "what is inside this thing?" — which is the question you ask when a CVE drops and you need to know whether you are affected, and the question a customer or regulator asks when they want proof you know what you ship.

The two formats that matter are CycloneDX (OWASP, built for application security) and SPDX (Linux Foundation, built for license compliance, standardised as ISO/IEC 5962). The current versions as of November 2026 are CycloneDX 1.7 (October 2025) and SPDX 3.0.1 (December 2024). If you sell into the EU, note the floor: Germany's BSI guideline TR-03183-2 (version 2.1.0, August 2025) requires CycloneDX 1.6 or higher or SPDX 3.0.1 or higher, and the EU Cyber Resilience Act makes an SBOM a requirement for products placed on the market, applying from 11 December 2027.

Generate the SBOM in the build, not after it. The standard tool is Syft, Anchore's open-source generator, which catalogues container images and filesystems and emits either format:

# One command, run in the same job that builds the image.
syft packages registry.example.com/app:1.2.0 \
  -o cyclonedx-json=sbom.cdx.json \
  -o spdx-json=sbom.spdx.json

# Scan it with Grype, Syft's sibling scanner, and fail the build
# on critical vulnerabilities that have a fix available.
grype sbom:sbom.cdx.json --fail-on critical

Two details that trip teams up: Syft's defaults are CycloneDX 1.6 and SPDX 2.3, so SPDX 3.0 has to be asked for explicitly, and an SBOM generated from the final image only sees the squashed layers — use --scope all-layers if you need everything that ever touched the build. Our secure CI/CD pipelines guide covers where this scan-and-gate step sits in the pipeline.

2. Provenance — how it was built

Provenance is a signed statement from the builder: this artifact was built from this source, at this commit, by this workflow, with these inputs. It answers "how was this built, and can I trust the builder?" — which is the question the SBOM cannot answer, because an SBOM describes the artifact and says nothing about where it came from.

The framework for it is the SLSA specification (Supply-chain Levels for Software Artifacts, an OpenSSF project). Version 1.2, announced 24 November 2025, is the current approved version; it adds a Source Track alongside the long-standing Build Track. The Build Track levels are the part to know:

LevelWhat it requiresWhat it stops
L0Nothing — no provenanceNothing
L1Provenance exists; the build is scriptedAccidental wrong artifact; no traceability
L2Provenance is signed by a hosted build platformPost-build forgery; builds from a laptop
L3Hardened, isolated, ephemeral builders; signing keys inaccessible to build stepsCross-build contamination; key theft by a build step

L2 is the realistic target for most teams, and GitHub now generates it natively: artifact attestations bind a build artifact to its source repository and workflow, and the actions/attest-build-provenance action (v4 as of late 2026) emits SLSA-aligned provenance in the same job that builds the image. The older slsa-framework/slsa-github-generator route (last release v2.1.0, February 2025) was marked no longer actively maintained in August 2026 — start with GitHub's native attestations instead. One honest limit: an attestation proves the build ran on the stated builder; it does not prove the builder was hardened, which is what L3 adds and what most teams defer.

3. The signature — who vouches for it

A signature answers "who vouches for this artifact, and has it changed since?" The tool is cosign, from the Sigstore project, and the mode to use is keyless: the CI job proves its identity with an OIDC token, Sigstore's Fulcio certificate authority issues a certificate valid for about ten minutes, cosign signs the image digest with an ephemeral key that is never written to disk, and the signature, certificate, and timestamp are recorded in Rekor, Sigstore's public transparency log.

# Sign the image by digest, in CI, with no key material stored anywhere.
# The job needs `permissions: id-token: write`.
cosign sign --yes registry.example.com/app@sha256:<digest>

# Verify it — and pin the identity, or the check means nothing.
# Cosign 2.x and later require these constraints for keyless verification.
cosign verify \
  --certificate-identity "https://github.com/your-org/your-repo/.github/workflows/release.yml@refs/heads/main" \
  --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
  registry.example.com/app@sha256:<digest>

The verification step is the whole point, and it is the step teams skip. A signature that is never checked is a sticker, not a control. The check belongs at the admission gate — Sigstore's policy-controller, or Kyverno's verifyImages rule — so an unsigned or wrongly signed image cannot be scheduled at all. Keyless signing is the default because it removes key custody entirely; the alternative is a key pair held in a KMS (AWS, GCP, Azure, or Vault), which is the right call when the builder cannot reach Sigstore's public instance — air-gapped environments and regulated industries, for example. Our zero-trust guide covers the admission side: verify every request, including the request to run an image.

The evidence stack, layer by layer — each layer attests the one below it Source — Git · locked dependencies · signed commits Build — hosted CI · hermetic build · SLSA provenance Artifact — SBOM · vulnerability scan · in-toto attestation Registry — cosign keyless signature · Rekor transparency log Deploy — admission policy · verify before run · audit trail Remove any layer and the one above it is unverifiable — a signature on an unproven build proves nothing.

What to enforce in CI — and what is theatre

Enforcement is where the evidence becomes a control. Four gates, in the order to add them:

  • SBOM generated at build time and attached to the artifact. If the SBOM is generated later, from a different machine, it describes a different artifact. Attach it to the image as an attestation so it travels with the digest.
  • A scan gate that fails the build. Scan the SBOM and fail on critical vulnerabilities with a fix available. Failing on every finding, including unfixed ones, trains the team to bypass the gate within a month — fail on what is actionable, and track the rest.
  • Provenance on every release build. The attestation is cheap once the workflow exists, and it is the evidence that turns "we think this came from main" into a checkable claim.
  • Signature verification at admission. The cluster refuses unsigned images. This is the gate that makes the other three matter, because a signed artifact that runs without verification is verified by nobody.
  • And the theatre — the things that look like supply-chain security and are not:

  • An SBOM nobody reads. Generated once for a compliance checkbox, stored in a wiki, never scanned, never attached to the artifact. The moment a CVE lands, the team still greps containers by hand.
  • Scanning without a gate. A report that lands in a dashboard and never blocks a merge is a weather forecast, not a control.
  • Signing without verifying. The pipeline signs every image and nothing ever checks the signature. The attacker does not need to forge your signature — they just need to deploy an unsigned image, and nothing will object.
  • Provenance nobody checks. Attestations attached to the artifact and never validated at deploy time are the same problem as a signature nobody verifies.
  • The workflow, end to end

    The whole stack fits in one release workflow. Build the image, generate the SBOM and scan it, attest provenance, sign keylessly, and push — all in the same job, so the evidence describes the artifact that was actually built:

    # .github/workflows/release.yaml — SBOM + provenance + keyless signature.
    name: Release
    on:
      push:
        tags: ['v*']
    permissions:
      contents: read
      id-token: write      # OIDC token for keyless signing and attestations
      attestations: write  # SLSA provenance attestation
      packages: write      # push to ghcr.io
    jobs:
      release:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - name: Build and push
            id: build
            uses: docker/build-push-action@v6
            with:
              push: true
              tags: ghcr.io/${{ github.repository }}/app:${{ github.ref_name }}
          - name: Generate SBOM and scan
            run: |
              syft packages ghcr.io/${{ github.repository }}/app:${{ github.ref_name }} \
                -o cyclonedx-json=sbom.cdx.json
              grype sbom:sbom.cdx.json --fail-on critical
          - name: Attest SLSA provenance
            uses: actions/attest-build-provenance@v4
            with:
              subject-name: ghcr.io/${{ github.repository }}/app
              subject-digest: ${{ steps.build.outputs.digest }}
              push-to-registry: true
          - name: Sign keylessly with cosign
            uses: sigstore/cosign-installer@v3
          - run: |
              cosign sign --yes ghcr.io/${{ github.repository }}/app@${{ steps.build.outputs.digest }}

    The build itself deserves the same discipline as the evidence around it: run it on ephemeral self-hosted runners or a hosted platform rather than a persistent machine, so a compromised job cannot poison the next build's cache or steal the signing identity. Provenance from a builder you do not trust is a signed lie.

    What must you prove about a release? Start from the question an auditor or an incident will ask — then build the evidence for it. What must you prove? inside · built · vouched What is inside it? ingredients list How was it built? builder + inputs Who vouches for it? identity + log SBOM answers the first question, SLSA provenance the second, a cosign signature the third — you need all three.

    The recommendation

    ApproachBest forCostWhat it costs you
    SBOM onlyTeams that need vulnerability answers fast; first step for everyoneOne tool in CI; a scan gate to tuneProves contents, not origin — a tampered artifact still has a valid SBOM
    SBOM + provenanceTeams shipping releases customers or regulators ask aboutAttestation action; builder must be hostedNo identity check at deploy time — a signed artifact is not a verified one
    SBOM + provenance + keyless signingAny team deploying containers to a cluster it operatesCosign in CI; admission policy in the clusterDepends on Sigstore's public instance unless you self-host or use KMS keys
    Signing with long-lived keysAir-gapped or regulated environmentsKey custody, rotation, and access controlThe key becomes the crown jewels — lose it and every past signature is suspect
    Nothing — scan the repo, ship the imageInternal tools with no distribution and no external consumersZeroNo answer at 2am when the CVE lands; no evidence for a customer or auditor

    The default that follows from the table: SBOM plus provenance plus keyless signing, with the signature verified at admission. It is the only row where all three questions have an evidence-backed answer, and the incremental cost over SBOM-only is one action in the workflow and one policy in the cluster. Start with the SBOM this week — it pays off the first time a CVE drops — add provenance next, and close the loop with admission verification, because a signature nobody checks is the most expensive sticker in the pipeline.

    Architecture Decision

    >

    Decision: Generate an SBOM at build time with Syft, attach SLSA provenance with GitHub artifact attestations, sign every release image keylessly with cosign, and verify the signature and provenance at the admission gate before anything runs — starting with the SBOM and scan gate, then provenance, then admission verification.

    >

    Context: A product team of ten ships a containerised service weekly from GitHub Actions to a Kubernetes cluster. A customer asked for an SBOM last quarter and the team assembled one by hand over three days; a critical CVE in a transitive dependency took two days to scope because nobody could say which images contained it. The cluster currently runs any image it is given.

    >

    Options considered: (a) Keep hand-assembling SBOMs on request and scanning the repository only. (b) SBOM in CI with a scan gate, nothing else. (c) SBOM plus SLSA provenance, no signature verification. (d) The full stack: SBOM, provenance, keyless signing, admission verification. (e) A commercial supply-chain platform that does all of it.

    >

    Why this one: Option (a) is the current state and it already cost a three-day scramble and a two-day CVE investigation. Option (b) answers the vulnerability question but not the origin question — a tampered artifact still ships with a valid SBOM. Option (c) proves the build but not the deployment, so an unsigned image still runs. Option (e) is the fastest to buy and the most expensive to own, and it hides the evidence behind a vendor console. Option (d) answers all three questions with open tooling, and each layer can be added in sequence without reworking the ones before it.

    >

    What it costs you: CI gets slower by the SBOM generation and scan on every release build, and the scan gate needs tuning or it blocks releases on unfixed findings. Keyless signing depends on Sigstore's public instance being reachable from CI; an outage or an air-gapped builder means falling back to KMS-backed keys. Admission verification will block a deploy the first time a signature is missing or an identity string is wrong — budget a half-day for that first failure.

    >

    When to reverse it: When the software is never distributed — an internal tool with no external consumers and no auditor — the SBOM and signature buy little, and a scan gate alone is enough. When the builder cannot reach Sigstore and the team will not run a KMS, drop the signature and keep SBOM plus provenance rather than signing badly. When the admission gate blocks deploys more often than it catches problems, the identity strings are wrong, not the idea — fix the policy, do not remove the gate.

    When not to use it

    Do not build the full stack for a repository whose artifacts never leave the team — a script that runs on one developer's machine, a prototype with no production deployment. A scan gate alone covers the real risk there, and the rest is ceremony. Do not treat the evidence as proof the code is safe: an SBOM proves what is inside, provenance proves how it was built, and a signature proves who vouches for it — none of them proves the code has no bugs, and a signed, well-documented vulnerability is still a vulnerability. Do not sign with a long-lived key stored in the repository or in CI secrets if you can avoid it; keyless exists precisely so there is no key to steal, and a key in a secret store is one exfiltration away from a forged signature on an arbitrary artifact.

    And do not expect the evidence to fix the dependency problem by itself. The SBOM tells you a vulnerable package is present; somebody still has to upgrade it, and the upgrade still has to pass the tests. The stack buys you the answer in minutes instead of days — it does not buy you the fix.

    What to do next

    This week: add Syft to one release workflow and generate the SBOM, then answer the question the SBOM exists for — pick the last critical CVE in one of your dependencies and time how long it takes to find every image that contains it. Next, attach provenance with the attestations action and confirm the attestation is visible on the release. Then add the cosign step and the admission policy, and deliberately deploy an unsigned image to staging to watch the gate refuse it. The first time a CVE drops and the answer takes ten minutes instead of two days, the stack has paid for itself.

    Why This Matters

    Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

    Trade-offs to Consider

    Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

    When NOT to Use This

    Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

    Decision Framework

    Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

    Share this articleShare on XShare on LinkedIn

    Keep the decision frameworks coming

    One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.