# SBOM

## What it is

An SBOM, or software bill of materials, identifies components that make up a specific software release. It can describe the software being inventoried, the individual components, the relationships between them and how the inventory was produced. A small command-line program might contain a runtime library and several packages obtained through that library. An image might carry those packages alongside operating-system packages and other files. The scope of a useful bill says which of those layers it covers.

SPDX and CycloneDX are specifications for recording component and relationship data in structured form. An inventory entry can carry names, versions, supplier details and identifiers, depending on the data available and the specification. Linking entries with relationships makes the distinction between explicitly chosen and transitive dependencies visible. Component identity needs enough precision to distinguish packages with common names and to associate a particular entry with what consumers actually obtain. Record the identifiers and the version scheme that apply to those components.

An inventory can be generated from several kinds of evidence. The source manifest describes requests for dependencies. A lockfile describes the selection made by a resolver. A build-time inventory can observe packages used during assembly. An artifact scan sees what its tooling recognises in the delivered object. These inputs can yield different lists because they describe different stages or observe different kinds of artifacts. Identify the generation method, date and coverage of the bill so a consumer can understand what its entries mean.

## Why it matters

When a component is discovered to have a serious defect, someone has to answer which released systems contain the affected version. Searching only active source branches can miss an older build that is still running. A bill tied to an artifact gives responders a durable list they can use with deployment records. It can also show why a component is present, for example when a framework obtained it indirectly and the application team never named it in their own manifest.

A structured bill supports recurring questions outside incident response. Engineering can compare what changed between releases. A customer reviewing a release can ask about a platform package that appears unexpectedly. A licensing team can inspect supplier-declared terms and flag items that need further review. Each activity needs its own evidence. Identifying a package does not decide whether a defect is exploitable in the delivered configuration, whether a declared licence accurately describes every file, or whether a particular deployment actually uses the package. Keep those assessments separately attributable to their evidence and date.

An inventory is useful for maintenance as well. If two editions of a product use different base images, counting a name once at product level hides decisions the maintainer may need to make separately. Connect each inventory with the exact variant and artifact digest. When one variant is rebuilt after a patch, the previous bill remains useful for understanding systems that have not yet upgraded.

## What it looks like in practice

Take a team that ships two container images from one source revision. One contains the application and a minimal set of runtime files. Another includes tools for a separate administrative task. Start by deciding whether the inventory covers the source tree, all packages needed for a build or only components delivered in a particular image. Record that scope explicitly. Generate one bill per shipped image and retain its association with the image's immutable identity. When base images change independently, the same source revision may produce different delivered artifacts and therefore a different inventory.

Validate the output by finding a known direct dependency, a known transitive dependency and a package supplied by the base image. Inspect a file or library from an ecosystem the scanner may not recognise. If coverage is incomplete, describe the gap rather than inferring that a component is absent. Compare the result with the prior release and tie expected additions or removals to their build inputs. Record the generator version with the output so someone can tell whether a changed inventory reflects different software or better detection.

Simulate an advisory against the retained inventories. Find candidate artifacts and then check which are deployed. For each candidate, hand the component identity and observed version to the person responsible for evaluating the actual impact. Once a patch has been verified, compare the new artifact inventory to confirm it contains the intended replacement. Keep both sets of records so the team can answer questions about the period before every deployment was updated.

The [Engineer ApS delivery-pipeline case study](/portfolio/built-github-actions-ci-cd-pipelines/) describes an SBOM step alongside quality, testing and deployment workflows. That gives the inventory a natural place in the release process. The two-image example is illustrative. It shows how to keep the information specific enough for a reader to connect it to the precise software they deploy. In both cases the inventory helps someone ask better questions about a release, while the tests and deployment records answer their own questions.

## Where it goes wrong

A single bill bearing a product name can quietly outlive the version that produced it. Give every bill an unambiguous release association, update it during the release process and retain it with the corresponding artifact. If a build packages different components by platform, keep those variants visible. Regenerating from whichever source is current after an incident does not recover an earlier image's contents.

Package names without ecosystems or versions can match the wrong identity. Record a stable package identifier where it is available and check ambiguous matches with additional evidence. Mark uncertainty when one component has been repackaged or copied locally. A bad match can create a false emergency for unaffected systems or leave a vulnerable component outside the list of candidates.

Finally, test what the inventory process can miss. Static linking, vendored code and tools copied directly into an image may be harder to discover than entries installed from a known package registry. Use evidence from the build as well as the artifact where useful, identify the coverage boundary, and design a manual review for gaps the automatic checks cannot currently close.

## Further reading

- [CycloneDX specification overview](https://cyclonedx.org/specification/overview/) describes inventory and relationship data in the bill of materials format.
- [SPDX specification](https://spdx.github.io/spdx-spec/v2.3.1/) documents the vocabulary and relationships of another inventory format.
- [2026 minimum elements for an SBOM](https://www.cyber.gov.au/publication/2026-minimum-elements-for-a-software-bill-of-materials-sbom) describes common fields and generation context.

<https://engineer.company/glossary/sbom/>
