An SBOM of your ESP-IDF build, and CVE checks that keep running
Espressif ships a tool that writes the SBOM of an ESP-IDF build and checks it against the NVD. Run once, it tells you about today. The firmware you shipped last year needs the same check tomorrow, and that is the part the Cyber Resilience Act cares about.
Write the SBOM
pip install esp-idf-sbom idf.py build idf.py sbom-create # writes build/<project>.spdx (SPDX 2.2, tag-value) idf.py sbom-check # checks it against the NVD, once
The SBOM lists ESP-IDF itself, every component the build uses and the managed components from the registry, each with its version and, where one exists, the CPE identifier the NVD uses. Your own application appears as the top package.
Why one check is not enough
A CVE published next month for a library in ESP-IDF v5.3 affects every device still running a build made with it. sbom-check run in CI only sees the vulnerabilities known on the day of the build. The CRA asks you to handle vulnerabilities for the whole support period, so each shipped build needs checking again whenever the NVD changes.
Keep the SBOM of every release, checked daily
Attach the SBOM to the image it belongs to, from the Security tab in the dashboard or from CI:
curl -fsSL https://pinscope.dev/ci.sh | sh -s -- build/app.bin --sbom build/app.spdx
Pinscope then checks every build you uploaded against the NVD and the CISA list of actively exploited vulnerabilities each day, with the same matching rules as esp-idf-sbom check, including the CVEs Espressif marks as not applicable to ESP-IDF. It emails you when a new one appears, shows which devices still run an affected build, and keeps your decision on each one. One build is checked free.
For the versions most projects use, the known vulnerabilities of each ESP-IDF release are listed without an account.
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