What Zephyr, ESP-IDF, Yocto, Buildroot and OpenWrt Write Into an SBOM: Five Build Tools Measured
SBOMs from current Zephyr, ESP-IDF, Yocto, Buildroot and OpenWrt releases, counted: identifiers, suppliers, licences and dependency links per component.
By Cenitia
Fact-checked against the law as of Reviewed by Vladimír Vician on How we check
The SBOM that a firmware build tool writes is often the first SBOM a hardware team owns. Whether a customer's scanner or your own vulnerability handling can use it depends on a few fields: an identifier a vulnerability database can be searched by, a version, a supplier, a licence and the dependency links.
We took the current release of five build tools on 28 November 2026, built or downloaded one small SBOM from each and counted those fields with the code that runs in our SBOM Validator. The numbers describe one example per tool with default options. They are not a ranking of the tools, and a product with more modules will give other numbers.
Annex I Part II point (1) of the Cyber Resilience Act requires manufacturers to "identify and document vulnerabilities and components contained in products with digital elements, including by drawing up a software bill of materials in a commonly used and machine-readable format covering at the very least the top-level dependencies of the products". The Regulation names neither CycloneDX nor SPDX. What a tool writes by default therefore decides how much work is left for you.
What we measured
| Tool and release | Example | How we got the SBOM | Format of the file |
|---|---|---|---|
| Zephyr 4.5.0 | samples/hello_world for the nRF52840 DK | Built it, then ran west spdx | SPDX 2.3 tag-value (the default) |
| ESP-IDF 6.1.1 with esp-idf-sbom 1.5.0 | hello_world for the ESP32 | Built it, then ran esp-idf-sbom create | SPDX 2.2 tag-value (the default) |
| Yocto Project 6.1 | core-image-minimal for qemux86-64 | Published by the project with the release | SPDX 3.0.1 |
| Buildroot 2026.08.2 | raspberrypi4_64_defconfig | Written from the configuration, no package built | CycloneDX 1.6 |
| OpenWrt 25.12.6 | Target ath79/generic | Published by the project with the release | CycloneDX 1.4 |
These are the commands for the three files we produced ourselves:
# Zephyr 4.5.0
west build -p always -b nrf52840dk/nrf52840 samples/hello_world -- -DCONFIG_BUILD_OUTPUT_META=y
west spdx -d build
# ESP-IDF 6.1.1, in the image espressif/idf:v6.1.1
idf.py set-target esp32
idf.py build
esp-idf-sbom create build/project_description.json -o hello_world.spdx
# Buildroot 2026.08.2
make raspberrypi4_64_defconfig
make show-info > show-info.json
utils/generate-cyclonedx < show-info.json > sbom.cdx.json
The Yocto file is core-image-minimal-qemux86-64.rootfs.spdx.json in the release folder for qemux86-64. The OpenWrt file is openwrt-25.12.6-ath79-generic.bom.cdx.json in the release folder for ath79/generic.
A file holds more entries than the product has components, so each count follows a stated rule. For Zephyr the two packages of a module count once, and the packages for build outputs are left out. For ESP-IDF the project itself is left out. For Yocto we count the packages installed in the image, not the recipes and source archives they were built from. For Buildroot we count the packages of the target, not the host tools. For OpenWrt every entry counts. These are the rules the validator applies.
The numbers
| Tool | Entries in the file | Components counted | With a package URL | With a CPE name | With a supplier | With a licence | Dependency statements |
|---|---|---|---|---|---|---|---|
| Zephyr 4.5.0 | 161 | 69 | 68 | 8 | 68 | 3 | 109 |
| ESP-IDF 6.1.1 | 60 | 59 | 57 | 5 | 58 | 1 | 150 |
| Yocto 6.1 | 252 | 36 | 36 | 35 | 0 | 36 | 634 |
| Buildroot 2026.08.2 | 52 | 11 | 0 | 4 | 0 | 11 | 181 |
| OpenWrt 25.12.6 | 145 | 145 | 0 | 52 | 0 | 145 | 0 |
A licence here means a licence written on the package entry. Hashes on package entries are almost absent: one of 59 in the ESP-IDF file and none in the others.
Zephyr 4.5.0: an identifier for every module, and every module in the file
The 4.5 release notes say that "Zephyr and its modules are recorded with a supplier and a purl pinned to the revision that was built". In our build 68 of 69 components carry both. The one without is the application itself.
A package URL in this file looks like pkg:github/zephyrproject-rtos/hal_nordic@c708b9fe1b7a36090c468374811a6e934b97e54a: the repository and the exact revision. Whether your scanner can match such a package URL against a vulnerability database is something to test with that scanner.
Eight components also carry a CPE name: Zephyr itself and the modules FatFs, hostap, LoRaMac-node, Mbed TLS, nanopb, TF-PSA-Crypto and Trusted Firmware-M. The documentation of west spdx explains that Zephyr's CPE name is built from its VERSION file and that a module can declare curated references, such as the upstream project's CPE, in its zephyr/module.yml.
The file lists more than the firmware contains. Each module appears as a -sources package and a -deps package, and the documentation says of the second: "One is emitted for every module of the west manifest, whether or not its code is built." Our hello_world lists 67 modules, among them hostap and Mbed TLS. Compiled files came from two source packages only: Zephyr and hal_nordic. In the SPDX 2.3 output those two carry FilesAnalyzed: true and the other 66 carry FilesAnalyzed: false.
That count needs one caveat. Without the option --analyze-includes, west spdx records the compiled source files only, not the headers they include. A module used through its header files alone then lists no files, although its code can be in the firmware. With --analyze-includes the same build lists files under three source packages: Zephyr, hal_nordic and cmsis_6.
If you hand this SBOM to a customer or to a scanner, run west spdx with --analyze-includes and say which packages contributed files. Otherwise a vulnerability in a module you never built can be raised against your product.
Zephyr records a licence for every file it compiled. On the package entries we found a licence on 3 of 69. With west spdx --spdx-version 3.0 the same build is written as SPDX 3.0 JSON-LD; all four documents of our build passed the published SPDX 3.0.1 schema.
ESP-IDF 6.1.1: package URLs and suppliers by default, licences missing
The image espressif/idf:v6.1.1 ships esp-idf-sbom 1.5.0. Its README lists four output formats: SPDX 2.2 tag-value (the default), SPDX 2.2 JSON, SPDX 3.0 JSON-LD and CycloneDX 1.6 JSON.
With default options the file holds 59 components. 57 carry a package URL such as pkg:github/espressif/esp-idf@051e4c4eb20346e043cdd47bc388fde75ff8af63#components/app_update, 58 name a supplier and 5 carry a CPE name. A licence is written on one package.
The README says that a component that is compiled but not linked into the final binary "will be by default presented in the SBOM file". With the options --rem-unused and --rem-config the same build gives 42 components instead of 59.
By default the SBOM also contains CVE statements; the README describes a --vex-format option that leaves them out or writes them to a separate VEX document. The CycloneDX output of our build held 16 statements, all with the state not_affected.
The SPDX 3.0 JSON-LD and CycloneDX outputs passed the published schemas. The SPDX 2.2 JSON output did not pass the published SPDX 2.2 JSON schema: the file writes the category of a package URL reference as PACKAGE-MANAGER, and the schema lists PACKAGE_MANAGER.
Yocto Project 6.1: full coverage, CPE names the NVD dictionary may not hold
The release folder of Yocto Project 6.1 for qemux86-64 holds an SPDX document next to each of its five images. We read the one for core-image-minimal, an SPDX 3.0.1 file: 252 entries, of which 36 are packages installed in the image. All 36 carry a package URL and a licence, 35 carry a CPE name, and none names a supplier. The file also holds 65 vulnerability records.
We compared the CPE names with the CPE dictionary of the NVD as published on 25 November 2026. Of the 35 names, 4 give a vendor and a product the dictionary holds. 21 leave the vendor open and name a product the dictionary lists. 10 name a product the dictionary does not hold. The larger core-image-sato-sdk file of the same release shows the same pattern: 87, 953 and 477 of 1,517 names.
A name the dictionary does not hold is unlikely to find a record in the NVD. That is our inference, not a statement of the NVD.
Buildroot 2026.08.2: an SBOM without a build, and a kernel version called custom
Buildroot writes a CycloneDX SBOM from a configuration: the manual gives make show-info | utils/generate-cyclonedx. We did not build a single package.
For raspberrypi4_64_defconfig the file holds 52 entries. 41 are host packages, marked with the CycloneDX scope excluded. The 11 others are the packages of the target. Four of the 11 carry a CPE name: BusyBox, kmod, the Linux kernel and xz. Five have no version; they are Buildroot's own scripts and skeleton packages.
This configuration takes the kernel as an archive of one commit of the Raspberry Pi tree, and the file gives the kernel's version as custom, also inside its CPE name. A version like that cannot be matched to a kernel release.
The file names the tool that wrote it, but no author and no time of creation. It holds 9 vulnerability records: 7 with the state resolved_with_pedigree and 2 with in_triage. Packages that are downloaded carry the address and the SHA-256 of their source archive.
OpenWrt 25.12.6: more CPE names than before, no dependency links
The release folder of OpenWrt 25.12.6 for the target ath79/generic holds a CycloneDX 1.4 file next to the images. It lists 145 components, each with a version and a licence. 52 carry a CPE name and none a package URL. The file has no dependency statements and does not name the tool that wrote it.
The file for the same target in release 24.10.0 held 140 components, 14 of them with a CPE name.
Compared with older files
We also had three older public files. They are not like-for-like builds, so read this table as a direction, not as a measurement.
| Tool | Older file | With a CPE name or a package URL then | Today |
|---|---|---|---|
| Zephyr | Files a user attached to Zephyr issue 82838 on 11 December 2024, from their own project; the files give the Zephyr version as 3.7.0 | 1 of 51 | 68 of 69 |
| ESP-IDF | Sample output of esp-idf-sbom 0.8.0 for hello_world, attached to esp-idf-sbom issue 3 on 16 October 2023; the file calls itself a draft | 4 of 99 | 57 of 59 |
| OpenWrt | Release 24.10.0, target ath79/generic | 14 of 140 | 52 of 145 |
In the older Zephyr and ESP-IDF files most components were identified only by a repository address and a revision: 50 of 51 and 95 of 99.
Against BSI TR-03183-2 and the CISA minimum elements
Two documents list the fields an SBOM should hold: BSI TR-03183-2, a German technical guideline and not EU law, and the 2026 Minimum Elements for a Software Bill of Materials published by CISA with partner agencies. The validator checks a file against both. Four things stand out.
- Format. BSI TR-03183-2 accepts CycloneDX 1.6 or SPDX 3.0.1, or a higher version. The default outputs of Zephyr (SPDX 2.3) and ESP-IDF (SPDX 2.2) and the OpenWrt file (CycloneDX 1.4) are older. Zephyr and ESP-IDF write SPDX 3.0 with one option.
- Vulnerability records. The guideline keeps vulnerability information out of the SBOM and recommends CSAF with its VEX profile for it. The Yocto and Buildroot files and the CycloneDX output of ESP-IDF hold such records.
- Who made each component. BSI TR-03183-2 lists the creator of each component, and the CISA minimum elements list its producer. Zephyr and ESP-IDF name a supplier on almost every package; the Yocto, Buildroot and OpenWrt files name none.
- Hash. The CISA minimum elements list a hash value for each component, and BSI TR-03183-2 a SHA-512 hash of its deployable form. On package entries we found one hash in five files.
What to do with a first SBOM
- Compare what the file lists with what the firmware contains. For Zephyr, run
west spdxwith--analyze-includesand look at which packages list files. For ESP-IDF, consider--rem-unused. - Check which components carry a name a vulnerability database knows. A package URL that points to a repository revision identifies the source exactly; it is not the same thing as a CPE name.
- Look for versions that are not versions:
custom, an empty value, a commit hash where a release exists. - Add what the tool cannot know: the supplier where it is missing, the licence, the hash of what you ship.
- Keep the command, the tool version and the date with the file, so that the run can be repeated.
You can run the same check on your own file in the SBOM Validator; it reads the file in your browser. The validation checklist covers what to check beyond the format, and the tooling comparison describes the tools themselves.
CRA applicability and timing
Most Cyber Resilience Act obligations apply to products placed on the market from 11 December 2027; a product placed on the market earlier becomes subject to them only if it is substantially modified from that date (Article 69(2)). Article 14 reporting is already a current duty: it has applied since 11 September 2026 to every in-scope product, including products placed on the market before 11 December 2027 (Article 69(3)), and it continues after the support period ends. Check the product’s scope, your role and the transitional provisions. See the Commission page for manufacturers, the Commission page on reporting and the Commission guidance on the application of the Cyber Resilience Act (C/2026/6013).
Continue reading
Related guides
tutorial
A CRA Vulnerability Response Tabletop Exercise for a Small Hardware Team
Run a fictional CRA response exercise with evidence intake, reporting decision clocks and separate vulnerability and incident timelines.
5 min read
guide
Using Open Source Components in Commercial Hardware under the CRA
Separate upstream open source roles from the hardware manufacturer's CRA duties: component due diligence, upstream reporting, fix sharing and patch ownership.
5 min read
tutorial
Secure OTA Firmware Updates and the Evidence to Keep
Plan secure OTA test evidence for signatures, interrupted updates, recovery and downgrade controls against the CRA update requirements, with a small host demo.
6 min read
guide
CRA Scope for Connected Devices and Their Cloud Backends
Apply the CRA remote data processing tests to connected device architectures and record external cloud dependencies separately.
5 min read
Put this into practice
Free tools & references
- CRA Readiness CheckerScore your product against the Cyber Resilience Act essential requirements.Open tool →
- EU Directive SelectorDescribe your product and find which EU directives and regulations apply.Open tool →
New to the terminology? The compliance glossary defines the main terms in plain English, each with its sources.