Forensic Browser History & Cache Artifact Inspection Engine
Universal open-source utility for identifying, reading, writing, and verifying flash memory chips and firmware ROMs
- Category
- Forensics
- Platforms
- linux, macos, windows
- Pricing / License
- GPL-2.0
- Focus / Scope
- 2 MITRE Tactics
π Tool Overview & Technical Brief
Overview & Engineering Philosophy
Flashrom is the industry-standard universal open-source utility designed for identifying, reading, writing, verifying, and modifying flash memory chips. Supporting hundreds of flash chips, programmer interfaces, and bus protocols, Flashrom is an indispensable tool for hardware security researchers, IoT firmware reverse engineers, and embedded systems developers.
Whether extracting a proprietary firmware image directly from an 8-pin SOIC Serial Peripheral Interface (SPI) flash chip on a smart router or re-flashing an open-source Coreboot/Libreboot BIOS payload onto an enterprise motherboard, Flashrom communicates with microcontrollers and hardware programmers to interact directly with physical silicon.
Key Capabilities & Technical Highlights
- Extensive Chipset Support: Natively recognizes hundreds of SPI, Parallel, LPC, and FWH flash chips from major semiconductor manufacturers (Winbond, Macronix, Spansion, Microchip, GigaDevice).
- Broad Hardware Programmer Compatibility: Interfaces with external USB hardware programmers (CH341A, Bus Pirate, Shikra, FTDI FT2232/FT4232, Raspberry Pi GPIO, Arduino).
- In-Circuit Reading & Writing: Enables non-destructive firmware extraction directly from live printed circuit boards (PCBs) using SOIC-8/16 test clips without desoldering chips.
- Bit-for-Bit Verification: Automatically calculates and validates cryptographic checksums between written buffers and physical chip contents to prevent firmware corruption.
- Layout & Partition Slicing: Supports custom layout files, enabling security engineers to read or flash isolated BIOS/UEFI firmware partitions without overwriting system calibration data.
Practical CLI Usage Examples
# Identify connected SPI flash chip using a CH341A USB hardware programmer
flashrom -p ch341a_spi
# Extract complete binary firmware image from physical chip with multiple read passes
flashrom -p ch341a_spi -r /evidence/firmware_dump_pass1.bin
flashrom -p ch341a_spi -r /evidence/firmware_dump_pass2.bin
diff /evidence/firmware_dump_pass1.bin /evidence/firmware_dump_pass2.bin
# Read flash chip via Raspberry Pi SPI bus pins (spidev0.0 at 16MHz)
flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=16000 -r /evidence/router_fw.bin
Real-World Operational Context
During IoT and hardware security assessments, Flashrom is the primary utility utilized to dump physical non-volatile memory from connected devices. Extracting raw firmware images enables researchers to bypass locked bootloaders, unpack embedded Linux filesystems (SquashFS/JFFS2) using Binwalk, extract hardcoded encryption keys and passwords, and identify memory-corruption vulnerabilities in custom daemons.
β‘ Installation & Quick Start
sudo apt install flashrom
sudo pacman -S flashrom
brew install flashrom
git clone https://github.com/flashrom/flashrom.git && cd flashrom && meson setup build && ninja -C build && sudo ninja -C build install
curl -fsSL https://toolwar.com/api/v1/tools/flashrom/install
βοΈ Compare Flashrom with Alternatives
Benchmark capabilities, deployment models, telemetry, and architecture side-by-side
Referenced in Field Notes
π¬ Discussion & Community Field Notes
0 commentsSpecification Matrix
- Status
- active
- License / Model
- GPL-2.0
- Type
- tool
- Supported Platforms
- linux macos windows
- Categories
- Forensics Reverse Engineering Utilities
- Tags
- #Reverse Engineering #Iot-Security #Flashrom #Hardware Security #Firmware Extraction #Spi Flash #Bios Uefi
- GitHub Telemetry
- β 3,100 680
- Latest Release
- v1.4.0
- Maintenance
- active
- MITRE ATT&CK Matrix β
- TA0001: Initial Access TA0003: Persistence
- Featured in Collections
- Hardware Firmware Extraction & Embedded Systems Audit Suite β
- Community Rating
- β 4.8 (5)
- Total Views
- 127
- Last Verified
- Recent
- Curated By
- ToolWar Research Team
Maintainer Badge
Add this verified ToolWar badge to your repository README or project documentation.
Rate This Tool
Help fellow researchers evaluate tool effectiveness