feat(yocto): layer trees are detected as Embedded Linux / Yocto, and the scan matrix says what runs
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 / Check (pull_request) Successful in 9m1s

- Heuristic classifier recognises a Yocto layer tree: conf/layer.conf with
  recipes 0.8, one of them 0.65, kas file 0.6, build conf / oe-init-build-env
  0.5 (meta-* / distro confs only corroborate). Facts: build_system=bitbake,
  yocto_layer=<dir> per layer. Outranks Firmwerk's source archaeology on
  C sources in files/.
- Scan matrix: new RecipeInventory / RecipeLint scan types, planned (flip by
  setting RECIPE_INVENTORY / RECIPE_LINT to None); image SBOM/CVE need build
  artefacts; no pentest for Yocto.
- Firmware SBOM is not run on a Yocto tree; recorded as "Yocto build
  analysis is planned (tier 2)".
- Dashboard texts (de/en), docs/guide/yocto.md, nightly fixture expectation.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-09 16:47:25 +02:00
1 parent 528c9d4f7f
commit e4685ebc84
13 files changed
+581 -21

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ Under **Maschine und Gerät** (Machine and device):
| **SPS / PLC** | CODESYS, PLCopen XML, Structured Text (IEC 61131-3) |
| **Firmware — ohne Betriebssystem** | Microcontroller without an operating system, e.g. STM32 with HAL |
| **Firmware — RTOS** | FreeRTOS, Zephyr and other real-time operating systems |
| **Embedded Linux / Yocto** (preview) | BSP + image. Today a scan covers secrets, malware and SAST over patches and files; there is no recipe or image SBOM yet. |
| **Embedded Linux / Yocto** (preview) | BSP + image. Today a scan covers secrets, malware and SAST over patches and files; there is no recipe or image SBOM yet. See [Embedded Linux / Yocto](./yocto.md). |
Under **Weitere Software** (Other software): **Backend / API**,
**Webanwendung**, **Desktop-Anwendung**, **Android-App**, **iOS-App**.
+50
View File
@@ -0,0 +1,50 @@
# Embedded Linux / Yocto
Yocto support is a **preview**. Prüfwerk recognises a Yocto / OpenEmbedded layer
tree and scans its sources today; the Yocto-specific analyses are being added in
three tiers, by what you can give us.
## Detection
A git repository or source archive is typed **Embedded Linux / Yocto** from what
it holds:
| Signal | Confidence |
| --- | --- |
| `conf/layer.conf` **and** BitBake recipes (`*.bb`, `*.bbappend`, `*.inc` under `recipes-*`) | high (0.8) |
| only one of the two | medium (0.65) |
| a kas project file (`kas*.yml`, `kas/*.yml`) | 0.6 |
| a build directory's `bblayers.conf` / `local.conf`, or poky's `oe-init-build-env` | low (0.5) |
`meta-*` layer directories and `conf/distro/*.conf` raise a medium or low verdict
slightly, but never decide on their own (`META-INF` is everywhere). C sources a
recipe ships in `files/` do not make the tree bare-metal firmware: the layer
outranks Firmwerk's reading of loose sources. A Zephyr or ESP-IDF project inside
the tree is still detected as RTOS firmware.
The wizard proposes the type after the first scan has read the code, as for every
other source-based type. The detection is stored on the target as facts:
`build_system = bitbake` and one `yocto_layer` per layer (the directory holding
its `conf/layer.conf`, `.` for the repository root). A `build/` directory is not
searched.
## What runs today
| Scan | Status |
| --- | --- |
| Secrets (Gitleaks), malware and committed binaries (ClamAV) | runs over the layer tree |
| Code analysis (Semgrep, Cppcheck) | runs over patches and the sources in `files/` |
| SBOM from lockfiles (Syft) | runs, but a layer has no lockfiles, so it is usually empty |
| Firmware SBOM (Firmwerk) | not run: listed under **Nicht ausgeführt** as "Yocto build analysis is planned (tier 2)" |
| Recipe inventory, recipe lint | in progress (tier 1), listed under **Nicht ausgeführt** until they land |
| Image SBOM / CVE | needs build artefacts (SPDX / manifest), planned (tier 2) |
| DAST | opt-in, with an http(s) address of the running device |
| Penetration test | not offered until an image can be booted in an emulation sandbox |
## What is planned
| Tier | Input | Analysis |
| --- | --- | --- |
| **1: layer tree** (in progress) | the layers in git, no build | **Recipe inventory**: every recipe's name, version, `SRC_URI`, `CVE_PRODUCT` and `CVE_STATUS`, matched against NVD; labelled as a recipe inventory, not the image's SBOM. **Recipe lint**: oelint-adv plus our own rules (debug and empty-password image features, `http://` fetches, keys under `files/`, missing `security_flags.inc`) |
| **2: build artefacts** | `tmp/deploy/spdx` (SPDX 3.0, or 2.2 up to Scarthgap), `*.vex.json`, the image `.manifest`, the kernel `.config` | **SPDX import** into the SBOM view and CycloneDX export; **sbom-cve-check** with the Yocto VEX annotations; kernel CVEs filtered by the configuration; a nightly re-check without a rebuild |
| **3: image / rootfs** | `.wic`, tar, ext4, squashfs | unpacking, ELF hardening of every binary, secrets and default credentials in the root filesystem; DAST and pentest only for a qemu build in an isolated sandbox |