Course map

Topic 173 / Advanced

Software supply chain security: SBOM, artifact signing, provenance

Chapter 10.6 · Privacy, Compliance, and the Secure Lifecycle

What and why

Topic 172's dependency scanning checks known components for known vulnerabilities at one point in time; supply chain security is the broader, continuous question of what's actually running, whether it was tampered with after it was built, and where it came from. An SBOM (software bill of materials) lists every component in a build. Artifact signing lets a consumer verify a build wasn't modified after it was produced. Provenance records which source, build system, and pipeline run produced a given artifact. Builds on: → 172 (secure development lifecycle).

Diagram

Artifact Risk Control
A dependency Unknown or vulnerable component in the build SBOM — every direct and transitive component, with version
A build artifact Tampered with after it was built Signing — a consumer can verify it wasn't modified
The build process itself A compromised build pipeline Provenance — records where and how it was built

How it works

  1. Generate an SBOM for every build: every direct and transitive component and its version, so a newly disclosed vulnerability can be matched against what's actually deployed by lookup, not by manual audit.
  2. Sign build artifacts so any consumer — another service, a deployment pipeline — can verify the artifact hasn't been altered since it was built.
  3. Record provenance: the source commit, the build system, and the pipeline run that produced the artifact, so its origin can be independently verified, as described in NIST SP 800-218's secure software development framework.
  4. Verify signatures and provenance at deploy time, not only at build time — an unsigned or unverifiable artifact should fail to deploy, not merely log a warning.
  5. This extends dependency scanning (→ 172) from "did we scan it once" to "can we prove what is actually running," continuously.

Practical example

(illustrative). A widely used library has a newly disclosed vulnerability. With an SBOM generated for every deployed service, the exact set of affected services is a direct lookup against recorded component lists, not a manual audit of every codebase. This is what makes the OWASP Top 10:2025's Software Supply Chain Failures category (→ 166) answerable in minutes rather than days.

When to use it

  • Use SBOM generation, signing, and provenance for anything built and deployed through a shared pipeline, especially where artifacts move between teams or organizations.
  • Avoid treating this as optional "once we're bigger" — the cost of generating an SBOM at build time is small; the cost of answering "are we affected" with none, during an active incident, is not.
  • Failure scenarios: a vulnerability disclosure with no SBOM to check against, forcing a slow, error-prone manual audit while the vulnerability remains exploitable; an unsigned artifact silently substituted somewhere in the deployment path, with nothing to catch it; a compromised build system with no provenance record to even detect, let alone prove, what actually ran.
  • Simpler alternative: for a single small project built and deployed by one person on one machine, full SBOM/signing/provenance tooling is likely disproportionate — adopt it once the pipeline, team, or artifact distribution grows past what can be checked by hand.

Practice

(Process kind — fill the template on a small real system; 20–30 min, no lab services). For Project 1 or any project you've built, list every direct dependency and its version by hand — a minimal SBOM. Then write what you would check first if one of them had a newly disclosed vulnerability tomorrow, and how long that check would take with only this list versus without it. Done when the list is complete enough to answer "are we affected" in under a minute for any one dependency.

Key takeaway

An SBOM, artifact signing, and provenance together answer "what's running, was it tampered with, and where did it come from" — the questions a dependency scan alone can't answer once something ships. Done when you can: produce a minimal SBOM for a real project and state what signing and provenance would add on top of it. Used next in → 186 (CI/CD pipelines, where SBOM generation and signing run as gates); Part 11.

References

OWASP Top 10:2025 — see references.md.

Source directory

Search the guide