REFERENCE

SBOMs for Windows software you didn’t build

An auditor, a customer or a regulator asks for an SBOM of the Windows apps on your fleet, and the vendor behind an app has not published one.

UPDATED

A winget manifest names an installer, where to download it and its SHA-256. It does not say what is inside. When the vendor publishes an SBOM for a release, use it. When it does not, you can make one yourself from what the installer puts on a machine.

Two kinds of SBOM

  • The supplier’s SBOM is produced when the software is built. It lists the components the vendor compiled in, and it can tell a top-level dependency from a transitive one. The EU Cyber Resilience Act asks the manufacturer for this one; you cannot produce it for software you did not make.
  • A third-party SBOM is produced by scanning the files an installer wrote. It sees what is there after the install, not how it was built, so it cannot rank components by depth.

For the software an organisation runs, rather than makes, NIS2 does not ask for an SBOM by name. Implementing Regulation (EU) 2024/2690, which applies to the digital-service providers its Article 1 lists, asks for “information describing the hardware and software components used in the ICT services or ICT products” an entity acquires (Annex 6.1.2(c)), an inventory of its assets (12.4.1), and security patches that “are tested before being applied in production systems” and “come from trusted sources and are checked for integrity” (6.6.1(b) and (c)). A third-party SBOM is one way to hold the component information.

Making one from the install

To make one, install the exact installer in a disposable machine, scan the folders the install created, keep the result next to the installer’s SHA-256, and sign the two together so the record cannot be swapped later. Doing it once by hand takes a clean VM, the installer and an SBOM tool such as Syft. Doing it for every version of every app, before any machine installs it, is the part that needs a pipeline.

That pipeline is what a detonation is in Attestree. With a detonation host attached, each version is installed in a sandbox VM cloned from your golden image, and Syft runs inside it during the run:

  • It scans the folder the installer registers, plus each new folder the install created, at most eight in all, and writes CycloneDX 1.6 (on an image built with platform 0.240.0 tooling or later).
  • The platform signs an in-toto statement whose subject is the installer’s SHA-256. It records the SBOM’s digest, or the reason there is none.
  • A version with a signed statement offers the SBOM for download beside a component summary, both labelled as third-party SBOMs.
  • wep-bundle-verify attestation … --sbom <file> checks offline that the SBOM you hold is the one the statement names.

The detail, including which versions have no statement, is in what Attestree signs for each installer.

What it is good for

  • Answering “which machines have this component?” The fleet CVE index keeps the CVE records that hit a component of a stored SBOM, as well as those that match what your endpoints report.
  • Evidence made before rollout. When a run produces an SBOM, it exists before any endpoint is served the version, so it describes what was admitted, not a reconstruction after the fact.
  • A record you can hand over. The statement and the SBOM verify offline with your deployment’s public key, without access to the console.

Where it stops

  • It is not the vendor’s SBOM, and it is labelled as such everywhere it appears.
  • It sees files, so a component compiled into a single binary is found only as far as the scanner recognises it.
  • It misses files an installer adds to a folder that already existed before the install.
  • A version tested on an older golden image was scanned only in the folder the installer registers; a package that registers none got no SBOM.
  • A run can end without an SBOM, and the statement then says why.