Express + expert help

View pricing →
Skip to main content
referenceCRA14 min read

SBOM tooling for embedded systems: Syft, Trivy, Yocto SPDX and CycloneDX-generators compared

SBOM tools for embedded development compared: Yocto create-spdx, Buildroot, CycloneDX generators, Syft, Trivy, Binwalk and EMBA, with their limits and versions.

By Vladimír VicianUpdated

Fact-checked against the law as of Reviewed by Vladimír Vician on How we check

Annex I Part II point (1) of the Cyber Resilience Act (Regulation (EU) 2024/2847) requires manufacturers to identify and document the vulnerabilities and components contained in their products, including by drawing up a machine-readable SBOM. For embedded teams the practical question is which tools to run, and what each one can and cannot see.

This article compares SBOM tools for embedded development along two axes: build-time generation versus binary scanning, and SPDX versus CycloneDX output. For update rules see the SBOM update frequency guide; for the format choice see CycloneDX vs SPDX for hardware; for binaries you did not build see SBOM for legacy embedded firmware.

Two workflows that fit different situations

The first decision is whether the SBOM comes from the build or from the binary.

A build-time SBOM is generated by the toolchain that produces the firmware. The build system knows each recipe, source location, applied patch, licence and version, so the result is the most accurate inventory of what the build produced, within what the build knows. Yocto's create-spdx class, Buildroot's CycloneDX generator and the CycloneDX generators for language ecosystems belong here.

A binary-scan SBOM is generated by analysing the built image. The scanner reads package databases inside the root filesystem, inspects language manifests it finds, and applies heuristics to binaries. The output is inferred: accurate for what the scanner can see, silent about what it cannot. Syft and Trivy are the two open-source scanners covered here.

Use both where you can. Build-time tools cover what you control; scanners cross-check the result and are the only option for third-party images.

Build-time tools

Yocto/OpenEmbedded — create-spdx

The create-spdx class has been part of OpenEmbedded-Core since release 3.4 (honister). The Yocto documentation describes its output as covering the components, their licences, dependencies and sources, the changes applied to them and the known vulnerabilities that were fixed.

What the class produces depends on the release. We checked the documentation and the class source at the release tags:

ReleaseSPDX versionImage-level outputEnabled by default
5.0 (scarthgap), checked at 5.0.13 and 5.0.212.2 (create-spdx inherits create-spdx-2.2)IMAGE-MACHINE.spdx.tar.zstThe default distro settings list create-spdx in INHERIT_DISTRO; the 5.0.13 guide nevertheless tells you to add INHERIT += "create-spdx"
6.0 (wrynose)3.0 (create-spdx inherits create-spdx-3.0)IMAGE-MACHINE.spdx.jsonYes, through INHERIT_DISTRO

The 5.0.21 SBOM guide adds that SPDX 3 support is available on scarthgap but disabled by default, and is enabled by replacing create-spdx with create-spdx-3.0 in INHERIT_DISTRO. Guides for different point releases of the same series therefore describe different defaults; follow the one for the release you pinned, and record what the build actually produced.

The documentation for current releases also lists the cargo_common, go-mod, pypi, npm and cpan classes as populating Package URL identifiers for source downloads. They enrich identifiers; they do not add coverage for software that is not built by a recipe.

Strengths: the inventory comes from the recipes that build the image, with licence and version data from the same source.

Limitations: the class emits SPDX only, so CycloneDX requires a conversion step or third-party tooling that you must validate. SPDX 2.2 output is older than the SPDX 3.0.1 that BSI TR-03183-2 asks for (see below). The build must run through Yocto, not a vendor's pre-built SDK image. The SBOM covers only what the build knows.

The Yocto SPDX tutorial walks through a pinned 5.0.13 configuration.

Buildroot — CycloneDX from package metadata

Buildroot generates a CycloneDX SBOM from the output of show-info (manual section 8.9):

make show-info | utils/generate-cyclonedx

make legal-info is a different export. It collects legally relevant material, such as package sources and licence information, for licence compliance; it is not an SBOM in CycloneDX or SPDX format.

CycloneDX generators for language ecosystems

For code that is not built through Yocto or Buildroot, the CycloneDX project maintains generators per ecosystem. Their defaults differ, so read each tool's documentation and pin the output version:

