feat(sbom): a supplier's SBOM of a bought-in component is scanned for known CVEs (#1025)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m0s
CI / Check (pull_request) Successful in 20m53s

A component bought in without its source often comes with only its
supplier's SBOM. It can now be uploaded to the component's target as a
`supplier_sbom` artifact: CycloneDX 1.4-1.6 (JSON or XML) or SPDX 2.3
JSON. A target needs no code for it; the scan matrix plans the SBOM and
CVE scans for every target type that carries one, and the no-code arm
runs the stages over an empty tree as for a Yocto build output. Its
components go through OSV, NVD, KEV/EPSS, the CSAF index and the VEX
workflow like those read from code.

- Read defensively: capped at 20 MiB and 100 000 components, XML
  without a DTD (roxmltree refuses one), nested components read, the
  described product left out.
- Refused at upload with the reason (422 `{"error": …}`): not such an
  SBOM, no components, SPDX 3.0. One that cannot be read at scan time
  fails the run; neither ever reads as an empty SBOM.
- A component without a purl is reported as not checked, not as free
  of CVEs.
- A new supplier SBOM replaces the target's previous one, and its file.
- Docs: the SBOM guide describes supplier SBOMs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-16 23:01:24 +01:00
1 parent 126345aa9d
commit 0ab8fc186e
13 files changed
+1006 -32

No files matched your search

+28
View File
@@ -86,6 +86,34 @@ and is not judged.
Firmware images, container images and app packages are not unpacked yet; their
components come from the source code.
### A supplier's SBOM
A component you buy in often comes without its source code, only with its
supplier's SBOM. Upload that SBOM to the component's target as a **supplier
SBOM** (`supplier_sbom`). A target needs no code for this. Its components are
then checked for known vulnerabilities like those read from code: OSV, NVD, the
CISA KEV list and EPSS, and the vendor advisories (CSAF) by purl. The results
go through the same CVE groups, VEX statements and ENISA drafts.
- **Formats:** CycloneDX 1.4 to 1.6 (JSON or XML) and SPDX 2.3 JSON. SPDX 3.0
is not read yet.
- **What is read of each component:** name (with its group), version, purl,
CPE and licence. Nested components are read too. The product the document
describes (CycloneDX `metadata.component`, SPDX `documentDescribes`) is the
component itself and is not listed as one of its parts.
- **Components without a purl:** no advisory database can be asked about them.
The scan lists them under **Nicht ausgeführt** rather than as free of CVEs.
- **Refused at upload, with the reason:**
- a file that is no such SBOM
- an SBOM that lists no components
- one larger than 20 MiB
- XML with a DTD, since entities are never resolved
An SBOM that lists nothing is refused rather than read as empty: read as
empty, it would make every known CVE of the component look fixed.
- **A new version from the supplier:** upload it to the same target. Each scan
reads the target's supplier SBOMs.
### When the SBOM is empty or incomplete
An SBOM without components does not mean the software uses no libraries: