SBOM Explained: Software Bills of Materials in SPDX and CycloneDX
What an SBOM is, why regulators and customers ask for them, SPDX vs CycloneDX, generating SBOMs with Syft or Trivy, and using them for vulnerability response...
Published December 4, 2026
When a critical vulnerability like Log4Shell is announced, the first question is "are we affected?" Teams without an inventory spend days grepping repositories and asking around. A Software Bill of Materials (SBOM) answers it in minutes: a machine-readable list of every component, version and supplier in a piece of software.
The concept
An SBOM lists packages (direct and transitive), versions, licences, hashes and relationships for an artefact such as a container image, binary or application release. The two dominant standards are SPDX (from the Linux Foundation, also an ISO standard) and CycloneDX (from OWASP, with strong security-oriented extensions such as vulnerability exchange documents). Both have JSON formats and wide tool support.
SBOMs are increasingly required by customers, government procurement rules and regulations such as the EU Cyber Resilience Act. Their practical value comes from automation: generate them in CI for every release, store them alongside artefacts (often as signed attestations), and continuously match them against vulnerability databases so new CVEs trigger alerts for exactly the affected services.
SBOM lifecycle
SPDX vs CycloneDX
| SPDX | CycloneDX | |
|---|---|---|
| Steward | Linux Foundation (ISO/IEC 5962) | OWASP (ECMA standard) |
| Strengths | Licensing, provenance, broad adoption | Security use cases, VEX, services |
| Formats | JSON, YAML, tag-value, RDF | JSON, XML, protobuf |
| Typical use | Compliance, licence review | Vulnerability management |
Why it matters
Practical examples
Generate SBOMs with Syft
From an image or a source directory.
syft registry.example.com/api:2.3.1 -o cyclonedx-json > sbom.cdx.json
syft dir:. -o spdx-json > sbom.spdx.jsonScan an SBOM for vulnerabilities
Grype or Trivy can scan SBOMs directly.
grype sbom:./sbom.cdx.json --fail-on high
trivy sbom sbom.cdx.jsonAttach the SBOM to the image as an attestation
BuildKit can produce SBOM attestations at build time.
docker buildx build --sbom=true --provenance=mode=max -t registry.example.com/api:2.3.1 --push .
docker buildx imagetools inspect registry.example.com/api:2.3.1 --format '{{ json .SBOM }}' | headCommon mistakes
- Generating SBOMs once for compliance and never using them.
- SBOMs from source manifests only, missing OS packages in container images.
- Not linking SBOMs to the exact artefact digest they describe.
- Ignoring VEX information, causing alert fatigue for non-exploitable CVEs.
Key takeaways
- An SBOM is a machine-readable inventory of software components.
- SPDX and CycloneDX are the main standards.
- Generate in CI, attach to artefacts, monitor continuously.
- SBOMs turn "are we affected?" into a quick query.
FAQ
What is VEX?
Vulnerability Exploitability eXchange: statements that a product is or is not affected by a CVE, used to suppress non-exploitable findings.
Should SBOMs be public?
Often they are shared with customers on request; publishing them publicly is a business decision.
Do SBOMs prevent attacks?
No, they provide visibility that speeds detection and response.