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

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