Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Binwalk

$ binwalk Official Med Risk
ReFirmLabs · Security & Secrets · MIT · macos / linux / windows

Binwalk (binwalk) inspects firmware images for embedded filesystems (SquashFS, JFFS2, CramFS), compression streams, and encryption entropy (-E), and extracts discovered payloads (-e). Scan-only invocations are read-only, while -e and -M write extracted trees to disk.

FCRS-1.0 Score
75 /100
Good
Medium Confidence
Zero-Friction Install
brew install binwalk
CLI vs MCP Decision CLI Only

binwalk scans and unpacks multi-MB local firmware blobs directly on disk.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Non-interactive and predictable, though primary output is fixed-width table text (v3 added -l JSON logging, while v2 relies on text tables).

  • Non-interactive flag execution
  • Primary stdout is tabular text rather than universal JSON
Trust & Safety 18 / 25

Signature scanning is read-only, whereas recursive -e -M extraction invokes external unpackers and can trigger path-traversal or disk-bomb expansion on hostile firmware.

  • Read-only default signature scan
  • Extraction (-e/-M) writes untrusted archives to disk
Setup & Portability 13 / 15

Installable via brew, cargo, and GitHub releases; full extraction relies on third-party tools like unsquashfs or 7z on PATH.

  • Available via brew and cargo, with external extractor dependencies
Utility & Efficiency 12 / 15

Standard first-step tool for embedded firmware triage and filesystem extraction.

  • Identifies dozens of embedded compression and filesystem headers
Maintenance & Lineage 8 / 10

Maintained under ReFirmLabs/binwalk (MIT license, rewritten in Rust in v3).

  • Official ReFirmLabs/binwalk repository
Docs & Verifiability 8 / 10

Clear README and --help covering scan, entropy, and extraction options.

  • Concise README and --help reference

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication credentials used; operates solely on local firmware files.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT open-source CLI; free and offline.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Binwalk (binwalk) Agent Rules
- Run read-only `binwalk <file>` before extracting with `-e`.
- Extract into an isolated `/tmp` directory with `-C` and avoid `-M` recursive extraction on untrusted images outside sandboxes.

Agent-Ready Command Recipes

Safe Read-Only Queries

Scan firmware signatures without extracting
binwalk firmware.bin

Lists embedded headers, offsets, and filesystem signatures inside firmware.bin read-only.

Inspect firmware entropy distribution
binwalk -E firmware.bin

Measures byte entropy across firmware.bin to spot encrypted or compressed regions.

Controlled Writes & Previews

Extract embedded filesystems to a staging directory
binwalk -e -C /tmp/fw-out firmware.bin

Extracts recognized payloads (-e) into /tmp/fw-out via -C for subsequent inspection.

Strengths for Agents

  • + Fast read-only header and entropy triage (binwalk, binwalk -E) on raw firmware blobs.
  • + Rust v3 rewrite improves speed and eliminates legacy Python runtime fragility.

Caveats & Pitfalls

  • ! CLI flags differ slightly between legacy Python v2 and Rust v3 builds in distro vs Homebrew/Cargo installs.
  • ! Recursive -e -M extraction on untrusted firmware should be confined to isolated directories.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI