security

Compare SBOM coverage by ecosystem

Inspect SBOM coverage across a polyglot repository by comparing expected inputs, package identities, and built artifacts for each supported ecosystem.

TrustIvan · · 10 min read

A release includes a Python API, a web bundle built with npm, a Go helper, and packages inherited from the base image. The software bill of materials lists fifty-eight components, so the release checklist records “SBOM present.” A reviewer asks which packages shipped in the browser bundle. The component total offers no answer. Most of the entries came from the base image, and nobody can tell whether the tool inspected the bundle.

Assess software bill of materials coverage for each ecosystem and artifact. Start by naming what each inventory is supposed to describe. Then follow a small, deliberately chosen sample from its source evidence into the released SBOM. The result should tell the release owner which inventory can answer an investigation question and where a second source of evidence is required.

Define the inventory and the release boundary

Start with a build's output manifest or release job. Identify each shipped artifact, its revision or digest, and what the consumer receives. For a container release, inspect the final stage and any packaged files copied from earlier stages. For a separately delivered web bundle, give that bundle its own identity even when it comes from the same Git revision as the container.

Most teams need to answer at least two inventory questions. Which components did we resolve and use during the build? Which components can we verify in the delivered artifact? An inventory produced from lockfiles supports dependency resolution and source review. An inventory tied to the released image or archive supports investigation of what reached users. Generated output, bundling, optional dependencies, platform markers, build flags, base images, and vendored files can change the relationship between those two sets.

Make the difference explicit in your evidence. A document can include both scopes if it preserves their relationship and identifies the relevant release artifact. An inventory that mixes development tools and runtime components under the same total makes it harder to tell whether an affected package shipped. Record which consumers are expected to use each inventory. A release reviewer and an incident responder may legitimately need different views.

Before comparing, choose the platforms your release actually supports. A resolved Python set in a Linux image can differ from local development's environment. An ARM64 base-image manifest can contain package builds or versions different from the AMD64 variant. If your generator scans just one manifest, record precisely which platform it covered and attach the remaining coverage decisions to their own artifacts.

Pick evidence that fits each ecosystem

A lockfile, installed metadata, package database, binary, and bundler report can all be valid evidence, depending on the question. Record the original package version, the canonical identity if available, the scope, and the file or build record you used. Identify the build that produced each piece of evidence so a later comparison cannot accidentally mix two revisions.

EcosystemCandidate build evidenceCandidate release evidenceCoverage gap to investigate
Operating-system packagesBase image manifest and installation stepsPackage database from the released variant, where retainedMinimal image omits metadata or carries copied libraries
PythonResolved requirements or lockfile for the target environmentInstalled distribution metadata, retained package filesDevelopment extras, platform markers, renamed import names
npm or another JavaScript registryWorkspace lockfile and build configurationA bundler report tied to the exact shipped bundle or installed production package treeTree-shaking, inlined code, build-time tooling
GoModule manifest and build inputsModule information embedded in the shipped binary, when availableLocal replacements or stripped evidence that needs provenance
Vendored or copied componentsUpstream reference, vendoring record, build input digestCopied path, artifact checksum, recorded lineageChanged version labels or absence of ecosystem metadata

Treat the table as a checklist of evidence types. A path can confirm that a file shipped without proving its upstream name and version. An upstream reference can establish intent without proving that the matching bytes reached the artifact. For a verified sample, connect both whenever your decision depends on both.

Identify aliases, package replacements, forks, and organization-specific registries before you compare. The Python distribution example-http may be imported as example_http, and a scoped npm package may share part of its name with an unrelated project. Comparing display names alone can collapse distinct packages or flag the same package twice. Match ecosystem, namespace where applicable, package name, version, and any qualifiers needed to interpret the identity.

Package URLs provide a standard way to express many package coordinates. Use them when your SBOM preserves them and validate how the generator represents the ecosystem and any qualifiers. SPDX and CycloneDX describe component identity and relationships in their respective models. Check the fields supported by the format and version your release uses before relying on matching or relationship behavior. Package URL specification, SPDX package information, CycloneDX overview.

Sample cases that can fail in different ways

A sample composed of obvious direct dependencies confirms a happy path. Include a shipped direct dependency, a shipped transitive dependency, an expected build-only component, and one artifact that gets copied or bundled. Include an inherited OS package and at least one distinct platform if the release has multiple variants. For each row, state what you expect before you inspect the SBOM.

Record one of four outcomes for each sample.

  • Verified means authoritative scoped evidence and the SBOM agree on component identity and version.
  • Missing from inventory means the independent evidence identifies a component that the declared scope should contain, but the matching SBOM entry is missing.
  • Out of this scope means the release process accounts for the component and the declared SBOM intentionally excludes it. Link the inventory that covers it when another review needs that evidence.
  • Indeterminate means the evidence cannot establish identity, inclusion, or absence with the precision needed. Preserve the uncertainty and assign an owner to resolve it.

