A microcontroller project vendors its RTOS, TCP/IP stack and TLS library as source. No manifest names them, so no SBOM listed their versions and no CVE was ever matched against them, although that is where the published vulnerabilities of an embedded product are. - embedded_versions: reads each library's version from the header that states it (tskKERNEL_VERSION_NUMBER, LWIP_VERSION_*, MBEDTLS_VERSION_STRING, LIBWOLFSSL_VERSION_STRING), vendor directories included, into SBOM entries (`embedded`, with the library's license). - nvd_cpe: the NVD matching the CODESYS runtime used, made generic. Every CVE of a product is fetched by CPE and its affected ranges matched here. FreeRTOS kernel CVEs are filed under the `o` part and its TCP/IP stack under `a`, so the products are asked for with `cpe:2.3:*:`. - The scan adds the entries before the CVE stage and matches them in NVD after OSV. The CODESYS match now uses the same code. Verified against NVD: all four CPE names return CVEs; a trimmed real FreeRTOS response is a unit-test fixture (10.0.1, 10.3.1, 10.5.1, 10.6.2). Nightly target fw-embedded-libs (FreeRTOS 10.3.1, lwIP 2.1.2, Mbed TLS 2.16.2; version defines only) finds the three libraries and 49 CVEs; no other baseline changed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
Firmware fixtures for the nightly scan regression (#313)
Each directory is uploaded as a source archive (the harness zips it) and
exercises one Firmwerk build-system provider. Most are copied from Firmwerk's
own provider tests (crates/firmwerk-core/tests/fixtures, Firmwerk v0.4.2),
extended with the manifests a real project carries (marked "+"), which the
SBOM reads as declared dependencies (#317):
| Directory | Firmwerk fixture | Provider |
|---|---|---|
make |
make |
Make |
cmake |
cmake |
CMake with a toolchain file |
arduino |
arduino |
Arduino (sketch.yaml) |
platformio |
platformio-real |
PlatformIO (pinned platform, + lib_deps) |
cargo-embedded |
cargo_embedded |
embedded Rust (+ pinned rust-toolchain.toml) |
espidf |
espidf |
ESP-IDF (+ main/idf_component.yml) |
zephyr-pinned |
zephyr-pinned |
Zephyr (west.yml, pinned revision, + module imports) |
freertos-cmake |
(ours) | CMake pulling the FreeRTOS kernel with FetchContent at a pinned tag |
freertos-lostbuild |
lostbuild |
source archaeology: no build system, FreeRTOS found from its headers |
c-sensor-node |
(ours) | Make; C/C++ SAST (#334): planted flaws in Core/, a vendored HAL in Drivers/ that must not be reported |
embedded-libs |
(ours) | Make; FreeRTOS 10.3.1, lwIP 2.1.2 and Mbed TLS 2.16.2 vendored as source: versions read from their headers, CVEs matched in NVD by CPE. The headers hold only the version defines |
yocto-layer |
(ours) | none: Yocto is not analysed yet, so the scan must record it |
make is also onboarded as a backend service (fw-make-onboarded-as-service):
the firmware SBOM follows detection, not the type picked in the wizard.
When Firmwerk's detection changes on purpose, refresh the copy and re-bless.
The baselines record what each manifest declares (library:zephyr@v3.6.0,
library:espressif/led_strip@2.5.3) and, where a manifest gives a range
instead of a version, the row carries the requirement rather than a version a
CVE could be matched against.