At the end of every completed scan the target's CycloneDX SBOM (the same document as the evidence pack's sbom.cdx.json) is scored by sbomqs against BSI TR-03183-2 v2.1 and the NTIA minimum elements (2021). - Dockerfile.agent pins sbomqs 2.1.2 (Apache-2.0) with the sha256 from the release's checksums.txt and lists it in tool-versions.json. - Profiles by explicit name (bsi-v2.1, ntia-2021): in 2.1.2 `bsi` and `ntia` float to the newest BSI and CISA 2026 profiles. - pipeline/sbom_quality.rs runs it offline through tool_cmd (empty environment, 120 s), keeps per profile the score, grade and the checks not fully met; stored on the scan run as sbom_quality. Without sbomqs the run records the skipped stage sbom_quality. - Supporting evidence, not findings: attached to cra-ai-23 in the CRA status without changing its state, sbom-quality.json in the evidence pack, GET /api/v1/sbom/quality for the SBOM page. - Dashboard: SBOM-Qualität card on the SBOM page, a supporting-evidence line on cra-ai-23 on the CRA page. - Docs: tools.md, SBOM and target guides, staging check 20. Our export (CycloneDX 1.5, no creator, timestamp, supplier or hashes) grades F against BSI; the failed checks list what it needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
289 lines
14 KiB
Markdown
289 lines
14 KiB
Markdown
# SBOM & Licenses
|
|
|
|
The SBOM (software bill of materials, *Stückliste*) lists the components of
|
|
each target, with their versions, licenses and known vulnerabilities.
|
|
|
|
## What is an SBOM?
|
|
|
|
A Software Bill of Materials is a list of every component (library, package, framework) that your software depends on, along with version numbers, licenses, and known vulnerabilities. The CRA expects manufacturers to know the components of their products; SBOMs are also asked for in customer security questionnaires and audits.
|
|
|
|
## Where the components come from
|
|
|
|
Prüfwerk builds the SBOM during each scan:
|
|
|
|
- **Package dependencies** -- read with Syft from the lockfiles in the code
|
|
(`package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`, `bun.lock`, `Cargo.lock`,
|
|
`requirements.txt`, `poetry.lock`, `Pipfile.lock`, `uv.lock`). A manifest
|
|
without a lockfile gives no versions; the scan lists it under **Nicht
|
|
ausgeführt** (see [Prüfungen](/guide/scanning#what-the-scanner-runs-on-your-code)).
|
|
- **Mobile apps** -- the lockfiles of Android, iOS and Flutter apps, wherever
|
|
they sit in the tree (`android/`, `ios/`, an Xcode project): `gradle.lockfile`,
|
|
`Podfile.lock`, `Package.resolved` (also the one inside
|
|
`*.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/`), `Cartfile.resolved`
|
|
and `pubspec.lock`. A Carthage pin of a repository is matched like the Swift
|
|
package of the same repository; a prebuilt `binary` framework is listed with
|
|
its version, but no advisory database covers it, which the scan says under
|
|
**Nicht ausgeführt**.
|
|
Gradle writes `gradle.lockfile` only with dependency locking switched on
|
|
(`dependencyLocking { lockAllConfigurations() }`, then
|
|
`./gradlew dependencies --write-locks`). Without it, Prüfwerk reads the
|
|
direct dependencies from the build files (`build.gradle(.kts)`, versions in
|
|
`ext` variables, `gradle.properties` and `gradle/libs.versions.toml`), but
|
|
only those that ship with the app and have an exact version; what they pull
|
|
in stays unknown. In that case, and for a `Cartfile` without its
|
|
`Cartfile.resolved`, the scan reports the manifest under
|
|
**Nicht ausgeführt** and the SBOM requirements of the CRA view are
|
|
**Nicht bewertet**: an app whose dependencies are unknown is not shown as
|
|
clean.
|
|
- **.NET / NuGet** -- `packages.config`, `<PackageReference>` (also with
|
|
central versions in `Directory.Packages.props`), `packages.lock.json`,
|
|
`obj/project.assets.json` and committed `packages/<Id>.<Version>/` folders,
|
|
read without a build; see [.NET-Projekte](/guide/dotnet).
|
|
- **Libraries copied into a firmware tree** -- microcontroller projects carry
|
|
their RTOS, TCP/IP stack and TLS library as source, with no manifest. Prüfwerk
|
|
recognises **FreeRTOS**, **FreeRTOS+TCP**, **lwIP**, **Mbed TLS**, **wolfSSL**
|
|
and **FatFs** and reads each one's version from its header. They appear with
|
|
the package source `embedded`.
|
|
- **Firmware builds** -- for a firmware target, the libraries and toolchain
|
|
named by the build files in the source tree (Make, CMake, Zephyr, ESP-IDF,
|
|
PlatformIO, Arduino, embedded Rust).
|
|
- **CODESYS projects** -- the referenced libraries and the runtime version from
|
|
a `.projectarchive`; see [SPS / PLC (CODESYS)](/guide/plc).
|
|
|
|
- **Unity projects** -- the editor version (from
|
|
`ProjectSettings/ProjectVersion.txt`) and the packages pinned in
|
|
`Packages/packages-lock.json` (or `Packages/manifest.json`). No advisory
|
|
database covers Unity, so they are listed under **CVE-Abgleich unvollständig**.
|
|
Which mobile platforms a Unity project builds for is read from its Player
|
|
Settings (`ProjectSettings/ProjectSettings.asset`): a bundle identifier set
|
|
for iOS or Android (not Unity's `com.DefaultCompany.…` default), or native
|
|
plug-ins under `Assets/Plugins/iOS` or `Assets/Plugins/Android`. The active
|
|
build target itself is never in the repository. For each such platform the
|
|
Xcode or Gradle project Unity generates at build time is missing, so its
|
|
Info.plist or manifest, permissions and native code cannot be checked; the
|
|
scan says so under **Nicht ausgeführt** (*Von Unity erzeugtes App-Projekt*)
|
|
unless an exported project is in the tree.
|
|
|
|
**End-of-life build systems are not resolved.** An Eclipse/ADT Android project
|
|
(`default.properties` or `project.properties` beside the manifest, no Gradle)
|
|
or a Unity project without `Packages/manifest.json` declares its dependencies
|
|
nowhere readable. Prüfwerk reports it as a finding (**Legacy build system: the
|
|
SBOM cannot be determined**, with the migration as the remedy) and lists it
|
|
under **Nicht ausgeführt**, so the SBOM requirements are **Nicht bewertet**
|
|
rather than clean. An Android API level below 29 or a Unity release out of
|
|
support is a finding of its own, and so is, in an Xcode project or the
|
|
Player Settings of a Unity project building for iOS, an iOS deployment target
|
|
below 15 (the app then installs on iOS releases that receive
|
|
no security updates) or a `SWIFT_VERSION` below 4, which no supported Xcode
|
|
builds. A Unity project building for Android whose minimum API level is below
|
|
29 is reported the same way (the app installs on Android releases without
|
|
security updates). Which Xcode builds an app is not recorded in the repository
|
|
and is not judged.
|
|
|
|
Firmware images, container images and app packages are not unpacked yet; their
|
|
components come from the source code.
|
|
|
|
## Known vulnerabilities
|
|
|
|
Package dependencies are matched against [OSV.dev](https://osv.dev/). Libraries
|
|
copied into a firmware tree and the CODESYS runtime have no package identifier
|
|
OSV could look up, so they are matched against [NVD](https://nvd.nist.gov/) by
|
|
CPE: all CVEs of the product are fetched and their affected version ranges are
|
|
compared with the version in use. OSV publishes no advisories for CocoaPods, so
|
|
pods are not matched. Components that could not be matched are listed on the
|
|
scan run under **CVE-Abgleich unvollständig**.
|
|
|
|
Known components are re-checked hourly, so a CVE published against an unchanged
|
|
component still raises an alert.
|
|
|
|
## Packages Tab
|
|
|
|
Open **Stückliste** in the sidebar. The **Pakete** (Packages) tab lists the
|
|
components of all targets, 50 per page.
|
|
|
|
### Filtering
|
|
|
|
- **Alle Prüfobjekte** -- one target, or all
|
|
- **Alle Paketquellen** (All managers) -- the package source, e.g. npm, cargo,
|
|
pip, or `embedded` for libraries found in a firmware tree
|
|
- **Pakete durchsuchen …** -- search by package name
|
|
- **Alle Pakete** / **Mit Schwachstellen** / **Ohne Schwachstellen**
|
|
- **Alle Lizenzen** -- one license
|
|
|
|
### Columns
|
|
|
|
| Column | Description |
|
|
|--------|-------------|
|
|
| **Paket** (Package) | Package name |
|
|
| **Version** | The version in use |
|
|
| **Paketquelle** (Manager) | Where the component comes from (npm, cargo, pip, embedded, …) |
|
|
| **Lizenz** (License) | License identifier |
|
|
| **Schwachstellen** (Vulnerabilities) | **Keine**, or the number of CVEs |
|
|
|
|
Click the CVE count to expand the details: the vulnerability ID, the source
|
|
database, the severity where known, and **Hinweis ansehen →** (View advisory).
|
|
|
|
A component with a CVE that is exploited in the wild carries a red **KEV**
|
|
marker next to its count. In the details, each CVE shows what is known about
|
|
its exploitation:
|
|
|
|
- **Aktiv ausgenutzt (KEV)** (Actively exploited): the CVE is in CISA's
|
|
[Known Exploited Vulnerabilities](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)
|
|
catalog; the tooltip says since when, and whether it is known from
|
|
ransomware campaigns.
|
|
- **EPSS 12.3 % · P97**: FIRST's [EPSS](https://www.first.org/epss) estimate
|
|
that the CVE is exploited in the next 30 days, and its percentile among all
|
|
scored CVEs. The source is credited under the details.
|
|
- **SSVC-Ausnutzung (CISA Vulnrichment)**: CISA's SSVC decision on
|
|
exploitation (`none`, `poc`, `active`), where CISA has rated the CVE.
|
|
|
|
These are looked up once a day; see
|
|
[KEV, EPSS and Vulnrichment](/reference/tools#kev-epss-and-vulnrichment-exploitation).
|
|
In a managed repository, a CVE in KEV always opens an issue, and one with a
|
|
high EPSS percentile is rated one step higher (see [Issues](/guide/issues)).
|
|
|
|
## Licenses Tab
|
|
|
|
The **Lizenzen** tab summarises the licenses.
|
|
|
|
Lockfiles name versions, not licenses. Where the tree does not carry them,
|
|
they are looked up on the public registry of the package: nuget.org for
|
|
NuGet, `registry.npmjs.org` for npm, and Maven Central (or Google's Maven
|
|
repository for AndroidX and Play services) for Maven and Gradle, where a
|
|
POM without a license inherits its parent's. Only package names and versions
|
|
are sent, and none a private registry may serve: an `.npmrc` or `.yarnrc.yml`
|
|
that points elsewhere (for all packages or a scope), a `nuget.config` routing,
|
|
or a Maven or Gradle build that names a repository besides the public ones
|
|
stops those lookups. A component whose license could not be found stays
|
|
without one.
|
|
|
|
### Copyleft Warnings
|
|
|
|
If any component uses a copyleft license (GPL, AGPL, LGPL, MPL and their
|
|
variants), the banner **Copyleft-Lizenzen gefunden** lists the affected
|
|
packages. Copyleft licenses may impose obligations when you distribute your
|
|
software.
|
|
|
|
::: warning
|
|
Copyleft-licensed dependencies can require you to release your source code under the same license. Review flagged packages carefully with your legal team if you distribute proprietary software.
|
|
:::
|
|
|
|
### License Distribution
|
|
|
|
**Lizenzverteilung** shows the share of each license across the components.
|
|
|
|
### License Table
|
|
|
|
**Alle Lizenzen** lists every license:
|
|
|
|
| Column | Description |
|
|
|--------|-------------|
|
|
| **Lizenz** | License identifier |
|
|
| **Art** | **Copyleft** or **Freizügig** (permissive) |
|
|
| **Pakete** | The packages using it |
|
|
| **Anzahl** | Number of packages |
|
|
|
|
## Export
|
|
|
|
1. On the **Pakete** tab, select a target under **Alle Prüfobjekte**. Export
|
|
works for one target at a time; without a selection the export says
|
|
**Zuerst ein Prüfobjekt wählen**.
|
|
2. Click **Exportieren** and choose a format:
|
|
- **CycloneDX 1.5** -- JSON, widely supported by security tools
|
|
- **SPDX 2.3** -- the Linux Foundation standard, common for license compliance
|
|
3. Click **Herunterladen**. The SBOM downloads as a JSON file.
|
|
|
|
The evidence pack on the target's page also contains both formats.
|
|
|
|
The CycloneDX document follows the CycloneDX 1.5 schema: every component has
|
|
a `bom-ref` (its purl, or `<package manager>:<name>@<version>`), the product
|
|
itself is `metadata.component` with the `bom-ref` `pkg:generic/<target name>`,
|
|
and the known vulnerabilities are listed at the top level, each naming the
|
|
components it affects. Licenses are an SPDX id, an SPDX expression or a named
|
|
license, as CycloneDX allows.
|
|
|
|
## VEX: the status of each vulnerability
|
|
|
|
For each known vulnerability (CVE alert) of a target you state whether the
|
|
product is affected (VEX, *Vulnerability Exploitability eXchange*), as the CRA
|
|
expects of a manufacturer handling vulnerabilities:
|
|
|
|
| Status | Meaning | Required |
|
|
|---|---|---|
|
|
| `under_investigation` | Not assessed yet; every alert starts here | -- |
|
|
| `affected` | The product is affected | an action statement: what users must do |
|
|
| `not_affected` | The product is not affected | a justification or an impact statement |
|
|
| `fixed` | The product no longer contains the vulnerable component or version | -- |
|
|
|
|
Justifications for `not_affected` (OpenVEX): `component_not_present`,
|
|
`vulnerable_code_not_present`, `vulnerable_code_not_in_execute_path`,
|
|
`vulnerable_code_cannot_be_controlled_by_adversary`,
|
|
`inline_mitigations_already_exist`. A statement without what its status
|
|
requires is refused.
|
|
|
|
A scan keeps the status current: when a complete CVE check no longer finds an
|
|
alert (the component was removed or updated past the fix), it is marked
|
|
resolved, and one nobody assessed, or assessed as affected, becomes `fixed`.
|
|
A `not_affected` or `fixed` someone stated is never changed by a scan. If the
|
|
vulnerability comes back, the scan's `fixed` is withdrawn.
|
|
|
|
The statements are exported per target as **OpenVEX 0.2.0** and as
|
|
**CycloneDX 1.5 VEX** (the SBOM with each vulnerability's analysis), both
|
|
checked against their official schemas, and are part of the evidence pack
|
|
(`vex.openvex.json`, `vex.cdx.json`). CycloneDX names the statuses
|
|
differently:
|
|
|
|
| OpenVEX | CycloneDX `analysis.state` / `justification` |
|
|
|---|---|
|
|
| `under_investigation` | `in_triage` |
|
|
| `affected` | `exploitable` (`response: update` when a fixed version is known) |
|
|
| `not_affected` | `not_affected` |
|
|
| `fixed` | `resolved` |
|
|
| `component_not_present`, `vulnerable_code_not_present` | `code_not_present` |
|
|
| `vulnerable_code_not_in_execute_path` | `code_not_reachable` |
|
|
| `vulnerable_code_cannot_be_controlled_by_adversary` | `requires_environment` |
|
|
| `inline_mitigations_already_exist` | `protected_by_mitigating_control` |
|
|
|
|
API: `GET /api/v1/targets/{id}/cves` lists the alerts with their statements,
|
|
`PATCH /api/v1/cves/{id}/vex` sets one
|
|
(`{"status": "not_affected", "justification": "…", "impact_statement": "…"}`),
|
|
`GET /api/v1/targets/{id}/vex?format=openvex|cyclonedx` downloads the document.
|
|
|
|
## SBOM quality
|
|
|
|
When a target is selected on the **Pakete** tab, **SBOM-Qualität** (SBOM
|
|
quality) shows how the exported CycloneDX document meets two standards, as
|
|
[sbomqs](https://github.com/interlynk-io/sbomqs) scores it at the end of each
|
|
scan:
|
|
|
|
- **BSI TR-03183-2 v2.1** -- the German technical guideline for SBOMs under
|
|
the CRA
|
|
- **NTIA Minimum Elements (2021)**
|
|
|
|
Each line has sbomqs's grade (A to F) and score out of 10. Open it for the
|
|
checks the SBOM does not fully meet, marked **Pflicht** (required) or
|
|
**zusätzlich** (additional), with what sbomqs found. The score is supporting
|
|
evidence for the CRA requirement **cra-ai-23** (SBOM): it is shown there on
|
|
the target's CRA page and is in the evidence pack as `sbom-quality.json`, but
|
|
it raises no findings and does not change the requirement's state.
|
|
|
|
The score rates the document, not the software. Today's export is CycloneDX
|
|
1.5 without suppliers, hashes or the TR's component properties, so BSI
|
|
TR-03183-2, which asks for CycloneDX 1.6 and those fields, grades it low; the
|
|
failed checks list what the export would need.
|
|
|
|
## Compare Tab
|
|
|
|
**Vergleich** compares the SBOMs of two targets, for example two firmware
|
|
releases:
|
|
|
|
1. Select **Prüfobjekt A** and **Prüfobjekt B**.
|
|
2. The result shows:
|
|
|
|
| Section | Description |
|
|
|---------|-------------|
|
|
| **Nur in A** | Packages only in target A |
|
|
| **Nur in B** | Packages only in target B |
|
|
| **Versionsunterschiede** | The same package in different versions |
|
|
| **Gemeinsam** | Number of packages that match exactly |
|