Software Bills of Materials: How the Expectation Reached Package Authors
A software bill of materials (SBOM) is a machine-readable list of the components inside a piece of software: names, versions, suppliers, licences and the relationships between them. For a long time it was a niche compliance artefact. It is now something customers ask for, regulators reference, and package tooling can generate in one command.
A short timeline of observable developments
| When | Development |
|---|---|
| May 2021 | U.S. Executive Order 14028 on improving the nation's cybersecurity directed work on software supply-chain security, including SBOMs for software sold to the federal government. |
| July 2021 | The U.S. NTIA published its minimum elements for an SBOM, defining the baseline data fields. |
| 2021 | The SPDX specification was published as an international standard, ISO/IEC 5962. |
| Following years | CISA took over much of the U.S. government's SBOM community work; CycloneDX, an OWASP project, matured as the second widely used format. |
| 2024 | The EU Cyber Resilience Act was adopted, bringing requirements for manufacturers of products with digital elements to identify and document components, with obligations phased in over the following years. |
Why it matters to a package author
An SBOM is usually produced by whoever ships the final product, not by every library author. But the quality of that SBOM depends on the metadata your package exposes. If your manifest has an accurate name, version, licence identifier and repository URL, every downstream SBOM that includes you is correct with no extra effort. If your licence field says something vague or your package vendors other code without declaring it, every downstream SBOM inherits the error.
Generating one yourself
Tooling has caught up. Recent versions of the npm CLI include an npm sbom command that outputs SPDX or CycloneDX for a project. Language-neutral tools such as Syft, and CycloneDX's own per-ecosystem generators, work from lockfiles or built artefacts. A sensible habit for an application or a large library is to generate an SBOM in the release workflow and attach it to the release:
# in a release job, after npm ci
npm sbom --sbom-format cyclonedx > sbom.cdx.json
What to do this year
- Use a valid SPDX licence identifier in your manifest; see our SPDX how-to.
- Fill in the repository and homepage fields so tools can identify the supplier.
- Declare vendored or bundled third-party code and its licences rather than hiding it in a
distfolder. - If you publish binaries or large applications, attach an SBOM to each release.
- Combine it with provenance: an SBOM says what is inside; a provenance attestation says how and where it was built.
SBOM policy is still evolving, especially around the EU rules, so treat this as background and check the official texts for anything you are legally required to do.