ToolInputSpec version, per the tool's README
cyclonedx-py (PyPI package cyclonedx-bom)Python environments, requirements files, Poetry and Pipenv; PDM manifests are not explicitly supportedCheck the tool's options
cyclonedx-node-npmnpm projects only1.2 to 1.7, default 1.7
cyclonedx-gomodGo modulesDefault 1.6; the option list goes up to 1.7
cargo-cyclonedxCargo projects1.3, 1.4 or 1.5, default 1.3

cyclonedx-go is a Go library for reading and writing CycloneDX, not a generator. Other ecosystems have their own CycloneDX tools.

Filesystem and image scanners

Syft (Anchore)

Syft is a CLI and Go library for SBOM generation. Its README describes it as generating SBOMs for container images, filesystems and archives, and as able to create signed SBOM attestations using the in-toto specification.

Output formats, per the Syft documentation:

  • CycloneDX JSON (versions 1.2 to 1.7) and CycloneDX XML
  • SPDX JSON (2.2, 2.3 and 3.0) and SPDX tag-value
  • Syft's own JSON format
  • conversion between formats

Without a version suffix Syft writes the latest version it supports; -o cyclonedx-json@1.6 selects an older one.

Coverage:

  • Linux package databases: apk, dpkg, RPM and opkg
  • language ecosystems (see the Syft documentation for the list)
  • scan targets: container images (OCI, Docker, Singularity), directories, files and archives

Grype, from the same project, matches Syft SBOMs against vulnerability data.

Limitations: Syft does not detect statically linked code in stripped binaries, and it does not unpack a firmware image. Extract the filesystem first.

Trivy (Aqua Security)

Trivy is a multi-scanner that produces SBOMs alongside other findings. Its README lists these targets:

  • container images
  • filesystems
  • Git repositories (remote)
  • virtual machine images
  • Kubernetes

Its scanners cover OS packages and software dependencies (SBOM), known vulnerabilities, infrastructure-as-code misconfigurations, secrets and software licences. SBOM output is available in CycloneDX and SPDX with --format.

Trivy has the same limits as Syft on stripped binaries and unextracted firmware. Pin its version and verify releases: in March 2026 a malicious Trivy release (v0.69.4) and repointed trivy-action tags were published with compromised credentials (GitHub advisory GHSA-69fq-xp46-6x23).

Comparison

CapabilitySyftTrivy
SBOM generation is the main purposeYesNo, one of several scanners
CycloneDX outputYesYes
SPDX outputYesYes
Container image scanningYesYes
Directory or root filesystem scanningYesYes
Virtual machine image scanningNoYes
Remote Git repository scanningNo; scan a local checkout as a directoryYes
Kubernetes scanningNoYes
Signed SBOM attestationsYes (in-toto)See the Trivy documentation
Vulnerability matchingWith GrypeYes
IaC misconfiguration scanningNoYes
Secret detectionNoYes

For an SBOM alone, Syft is the narrower tool. For one CI step that produces an SBOM plus vulnerability, secret and misconfiguration findings, Trivy reduces the number of tools.

Firmware-specific tooling

A vendor firmware image with no source build has to be unpacked before a scanner can read it. Two tools help.

Binwalk

Binwalk has been rewritten in Rust. Per the README:

"Binwalk can identify, and optionally extract, files and data that have been embedded inside of other files."

It identifies embedded file types, offers entropy analysis to help spot compressed or encrypted regions, and extracts embedded filesystems. As of 21 November 2026 the latest release is v3.1.0 (31 October 2024).

Binwalk does not produce an SBOM. It produces the extracted filesystem that Syft or Trivy can scan.

EMBA

EMBA is a firmware analysis and SBOM tool. Its README describes firmware extraction, static analysis, dynamic analysis via emulation, building the SBOM and generating a web report, and names insecure binaries, outdated software components, potentially vulnerable scripts and hard-coded passwords as examples of what it finds. The default-sbom.emba scan profile is its SBOM mode.

Use EMBA when you want extraction and analysis in one run instead of chaining the steps yourself.

SBOM format choice — SPDX or CycloneDX

