Supplier SBOMs: import a component's SBOM and scan it for known CVEs and supplier CSAF (phase 1) #1025

Open
opened 2026-11-16 21:32:47 +00:00 by sharang · 1 comment
Owner

Part of the supplier SBOM epic #1029.

Goal

A customer builds a machine. Some of its components they make themselves, and some they buy from suppliers. For the bought components there is often no source code, only the supplier's SBOM (sent by e-mail, or from the supplier's portal). Prüfwerk should still check those components for known vulnerabilities and follow what the supplier discloses.

Scope

  • A new artifact kind for a supplied SBOM.
    • Formats: CycloneDX 1.4–1.6 (JSON and XML) and SPDX 2.3 JSON.
    • It is uploaded like the other files: streamed to disk, size limit, refused with the reason when it cannot be read.
    • It is allowed on a target without code.
  • A supplier component target: the supplier's name, the product and its version.
    • The scan matrix offers SBOM and CVE scans for it. SAST and the other code scans are not offered.
  • The same pipeline as for a Yocto SBOM (build_output). The SBOM entries are checked against:
    • OSV, NVD, CISA KEV and EPSS
    • the CSAF index, matched by purl
    • and then the VEX workflow, the CVE groups, the ENISA drafts and the CVE notifications.
  • Supplier VEX. VEX statements in the supplied SBOM (a CycloneDX vulnerabilities[].analysis) are imported as the supplier's statements.
    • They get a field of their own, not alert.vex. Exporting it as alert.vex would state it as the manufacturer's own. And with by_scan, #1015's reader rule would ignore it and its cleanup script would delete it.
    • Shown and exported as the supplier's.
    • A person's statement still takes precedence, and they never count as our own fixed (#994).
  • Supplier CSAF. A component may name its supplier's CSAF provider (provider-metadata.json).
    • Only its TLP:WHITE advisories are fetched, through the guarded client.
    • They are kept for that tenant (or component), not in the shared index (#515). A provider one tenant chooses would otherwise raise purl-matched alerts for every tenant.
    • They are matched like the CERT@VDE and Siemens advisories.
  • A new version of the SBOM replaces the old one. The scan changes view shows what came and went.

Progress

Not in this issue

  • The machine as a product: the next issue.
  • The supplier uploading the SBOM themselves: phase 3, in the portal.
  • Tenants sharing SBOMs with each other: later.

Done when

  • A CycloneDX and an SPDX SBOM upload each become a component target's SBOM, and the CVE scan finds the known CVEs of a fixture (#1030, against a stand-in OSV).
  • A CSAF advisory of a configured supplier provider raises an alert for a matching purl, or for the supplier's product by name and version (#1031).
  • A supplier's VEX statement shows as the supplier's. It does not settle an alert as our fixed (#1032; the API shows it now, the dashboard follows).
  • A malformed or oversized SBOM is refused with the reason (#1030).
  • Docs: the SBOM guide describes supplier SBOMs in English (#1030–#1032). There is no German SBOM guide yet.
Part of the supplier SBOM epic #1029. ## Goal A customer builds a machine. Some of its components they make themselves, and some they buy from suppliers. For the bought components there is often no source code, only the supplier's SBOM (sent by e-mail, or from the supplier's portal). Prüfwerk should still check those components for known vulnerabilities and follow what the supplier discloses. ## Scope - **A new artifact kind for a supplied SBOM.** - Formats: CycloneDX 1.4–1.6 (JSON and XML) and SPDX 2.3 JSON. - It is uploaded like the other files: streamed to disk, size limit, refused with the reason when it cannot be read. - It is allowed on a target without code. - **A supplier component target:** the supplier's name, the product and its version. - The scan matrix offers SBOM and CVE scans for it. SAST and the other code scans are not offered. - **The same pipeline as for a Yocto SBOM (`build_output`).** The SBOM entries are checked against: - OSV, NVD, CISA KEV and EPSS - the CSAF index, matched by purl - and then the VEX workflow, the CVE groups, the ENISA drafts and the CVE notifications. - **Supplier VEX.** VEX statements in the supplied SBOM (a CycloneDX `vulnerabilities[].analysis`) are imported as the supplier's statements. - **They get a field of their own, not `alert.vex`.** Exporting it as `alert.vex` would state it as the manufacturer's own. And with `by_scan`, #1015's reader rule would ignore it and its cleanup script would delete it. - Shown and exported as the supplier's. - A person's statement still takes precedence, and they never count as our own `fixed` (#994). - **Supplier CSAF.** A component may name its supplier's CSAF provider (`provider-metadata.json`). - Only its TLP:WHITE advisories are fetched, through the guarded client. - **They are kept for that tenant (or component), not in the shared index (#515).** A provider one tenant chooses would otherwise raise purl-matched alerts for every tenant. - They are matched like the CERT@VDE and Siemens advisories. - **A new version of the SBOM replaces the old one.** The scan changes view shows what came and went. ## Progress - [x] #1030: the upload of a supplier SBOM and its CVE scan. - [x] #1031: the supplier CSAF provider, tenant-scoped. - [x] #1032: supplier VEX, in a field of its own. - [ ] Dashboard: wizard, editor and VEX table. Mockup: https://claude.ai/artifact/KN3xqurmCJd9QXziKQB3Qc (awaiting approval). ## Not in this issue - The machine as a product: the next issue. - The supplier uploading the SBOM themselves: phase 3, in the portal. - Tenants sharing SBOMs with each other: later. ## Done when - [x] A CycloneDX and an SPDX SBOM upload each become a component target's SBOM, and the CVE scan finds the known CVEs of a fixture (#1030, against a stand-in OSV). - [x] A CSAF advisory of a configured supplier provider raises an alert for a matching purl, or for the supplier's product by name and version (#1031). - [x] A supplier's VEX statement shows as the supplier's. It does not settle an alert as our `fixed` (#1032; the API shows it now, the dashboard follows). - [x] A malformed or oversized SBOM is refused with the reason (#1030). - [ ] Docs: the SBOM guide describes supplier SBOMs in English (#1030–#1032). There is no German SBOM guide yet.
sharang added the enhancement label 2026-11-16 21:32:47 +00:00
Author
Owner

Decided 2026-11-16 (metering): a supplier component counts like any other target under t72. Each one is a target with its own slot, and its scans are Prüfungen like any other. No separate tariff.

**Decided 2026-11-16 (metering):** a supplier component counts like any other target under t72. Each one is a target with its own slot, and its scans are Prüfungen like any other. No separate tariff.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#1025