Inspecting BMC firmware
fat inspect bmc inspects a raw flash image without executing firmware or contacting a controller. It combines FAT’s native layout analysis with FIT authentication metadata, located platform strings, and CRC-validated U-Boot environments.
BMC inspection and native JFFS2 recovery were added after v2.0.1. If you have that release installed, build master using the source-build instructions.
fat inspect bmc --file flash.mtd
fat inspect bmc --file flash.mtd --details
fat inspect bmc --file flash.mtd --json > inspection.json
fat inspect bmc --file flash.mtd --sarif > findings.sarif
fat inspect bmc --file flash.mtd --sarif --fail-on-warning > findings.sarif
JSON uses bmc-inspection/v1. Shared FIT evidence and parser diagnostics also appear in fat inspect headers --file flash.mtd --json. Every report records the actual input size and SHA256. --details only expands text presentation; it does not change analysis, JSON, or SARIF. Inputs are limited to 512 MiB.
FIT metadata
The report shows FIT offsets, default configuration, component hashes, image and configuration signature nodes, configuration image references, and any /signature key metadata in embedded device trees. The declared default configuration is not an observation of the device’s selected boot path.
BOOT-FIT-HASH-ONLY: a completely interpreted FIT contains hashes for all image nodes and has no image or configuration signature nodes. This describes the FIT metadata; it does not describe an outer signed package or a controller’s boot policy.BOOT-FIT-SIGNATURE-METADATA: signature nodes exist. Their presence does not establish cryptographic validity or enforcement.- Control-FDT
requiredproperties are displayed as stored key policy. The report does not prove that the running bootloader uses that device tree.
Configuration signatures are considered alongside image signatures: an image with hashes can be authenticated through a signed configuration. The parser handles both hash@1/signature@1 and hash-1/signature-1 names. Malformed metadata and analysis budgets are recorded as diagnostics; incomplete blobs cannot generate hash-only findings.
The existing fat signature-fit command tests an RSA-PSS/SHA256 byte relationship with a supplied key. It is a separate operation from FIT metadata inspection.
Stored environments
Automatic discovery checks 4 KiB-aligned offsets within the first 64 MiB for total region sizes of 4, 8, 16, 32, 64, 128 and 256 KiB. Both ordinary and redundant headers and both CRC byte orders are checked. The CRC covers the full data area, excluding the CRC and optional redundant-copy flag. The JSON records search bounds and any truncation.
For a known region, provide its offset and total stored size, including the header. Decimal and hexadecimal values are accepted; explicit regions may be unaligned and up to 1 MiB.
fat inspect bmc --file flash.mtd --env-offset 0x60000 --env-size 0x20000 --details
Recovered variables retain byte offsets, region size, CRC validity and redundant-copy flags. Flags are not used to select the active copy. A supplied region that has no valid environment is reported in JSON diagnostics. Invalid or out-of-bounds arguments fail the command.
Raw strings versus validated environments
fat analyze <project> records assignments found in firmware strings under raw_env_hints in analysis/bootloader.json. fat bootloader inspect <project> labels them raw bootloader assignment hints (CRC not checked). Strings such as bootcmd=bootfmh, verify=yes, or sig_check=%s can be defaults or diagnostic templates. They do not generate boot-policy findings or supply environment values to emulation.
fat inspect bmc --file <firmware> --json separately reports CRC-validated regions in environment_scan.environments, with offsets, sizes, stored CRCs, and redundancy flags. An empty result means no valid region was found within the reported search bounds. CRC validity does not establish which copy is active or what hardware enforces.
Existing snapshots still load. Their env_variables remain available for imported emulation settings; the inspector labels these as imported/legacy values with CRC not checked. Rerun fat analyze to replace an older raw-string-derived snapshot with the separated hint model.
Platform and trust markers
OpenBMC/MegaRAC strings and ASPEED compatible strings are independently located evidence. Generic fwmap, sig_table, and AdaptiveModules markers do not establish a vulnerable parser, a reachable update path, or a specific CVE. Raw-string matches are labeled as markers, including their offsets.
PEM headers are also markers: a private-key header generates a qualified warning; public-key and certificate headers are informational. The scanner does not validate a complete key from a header alone or scan inside compressed data. Use FAT extraction and rootfs analysis for embedded files.
CI output
SARIF 2.1.0 includes stable rule IDs, rule descriptions, the input SHA256, and binary byte locations. Default inspection exits successfully when analysis completes. --fail-on-warning emits the full report and then exits nonzero when any warning/error finding exists. Invalid arguments, input I/O failures, and fatal analysis errors also exit nonzero. Malformed FDT candidates remain diagnostics in a successfully completed inspection. CI policy is explicit: metadata observations are not automatically vulnerability verdicts.
Extracting filesystems
Inspection reads the raw image; it does not extract its filesystems. Create a project on case-sensitive storage and run native extraction separately:
fat new ./flash.mtd --name bmc --projects-dir /path/to/case-sensitive/projects
fat extract /path/to/case-sensitive/projects/bmc --extractor native --json > extraction.json
Gzip members are published in artifact-ID/format directories such as work/extractions/native/0004-gzip, with the original safe member name retained. A gzip directory does not classify its payload as a kernel. Read kernel_paths in the extraction manifest for kernel candidates and artifacts for source/parent relationships and actual output paths. Cached projects retain their existing directories until extraction is rerun with --force.
--extractor native uses only FAT’s built-in extraction path. Omit it to use auto, which retains external fallback when native recovery is incomplete. The JSON recovery_status summarizes recovery; artifacts records individual successes, unsupported formats, and failures. A previous extraction is reused unless --force is supplied; --force overwrites existing extraction artifacts.
Use a case-sensitive output filesystem for extraction: these OEM images can contain distinct names such as libip6t_HL.so and libip6t_hl.so. Inspect per-artifact extraction outcomes; successful command completion and recovered auxiliary files do not establish complete rootfs recovery. Raw identity strings also require context: the tested Supermicro X12 image contains openbmc-linux-gcc in a compiler string while its extracted os-release identifies Supermicro BMC.
Native extraction reconstructs JFFS2 files before scanning their contents for nested gzip streams. It supports both byte orders and uncompressed, zero-filled, copy, and zlib fragments. Header, inode, data, and filename CRCs are checked; versions and deletions are applied before publishing the staged tree. JSON artifact records preserve filesystem-to-file lineage. Private temporary copies allow recursive inspection without changing restrictive firmware permissions in the published tree. Unsupported codecs or node types, incomplete ranges, and exceeded limits remain unresolved.
JFFS2 discovery joins nodes across erased gaps of at most 64 KiB. It does not infer flash partition boundaries, ECC/OOB layouts, or missing fragments. Filenames and symlink targets currently require UTF-8; xattr, summary, and other unsupported node types are reported explicitly. Larger gaps can separate a filesystem into unresolved regions. Unreachable live directory entries remain unresolved.
The format and trust semantics follow U-Boot’s FIT signature documentation.
Validation fixtures
Hermetic tests synthesize FITs with hash metadata, image/configuration signatures, malformed structures, and valid/corrupt environment CRCs. Real-image validation should record the source URL, SHA256, command and tool version separately. Firmware binaries are not committed to the repository. OpenBMC TiogaPass and Romulus examples validate those image families. The 2026-10-18 OEM validation additionally exercises Gigabyte, ASRock, and ASUS MegaRAC/SP-X firmware, Supermicro X11/X12 images, and a Lenovo XCC comparison image. Coverage is tied to the listed input hashes and features; it does not establish proprietary update-signature verification or controller boot enforcement.
Run the inspected image
Supported images can use BMC emulation profiles for full-flash or explicit vendor-kernel boot, current Redfish checks, and serial/monitor/GDB debugging. Inspection findings alone do not select a board or authorize an adaptation.