Express + expert help

View pricing →
Skip to main content
referenceCRA14 min read

SBOM for legacy embedded firmware: building one from binaries when source is gone

Build an SBOM for legacy firmware from binaries: Binwalk extraction, Syft and Trivy scans, EMBA, a residual-risk register, and what the CRA asks of legacy units.

By Vladimír VicianUpdated

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

Most CRA SBOM guidance assumes you build your firmware from source — Yocto, Buildroot, a Make pipeline you control. Legacy portfolios often do not look like that: products designed years ago with a vendor SDK, firmware images from a supplier that has since been acquired, factory-installed binaries with no build recipe.

This article describes a workflow for producing a documented SBOM from a legacy firmware binary when the source-controlled build path is not available. For the tool-by-tool comparison see the SBOM tooling for embedded systems guide; for the CRA scope question on legacy products see CRA for existing products already on the EU market.

What the CRA asks of legacy products

Two rules frame the work.

Annex I applies unit by unit. Under Article 69(2), products placed on the market before 11 December 2027 are subject to the CRA requirements only if, from that date, they are substantially modified. Placing on the market is assessed for each individual unit: the Commission guidance on the application of the CRA (C/2026/6013) repeats the Blue Guide's wording that the concept refers "to each individual product, not to a type of product" (point 11). A legacy model is therefore not exempt as a model. Units first supplied from 11 December 2027 must comply in full, including the Part II vulnerability handling requirements and the SBOM. Section 2.7 of the guidance explains that this does not necessarily require a redesign: the manufacturer carries out a cybersecurity risk assessment and may rely on existing measures where they address the risks.

Article 14 reporting applies to everything in scope. It has applied since 11 September 2026 to all in-scope products, including those placed on the market before 11 December 2027 (Article 69(3)). The guidance adds that the reporting obligations continue after a product is no longer supported, and that products placed on the market before 11 December 2027 are not subject to the Part II vulnerability handling obligations (point 210).

A binary-derived inventory serves both cases. For units placed on the market from 11 December 2027 it is the starting point for the required SBOM. For older units it lets you establish whether a reported vulnerability is in your product at all. Any SBOM you derive from a binary will be partial, so document the method, use complementary tools and state what remains unknown.

Step 1 — capture and hash the firmware artefact

Before extraction, get the exact binary that ships to customers. Sources:

  • Vendor portal download (current firmware release)
  • Over-the-air update payload captured on a representative device
  • JTAG or SWD flash dump from a known-good device
  • Factory image archive from the manufacturing partner
  • Vendor SDK distribution, if it includes the deployed image

Record the SHA-256 hash of the captured artefact. Every downstream SBOM document, and the residual-risk statement, should reference it. That reference is what lets you show which binary the SBOM describes.

Store the firmware artefact in a write-once repository together with the SBOM, the extraction logs and the residual-risk register.

Step 2 — identify the container format with Binwalk

Binwalk was rewritten in Rust; as of 21 November 2026 its latest release is v3.1.0 (31 October 2024). Per the README:

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

Run binwalk image.bin to identify embedded file types. Signatures you may meet in embedded Linux firmware:

  • SquashFS — read-only root filesystems
  • JFFS2 / UBIFS — read-write flash partitions
  • CramFS — older read-only systems
  • ext2/3/4 — Linux filesystems on flash or disk images
  • YAFFS / YAFFS2 — NAND flash filesystems
  • U-Boot images, FIT images, vendor wrappers — boot containers

Binwalk's entropy analysis helps to spot compressed or encrypted regions; check binwalk --help in the release you pinned for the option. A high-entropy region with no recognisable signature may be encrypted, in which case its contents are opaque without the vendor's key.

Step 3 — extract the root filesystem and component partitions

Binwalk's --extract mode handles many common formats. For specific filesystems you may prefer a dedicated tool:

  • unsquashfs (squashfs-tools) for SquashFS
  • jefferson for JFFS2
  • ubireader_extract_files from UBI Reader for UBI and UBIFS images
  • a read-only loop mount for raw ext2/3/4 images

