Cette page est affichée en anglais. Une traduction française est en cours.
ConfigsMay 25, 2026·3 min de lecture

Binwalk — Firmware Analysis and Extraction Tool

A fast firmware analysis tool for scanning, extracting, and reverse-engineering binary firmware images and embedded file systems.

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Binwalk Overview
Commande CLI universelle
npx tokrepo install 3c8a52d4-57d1-11f1-9bc6-00163e2b0d79

Introduction

Binwalk is a tool for analyzing and extracting data from binary firmware images. It scans for file signatures, compressed archives, file system headers, and other embedded content, making it a standard utility in IoT security research and embedded systems development.

What Binwalk Does

  • Scans binary files for known file signatures (magic bytes)
  • Extracts embedded file systems, compressed archives, and executables
  • Performs entropy analysis to identify encrypted or compressed regions
  • Supports recursive extraction of nested archives
  • Identifies common firmware headers, bootloaders, and kernel images

Architecture Overview

Binwalk operates by sliding a window across the input binary and matching byte patterns against a signature database. Recognized signatures trigger appropriate extraction plugins (unzip, unsquashfs, 7z, etc.). The v3 rewrite uses Rust for improved performance while maintaining the Python API. Entropy scanning calculates Shannon entropy over sliding windows to produce visual maps of binary structure.

Self-Hosting & Configuration

  • Install via system package manager or pip: pip install binwalk
  • Optional extraction tools: squashfs-tools, p7zip, sasquatch, jefferson
  • Custom signatures can be added to the magic file database
  • Configure extraction behavior with command-line flags or the Python API
  • Runs on Linux, macOS, and Windows (WSL recommended)

Key Features

  • Signature-based scanning with extensible magic file database
  • Entropy visualization for binary structure analysis
  • Recursive extraction of deeply nested archives
  • Python library API for scripted analysis pipelines
  • Support for 100+ file system and archive formats

Comparison with Similar Tools

  • file (libmagic) — identifies single file types but does not scan within binaries
  • foremost / scalpel — data carving tools focused on file recovery, not firmware structure
  • FACT (Firmware Analysis and Comparison Tool) — web-based firmware analysis platform; heavier setup
  • unblob — newer extraction tool with similar goals but different signature engine
  • Ghidra / IDA — disassemblers for code analysis, not file system extraction

FAQ

Q: Can Binwalk extract encrypted firmware? A: Binwalk can detect encrypted regions via entropy analysis but cannot decrypt them without the correct keys.

Q: Does it work on all firmware formats? A: It supports the most common formats (SquashFS, JFFS2, CramFS, LZMA, gzip, etc.), but vendor-specific proprietary formats may require custom signatures.

Q: Is Binwalk suitable for malware analysis? A: It can extract embedded payloads from binary blobs, which is useful in malware triage, but it is not a dedicated malware analysis framework.

Q: What changed in the v3 rewrite? A: Version 3 was rewritten in Rust for better performance and reduced memory usage while keeping a compatible command-line interface.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires