Forensics
Shows file offset, description, and size of embedded content. Extraction creates _extracted folder.
binwalk [options] <file>
Binwalk is a fast, easy-to-use tool for analyzing, reverse engineering, and extracting firmware images. It scans binary files for embedded file signatures and filesystem structures, then extracts them for further analysis.
Created by Craig Heffner at ReFirm Labs, Binwalk has become the standard tool for IoT security researchers, firmware reverse engineers, and embedded systems analysts. It supports dozens of common file formats and compression types.
Beyond simple extraction, Binwalk provides entropy analysis to identify encrypted or compressed sections, recursive extraction for nested content, and a signature database that can be customized for specific firmware formats.
binwalk firmware.binScan a file and print a signature analysis of embedded file types and offsets.binwalk -e firmware.binExtract known file types found in the image using matched extraction rules.binwalk --dd='.*' firmware.binExtract every signature match to disk regardless of type.binwalk -M -e firmware.binRecursively scan and extract (matryoshka) through nested archives and filesystems.binwalk -A firmware.binScan for common executable opcode signatures (architecture fingerprinting).binwalk -E firmware.binPerform an entropy analysis to locate compressed or encrypted regions.binwalk -E -J firmware.binRun entropy analysis and save the entropy graph as a PNG (requires matplotlib).binwalk -B firmware.binRun a raw signature (magic) scan — the default behavior, stated explicitly.binwalk -R "\x50\x4b\x03\x04" firmware.binSearch the file for a specific raw byte sequence (here, a ZIP header).binwalk -Y firmware.binIdentify the CPU architecture using the capstone disassembler.binwalk --dd='png image:png' firmware.binExtract only PNG matches and give them a .png extension.binwalk -D 'jpeg:jpg' firmware.binExtract JPEG signatures to files with a .jpg extension.binwalk -C ./out -e firmware.binExtract into a chosen output directory instead of the default.binwalk -o report.txt firmware.binWrite the scan log to a file.binwalk --csv firmware.binEmit scan results in CSV format for parsing.Scan firmware images to identify embedded filesystems, kernels, and configuration files for security auditing.
Extract firmware from IoT devices to find hardcoded credentials, vulnerable services, and backdoors.
Map the internal structure of compiled binaries to understand data organization and embedded components.
Identify encrypted or compressed sections within firmware to assess reverse engineering difficulty.
Extract embedded filesystems, bootloaders, and data partitions from monolithic firmware images.
Displays a list of memory offsets alongside descriptions of the file formats or compression types discovered at those locations. When extracting, it generates a subfolder containing the dumped files.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.