Preserve the directory structure. Package scanners find installed packages through the package manager's own records. Syft, for example, looks for lib/dpkg/status (normally /var/lib/dpkg/status), lib/apk/db/installed, the RPM database under /var/lib/rpm or /usr/lib/sysimage/rpm, and lib/opkg/status (normally /usr/lib/opkg/status on opkg-based firmware).

If a section is encrypted or signed and locked (a secure-boot stage, a signed coprocessor blob, a DRM partition), record the partition as an opaque component with its hash, name and the reason. Do not attempt unauthorised decryption.

Step 4 — scan with Syft for a baseline SBOM

Run Syft against the extracted root filesystem:

syft dir:extracted/rootfs -o cyclonedx-json=sbom.cdx.json -o spdx-json=sbom.spdx.json

Syft will:

  • read Linux package databases: dpkg, apk, RPM and opkg
  • parse language-ecosystem manifests and lock files where they survive in the image
  • identify some well-known binaries by signature (its documentation shows BusyBox reported with a version by the binary classifier)

When you give no version, Syft writes the latest format version it supports; its current documentation lists CycloneDX up to 1.7 and SPDX JSON 2.2, 2.3 and 3.0. Append a version, for example cyclonedx-json@1.6, if your consumer needs an older one.

Statically linked libraries, stripped binaries and in-house libraries with no package metadata will generally not appear. Save the outputs to the artefact repository immediately.

Step 5 — cross-check with Trivy and CVE Binary Tool

Run Trivy on the same root filesystem:

trivy rootfs --format cyclonedx --output trivy-sbom.cdx.json extracted/rootfs
trivy rootfs --format spdx-json --output trivy-sbom.spdx.json extracted/rootfs
trivy rootfs --format json --output trivy-vulns.json extracted/rootfs

The first two calls write SBOMs; by default --format cyclonedx does not include vulnerabilities. The third writes Trivy's own report with vulnerability matches. Syft and Trivy overlap on packaged components but can differ; review every difference.

Add CVE Binary Tool, an OpenSSF project formerly hosted by Intel. Its binary scanner uses per-component checkers to work out which packages may be included in a binary, which is how it can find components that have no package-manager record. It can write its component list as an SBOM (--sbom-type spdx or cyclonedx with --sbom-output) and its triage as VEX (--vex-output). Its latest stable release is v3.4 (September 2024).

Independent passes find different things. What none of them finds is the residual-risk surface.

Pin the version of each tool and verify release signatures or checksums before you run it. In March 2026 a malicious Trivy release (v0.69.4) was published with compromised credentials (GitHub advisory GHSA-69fq-xp46-6x23).

Step 6 — run EMBA for extraction and analysis in one pass

EMBA is a firmware analysis and SBOM tool. Its README describes a process of firmware extraction, static analysis, dynamic analysis via emulation, building the SBOM and generating a web report, and gives as examples of what it finds:

  • insecure binaries
  • old and outdated software components
  • potentially vulnerable scripts
  • hard-coded passwords

For SBOM output it provides the default-sbom.emba scan profile.

EMBA does not replace Syft or Trivy; it adds findings they do not produce. For units that fall under Annex I, a finding such as a hard-coded password is directly relevant to the Part I requirements.

Step 7 — produce the residual-risk register

Every binary-derived SBOM is incomplete. Say so explicitly.

For each component or partition that could not be decomposed, add an entry to a residual-risk register. The entries below are invented examples:

Component / partitionSHA-256SupplierWhy opaqueFollow-up
wifi_fw.bin7a3e...Radio module supplierSigned binary blob, no sourceTrack supplier advisories; update when the supplier releases a new blob
tee_bootloader.imge2c1...SoC vendorSecure-boot stage, encryptedTrack supplier security bulletins; quarterly review
inhouse_crypto.so9b4f...InternalStatically built, stripped, source lostSource recovery task open
drm_store.bina1f8...DRM supplierLocked partitionSupplier-only updates

