Guide
What is an SBOM?
A Software Bill of Materials is a machine-readable inventory of components in a piece of software — the supply-chain equivalent of a nutrition label. Here's what it contains, why regulators require one, and how to actually use it.
The 30-second definition
An SBOM aims to list direct and transitive dependencies shipped inside an artifact. Coverage depends on the generator and build inputs. It records the name, version, supplier, license, and a package URL (PURL) that uniquely identifies it. Modern SBOMs also record how components relate (dependency edges), where they came from (provenance), and cryptographic hashes so downstream consumers can verify what they received.
Why they exist
After Log4Shell, most organizations couldn't answer a simple question: are we running the vulnerable library, and where? SBOMs make that answer a database lookup instead of an incident-response scramble. Regulators noticed:
- US EO 14028 prompted federal software supply-chain transparency requirements; check the applicable agency and procurement guidance.
- EU Cyber Resilience Act (CRA) includes SBOM-related vulnerability-handling obligations for covered products. Applicability, exclusions, and phased deadlines matter.
- FDA has SBOM requirements for covered cyber-device submissions; consult the applicable guidance.
- NIST SSDF and NTIA minimum-elements guidance define what a "good" SBOM looks like.
The two formats you'll meet
Two open standards dominate: CycloneDX (OWASP) and SPDX (Linux Foundation, ISO 5962). Both can represent NTIA minimum elements when the generator supplies them. CycloneDX leans toward security use cases and adds VEX, ML-BOM, and CBOM extensions; SPDX has deeper license-compliance lineage. Most tools speak both — see our CycloneDX vs SPDX comparison for the field-by-field differences.
Generating one
You don't hand-write SBOMs — you generate them from your build. Common generators:
syft— filesystem and container imagescdxgen— polyglot, CycloneDX-nativecargo-cyclonedx,npm sbom,mvn cyclonedx— language-nativetrivy sbom— scanner-produced
Using one (this is the part most teams skip)
Generating an SBOM is easy. Doing something with it is where value lives. A useful CI pipeline does four things on every build:
- Diff against the last release to see what components changed.
- Enrich with OSV and CISA KEV to flag known vulnerabilities.
- Score completeness against NTIA / CRA so a weak SBOM fails review.
- Gate the release on policy — no new criticals, no EOL runtimes, no typosquats.
That's what sbom-tools is built for — one Rust CLI, no telemetry, and explicit policy checks for CI. Scoring is not legal certification.
Try it
cargo install sbom-tools sbom-tools diff v1.0.0.json v1.1.0.json --enrich-vulns --kev sbom-tools quality bom.json --profile craSee all features