---
title: "Generating Software Bills of Materials (SBOMs) with SPDX at Microsoft"
description: "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."
url: "https://swe.quest/articles/generating-software-bills-of-materials-sboms-with-spdx-at-microsoft-039b53cdd403b886"
canonical: "https://devblogs.microsoft.com/engineering-at-microsoft/generating-software-bills-of-materials-sboms-with-spdx-at-microsoft/"
source: "Engineering@Microsoft"
published: "2021-10-13"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["supply-chain-security","ci-cd","build-systems"]
---

# Generating Software Bills of Materials (SBOMs) with SPDX at Microsoft

A post on [Engineering@Microsoft](https://swe.quest/sources/ms-engineering.md), published 2021-10-13, 5 min read, Case study. Original: [https://devblogs.microsoft.com/engineering-at-microsoft/generating-software-bills-of-materials-sboms-with-spdx-at-microsoft/](https://devblogs.microsoft.com/engineering-at-microsoft/generating-software-bills-of-materials-sboms-with-spdx-at-microsoft/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)

## Prerequisites

- software supply chain basics ([easy posts on Supply chain security](https://swe.quest/tags/supply-chain-security.md?difficulty=easy))
- CI/CD pipelines ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- code signing

## Keywords

SPDX, SBOM, NTIA, SolarWinds, ISO/IEC 5962:2021, CISQ

## Related posts

- [Microsoft open sources its software bill of materials (SBOM) generation tool](https://swe.quest/articles/microsoft-open-sources-its-software-bill-of-materials-sbom-generation-tool-333b2dc59a2c5eb3.md): Engineering@Microsoft · 2022-07-12 · Easy · 2 min read · Supply chain security, Open source, Build systems
  Microsoft 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.
- [What is an SBOM (and Why Can’t You Ship Without One)?](https://swe.quest/articles/what-is-an-sbom-and-why-can-t-you-ship-without-one-5b5e9139b8ff0e33.md): Docker · 2026-06-23 · Medium · 12 min read · Supply chain security, Containers, CI/CD
  A 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.
- [How to Generate an SBOM for Container Workflows](https://swe.quest/articles/how-to-generate-an-sbom-for-container-workflows-37c04afe004cbbed.md): Docker · 2026-06-25 · Medium · 10 min read · Supply chain security, Containers, CI/CD
  Generating 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.
- [How Software Bill of Materials change the dependency game](https://swe.quest/articles/how-software-bill-of-materials-change-the-dependency-game-78d74981c640e90b.md): Zalando Engineering · 2023-04-12 · Medium · 5 min read · Supply chain security, Microservices, Build systems, Analytics & OLAP
  Zalando 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.
- [The Journey to Secure the Software Supply Chain at Microsoft](https://swe.quest/articles/the-journey-to-secure-the-software-supply-chain-at-microsoft-71490198d2cc7870.md): Engineering@Microsoft · 2023-05-22 · Easy · 6 min read · Supply chain security, CI/CD, Identity & auth, Open source
  Microsoft 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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