The register does not replace missing SBOM data. It records what you know you do not know, and how you intend to narrow the gap.

Step 8 — connect the SBOM to continuous monitoring

A static SBOM is out of date as soon as a new vulnerability is published. Load the CycloneDX SBOM into OWASP Dependency-Track or an equivalent platform and match it continuously against the firmware versions in the field. Dependency-Track added ingestion of CycloneDX 1.7 in version 4.14.4 (14 September 2026); on an older installation, export CycloneDX 1.6 instead.

Then connect the inventory to the Article 14 process (see CRA ENISA 24-hour reporting):

  • What triggers a notification. Becoming aware of an actively exploited vulnerability contained in the product, or of a severe incident having an impact on the security of the product (Article 14(1) and (3)). The early warning is due within 24 hours of becoming aware and the fuller notification within 72 hours.
  • When you are "aware". According to the Commission guidance (point 213), when, after an initial assessment of a suspicious event or a third-party report, you have a reasonable degree of certainty that a vulnerability contained in your product is being actively exploited. A CVE identifier is not a precondition.
  • Third-party components. The guidance (point 218) states that a vulnerability in a third-party component that cannot be exploited in your product, or that has not been exploited in your product, is not subject to mandatory reporting by you. You may still notify it voluntarily under Article 15.

The SBOM's part in this is narrow but necessary: it tells you quickly whether the affected component and version are in the product at all.

Realistic expectations and limitations

Communicate three caveats to management.

Coverage is partial. No combination of Syft, Trivy, CVE Binary Tool and EMBA enumerates everything in a binary image. How much is found depends on how the original build stripped binaries and how much was compiled in rather than installed as packages. We do not give a percentage, because we have no measurement that would support one; measure it for your own image.

The SBOM is inferred, not derived. A build-time SBOM is generated from the build. A binary-derived SBOM is inferred from the build's output. State in the record that the SBOM was inferred from the binary, with which tools, and where confidence is low. Do not present inferred entries as build facts.

Supplier cooperation can change the answer. If the silicon vendor or firmware supplier provides the build manifest or an SPDX or CycloneDX SBOM, that is better evidence than any inference. Ask for it under your supply contract. The CRA's due-diligence duty in Article 13(5) is your reason to ask, not a right to receive; the Commission guidance lists documentation obtained from the component manufacturer among the evidence for due diligence (point 171).

Common mistakes

  • Treating a legacy model as exempt. The cut-off applies to each unit. Units first supplied from 11 December 2027 are in scope even if the model is older.
  • Treating the binary SBOM as definitive. It is inference. Record confidence, run more than one tool and maintain the residual-risk register.
  • Skipping the firmware artefact hash. Without a hash that binds the SBOM to the binary, you cannot show which version was scanned.
  • Attempting to decrypt vendor blobs without authorisation. This can breach licence terms or laws protecting technical protection measures. Record the opaque blob and contact the supplier instead.
  • Forgetting language-runtime components. A Python or Node.js application in the firmware can bring many pip or npm dependencies. If the package metadata was stripped from the image, a scanner may report the runtime and none of the packages.
  • Running only Binwalk and stopping. Binwalk extracts. Syft and Trivy enumerate packages. CVE Binary Tool looks inside binaries. EMBA adds analysis findings. They serve different purposes.
  • No monitoring after the initial SBOM. An SBOM matched once against a vulnerability database says nothing about vulnerabilities published later.
  • Treating Article 69(2) as a complete exemption. Article 69(3) keeps Article 14 reporting in force for all in-scope legacy products, and it has applied since 11 September 2026.

A template residual-risk statement

Product: <SKU and model>
Firmware version: <vendor-assigned version>
Firmware SHA-256: <hash>
SBOM date: <YYYY-MM-DD>
SBOM method: Binwalk <version> extraction → Syft <version> + Trivy <version> + CVE Binary Tool <version> → EMBA <version> → manual review.

