Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

First contact with an unknown image

Start read-only. identify classifies evidence in a file or directory without executing it and recommends the next command.

fat ./firmware.bin
fat identify --file ./firmware.bin --details
fat identify --file ./firmware.bin --json > identify.json

fat ./firmware.bin is shorthand for fat identify --file ./firmware.bin. --details expands the same evidence into supporting tables; it does not change the analysis. --json emits identify-report/v1 with the full findings and diagnostics.

Read the overview

The default report is deliberately short: matched identity, image measurements, and useful structure. Empty sections and absent features are omitted. In particular:

  • Container or filesystem signatures point to extraction. ZIP, TAR, gzip, SquashFS, CramFS, and JFFS2 are recognized natively.
  • Vector-table candidates point to a raw MCU image. Family strings corroborate a mapping only when the SRAM and executable ranges are compatible.
  • ESP-IDF partition tables are reported with file offsets kept separate from partition flash addresses.
  • BMC markers, FIT metadata, and U-Boot environments are independent evidence classes; none proves boot policy by itself.
  • High-entropy or repeated regions are measurements. Repetition alone does not establish encryption.

Unresolved mappings and rejected candidates remain in JSON diagnostics. Do not treat an empty overview as proof that a feature is absent.

Choose the next command

What you haveCommand
A full flash dump or update imagefat inspect headers --file firmware.bin and fat inspect layout --file firmware.bin
A raw Cortex-M imagefat inspect mcu --file firmware.bin --details
A BMC SPI flash imagefat inspect bmc --file flash.mtd --details
A filesystem or containerfat new firmware.bin && fat extract .fat-projects/firmware
An update envelope plus an extracted rootfsfat inspect update --file firmware.bin --rootfs ./rootfs
Two versions of an imagefat diff firmware --help or fat inspect update --reference older.bin ...

For raw MCU images, --base and --family override inference when you have external evidence:

fat inspect mcu --file firmware.bin --base 0x08000000 --family STM32H7 --details

Inspect structure before carving

inspect headers and inspect layout expose format-level evidence without publishing a filesystem:

fat inspect headers --file firmware.bin --json
fat inspect layout --file firmware.bin --json

For ESP-IDF images, the scan finds plaintext partition tables at arbitrary offsets, validates entry framing and optional MD5, and accepts legacy tables. Partition offsets are flash addresses, not automatically file offsets. FAT does not infer the dump’s flash base or claim that referenced payloads are present. See ESP-IDF partition tables.

Preserve the input identity

BMC and MCU inspection reports record the actual input size and SHA-256. Keep that identity with your notes and extracted artifacts. When you move to a project, fat new records the source fingerprint so later sessions, findings, and runtime observations stay attached to the same image.

Next: Extracting firmware.