Skip to main content
Supply Chain Security: SBOMs, Attestation, and What to Actually Verify

Supply Chain Security: SBOMs, Attestation, and What to Actually Verify

KU
· Founder & Chief Editor
• 8 min read•Updated •

SBOMs and signed attestations sound like checkboxes until you need to answer "did this artifact come from our pipeline?" The minimum viable supply-chain story we run.

Key takeaways

  • A minimum viable supply-chain setup has three parts.
  • Generate an SBOM at build with Syft, sign the image and its attestations keylessly with Cosign using the CI's OIDC identity, and block unsigned images at deploy with an admission controller such as Kyverno.
  • Without deploy-time enforcement, the other two are only paperwork.

The minimum viable supply-chain setup is three steps: generate an SBOM at build, sign the image and its attestations keylessly with Cosign using the CI's OIDC identity, and reject unsigned or wrongly signed images at deploy with an admission controller. Each step answers a specific attack. Skip the deploy-time check and the other two are paperwork.

Verified againstChecked against official docs

Syft 1.55.0, Cosign 3.1.4 and Kyverno 1.19.2 (latest GitHub releases as of October 2026), against the Sigstore signing docs, the Kyverno Sigstore verify-images docs and the SLSA v1.2 Build track spec. Checked October 2026.

For a long time, "supply chain security" meant "we scan our images." After log4shell, the XZ backdoor, and several smaller incidents, the conversation got serious. None of this is exotic; most teams could land the same baseline in a couple of weeks. This post is what we actually run, what each piece prevents, and what we deliberately skipped.

The threat model in three scenarios

Supply chain security gets vague fast. To stay concrete, the three scenarios we design against:

  1. Someone tampered with the artifact in transit. Our CI built image X with hash A; somewhere between the registry and production, it became image X with hash B. Detected by signing + verification.
  2. Someone pushed a malicious artifact under our name. Attacker got access to the registry and uploaded our-org/api:v3.4.1 that wasn't built by our CI. Detected by provenance attestation + verification at deploy.
  3. Our build pulled in a compromised dependency. Upstream npm/PyPI package got hijacked; the build succeeded but the artifact contains malicious code. Detected (after the fact) by SBOM-driven advisory matching.

SBOM at build time

A Software Bill of Materials lists every package + version that went into the artifact. We generate one per build using Syft:

Bash
syft "$IMAGE@$DIGEST" -o spdx-json > sbom.json

The SBOM is attached to the image as a signed attestation (the cosign attest step below), so it travels with the image to the registry. Anyone who pulls the image can pull and verify the SBOM too. We use SPDX JSON because downstream tooling widely supports it.

What the SBOM enables:

  • Vulnerability response at speed. When the next log4shell-class CVE drops, "do we use the affected package, and where?" is a query against SBOMs across all our artifacts. Minutes, not days.
  • Drift detection. Comparing SBOMs across builds shows when a dependency silently updated.

What the SBOM doesn't do: prevent the compromised-dependency scenario at build time. It just makes the response faster after.

Signed attestations

For every artifact we produce, the CI also produces a signed attestation: a statement of "this artifact was built by this pipeline run, from this commit, by this identity." Signing uses Sigstore (specifically cosign), which is keyless: the signature is tied to the CI's OIDC identity, not a long-lived key we have to manage.

Bash
# At build time, in CI (GitHub Actions job with id-token: write)
cosign sign --yes "$IMAGE@$DIGEST"
cosign attest --yes --type spdxjson --predicate sbom.json "$IMAGE@$DIGEST"

# Anywhere, before trusting the image
cosign verify "$IMAGE@$DIGEST" \
    --certificate-identity-regexp '^https://github.com/company/.+' \
    --certificate-oidc-issuer https://token.actions.githubusercontent.com

The signing certificate records the workflow, commit SHA and builder identity from the CI's OIDC token, and the SBOM and SLSA provenance ride along as attestations. Everything lands in the same OCI registry as the image, and Cosign records each signature in Sigstore's Rekor transparency log.

What this enables:

  • Verify the artifact came from our pipeline. Before deploying, we check the signature. If it's missing or doesn't match expected pipeline identity, refuse to deploy.
  • Tamper detection. A modified image won't match the signed digest.
  • Audit trail. Every artifact in production traces back to a specific pipeline run and commit.

What it doesn't do: certify that the pipeline itself is uncompromised. If an attacker gets into the CI, they can sign artifacts that look legitimate. Pipeline integrity is a separate problem.

Verification at deploy

The pieces above are useless without enforcement. Two enforcement points:

At registry pull. When the Kubernetes runtime pulls an image, an admission controller (Kyverno or Gatekeeper) checks the image's signature. Unsigned images, or signatures from unexpected identities, get rejected.

policies/verify-image-signatures.yaml
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
  name: verify-image-signatures
spec:
  rules:
    - name: verify-our-images
      match:
        any:
          - resources:
              kinds: ["Pod"]
      verifyImages:
        - imageReferences:
            - "our-registry.io/company/*"
          failureAction: Enforce
          attestors:
            - entries:
                - keyless:
                    subjectRegExp: "^https://github.com/company/.+"
                    issuer: "https://token.actions.githubusercontent.com"
                    rekor:
                      url: https://rekor.sigstore.dev