Coverage assessment: <what the SBOM was compared against; what could not be enumerated; where confidence is low>

Opaque components (could not enumerate):
  - <component>: hash <SHA-256>, supplier <name>, reason <encrypted | signed | stripped static | in-house>, follow-up <supplier advisory tracking | periodic review | other>
  - ...

Continuous monitoring:
  - SBOM loaded into <Dependency-Track | other> on <date>
  - Vulnerability sources: <European vulnerability database | NVD | OSV | supplier advisories>
  - Alert routing: <SOC | product security team>
  - Article 14 escalation path: <reference to incident response runbook>

CRA scope:
  - Units placed on the market: <before | from> 11 December 2027 (assessed per unit)
  - Substantial modification from 11 December 2027: <yes | no>
  - Annex I, including Part II and the SBOM requirement: <applicable | not applicable>
  - Article 14 reporting: applicable since 11 September 2026 to all in-scope products

The SBOM is the data. This statement records what you know, and do not know, about the product.

Explore Cenitia’s compliance workflow

Review the supported scope and workflow

Further reading

FAQ

Frequently asked questions

  • Do I need an SBOM for a legacy product that was placed on the market before 11 December 2027?

    Not under Annex I. Article 69(2) applies the CRA requirements to products placed on the market before 11 December 2027 only if they are substantially modified from that date, and the Commission guidance (C/2026/6013) confirms that such products are not subject to the Part II vulnerability handling obligations. Placing on the market is assessed for each individual unit, so units of an old model first supplied from 11 December 2027 are fully in scope. Article 14 reporting has applied to all in-scope products since 11 September 2026 (Article 69(3)). A component inventory is how you find out whether a reported vulnerability is in your product.

  • How complete is an SBOM built from a firmware binary?

    It is always partial, and there is no general percentage you can rely on. Scanners such as Syft and Trivy read package databases and language manifests, so packaged components are found when that metadata survived in the image. Statically linked libraries, stripped binaries, in-house code without package metadata and encrypted or signed vendor blobs are typically missed. Measure coverage per image against any ground truth you have, such as a vendor manifest, and record what could not be enumerated.

  • Which extraction tool should I start with — Binwalk or EMBA?

    Start with Binwalk if you want a single identification and extraction step that you chain into your own pipeline. Use EMBA if you want one tool to run extraction, static analysis and reporting together; it includes an SBOM scan profile, default-sbom.emba. Either way, keep the raw outputs and compare the results of more than one tool, because each detects components differently.

  • What if the firmware is encrypted and I do not have the vendor's keys?

    Record the encrypted partition as an opaque component with its SHA-256, its location, the supplier and the reason its composition is unknown. Do not try to decrypt or reverse-engineer it without the supplier's authorisation and legal advice: licence terms and laws protecting technical protection measures can prohibit it. Ask the supplier in writing, with reference to your supply contract, for component and vulnerability information. The CRA requires you to exercise due diligence on integrated components (Article 13(5)); it does not give you a statutory right to the supplier's SBOM.

  • Can I use AI or machine learning to identify components in a stripped binary?

    Binary-similarity and code-fingerprinting tools, some of them based on machine learning, can suggest which known library a stripped binary contains. Their output is a probabilistic match, not an identification. Use it as a lead for manual confirmation, record the tool, its version and the match score, and mark the component as inferred in your inventory. Do not turn an unconfirmed match into a precise version string, because vulnerability matching will then report results with false confidence.

  • How do I show a market surveillance authority how my legacy SBOM was produced?

    Document the method: which extraction tool, which scanners, which versions and on which dates. Keep the raw scanner outputs alongside the SBOM. Maintain a residual-risk register that lists what could not be enumerated and why. Bind the SBOM to the firmware artefact by SHA-256. You can then show the chain from the firmware hash through the extraction log to the SBOM, the register and the vulnerability sources you monitor.

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.