The CRA requires a "commonly used and machine-readable format" and names none. The two widely used candidates:

  • SPDX — a Linux Foundation project. SPDX 2.2.1 is published as ISO/IEC 5962:2021; later versions are not that ISO edition. The current release is SPDX 3.0.1. Several build tools still emit SPDX 2.2 or 2.3 by default (Yocto 5.0, Zephyr, ESP-IDF).
  • CycloneDX — an OWASP Foundation project standardised by Ecma International as ECMA-424. The current release is CycloneDX 1.7 (21 October 2025); the ECMA-424 edition that defines it was published on 10 December 2025. Serialisations: JSON, XML and Protocol Buffers.

Two public documents are worth reading before you choose. Neither is EU law.

  • BSI TR-03183-2, version 2.1.0, a German technical guideline, accepts only CycloneDX 1.6 or higher and SPDX 3.0.1 or higher, in JSON or XML, and requires recursive dependency resolution and one SBOM per software version. SPDX 2.2 or 2.3 output and a cargo-cyclonedx BOM at its maximum of 1.5 do not meet that format clause.
  • The ENISA Technical Advisory for Software Bill of Materials (October 2026) compares SPDX 3.0.1 and CycloneDX 1.7 and describes generation, validation, signing, storage, consumption and maintenance as one lifecycle. It states that its recommendations are non-mandatory and that it is not a legal interpretation of the CRA.

A format name alone does not show that an SBOM meets the CRA requirement. Pick the format and version your downstream platform ingests, for example Dependency-Track for CycloneDX, and validate what you emit. The detailed comparison is in CycloneDX vs SPDX for hardware.

Residual gaps

Every tool above has known limits. State them in your records.

  • Statically linked code has no package record. If a vendor compiled OpenSSL into a proprietary binary, package-based detection in Syft or Trivy will not report it. A recipe-based SBOM, or a binary-content scanner such as CVE Binary Tool, can.
  • Stripped binaries have lost their symbol table. Detection that relies on symbols fails.
  • In-house libraries are in no package database. The SBOM can list them, but they cannot be matched against a public vulnerability database.
  • Firmware blobs for Wi-Fi, Bluetooth or cellular modules are often signed or encrypted and cannot be unpacked. They appear as one opaque component with whatever metadata the supplier provides.
  • A Yocto SBOM covers what Yocto knows. Out-of-tree kernel modules, vendor binaries copied in late in the build and manual post-build additions are missing unless a recipe describes them.

Keep a residual-risk statement with the SBOM: which components could not be enumerated, why, and what monitoring compensates.

Putting it together — a reference embedded SBOM pipeline

For a Yocto-based connected product:

  1. CI build — pin the Yocto release and the layer revisions. Follow the SBOM guide for that release (the current guide describes the latest release, not necessarily yours). Record the effective INHERIT configuration and the SPDX version of the output.
  2. Format conversion — convert only if the recipient requires it. Pin the converter, check which input and output versions it supports, and validate the result for schema, component identities, relationships and lost information.
  3. Cross-check — scan the final root filesystem with Syft and compare. Investigate every component the scan finds that the build SBOM lacks, and fix it in a recipe.
  4. Vulnerability matching — match the SBOM against a vulnerability database, for example with Grype, and record the database build. Dependency-Track ingests CycloneDX for portfolio-wide tracking; ingestion of CycloneDX 1.7 was added in version 4.14.4 (14 September 2026).
  5. Artefact storage — store the SBOMs in the same repository as the firmware binary, with a checksum that binds each SBOM to the exact image.
  6. Distribution — the SBOM is part of the technical documentation. It goes to the notified body where a third-party conformity assessment applies, and to a market surveillance authority on a reasoned request (Annex VII point 8). Giving it to customers or publishing it is your choice; if you make it available to users, Annex II point 9 requires you to say where it can be accessed.

For a product built around a vendor image you do not control, the pipeline is shorter: extract with Binwalk or EMBA, scan with Syft and Trivy, write the residual-risk statement. That statement documents the gap. It does not satisfy an SBOM or vulnerability-handling requirement that applies to the product.