The subjectRegExp field matters: plain subject is a wildcard match, not a regex, so a regex pasted into it won't match the way you expect. Kyverno's docs now flag ClusterPolicy as deprecated in favor of the newer ImageValidatingPolicy type, so treat this as the form to migrate from on new clusters. The first version of this policy is the most enlightening one. We deployed it in audit-only mode (logging violations but not blocking). Within a week we'd found:

  • An old image we'd manually built and pushed years ago, unsigned.
  • A third-party image we used directly (their signatures didn't match our policy).
  • A test image someone pushed during debugging, still in use somewhere.

Fixed each, then switched to enforce mode. Now any unsigned image in our registry namespace fails admission.

At CI for downstream pipelines. If pipeline A produces an artifact that pipeline B consumes (e.g. a base image), B verifies A's signature before using it. Catches the case where the base image got tampered with between A and B.

What we don't do

A few patterns that look reasonable and didn't earn a place:

Verify signatures on every container we run. We verify our own; we don't verify every third-party image (signing coverage is still uneven). Most images we use are from well-known projects whose maintainers don't sign with our trust roots. Pragmatically, we treat third-party images as a separate trust decision: pin to specific tags, scan for CVEs, but don't require signatures.

Chasing SLSA Build L3 for its own sake. SLSA v1.2's Build track has levels L0 to L3: L1 means provenance exists, L2 means a hosted platform generates and signs it, and L3 means the platform isolates runs from each other and keeps the signing secret away from user-defined build steps. Hermetic builds, often quoted as an L3 requirement, are not part of the v1 levels at all. We sit at Build L2, which catches the bulk of the risk for our threat model.

Reproducible builds. Byte-for-byte rebuilds from source are real but hard: practical for some pure-Go binaries, very hard for typical Node or Python with mixed deps. Not on our roadmap.

Vendor-attestation registries. Some products promise centralized registries of "trusted" artifact attestations. We rely on Sigstore's public transparency log (Rekor) instead: it's open, auditable, and the standard the ecosystem is converging on.

The vulnerability response loop

The SBOM + signing setup pays off most when a CVE drops:

  1. Identify affected artifacts. Query SBOMs across all our images: which contain the vulnerable package version?
  2. Trace to deployments. Which deployments use those images? Tooling: cluster scan for current images vs SBOM index.
  3. Prioritize. Customer-facing first; internal next.
  4. Patch. Bump the dependency, rebuild, verify, deploy.
  5. Confirm. Re-scan deployed images, confirm new versions are running.

Steps 1 and 2 take minutes with this setup instead of a week of grepping repos by hand. That is the ROI.

A reference stack

  • SBOM: Syft, generating SPDX JSON, attached as OCI artifact alongside the image.
  • Signing: Cosign with Sigstore (keyless via GitHub OIDC).
  • Vulnerability scanning: Trivy in CI (blocks high/critical CVEs without exception).
  • Admission control: Kyverno verifying signatures at pod admission.
  • Registry: AWS ECR.
  • CI: GitHub Actions.

Running cost: a couple of hours per week of vulnerability triage and exceptions. The setup took about two weeks.

Questions people ask

What is the difference between an SBOM and an attestation?

An SBOM is an inventory: every package and version inside an artifact. An attestation is a signed statement about an artifact, such as "this SBOM describes image X" or "this image was built by workflow Y from commit Z." You want both: the SBOM answers "are we affected by this CVE?", the attestation answers "can we trust that this SBOM and image are really ours?"

Do you need SLSA Level 3?

Usually not on day one. Build L2 (signed provenance from a hosted CI platform, verified by consumers) blocks forged and tampered artifacts, which is most of the practical risk. L3 adds isolation between build runs and keeps signing secrets out of reach of build steps, which matters once an attacker inside one job is a realistic threat. Get L2 enforced at deploy first.

Should you verify signatures on third-party images?

Verify where the publisher signs and documents its identity; many major projects now sign with Sigstore. Pin those to digests and add their identities as separate attestors. For images that aren't signed, pin by digest, scan them, and mirror them into your registry, then sign the mirrored copy with your own pipeline so admission policy stays uniform.

Sources

Explore topics:SecurityCI/CDDevOps
React
Share this post
Cite this article
Plain text

Kiril Urbonas (2026). Supply Chain Security: SBOMs, Attestation, and What to Actually Verify. DevOpsNess. Updated 2026-11-20. https://www.devopsness.com/blog/supply-chain-security-sbom-attestation

Markdown

[Supply Chain Security: SBOMs, Attestation, and What to Actually Verify](https://www.devopsness.com/blog/supply-chain-security-sbom-attestation) (Kiril Urbonas, DevOpsNess, updated 2026-11-20)

KU

Kiril Urbonas

Founder & Chief Editor

607 articles
View all articles by Kiril Urbonas

You might have missed

Evergreen posts worth revisiting.