Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Is Firmware Extraction and Analysis?

Firmware extraction obtains the software image from an embedded device; firmware analysis unpacks that image and examines it for hardcoded secrets, vulnerable components, and weak update logic.

Illustration for the cybersecurity term Firmware Extraction and Analysis
Home / Blog / Cybersecurity Terms / What Is Firmware Extraction and Analysis?
17 November 2026

What Is Firmware Extraction and Analysis?

What Is Firmware Extraction and Analysis?

Firmware is the software that makes a piece of hardware behave like a product. Extracting it means obtaining that image — from a vendor download, a flash chip, or a debug port — and analysing it means taking it apart to see what the manufacturer actually shipped. It is the single highest-yield activity in an embedded security assessment, because everything the device knows is in there: the credentials, the keys, the update logic, and every third-party library whose version nobody tracked.

Five Ways In

Testers work down this list, stopping at the first that succeeds.

  1. The vendor’s website. Update packages are frequently published without authentication. Free, fast, and perfectly representative of production code.
  2. A serial console. If UART gives a shell, dd from /dev/mtdblock* copies the partitions out over the same connection or across the network.
  3. The flash chip in circuit. A SOIC-8 test clip on a SPI NOR chip with flashrom and a CH341A programmer or Bus Pirate dumps the contents without desoldering anything.
  4. Debug interfaces. JTAG or SWD with OpenOCD reads internal flash directly, provided the manufacturer left the protection fuses unblown.
  5. Chip removal. Where everything else is locked, chip-off analysis desolders the memory and reads it on a dedicated programmer. Destructive and the last resort.

Intercepting an over-the-air update is a sixth route and often the most instructive, since it reveals the update mechanism at the same time.

Unpacking the Image

A raw dump is rarely a filesystem. binwalk scans for signatures and identifies bootloaders, kernels, and compressed archives; sasquatch handles the non-standard SquashFS variants that vendors love; ubi_reader deals with UBIFS on NAND. Checking entropy comes first — an image with uniformly high entropy throughout is encrypted or compressed as a whole, and the key is usually fused into the SoC, at which point the SPI route stops working and you go back to the debug interface.

Once a filesystem is mounted, the structure is familiar: /etc, /bin, a web root, and a handful of vendor binaries that do the interesting work.

What Analysis Looks For

Tooling and Emulation

Automated platforms such as EMBA, FACT, and the Firmware Analysis Toolkit run the common checks, match components against vulnerability data, and highlight anomalies, which is a sensible first pass before manual work. For reverse engineering specific binaries, Ghidra handles MIPS and ARM comfortably and is free.

Emulation turns static review into dynamic testing. qemu-user with chroot runs individual binaries; full-system emulation through FirmAE or Firmadyne can bring a router’s web interface up on a laptop, where it can be fuzzed and exploited without risking the hardware. Emulation often fails on peripheral access, which is why a physical sample still matters.

Legal Boundaries in the UK

Analysing firmware from a device you own is lawful, but the surrounding activity needs care. Testing anything you do not own requires written authorisation under the Computer Misuse Act 1990, and publishing findings should follow coordinated disclosure, for which the NCSC provides guidance and most manufacturers now publish a contact under the PSTI regime. Keep extracted images inside the engagement scope; they frequently contain customer data as well as vendor code.

Our Hardware Penetration Test Services include firmware extraction and review as standard, with findings mapped back to the design decisions that caused them.

FAQ – Frequently Asked Questions

What If the Firmware Is Encrypted?

Check whether the decryption key is recoverable. Many devices decrypt in the bootloader using a key held in the SoC, so reading internal RAM over JTAG after boot gives you the plaintext. Others reuse a key across models that has already been published. If the chip enforces flash encryption properly and debug is fused off, extraction may genuinely be infeasible without side-channel or fault injection work.

Do I Need the Physical Device to Analyse Firmware?

Not always. A published update package supports most static analysis, including component inventory, credential discovery, and review of update logic. You need hardware to confirm that findings are exploitable, to test interfaces the image cannot tell you about, and to reach firmware that is never released publicly. Most engagements combine a downloaded image with one or two sample units.

How Long Does a Firmware Review Take?

Extraction ranges from minutes for a public download to a day or more when debug interfaces are locked and a chip has to come off. Analysis of a typical consumer router image takes two to four days for a thorough pass: unpacking, component inventory, credential and key hunting, review of the web interface binaries, and emulation of the parts worth attacking dynamically.

Can Manufacturers Prevent Extraction Entirely?

They can make it expensive rather than impossible. Encrypted external flash with a fused key, blown debug fuses, secure boot, and anti-tamper packaging push the cost towards laboratory techniques such as fault injection or decapping. The more useful goal is to ensure extraction is not catastrophic: no shared keys, no hardcoded credentials, and no secrets in the image worth stealing.

Related Terms

You May Be Interested In These

What Is regreSSHion?

Cybersecurity Terms

17 November 2026

What Is regreSSHion?

Read More
What Is the TCP/IP Model?

Cybersecurity Terms

17 November 2026

What Is the TCP/IP Model?

Read More
What Are Canary Accounts?

Cybersecurity Terms

17 November 2026

What Are Canary Accounts?

Read More