UEFI and Firmware Rootkits
What you'll learn: How attackers compromise UEFI firmware to create nearly undetectable persistence that survives operating system reinstalls and disk replacements.
The Ultimate Stealth: Below-OS Infection
While bootkits (lesson 1553) compromise the MBR to gain early execution, UEFI firmware rootkits go one layer deeper—they infect the firmware chip itself. Think of your computer like a building: traditional malware operates on the floors (OS), bootkits control the ground floor entrance (boot sector), but UEFI rootkits compromise the foundation itself.
Why UEFI Firmware Is the Perfect Hiding Spot
UEFI firmware (remember lesson 1459's architecture) executes before any operating system code runs. By compromising this layer, attackers gain:
- Extreme persistence: Survives OS reinstallation, hard drive formatting, even disk replacement
- Invisibility: Traditional antivirus cannot scan firmware; most security tools never look here
- Control: Can modify the boot process, bypass Secure Boot (if keys are compromised), or inject code into the loading OS
How UEFI Rootkits Work
Attackers modify legitimate UEFI modules stored in the SPI flash chip on your motherboard. These malicious modules execute during the pre-boot environment and can:
- Install OS-level malware automatically on each boot
- Disable security features before the OS loads
- Create hidden network backdoors
- Modify boot chain verification (undermining lesson 1460's chain of trust)
Detection and Defense Challenges
UEFI rootkits are extremely difficult to detect because firmware verification tools are rare and complex. Organizations need specialized firmware integrity monitoring (beyond file-based FIM from lesson 1500) and hardware-based attestation (lesson 1464's TPM measured boot).
Key Takeaway: UEFI firmware rootkits represent the deepest level of system compromise—living beneath the operating system in firmware where they're nearly invisible, extremely persistent, and exceptionally difficult to remove.