Lesson 4 of 13 · 18m
Anatomy of a UEFI Image
A BIOS region is a filesystem of GUID-named executable volumes — learn to list it, and an implant has nowhere to hide.
Volumes, files, sections
Open a dump or a vendor image in UEFITool (the NE builds parse modern images) and the blob resolves into structure. The outermost unit is the Firmware Volume: an FvHeader, an alignment map, then a sequence of firmware file system entries. Each FFS file is named by a GUID — not a filename, a 128-bit identifier — and carries a type: PEI module, DXE driver, SMM module, microcode, freeform data. Inside each file are sections: EFI_SECTION_PE32 for the executable, EFI_SECTION_USER_INTERFACE for a UTF-16 display name, EFI_SECTION_COMPRESSION or EFI_SECTION_GUID_DEFINED wrapping LZMA/LZMA2-compressed children, EFI_SECTION_FREEFORM for blobs like logo bitmaps.
The inventory is learnable in an afternoon — and learnable means exactly that: binwalk will not parse a clean FV tree the way UEFITool will — it finds the _FVH volume signature and the FFS2 GUID 8C8CE578-8A3D-4F1C-9935-896185C32DD3 and stops there — so pick the right tool for the layer. PEI modules do early memory init. DXE drivers do everything after — disk, network, USB, the Boot Manager itself — and here is the part vendors do not advertise: the DXE network stack is EDK II's NetworkPkg, compiled by whichever IBV built the image, so the same GUIDs and the same bugs appear across AMI, Insyde, and Phoenix builds. SMM drivers run in System Management Mode behind SMI# — ring −2, invisible to the OS, which is why SMRAM is locked behind TSEG/SMRR and why SMM driver bugs are the worst class in the image. Microcode lives in an FFS under GUID 17088572-377F-44EF-8F4E-B09FFF46A070. Option ROMs — GOP video, legacy PXE — ride along as more PE32 sections. NVRAM is its own region: a variable store plus a fault-tolerant-write workspace, holding BootOrder, PK, db, dbx, and a decade of stale variables.
The wrong mental model
"Firmware is monolithic and signed as one thing." It is a package manager's dream: hundreds of separately loadable executables, many written by third parties, parsed by code that predates fuzzing. An implant does not need to defeat the image; it needs to add one FFS file. MoonBounce did exactly that — an extra DXE driver inside an existing firmware volume, hooked into AllocatePool, surviving everything short of a chip reflashing. LogoFAIL needed even less: the parsers for boot-logo images were already inside legitimate DXE drivers; a crafted BMP dropped on the ESP was enough.
The practical consequence: auditing firmware means diffing module lists, not admiring signatures. A signed capsule tells you the vendor shipped it. UEFITool's file list tells you what is in it.
What to actually do
Extract the BIOS region — binwalk -Me pulls the outer structure, UEFITool does the real work: search by GUID, extract PE32 bodies, diff against the vendor baseline, and flag any FFS file that is not in the reference image. Two more formats worth recognizing as you extract: PEI/DXE modules can be stored as TE images — Terse Executables, a stripped PE variant for tiny sections — and dependency expression (DEPEX) sections decide load order, so a module list alone is not quite an execution order. uefi-firmware-parser scripts the same job. Look for PE32 sections with no UI name, DXE drivers absent from the vendor's published build, and freeform sections that parse as images — the LogoFAIL surface. The same comparison ships in chipsec as tools.uefi.scan_image: chipsec_main -m tools.uefi.scan_image -a check,dump.bin,efi_whitelist.json walks every EFI executable inside a firmware image — a flash dump or an extracted update, not the ESP filesystem — against a JSON allowlist built once from a known-clean reference (-a generate produces it), and tools.uefi.scan_blocked runs the inverse against known-bad binaries. It is the automated version of the UEFITool diff, built for the fleet case where eyeballing module lists does not scale. For NVRAM, chipsec_util uefi var-list or /sys/firmware/efi/efivars shows what the firmware is actually carrying — and stale variables deserve a look of their own, since Boot#### entries and vendor blobs persist there for the life of the board.
The format has been documented since EFI 1.10. The tools are free. The only thing standing between you and a readable firmware image is the assumption that it is opaque.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
Januscape: A 16-Year-Old Linux KVM Escape Bug
CVE-2026-53359 lets a guest VM crash or potentially root your Proxmox host, and it hid in KVM's shared code for 16 years. What to patch and how to check.
The CPU-ocalypse Is Here, and the AI Industry Walked Right Into It
For three years the AI industry watched GPUs. Nobody was watching the CPU. Now Intel is warning of six-month lead times, AMD has blown past expectations, and the chip everyone assumed would always be available has become the new bottleneck in the biggest infrastructure buildout since the internet.
The RAMpocalypse! How AI Companies Are Destroying the Hosting Industry and Your Wallet
How AI infrastructure demand is driving up VPS and dedicated server costs — and why your hosting bill is going up even though you haven't changed anything.
Getting Started with Embedded C
The Goal By the end of this tutorial, you will be able to compile a binary written for the avr instruction set targeting the AtMega328P microcontroller on an Arduino Nano or Arduino Uno R3 form factor. Needed Documentation * Arduino Nano PCB design * Atmega328P datasheet Materials used * Arduino Nano * Arduino Uno R3 * Relevant cable * Computer Software Used * make (for easy of compiling and building) * avr-gcc (our compiler for avr ISA) * binutils-avr * avr-libc * avrdude (