
Selecting the right firmware security testing methodology shapes what gets found and, critically, what gets missed. Firmware occupies a privileged position in any device: it controls boot sequences, cryptographic operations, update mechanisms, and hardware initialization. That position makes it a high-value target for attackers and a difficult one to assess without the right approach. The firmware itself also varies widely: embedded Linux images with a full root filesystem, monolithic RTOS or bare-metal binaries running on microcontrollers, UEFI and System Management Mode (SMM) code on x86 platforms, and immutable boot ROMs fixed in silicon. Each class constrains which methodologies are practical and where vulnerabilities tend to concentrate.
This article compares six overlapping firmware security testing methodologies that span analysis modes, testing techniques, and real-world execution/scaling. For each, we examine what it uncovers, its strengths and limitations, the access and tooling it requires, and when to combine methods based on device architecture, firmware accessibility, and threat model.
Firmware Security Testing Methodologies
| Methodology | What It Uncovers | Access Required | Tooling Examples | Key Strengths | Key Limitations | Best For |
| Static Analysis | Hardcoded credentials, weak crypto, insecure configs, exposed secrets | Firmware image (extracted or vendor-supplied) | Binwalk, Ghidra, strings, entropy analyzers | No live device needed; safe; scalable | Cannot observe runtime behavior; obfuscation limits visibility | Initial assessment; image-only engagements |
| Dynamic Analysis | Runtime crashes, memory corruption, live execution paths, race conditions | Running device, emulator, or instrumented target | GDB, debuggers, logic analyzers, UART consoles | Captures actual behavior; catches runtime-only issues | Requires running system; limited code path coverage | Post-static follow-up; runtime behavior verification |
| Reverse Engineering | Proprietary protocols, authentication flows, hidden backdoors, crypto implementations | Firmware image; optionally a running device | IDA Pro, Ghidra, Hex-Rays Decompiler | Deep insight into binary logic; works on obfuscated code | Time-intensive; requires specialized expertise | Before fuzzing; when understanding logic is essential |
| Emulation- Based Testing | Vulnerabilities testable without physical hardware; code path coverage at scale | Firmware image; emulation framework | QEMU, Firmadyne, Avatar2 | Hardware-independent; enables automation; scales testing | Incomplete peripheral emulation; behavior can diverge from real hardware | Scalable testing; hardware-unavailable scenarios |
| Fuzzing | Input validation failures, memory corruption, parser bugs, crash-inducing edge cases | Known entry points (network, serial, update interfaces) | AFL, libFuzzer, custom protocol fuzzers | Automated; finds edge cases efficiently | Requires identified entry points; misses logic flaws | After reverse engineering; stress-testing parsers and interfaces |
| Hardware- Assisted Testing | Secure boot bypasses, fault injection opportunities, side-channel vulnerabilities, silicon-level weaknesses | Physical device; specialized lab equipment | JTAG probes, oscilloscopes, EM probes, voltage glitchers, FIB tools | Finds vulnerabilities invisible to software-only methods | Requires physical access and specialized equipment | Devices with hardware security features; silicon-level threat models |
Static Analysis: What the Firmware Image Reveals Before a Device Powers On
Static analysis examines firmware without executing it. A security team extracts the firmware image from vendor update packages, from flash storage (through in-circuit SPI reads or chip-off extraction of NOR, NAND, or eMMC devices), or by intercepting over-the-air update traffic, and analyzes its structure, files, strings, and binaries offline. This approach suits early-stage assessments where physical hardware is not yet available, or where the engagement requires a rapid baseline before committing to deeper testing.
The methodology surfaces a specific class of vulnerabilities. Hardcoded credentials, API keys, and private certificates embedded in the image are among the most common findings. On embedded Linux targets, static review of network-facing binaries such as web servers and CGI handlers routinely traces attacker-controlled input into dangerous sinks like system(), popen(), and unbounded strcpy() or sprintf() calls, the pattern behind many command injection and stack overflow findings.
- Entropy analysis reveals encrypted or compressed sections that may indicate obfuscation or hidden functionality.
- File signature scanning exposes known vulnerable components and outdated library versions.
- Reviewing directory structures and configuration files frequently uncovers insecure default settings and exposed debug interfaces.
- Memory map recovery for bare-metal and RTOS images: identifying the processor architecture (ARM Thumb-2, MIPS, Xtensa, RISC-V), load address, and peripheral layout from interrupt vector tables and vendor SVD files is a prerequisite for accurate disassembly, because these images carry no filesystem or ELF headers to guide analysis.
Static analysis has clear limits. It cannot observe what happens when firmware executes, meaning runtime-only vulnerabilities such as memory corruption during specific input sequences remain out of reach. Obfuscated or packed binaries reduce the clarity of disassembly output. And access to the firmware image itself is a prerequisite: when firmware is stored in encrypted flash with no accessible extraction path, static analysis stalls before it begins. At that point, recovering the image or its decryption key becomes a hardware problem, which is where hardware-assisted techniques enter the assessment.
IOActive’s SATCOM research shows how far image-level analysis can go. By statically analyzing and reverse engineering publicly available firmware updates for satellite communications terminals from Harris, Hughes, Cobham, Thuraya, JRC, and Iridium, IOActive identified multiple high-risk vulnerabilities, including backdoors and hardcoded credentials, without physical access to the devices.⁶
| Attribute | Static Analysis |
| Live device required | No |
| Coverage | Image-level structure, strings, and code |
| Common findings | Hardcoded secrets, weak cryptography, exposed configuration |
| Typical tooling | Binwalk, Ghidra, strings, entropy scanners, unblob, EMBA |
| Engagement phase | Initial; baseline before manual testing |
| When to combine | Pair with reverse engineering to move from inventory to logic |
Dynamic Analysis: Observing Firmware Under Operating Conditions
Dynamic analysis tests firmware while it executes. Analysts connect to the device through debug interfaces such as UART or JTAG, instrument the running system, and observe behavior in real time. This makes it possible to trace execution paths, monitor memory access, and detect conditions that only manifest during operation. On embedded Linux devices, a common path to instrumentation is interrupting the U-Boot bootloader over UART to modify kernel boot arguments and obtain a root shell, then deploying gdbserver, strace, or Frida on the target. On microcontrollers, SWD or JTAG access enables hardware breakpoints, watchpoints, and direct memory reads, while logic analyzers on SPI, I²C, and UART buses expose data moving between the processor and external flash, secure elements, and radios.
The method captures issues that static analysis cannot reach. Memory corruption triggered by specific input sequences, race conditions between concurrent processes, and improper error handling that surfaces only at runtime are all within its scope. Dynamic analysis also validates findings from static review, confirming whether a theoretical vulnerability is triggerable under realistic conditions.
Its constraints are significant. A functioning device is required, and that device must expose accessible debug interfaces. Production devices frequently ship with those interfaces fused off, locked behind readout protection, or gated by challenge-response authentication, and regaining access may itself require fault injection. Firmware designed to resist debugging may detect and respond to analysis tools, producing misleading results. And because dynamic analysis depends on exercising code paths during a session, vulnerabilities in rarely triggered branches may not surface without deliberately targeted test cases.
| Attribute | Dynamic Analysis |
| Live device required | Yes |
| Coverage | Runtime execution paths |
| Common findings | Memory corruption, race conditions, runtime crashes |
| Typical tooling | GDB/gdbserver, OpenOCD, J-Link, UART consoles, logic analyzers, Frida |
| Engagement phase | Post-static; runtime verification |
| When to combine | Pair with static analysis and fuzzing for full input handling coverage |
Reverse Engineering: Reading the Logic Beneath the Binary
Reverse engineering dissects firmware binaries to understand how the device actually works. Unlike static analysis, which catalogs what is present in the image, reverse engineering aims to reconstruct the logic of the code: how authentication is implemented, how a proprietary protocol is structured, where sensitive data is processed, and whether hidden or undocumented functionality exists.
IOActive uses both static and dynamic reverse engineering techniques. Static reverse engineering disassembles binaries offline, examining directory structures, file formats, and code flows using tools such as IDA Pro, Ghidra, and the Hex-Rays Decompiler. Dynamic reverse engineering operates while the target is executing, leveraging runtime behavior to trace which functions are called, what resources are accessed, and how data moves through the system.¹ Both approaches are used together in practice because each resolves ambiguities the other leaves open.
Several techniques make binary reverse engineering tractable on large images. Function signature matching (IDA FLIRT, Ghidra Function ID, BinDiff) recovers symbols for statically linked libraries so analysts can concentrate on vendor code. Cryptographic constants such as AES S-boxes and SHA-256 initialization values locate crypto implementations quickly, which can then be reviewed for key handling, IV reuse, and signature verification logic. Patch diffing between successive firmware releases frequently reveals silently fixed vulnerabilities that remain exploitable on devices that have not been updated.
Reverse engineering is often essential before fuzzing. To fuzz effectively, analysts need to understand where input enters the system, what format that input expects, and which code paths handle it. Reverse engineering provides that map. It is also the method best suited for uncovering intentional obfuscation, undisclosed backdoors, and proprietary protocol implementations that appear in no public documentation.
The same discipline applies to platform firmware. IOActive’s research into AMD’s System Management Mode (SMM), disclosed as Sinkclose (CVE-2023-31315), identified improper validation in a model-specific register (MSR) that allowed code running at ring 0 to modify SMM configuration even with SMM Lock enabled. The flaw had gone undetected in AMD processors for nearly two decades and enables persistence below the operating system and hypervisor, out of reach of endpoint detection.⁴ ⁹
The resource cost is real. Fully reverse engineering a complex firmware image requires substantial time and expertise. IOActive addresses this by prioritizing entry points: rather than working through an entire image sequentially, analysts identify the interfaces most likely to yield high-severity vulnerabilities and concentrate analysis there.
| Attribute | Reverse Engineering |
| Live device required | Partially (dynamic RE requires execution) |
| Coverage | Binary logic, code flow, protocol structure |
| Common findings | Backdoors, hidden functionality, authentication logic flaws |
| Typical tooling | IDA Pro, Ghidra, Hex-Rays Decompiler, Binary Ninja, BinDiff |
| Engagement phase | Before fuzzing; when understanding logic is required |
| When to combine | Pair with fuzzing; use dynamic RE alongside static RE |
Emulation-Based Testing: Extending Coverage Beyond Physical Hardware
Emulation-based testing runs firmware in a software-simulated environment, removing the requirement for physical hardware during significant portions of the assessment. Frameworks such as QEMU, Firmadyne, and FirmAE reconstruct enough of the hardware environment to execute firmware, interact with its interfaces, and test input handling at scale.
The primary advantage is coverage without hardware dependency. Emulation allows security teams to instrument code that might be difficult to reach on a physical device, run automated test cases continuously, and prototype exploits before validating them on real hardware. For assessments where device availability is limited or where scalable automated testing is a priority, emulation provides meaningful extension of the test surface.
The limitation is fidelity. Firmware behavior in an emulated environment can diverge from behavior on real hardware, particularly when code relies on specific hardware peripherals, precise timing characteristics, or proprietary interfaces. Vulnerabilities that only manifest under exact hardware conditions may not appear during emulation at all. Emulation results therefore require validation against physical devices before conclusions are finalized and reported.
Notably, emulation fidelity is not binary. Some assessments use full-system emulation, while others rehost selected firmware components or combine emulated execution with real hardware peripherals. For embedded Linux targets, user-mode QEMU can run individual binaries in a chroot of the extracted root filesystem, which is often enough to test a single network daemon. Full-system rehosting of microcontroller firmware is harder because the code expects specific memory-mapped peripherals. Approaches include modeling peripherals at the hardware abstraction layer (HALucinator), inferring peripheral behavior automatically (P2IM, Fuzzware), or forwarding peripheral access to a real device (Avatar2). The choice determines how far analysis can proceed before results must be validated on hardware.
| Attribute | Emulation-Based Testing |
| Live device required | No (hardware-independent) |
| Coverage | Code paths accessible via emulated interfaces |
| Common findings | Input validation failures, logic errors, protocol parsing bugs |
| Typical tooling | QEMU, Firmadyne, FirmAE, Avatar2, Unicorn, Qiling |
| Engagement phase | Parallel to or following static analysis |
| When to combine | Pair with fuzzing to enable automated input testing at scale |
Fuzzing: Stress-Testing Entry Points at Scale
Fuzzing delivers malformed, unexpected, or boundary-condition inputs to firmware interfaces and monitors for failures. It is a high-throughput method for discovering memory corruption, input validation failures, and parser vulnerabilities that manual testing is unlikely to surface within a bounded engagement. Once entry points are identified through reverse engineering, fuzzing can explore them systematically and at speed.
Effective firmware fuzzing requires preparation. Analysts must identify which interfaces accept external input, including network stacks, serial interfaces, update mechanisms, and file parsers. They must understand what those interfaces expect, then configure test cases accordingly. Blind fuzzing without this foundation produces noise. Targeted fuzzing built on reverse engineering output produces findings.²
Firmware fuzzing also faces problems that application fuzzing largely does not. The first is coverage feedback: firmware can rarely be recompiled with instrumentation, so coverage-guided fuzzers rely on emulator-based tracing (such as AFL++ in QEMU or Unicorn mode) or on-chip trace hardware. The second is fault detection: microcontrollers typically lack an MMU and the sanitizers available on desktop platforms, so memory corruption often damages state silently instead of crashing. Without heap and stack checks added in the emulator, or liveness monitoring on the physical device, a fuzzer can trigger a real vulnerability and never record it. Stateful network and wireless protocols add a third challenge, since inputs must drive the target into deep protocol states before interesting code executes.
Fuzzing is not a substitute for human analysis. It excels at finding crashes and memory safety violations but cannot detect logic flaws, authentication bypasses, or vulnerabilities that do not produce observable failures. A firmware image might respond to malformed input gracefully while implementing fundamentally insecure authentication logic. Fuzzing catches the former; reverse engineering and dynamic analysis are required to catch the latter.
| Attribute | Fuzzing |
| Live device required | Partially (or emulated) |
| Coverage | Input-handling paths at identified entry points |
| Common findings | Memory corruption, parser bugs, input validation failures |
| Typical tooling | AFL++ (QEMU and Unicorn modes), libFuzzer, Fuzzware, boofuzz, custom protocol fuzzers |
| Engagement phase | After reverse engineering; during interface stress testing |
| When to combine | Pair with reverse engineering (for entry point mapping) and emulation (for scale) |
Hardware-Assisted Testing: Reaching Vulnerabilities Software Cannot Expose
Hardware-assisted testing applies physical techniques to firmware security assessment. It includes:
- Fault injection introducing electrical or electromagnetic disturbances to cause the processor to skip or misexecute instructions.
- Side-channel analysis measuring power consumption or electromagnetic emissions to extract cryptographic keys or sensitive data.
- Direct hardware interface access through JTAG and debug ports that firmware attempts to disable.
- Invasive and semi-invasive analysis, including decapsulation, delayering, scanning electron microscope (SEM) imaging, and focused ion beam (FIB) circuit edits, to read or modify on-die structures such as fuses, ROM, and security logic directly.
IOActive’s hardware and silicon research demonstrates why this layer of testing matters. In work on DJI’s Mavic Pro drone, IOActive researchers applied electromagnetic fault injection (EMFI) to achieve controlled memory corruption against a device protected by signed and encrypted firmware, a Trusted Execution Environment, and active Secure Boot. The attack targeted the firmware update process, where a single induced fault in signature or decryption handling can undermine the device’s chain of trust.³
IOActive’s work on the Raspberry Pi RP2350 pushed further into the silicon. As one of the winning entries in the RP2350 Hacking Challenge, IOActive researchers extracted data from the chip’s antifuse-based one-time-programmable (OTP) memory using passive voltage contrast (PVC) with a focused ion beam, a semiconductor failure analysis technique. In its demonstrated form, the attack recovers the bitwise OR of two physically adjacent bit rows that share metal-1 contacts. Antifuse OTP is widely used to store secure boot and firmware encryption keys on the assumption that an attacker with physical control cannot read it, and IOActive assessed the technique to have broad applicability to antifuse-based memories.⁷ ⁸
Hardware-assisted testing is the most demanding firmware security testing methodology in terms of access and expertise requirements. It requires physical device access, controlled laboratory conditions, and specialized equipment including oscilloscopes, electromagnetic probes, voltage glitching hardware, and in advanced cases, focused ion beam (FIB) systems.
The payoff is access to attack surfaces that no other method can reach, including hardware root-of-trust bypasses, secure boot circumvention, and cryptographic key extraction from physically protected storage.
| Attribute | Hardware-Assisted Testing |
| Live device required | Yes (physical hardware) |
| Coverage | Silicon-level; hardware security mechanisms; physical attack paths |
| Common findings | Secure boot bypasses, key extraction, fault injection opportunities |
| Typical tooling | JTAG probes, EM probes, oscilloscopes, voltage glitchers, ChipWhisperer, Riscure Inspector, SEM and FIB tools |
| Engagement phase | When hardware security features are in scope |
| When to combine | Pair with dynamic analysis and reverse engineering to validate physical findings |
When to Combine Firmware Security Testing Methodologies
No single firmware security testing methodology covers the full attack surface. Each approach exposes a different layer, and the right combination depends on three variables: device architecture, firmware accessibility, and threat model.
“Different firmware testing methods expose different parts of the attack surface, making methodology selection critical to the depth of an assessment.”
For devices where firmware is publicly available or extractable, static analysis and reverse engineering form the foundation of any assessment. Fuzzing follows once entry points are mapped. If the device runs accessible services or exposes debug interfaces, dynamic analysis validates whether static findings are triggerable under realistic conditions. For high-security targets where hardware protections are in scope, hardware-assisted testing extends the assessment into the physical layer, exposing what software-only analysis cannot reach.
In practice, the output of one method becomes the input to the next. A voltage glitch that bypasses readout protection produces a firmware dump for static analysis. Reverse engineering of the update parser identifies the entry point for fuzzing. A crash found while fuzzing in emulation is reproduced on hardware over JTAG to confirm exploitability. Methodology selection is less about choosing one approach than about planning the sequence in which each finding unlocks the next.
The threat model should drive the sequencing decision. A remote adversary targeting network-facing interfaces calls for dynamic analysis and fuzzing. A supply chain adversary with pre-deployment access calls for static analysis and hardware inspection. A sophisticated adversary with physical device access calls for hardware-assisted testing combined with reverse engineering. Aligning methodology to threat model ensures the assessment answers the questions that actually matter.
| Scenario | Primary Methodology | Add These | Rationale |
| Firmware image available, no hardware | Static analysis | Reverse engineering, emulation | Maximize image-level coverage without device dependency |
| Connected device with accessible debug interfaces | Dynamic analysis | Static analysis, fuzzing | Capture runtime behavior alongside image-level review |
| Encrypted or obfuscated firmware | Reverse engineering | Hardware-assisted testing | Find the decryption routine in the bootloader or an older unencrypted release first; hardware attacks recover keys when software paths fail |
| Large attack surface requiring scalable coverage | Fuzzing | Emulation-based testing | High-throughput input testing; emulation removes hardware bottleneck |
| Device with hardware security features | Hardware-assisted testing | Dynamic analysis, reverse engineering | Software-only methods cannot reach silicon-level protections |
| Comprehensive pre-release security assessment | All six methodologies | Prioritized by architecture and threat model | Full attack surface coverage requires layered, sequenced approaches |
Choosing the Right Firmware Security Testing Methodology
Firmware security testing methodology selection determines the scope and depth of what an assessment can find. Static analysis, dynamic analysis, reverse engineering, emulation, fuzzing, and hardware-assisted testing each access a distinct layer of the firmware attack surface. Relying on any single method leaves gaps that sophisticated attackers will find. Combining methods, sequenced correctly and adapted to device architecture and threat model, produces assessments that reflect how real adversaries operate.
IOActive’s firmware and embedded systems assessments draw on the full range of these methodologies, from image-level static review and deep binary reverse engineering to hardware-level fault injection and silicon security research spanning integrated circuits, secure boot mechanisms, and one-time-programmable memory. For technical security teams determining which firmware testing approaches fit their environment and risk profile, contact IOActive to discuss a firmware security assessment.
Frequently Asked Questions
What is the difference between static analysis and reverse engineering in firmware security?
Static analysis examines the firmware image for surface-level artifacts: file structures, strings, known vulnerable library versions, and configuration settings. Reverse engineering goes deeper, reconstructing the logic of the code to understand how it functions. Both operate on the firmware image without executing it, but reverse engineering is significantly more time-intensive and targets understanding intent and implementation logic rather than cataloging image contents.
Can firmware be tested without physical access to the device?
Yes, to a significant degree. Static analysis, reverse engineering, and emulation-based testing all operate on firmware images without requiring a running device. Fuzzing can run against emulated environments as well. Hardware-assisted testing and most forms of dynamic analysis do require physical device access, and results from emulation-based testing should always be validated on real hardware before conclusions are finalized.
When is hardware-assisted testing necessary?
Hardware-assisted testing is necessary when a device employs hardware-enforced security mechanisms that software-only analysis cannot bypass or observe. This includes secure boot, hardware root-of-trust architectures, encrypted flash storage, and physically disabled debug ports. It is also necessary when the threat model includes an adversary with physical access to the device, as hardware-level techniques can expose attack paths no software-based method will surface.
How does threat model affect firmware security testing methodology selection?
Threat model defines which attack paths are in scope. A remote attacker targeting network-facing firmware interfaces calls for dynamic analysis and fuzzing. A supply chain adversary with pre-deployment device access calls for static analysis and hardware inspection. A sophisticated adversary with physical device access and the resources for hardware attacks calls for hardware-assisted testing combined with reverse engineering. Without threat model alignment, methodology selection is guesswork.
What is the role of fuzzing within a broader firmware security assessment?
Fuzzing is most effective as a follow-on methodology, not a starting point. It depends on reverse engineering to identify which interfaces to target and what input format those interfaces expect. Once that groundwork is complete, fuzzing applies sustained automated pressure to those entry points, surfacing crashes and memory safety violations that manual testing would take far longer to find. Used without reverse engineering as a foundation, fuzzing produces high volumes of low-signal output.
How is encrypted firmware tested?
Encrypted firmware is still testable, but the first objective shifts to recovering plaintext. Analysts look for an older unencrypted release or transition image that contains the decryption routine, examine the bootloader that performs on-device decryption, or capture decrypted code from RAM through a debug interface. When those paths are closed, hardware-assisted techniques such as side-channel analysis, fault injection against decryption or signature checks, or invasive extraction of keys from OTP memory recover the key or the plaintext directly. Once the image is decrypted, static analysis, reverse engineering, emulation, and fuzzing proceed as normal.
Sources
- IOActive, “Reverse Engineering,” ioactive.com. https://www.ioactive.com/service/reverse-engineering/
- OWASP Firmware Security Testing Methodology, GitHub. https://github.com/scriptingxss/owasp-fstm
- IOActive, “Applying Fault Injection to the Firmware Update Process of a Drone,” ioactive.com. https://www.ioactive.com/applying-fault-injection-to-the-firmware-update-process-of-a-drone/
- IOActive, Research Timeline (AMD Sinkclose; Raspberry Pi RP2350 Challenge), ioactive.com. https://www.ioactive.com/ioactive-research-timeline/
- IOActive, “Full Stack Security Assessments,” ioactive.com. https://www.ioactive.com/service/full-stack-security-assessments/
- IOActive, SATCOM Security Whitepaper, ioactive.com. https://www.ioactive.com/pdfs/IOActive_SATCOM_Security_WhitePaper.pdf
- IOActive, “Novel Invasive Attack on One-Time-Programmable Antifuse Memory,” ioactive.com. https://www.ioactive.com/raspberry-pi-2350-hacking-challenge/
- Zonenberg et al., “Extraction of Secrets from 40nm CMOS Gate Dielectric Breakdown Antifuses by FIB Passive Voltage Contrast,” arXiv:2501.13276. https://arxiv.org/abs/2501.13276
- AMD, Product Security Bulletin AMD-SB-7014 (CVE-2023-31315), amd.com. https://www.amd.com/en/resources/product-security/bulletin/amd-sb-7014.html
