An SBOM for an Arduino or PlatformIO project
ESP-IDF and Zephyr can write an SBOM of their builds; Arduino and PlatformIO cannot yet. For a product built with them, the Cyber Resilience Act still asks for one. A useful SBOM for an Arduino-ESP32 product is short, and you can write it in a few minutes.
What goes in it
- ESP-IDF, at the version the Arduino-ESP32 core is built on. This is where most CVEs that matter will be found. Print it once from the device with
esp_get_idf_version(), or read it from the core's release notes. - The Arduino-ESP32 core itself, at its version.
- Every library the sketch uses, at the version you build with (Library Manager or
lib_depsin platformio.ini;pio pkg listshows them all).
A minimal CycloneDX file
{
"bomFormat": "CycloneDX", "specVersion": "1.5",
"metadata": { "component": { "type": "firmware", "name": "my-product", "version": "1.4.0" } },
"components": [
{ "type": "library", "name": "esp-idf", "version": "5.3.1",
"cpe": "cpe:2.3:a:espressif:esp-idf:5.3.1:*:*:*:*:*:*:*" },
{ "type": "library", "name": "arduino-esp32", "version": "3.1.1",
"purl": "pkg:github/espressif/arduino-esp32@3.1.1" },
{ "type": "library", "name": "ArduinoJson", "version": "7.2.0",
"purl": "pkg:github/bblanchon/ArduinoJson@7.2.0" }
]
}
The CPE is what the NVD matches against, so give one to every component that has one in the NVD; look it up in the NVD's CPE search. Components without a CPE are still listed, which is what the SBOM itself is for.
Keep it with the build, and keep checking it
Write the file next to the build in CI and update the versions when you update a library. Attach it to the image:
curl -fsSL https://pinscope.dev/ci.sh | sh -s -- .pio/build/esp32dev/firmware.bin --sbom sbom.cdx.json
Pinscope checks it against the NVD and the CISA exploited list every day, emails you when a new vulnerability appears in a build you shipped, and keeps your decision on each one. One build is free. See also the SBOM of an ESP-IDF build.
Try it
Three devices are free, and no card is needed. Create an account, or read the guide for your platform: ESP32, Zephyr, Raspberry Pi Pico, Linux, ESP8266.
More
- Remote access to an ESP32 without TLS: what it measured and what it costs
- Reaching an ESP32 web server from outside its network
- Updating ESP32 firmware over the internet, with rollback
- Guru Meditation Error: decoding the backtrace, and crashes from the field
- Remote logging: ESP_LOG without a serial cable
- Heap and stack monitoring in the field
- An ESP32 behind CGNAT, 4G or Starlink
- TLS memory usage on the ESP32, and how to reduce it
- Sharing an ESP32 sensor page with anyone, without port forwarding
- ArduinoOTA over the internet, with a rollback
- ESP32 remote access compared: port forwarding, ngrok, Cloudflare Tunnel, Tailscale
- esp_http_server slow? The 250 ms delay and the fix
- Before the first ESP32 ships: a field support checklist
- ESP32 exception decoder: a Guru Meditation backtrace to lines, in the browser