A software bill of materials (SBOM) is a list of the components inside a piece of software: libraries, their versions, and where they come from. It is like an ingredients list.
Why it matters
- When a vulnerability is announced in a library, you can see at once whether you use it.
- Customers and regulators increasingly ask for it.
- The EU Cyber Resilience Act expects manufacturers to keep track of the components in their products. See the CRA dates.
Common formats
- SPDX, a standard of the Linux Foundation.
- CycloneDX, an OWASP standard.
What to include
- Name and version of each component, direct and transitive.
- Supplier or source, and a unique identifier such as a package URL.
- Licence.
- Hashes, where available.
How to make one
- Generate it from your lockfile or build, with a tool for your ecosystem, as part of CI.
- Store it with each release.
- Check it against vulnerability databases regularly.
- Update it whenever dependencies change, including changes made by an agent.