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

Environment variables

These variables are the documented operator-facing controls. Backend-development and test variables exist in the source, but they are not a stable interface.

VariablePurpose
FAT_DATA_DIRUse an unversioned, reviewed runtime-data tree directly. Takes precedence over bundled and managed data.
FAT_COLORalways forces ANSI color; never disables it. Help and reports stay plain when piped.
FAT_PYTHONPython interpreter for optional Python-backed workflows, including an isolated angr environment.
FAT_EXTRACT_TIMEOUTDefault external-extraction timeout in seconds. --extract-timeout overrides it; 0 disables the timeout.
FAT_REHOSTING_PACKSColon-separated directories searched for local rehosting packs after --packs-dir.
FAT_EXT2_BUILDER_IMAGEOperator-provided, digest-pinned image used for the macOS ext2 builder. FAT does not pull it.
GHIDRA_HOMEGhidra installation used by headless analysis and taint normalization.

Runtime-data resolution

FAT_DATA_DIR is one input to runtime-data discovery. The full resolution order is:

  1. command-level path;
  2. FAT_DATA_DIR;
  3. executable-relative <exe_dir>/share/fat;
  4. executable-relative <exe_dir>/../share/fat;
  5. platform user data;
  6. a marked development checkout (debug builds only).

fat data status reports which origin supplied the active tree. See Runtime data.

Python and angr

FAT_PYTHON should point at an isolated environment with the optional dependencies installed:

python3 -m venv "$HOME/.local/share/fat-angr-venv"
"$HOME/.local/share/fat-angr-venv/bin/python" -m pip install angr pyyaml
export FAT_PYTHON="$HOME/.local/share/fat-angr-venv/bin/python"

fat doctor --strict checks core prerequisites; it does not validate the optional angr environment.

Rehosting packs

FAT_REHOSTING_PACKS uses the platform path separator (: on Unix). Directories are searched in order after any --packs-dir arguments. Embedded BMC profiles are not discovered this way; they require explicit --pack selection.