Independent & educational platform Not a government body. No link or affiliation with any government organisation. Made for learning only. Test only systems you own or are authorised to test. Become a Partner or Sponsor → Full disclaimer
ForensicsFirmware & file carving beginner LinuxmacOS

Binwalk

Binwalk analyses binary files, such as firmware images, to find and extract embedded files and compressed data.

Legal & ethical use. Use this tool only on systems, networks and data that you own or have explicit written permission to test. Unauthorised access or scanning can break computer-misuse laws (for example Pakistan's Prevention of Electronic Crimes Act, 2016, and equivalents elsewhere). Practise in your own lab or in authorised environments such as CTFs.

What it is used for

  • Find files hidden inside another file in a CTF
  • Inspect firmware images from your own devices

Key features

  • Signature scanning
  • Automatic extraction (-e)
  • Entropy analysis

Installation

Install from your distribution or pip/source per the repository.

Beginner usage guide

Scan first without extraction to see offsets, then extract in a sandbox directory.

Example commands

Run these only against your own lab or authorised targets. Placeholder addresses such as 192.0.2.x are documentation ranges.

Scan and extract embedded files
binwalk -e suspicious.bin

Lists embedded signatures and extracts what it can into a *_extracted folder.

Keep learning

🚩 Practice challenge: Carve It medium

References

Source verification

Last reviewed: 2026-10-27
Links checked over HTTP: 2026-10-27 07:51 UTC — official: 200, docs: 200, repo: 200
Command flags checked against the real binary binwalk (General Error: Cannot open file --version (CWD: /home/ali/De...) on 2026-10-27.

Related tools