Use a separate status for discrepancies in a matched entry, such as the wrong version or missing relationship data. In these cases, the generator found something and the release owner needs to investigate the resolution or how the document encodes it.

Sample dependency relationships when the release process uses them. A package can appear in the SBOM while its connection to the shipped component is lost. That may be enough to confirm some presence questions, while a team that needs dependency paths for prioritization still has a gap. Confirm whether relationship information is required before declaring coverage sufficient.

Work through a synthetic polyglot release

The examples below use fictional packages and build records. The run-204 container contains the API and helper, and web-204 identifies the separately shipped browser bundle. Both came from the same source revision. The review compares each inventory with its own artifact.

SampleIndependent evidenceInventory resultReview outcome
Python example-http 4.2 in APIInstalled distribution metadata in run-204Matching runtime package recordVerified in container scope
Python example-decoder 2.1, transitiveInstalled package metadata and API dependency recordComponent present with no dependency edgeVerified presence, record relationship gap
npm @example/date-core 3.0Bundler output for web-204 identifies shipped modulesMissing from the web artifact's runtime inventoryConfirmed coverage gap
npm @example/test-runner 7.0Lockfile and build job identify test use onlyListed in the build inventory, absent from web runtime inventoryOut of web runtime scope
Go helper using example.org/parse 1.6Extracted module metadata in the delivered helperEntire helper omitted from the generator's runtime passConfirmed coverage gap
OS example-cert-data 2026.10Installed package DB for Linux AMD64 onlyMatching AMD64 recordVerified on AMD64, ARM64 evidence pending
Copied certificate helperPublished artifact has checksum and name, upstream record unavailableGeneric file entry with no package coordinateIndeterminate package identity

Report results per category. In this sample, the web runtime review found one independently confirmed missing shipped component and one expected build-only exclusion. The Go review found a missing helper dependency. A single percentage for the entire inventory could hide both gaps behind the operating-system package count. Tag unresolved rows with the artifact and the owner who can fix the evidence, such as the web build team for a missing bundle report.

If you report a sampling rate, define it. For example, two of three independently established in-scope package instances matched the expected runtime inventory for the API and helper checks. That denominator excludes indeterminate candidates and expected exclusions. Keep those counts visible alongside the ratio. A small targeted sample reveals blind spots effectively, but it does not estimate total coverage without a sampling design that supports that claim.

Choose a fix for each kind of gap

For the browser bundle, produce bundler evidence in the same release job and retain its link to the bundle checksum. A later report from a similarly named local build cannot prove composition of the deployed bundle. Keep build-only tools in the appropriate inventory where they can still be evaluated for build risk.

For the Go helper, add it as a separately inventoried build output or configure the release generator to analyze that exact binary. Preserve its checksum and the build's source and module inputs. If the binary omits module evidence, coordinate with its owner on build provenance that allows package identity to be checked. Avoid filling the missing identity from a guessed version.

For the certificate helper, have the supplying team capture the upstream artifact identity at import. Attach the recorded source and checksum to the vendoring change and preserve the association after packaging. This may require a small change in dependency intake rather than a new analyzer.

For the ARM64 image, obtain its own manifest and package evidence. An AMD64 success is a good reason to repeat a check, and the ARM64 variant needs its own coverage decision. Review the matching image digest workflow when you have to reconcile inventory with a deployment.

When a generator already reported a component under the wrong scope, investigate the generator's input before changing the document. A root package manifest, all workspace lockfiles, the runtime filesystem, and a compiled archive can produce different answers for valid reasons. Preserve the raw documents needed for review and regenerate them from their corrected inputs so the next release repeats the same logic.

Run the review again when the release changes

Put the sample and its expected results under ownership. The release engineer owns artifact identity, ecosystem owners explain what ships, and the SBOM review owner records coverage decisions and follow-up items. Recheck whenever you add a workspace, switch base images, change architecture support, swap the bundler, introduce a downloaded helper, or upgrade the component generator in a way that changes detection.

A practical review record includes build ID, artifact or manifest digest, platform, SBOM format and generator version, scope, sampled identity, evidence link, and disposition. Track changes across builds and inspect discrepancies before turning them into policy thresholds. When a gap prevents reviewers from assessing a high-impact component, let the release owner address that gap explicitly through your existing approval policy.

The release inventory should support one concrete exercise. Give a second engineer a component coordinate and an artifact reference. Ask them to establish presence, explain an intentional exclusion, or point to the evidence gap and next owner. That exercise tells you more about usable coverage than a raw package count.