What are SPDX and CycloneDX?

BeginnerConceptSBOM
Answer

Short answer

They're the two main standard formats for SBOMs. SPDX (Linux Foundation, ISO/IEC 5962) started with a strong focus on licence compliance. CycloneDX (OWASP) was designed for security use cases — vulnerabilities, VEX, services and dependencies. Most tools (Syft, Trivy) can produce both.

Comparison

SPDX CycloneDX
Maintained by Linux Foundation (ISO standard) OWASP
Original focus Licences and provenance Security and risk
Formats JSON, YAML, tag-value, RDF JSON, XML, protobuf
Extras Detailed licence expressions, file-level info VEX, services, ML models (ML-BOM), dependency graph

Generate either

syft shop-api:1.4.0 -o spdx-json > sbom.spdx.json
syft shop-api:1.4.0 -o cyclonedx-json > sbom.cdx.json
trivy image --format cyclonedx -o sbom.cdx.json shop-api:1.4.0

Which to choose

Pick whichever your customers, tools or regulators ask for; security teams often prefer CycloneDX, legal/compliance teams SPDX. Being able to output both is common.

What to say in the interview

"SPDX and CycloneDX are the two SBOM standards — SPDX is an ISO standard rooted in licensing, CycloneDX is OWASP's security-focused format with VEX support. Syft and Trivy generate both, so we pick based on who consumes it."

All Security Tools questions Roadmap: SBOM — software bill of materials

More on SBOM