Generating Software Bills of Materials (SBOMs) with SPDX at Microsoft
Microsoft is converting its proprietary build manifests into SPDX 2.2.1 JSON SBOMs, the ISO/IEC 5962:2021 standard, for every product it builds, to comply with the 2021 U.S. cybersecurity executive order. The NTIA minimum fields map onto SPDX fields, and Microsoft makes supplier, version, checksum and relationship fields mandatory. A cross-platform generator, injected into CI/CD across roughly 500,000 builds a day, detects OSS dependencies across many ecosystems, records SHA256 and SHA1 hashes, and signs the SBOM. A signing service binds the SBOM hash to build-session claims (commit, build ID, repo) for provenance, and release-time validation blocks deployment on any hash or signature mismatch.
Related posts
- Microsoft open sources its software bill of materials (SBOM) generation tool
Engineering@Microsoft easyNoviceMicrosoft has open sourced its build-time SBOM generator, a cross-platform (Windows, Linux, Mac) tool that emits SPDX documents and auto-detects dependencies from npm, NuGet, PyPI, Maven, Go, Rust crates, RubyGems, container Linux packages and more via the Component Detection library. Generated SBOMs contain four SPDX sections: document creation info, files with SHA-1/SHA-256 hashes, packages with versions, suppliers, hashes and purl identifiers, and relationships between elements. SBOMs can reference other SBOM documents through externalDocumentRefs with checksums, so layered builds can capture a full dependency tree across predecessor builds.
- What is an SBOM (and Why Can’t You Ship Without One)?
Docker mediumAdeptA software bill of materials is a machine-readable inventory of every resolved component in an artifact, covering name, version, supplier, license, purl identifiers, dependency relationships and checksums, usually expressed in SPDX or CycloneDX. For container images, the SBOM is best generated at build time with BuildKit (`docker buildx build --attest type=sbom`). That captures OS packages and transitive dependencies that manifest-based SBOMs miss, and attaches the SBOM as an in-toto attestation alongside SLSA provenance in the OCI registry. Stored there, SBOMs feed continuous CVE matching and CI policy gates, and regulations such as EO 14028 and the EU CRA are making them a procurement requirement. A maturity model and an incremental adoption path start with a single image.
- How to Generate an SBOM for Container Workflows
Docker mediumAdeptGenerating SBOMs at build time, rather than scanning finished images, captures resolved transitive dependencies, statically linked components and multi-stage build contents that heuristic post-build scanners miss. An actionable SBOM is complete, records resolved rather than declared versions, is regenerated with every build, is cryptographically bound to the image digest, and validates against the SPDX or CycloneDX schema. In CI, generate from the final stage via BuildKit attestations and attach the SBOM as an OCI attestation. Validate component counts and digest binding before pushing, and pin generator tools to commit SHAs because they run with elevated build access. SPDX is the default for container images, while CycloneDX suits security-focused workflows.
- How Software Bill of Materials change the dependency game
Zalando Engineering mediumAdeptZalando generates a Software Bill of Materials from the container image of every deployed application and publishes the dependency data to its data lake, so any engineer can query which apps use a library version, which licenses are in use, and how fast upgrades are adopted. This made CVE and license-change impact analysis (log4j, Akka) take minutes, enabled automated mass pull requests for patches, and exposed waste such as apps bundling the full 200MB+ AWS Java SDK. Their data shows dependency counts rising steeply by language: Python has the fewest, Go roughly 1.4-2x more, JVM 2-3x more than Go, and JavaScript 5-10x more than Java. SBOM quality is uneven: JVM package naming is inconsistent and uber-jars strip the metadata scanners need, so generation should be verified per application.
- The Journey to Secure the Software Supply Chain at Microsoft
Engineering@Microsoft easyNoviceMicrosoft secures its software supply chain by threat-modeling its CI/CD platform, identities and developer devices, risk-scoring each threat, and folding supply chain requirements into the Security Development Lifecycle with policy enforcement such as blocked pushes, broken builds and gated releases. Builds use secure-booted, ephemeral, network-isolated agents and SBOMs are validated at release. On the open-source consumption side, the S2C2F framework routes packages through Azure Artifacts for caching and dependency-confusion protection, flags vulnerabilities in PRs, and gates ingestion on typosquatting and malware checks without imposing an approved-package list. Access is hardened with phish-resistant MFA, just-in-time admin access and replacing PATs with managed identities, while a detection coverage matrix based on MITRE ATT&CK monitors source, build and release systems.