Lesson 1 of 13 · 15m
What Boots Before Your OS
The CPU that runs your bootloader is the third or fourth processor to start; the flash layout and execution order determine who really owns the machine.
The first instruction is not yours
When you press the power button on a modern x86 board, the main CPU sits in reset while other machines get it ready. The embedded controller pulses power rails and fans. The PCH (Platform Controller Hub) releases straps. On anything Intel since roughly Skylake, the Converged Security and Management Engine — a separate ARC/x86 processor inside the chipset — boots its own ROM, loads its own OS, and brings up clocks, memory training data, and the firmware blob that the main CPU will need before it can address DRAM at all. AMD's Platform Security Processor does the same job. Only after the CSME says go does the main core fetch its first instruction from the reset vector at 0xFFFFFFF0, the last 16 bytes below 4 GB, which is a jump into whatever the SPI flash chip holds.
That SPI flash chip is the part that matters. Almost everything called "firmware" on a PC or an embedded board is a W25Q-family NOR flash, 8 to 32 MB, sitting on the SPI bus. On Intel boards it is partitioned by the Intel Flash Descriptor at offset 0: a descriptor region that names the other regions, their offsets, and — critically — which bus masters may read and write each region. The regions are Descriptor, BIOS, Intel ME, and GbE (gigabit ethernet config, including the MAC address). The host CPU can normally read the BIOS region. It usually cannot read the ME region at all — the descriptor forbids it. That is why flashrom -p internal reports "region access" errors on a healthy machine. On ARM hardware the same shape repeats at a different scale: a mask ROM burned into the SoC loads an SPL small enough for SRAM, the SPL loads U-Boot, U-Boot loads the kernel. Different vendors, same answer — several stages execute before anything you installed.
The mental model to delete
The wrong model is "the BIOS is a chip with some code in it." The BIOS region is a filesystem: firmware volumes containing hundreds of executable modules. The ME region is a complete operating system — Intel's CSME has run MINIX 3 on its own core since version 11. And none of this code comes from the company whose logo is on the box. The silicon vendor ships binary blobs (Intel FSP, AMD AGESA) that do memory and silicon initialization; the independent BIOS vendor (AMI Aptio, InsydeH2O, Phoenix) supplies the UEFI framework built on the EDK II reference; the ODM integrates it onto the board; the OEM brands it. Four vendors touch the image before you ever flash it. Server boards add one more invisible computer on top of this stack — the BMC, a separate ARM SoC that runs on standby power — and a separate lesson in this course is dedicated to it.
This is why "I reinstalled the OS" is not a firmware statement. The OS lives on the disk. Everything described above lives elsewhere and survives any reinstall — which is precisely why attackers put things there. LoJax (ESET, 2018) wrote a DXE driver into the SPI flash using a signed RWEverything driver, and MoonBounce (Kaspersky, 2022) hooked AllocatePool inside a firmware volume. Both persisted across disk replacement, not just OS reinstall.
What to actually do
Build an inventory before you trust anything. dmidecode -t bios and cat /sys/class/dmi/id/bios_version give you the BIOS build. fwupdmgr get-devices lists everything LVFS knows about — UEFI, CSME, EC, retimers. On Intel, chipsec_util spi info parses the descriptor and prints the region map and access permissions. For each component, there is a version, and for each version there is an advisory history — CSME alone carries Intel SA-00086 — the November 2017 advisory covering CVE-2017-5705 through -5712 across ME, TXE, and SPS, surfaced by Positive Technologies' Ermolov and Goryachy — and the unpatchable boot-ROM bug CVE-2019-0090, which the same team disclosed in 2020 and which cannot be fixed in silicon. A machine you cannot inventory is a machine you are trusting blind.
The reset vector is where your control begins. Everything before it belongs to someone else's code.
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 (