Firmware analysis tool for extracting filesystems, identifying embedded files, and scanning binary blobs for signatures.
binwalk -e {firmware-file} ๐ firmware-file โ binwalk -e {firmware-file} Sandbox: execFile · Timeout: 600s
firmware.analysis file.extraction signature.scanning binary.forensics | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
extract | boolean | No | - | Extract files automatically | -e |
matryoshka | boolean | No | - | Recursively extract embedded filesystems | -M |
remove | boolean | No | - | Remove extracted file after scanning | -r |
depth | integer | No | - | Maximum recursion depth | -d |
include | string | No | - | Only scan for matching signatures | -y |
exclude | string | No | - | Exclude matching signatures | -x |
signature | boolean | No | - | Perform signature scanning | -S, --signature |
entropy | boolean | No | - | Calculate file entropy | --entropy |
opcodes | boolean | No | - | Identify CPU opcodes in firmware | --opcodes |
dd | string | No | - | Dump region to file (type:offset:size) | --dd |
csv | boolean | No | - | Output in CSV format | -c |
json | boolean | No | - | Output in JSON format | -j |
I | boolean | No | - | show invalid/partial results | -I, --invalid |
T | boolean | No | - | only show results of given type | -T |
W | boolean | No | - | warn about suspicious signatures | -W, --warn |
l | boolean | No | - | limit scanning to length bytes | -l |
q | boolean | No | - | suppress banner | -q, --quiet |
v | boolean | No | - | verbose output | -v, --verbose |
Inputs
file.binary Firmware or binary blob to analyze
Outputs
file.extracted Extracted files and filesystems
report.signature Signature scan report
filesystem_write Produces
file.extractedreport.signatureConsumes
file.binary| Resource | Value |
|---|---|
| CPU | medium |
| Memory | 512 MB |
| Network | low |
| Disk I/O | high |
Extract firmware filesystems
binwalk -e firmware.bin Recursive extraction with all nested filesystems
binwalk -Me firmware.bin Signature scan only, no extraction
binwalk firmware.bin Entropy analysis of firmware blob
binwalk --entropy firmware.bin Scan with opcode identification
binwalk --opcodes firmware.bin JSON output with entropy calculation
binwalk -j --entropy firmware.bin Binwalk is a firmware analysis tool that scans binary files for embedded files and filesystems using signature matching. It can extract filesystems (Squashfs, JFFS2, etc.), identify compression types, and perform entropy analysis.
# Step 1: Scan for signatures
binwalk firmware.bin
# Step 2: Extract discovered filesystems
binwalk -Me firmware.bin
# Step 3: Analyze entropy for hidden regions
binwalk --entropy firmware.bin