How to Implement SBOM and Build Provenance in a Software Supply Chain

How to Implement SBOM and Build Provenance in a Software Supply Chain

A modern software product is more than the source code written by its engineering team. Open-source packages, operating-system components, build tools, container base images, and third-party client libraries may all become part of the released artifact. This increases development speed, but it also creates a practical security question: which components were included in a release, and how was that release produced?

Two complementary concepts help answer it. A Software Bill of Materials, or SBOM, describes the software components inside an artifact. Build provenance describes how that artifact was created, including its source, inputs, and build process. Used together, they help security teams identify affected releases, help developers investigate dependency decisions, and help operators verify the origin of deployed software.

SBOM and provenance answer different questions

An SBOM focuses on software composition. For example, it can identify the libraries, package versions, and transitive dependencies included in a production container image. This information supports vulnerability matching, license review, and inventory management.

Provenance focuses on the production process. It can describe the source commit, build system, relevant inputs, and relationship between the build and the resulting artifact. This distinction matters when two artifacts appear to come from the same source but were produced by different or potentially untrusted environments.

NIST's Secure Software Development Framework recommends collecting, protecting, maintaining, and sharing provenance data for software releases. SLSA defines progressively stronger build assurances: lower levels require provenance to exist, while higher levels add signed provenance and hardened build environments.

Start with a narrow, measurable scope

SBOM initiatives often become difficult when they attempt to cover every application and repository at once. A more practical approach is to begin with one production pipeline and one artifact type.

  1. Select an application delivered to customers or deployed to production.
  2. Identify the primary artifact: a container image, package, mobile application, or standalone binary.
  3. Require an SBOM and provenance record for every release.
  4. Store both outputs with the artifact and define who can access them.

The initial goal is not to eliminate every supply-chain risk. It is to answer the question “what was in this release?” accurately and consistently.

Define the SBOM format and data contract

Different tools can generate different formats, so teams should define a minimum data contract before selecting a tool. At a minimum, each component should have a name, version, package ecosystem, supplier or author information where available, and a stable identifier whenever possible.

SPDX is an open standard for representing SBOM information and is recognized as ISO/IEC 5962:2021. Its specifications provide a model for components, relationships, licensing information, and other software supply-chain use cases. If your organization uses another established format, the same principle applies: document which fields are mandatory and which are optional.

FieldWhy it matters
Component name and versionProvides the basic identity needed for inventory and vulnerability matching.
Package ecosystemReduces ambiguity between packages with similar names.
Hash or stable referenceReduces name-based uncertainty and supports integrity checks.
RelationshipsShows how the application, direct dependencies, and transitive dependencies are connected.

Generate the SBOM inside CI/CD

Do not turn the SBOM into a document that developers prepare manually. A more reliable pattern is to generate it automatically in the same CI/CD workflow that creates the production artifact. This makes the SBOM represent the file or image that is actually being distributed.

A typical workflow can look like this:

  1. Check out a specific source commit or release tag.
  2. Resolve dependencies according to the lock file and run the build.
  3. Scan the final artifact and generate the SBOM.
  4. Associate the SBOM with the artifact digest.
  5. Record provenance describing the source, inputs, workflow, and build environment.
  6. Generate signatures or other verification metadata.
  7. Publish the artifact, SBOM, and provenance to a controlled registry or repository.

A dependency manifest and an SBOM generated from the final artifact are not always identical. A manifest may show direct dependencies, while an image scan may include operating-system packages and transitive components. Depending on the use case, it can be useful to preserve both views and label them clearly.

Make provenance verifiable

Provenance has limited assurance value if it is merely a human-readable description. Consumers should be able to verify which artifact the statement belongs to and whether it was modified after creation.

Use a cryptographic digest for every released artifact. Bind the provenance statement to that digest and document the signature verification process. Protect signing keys in the CI/CD environment, restrict access, and define procedures for key rotation, renewal, and revocation.

SLSA's build model treats provenance as more than an informational field. Its levels address increasing confidence in the build process and the protection of the artifact and provenance itself. These levels should be treated as technical targets selected from a threat model, not as a generic compliance badge. A mutable build server presents a different risk from an isolated and hardened build platform.

Connect scanning to release decisions

Generating an SBOM does not improve security unless the organization uses it in a decision process. When a scanner reports a vulnerable component, evaluate the finding together with operational context:

  • Is the component actually present in the production artifact?
  • Is it a direct or transitive dependency?
  • Does the vulnerable functionality execute in the application?
  • Does the available update meet compatibility and testing requirements?
  • If risk acceptance is required, is an owner and expiration date recorded?

This is more reliable than treating every scanner finding as an immediate emergency. Critical issues may block a release automatically, while lower-risk findings can be assigned to an owner with a due date and a documented mitigation.

Retention and incident response

Keep SBOM and provenance records for every released version, not just the latest one. Each deployment should map to an immutable release identity so that investigators can determine which components were present in the past. The storage system should be managed with appropriate access control, integrity protection, and retention rules.

When a new vulnerability is announced, a concise response procedure can be:

  1. Identify the affected component's stable identifiers.
  2. Search the SBOM repository for releases containing that component.
  3. Use provenance records to confirm where those releases came from and how they were built.
  4. Route affected versions to testing, rollback, or emergency patch workflows.
  5. Record the scope, decisions, and evidence in the incident record.

Common implementation mistakes

  • Generating an SBOM only from a source manifest: The final artifact may contain additional packages.
  • Creating outputs that cannot be compared across builds: Investigation and auditing become harder.
  • Adding signatures without verification: A signature provides little operational value without a documented trust and verification policy.
  • Including sensitive data in provenance: Tokens, secrets, and internal network details should not be recorded.
  • Leaving findings without ownership: Technical data does not become remediation without an accountable team and deadline.

Conclusion

An SBOM makes software composition visible, while build provenance makes the production process visible. The strongest practical pattern is to generate both automatically in CI/CD, use an established format, bind the records to immutable artifact identities, and make verification part of normal release and incident-response operations.

Start small: one production artifact, one pipeline, and a clear minimum data contract. Once that foundation works, the same inventory can support vulnerability response, license review, supplier assessment, and software-release investigations.

Sources

//

0 Comments

Write Comment

E-Mail address will not be published