Quick start
This page takes you from installation to a first evidence-backed investigation. It uses a firmware image named firmware.bin; substitute your own file.
1. Install
Pick one path:
- Release archive (recommended): download the bundle for your OS/CPU from FAT Releases, verify the adjacent
.sha256, and keep the executable andshare/directory together. - Cargo:
cargo binstall firmware-analysis-toolkit, orcargo install --locked firmware-analysis-toolkitto build from source. Cargo installs only the executable.
Cargo installations need the matching runtime data:
fat data install --release
Verify the installation:
fat --version
fat data verify
fat doctor
fat doctor reports external tools and backend readiness. Install only what your workflow needs; see Installation.
2. Identify before you extract
fat ./firmware.bin
fat ./firmware.bin --details
fat ./firmware.bin --json > identify.json
The compact report shows identity and structure. --details adds supporting tables; --json emits the full identify-report/v1 model. Identification is read-only and does not execute firmware.
Branch on what you find:
| Observation | Next step |
|---|---|
| Linux filesystem or SquashFS/JFFS2/UBIFS signatures | Create a project and extract |
| Raw Cortex-M vector table | fat inspect mcu --file firmware.bin --details |
| BMC flash layout, FIT, U-Boot environment | fat inspect bmc --file firmware.bin --details |
| ESP-IDF partition table | fat inspect headers --file firmware.bin |
| Update envelope or trust-path evidence | fat inspect update --file firmware.bin --rootfs ./rootfs |
3. Create a project and extract
fat new ./firmware.bin
fat extract .fat-projects/firmware
fat new creates a project under .fat-projects/ and records the source identity. fat extract recursively unpacks containers and filesystems, then records per-artifact outcomes in work/extraction-manifest.json.
For firmware with case-distinct filenames, put the project on case-sensitive storage:
fat new ./firmware.bin --projects-dir /path/to/case-sensitive/projects
fat extract /path/to/case-sensitive/projects/firmware --extractor native
--extractor native uses only built-in decoders; the default auto keeps external fallback when native recovery is incomplete. Read Extracting firmware for formats, limits, and recovery states.
4. Analyze the extracted filesystem
fat analyze .fat-projects/firmware
fat tree --rootfs .fat-projects/firmware/extracted --profile inventory --summary
fat search --rootfs .fat-projects/firmware/extracted --profile credentials -I --context 2
fat startup-map --rootfs .fat-projects/firmware/extracted
fat crypto-census --rootfs .fat-projects/firmware/extracted
analyze derives project signals and findings. The filesystem commands then answer concrete questions: what starts at boot, which binaries hold credentials or keys, and which paths govern updates.
5. Triage a binary
fat r2-triage --file .fat-projects/firmware/extracted/usr/sbin/httpd --json
fat sink-discovery --file .fat-projects/firmware/extracted/usr/sbin/httpd --json > sinks.json
fat taint --file .fat-projects/firmware/extracted/www/cgi-bin/diag.cgi --summary
For a stripped binary, feed the sink candidates into taint and turn the resulting addresses into runtime hooks:
fat taint --file ./usr/sbin/httpd --sink-candidates sinks.json --json > taint.json
fat instrument-hooks --from-sinks sinks.json --output hooks.yaml
See Binary triage and decompilation and Taint analysis.
6. Emulate only when the evidence supports it
fat preflight .fat-projects/firmware
fat emulate --project .fat-projects/firmware
fat emulate --project .fat-projects/firmware --status
fat emulate --project .fat-projects/firmware --stop
preflight ranks backends and checks host readiness. Emulation executes untrusted vendor code; review Security first, and use a disposable lab environment. Supported BMC images use explicit hash-pinned profiles — see Emulating BMC firmware.
Where to go next
- How to read FAT output — what each result does and does not prove.
- Command reference — every command grouped by task.
- Architecture — workspace crates and extension points.
- CI and automation — JSON, SARIF, and exit gates.