Common mistakes

  • Generating one SBOM "for compliance" and never again. The SBOM is a working input to vulnerability handling. If you cannot regenerate it for each release, it will not match what you ship.
  • Treating Syft and Trivy as interchangeable. They overlap, but they detect components differently and have different scopes. Compare their output instead of picking one blindly.
  • Skipping the build-time path when Yocto or Buildroot is available. A build-time SBOM starts from the recipes; a binary scan has to infer them. Use the scan as a cross-check.
  • Assuming a tool's output version. Defaults range from CycloneDX 1.3 to 1.7 and from SPDX 2.2 to 3.0 across the tools in this article. Pin the version and check the output.
  • Forgetting language ecosystems. A build SBOM may miss Python packages installed at run time or Go modules compiled into a separately built binary. Add a generator for that ecosystem where needed.
  • Picking a version your downstream platform does not accept. Check what it ingests before you choose; a Dependency-Track installation older than 4.14.4, for example, does not ingest CycloneDX 1.7.
  • Leaving out the residual-risk statement. No SBOM of a real embedded product is complete. Recording what could not be enumerated is more useful than implying that nothing is missing.
Explore Cenitia’s compliance workflow

Review the supported scope and workflow

Further reading

FAQ

Frequently asked questions

  • Which SBOM format does the CRA require — SPDX or CycloneDX?

    Neither by name. Annex I Part II point (1) requires 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. SPDX and CycloneDX are the two widely used candidates, and the version matters: ISO/IEC 5962:2021 is SPDX 2.2.1, the 2nd edition of ECMA-424 is CycloneDX 1.7, and Germany's BSI TR-03183-2 version 2.1.0, a technical guideline and not EU law, accepts CycloneDX 1.6 or higher and SPDX 3.0.1 or higher. Article 13(24) lets the Commission specify the format and elements by implementing act, so check EUR-Lex before you fix your choice.

  • What is the difference between Syft and Trivy for embedded SBOM work?

    Syft (Anchore) generates SBOMs from container images, directories, files and archives, in CycloneDX JSON or XML, SPDX JSON or tag-value and its own JSON, and can create signed attestations using the in-toto specification. Trivy (Aqua Security) is a multi-scanner: it produces SBOMs and also scans container images, filesystems, remote Git repositories, virtual machine images and Kubernetes for vulnerabilities, misconfigurations, secrets and licences. Use Syft when you only need the SBOM of an extracted root filesystem. Use Trivy when the same step should also report vulnerabilities.

  • Can I generate an SBOM directly from a Yocto build?

    Yes. OpenEmbedded's create-spdx class generates SPDX documents from the recipes that build the image. What you get depends on the release. In the 5.0 (scarthgap) series the class produces SPDX 2.2 and the image output is an IMAGE-MACHINE.spdx.tar.zst archive. In release 6.0 it produces SPDX 3.0 as IMAGE-MACHINE.spdx.json. The default distro settings list create-spdx in INHERIT_DISTRO, so check your effective configuration instead of assuming it is off. The SBOM covers what the build knows: software added outside the recipes is not in it.

  • Why do binary-scan SBOM tools miss things?

    Three reasons. Statically linked code leaves no package-manager record, because the linker has merged it into the binary. Stripped binaries have lost their symbol table, so detection that relies on symbols fails. In-house libraries that are in no package database cannot be matched to a known component. Syft, Trivy and EMBA all have these limits on binary-only input. Generate the SBOM at build time where you can, and use binary scanners as a cross-check and for components you did not build.

  • Do I need separate tools for containers and bare-metal embedded firmware?

    Often yes. Container images have a defined layer and package-database structure that Syft and Trivy read directly. A firmware image usually needs extraction first: Binwalk to identify and extract the embedded filesystem, then Syft or Trivy on the extracted root filesystem, or EMBA to run extraction and analysis together. If the device boots a Yocto or Buildroot image that you build, generate the SBOM from the build and use a binary scan only as a cross-check.

  • How often do I need to regenerate the SBOM?

    Whenever the shipped software changes: every released firmware version needs its own SBOM. The CRA sets no interval, but Article 31(2) requires the technical documentation, which includes the SBOM, to be continuously updated where appropriate, at least during the support period. Generate the SBOM in the same CI job that produces the firmware artefact and store both together, with a checksum that binds them.

Continue reading

Related guides

Put this into practice

Free tools & references

New to the terminology? The compliance glossary defines the main terms in plain English, each with its sources.