UEFI (Unified Extensible Firmware Interface) is the firmware that starts a computer. It runs before Windows or any other operating system, checks and prepares the hardware, and then hands control to the operating system's boot loader. It replaced the older BIOS on almost every PC and server made in the last decade, although many people, and many settings menus, still call it "the BIOS".
It matters for security because it runs first, with full control of the hardware and before any security software has started. Code that compromises the firmware can survive a reinstall of the operating system and hide from tools that run inside it.
UEFI vs BIOS
The legacy BIOS dates from the early 1980s. UEFI was developed to replace it, and the specification is maintained by an industry body, the UEFI Forum. The main differences:
- Disks: BIOS boots from disks partitioned with the old MBR scheme, limited to 2 TB. UEFI uses GPT, which supports far larger disks and more partitions.
- Design: BIOS runs in a limited 16-bit mode. UEFI is a small operating environment in its own right, with drivers, a network stack and the ability to run programs.
- Security: UEFI supports Secure Boot, which checks that each piece of boot software is signed by a trusted party before running it. BIOS has nothing comparable.
- Compatibility: many UEFI systems offered a Compatibility Support Module (CSM) to boot old operating systems as if they had a BIOS. It is being removed from new hardware, and Windows 11 requires UEFI with Secure Boot capability.
How UEFI boots a machine
A UEFI boot runs through a series of phases. You don't need the detail to manage firmware, but it helps explain where attacks happen.
- Security (SEC) and pre-EFI initialisation (PEI): the processor starts, the first code runs from the flash chip on the motherboard, and memory is brought up.
- Driver execution environment (DXE): UEFI loads drivers for the rest of the hardware, including storage, graphics, USB and networking.
- Boot device selection (BDS): UEFI picks what to boot from, such as a local disk, USB stick or the network (PXE).
- Handover: UEFI loads the operating system's boot loader from the EFI System Partition. If Secure Boot is on, it checks the loader's signature first. The loader then starts the operating system.
Two further mechanisms sit alongside this. Secure Boot checks signatures against databases of trusted and revoked keys held in the firmware. Measured boot records a fingerprint of each stage in the TPM, so the operating system or a remote service can later check what actually ran. Our explainer on Secure Boot covers both in more detail.
Why attackers target firmware
Firmware is attractive to attackers for three reasons. It runs before security tools, so it can tamper with what loads after it. It lives in flash memory on the motherboard or on the disk's boot partition, so it can survive the operating system being wiped. And it is rarely inspected or updated, so a compromise can go unnoticed for years.
Attacks fall into a few groups:
- Bootkits replace or modify the boot loader on the EFI System Partition. BlackLotus, discovered in 2023, was the first publicly known bootkit able to bypass Secure Boot on fully updated Windows 11 systems by exploiting an old, still-trusted boot manager. Our post on BlackX covers a more recent example and why the fix depends on revocation updates many estates skip.
- Firmware implants write malicious code into the flash chip itself. LoJax, reported in 2018, was the first found in the wild. These survive even a disk replacement.
- Firmware vulnerabilities are bugs in UEFI code that an attacker can exploit to run code before the operating system. In 2023, flaws known as LogoFAIL were found in the code that displays the manufacturer's logo at start-up. In 2024, nine flaws known as PixieFail were found in the network-boot stack of EDK II, the open-source UEFI code most vendors build on. This week, another flaw in that same network-boot code, CVE-2026-97631, was disclosed, with a lab demonstration of booting an unsigned operating system with Secure Boot switched on. We cover it in our post on the firmware patch gap.
How to keep UEFI firmware secure
Know what you have
Keep an inventory of firmware versions across your devices. Microsoft Defender Vulnerability Management reports BIOS versions for supported manufacturers. Server hardware management tools and Microsoft Intune can also help. If you can't say which firmware version a server runs, you can't say whether it is exposed.
Update it on a schedule
Firmware updates come from the hardware maker, not from the UEFI Forum or Microsoft directly, although Windows Update delivers firmware for some devices. Treat firmware as its own patch category with an owner, a review cadence and a target time to install critical fixes. Track it separately from operating system patching so it can't hide in an average.
Lock down the settings
- Turn on Secure Boot and keep it on.
- Set a firmware administrator password so settings can't be changed at the keyboard.
- Disable boot options you don't use, such as USB boot on servers and PXE network boot on machines that always boot from disk.
- Disable the Compatibility Support Module where the hardware still offers it.
Use the protections built on top of UEFI
On Windows, virtualisation-based security, memory integrity (HVCI) and BitLocker with TPM protection all depend on a trustworthy boot. Keep Secure Boot's revocation list (the DBX) up to date, as Microsoft ships updates to it through Windows Update.
Watch for the signs
Firmware attacks are hard to see from inside the operating system, but not invisible. Changes to the EFI System Partition, unexpected boot configuration changes, Secure Boot being switched off and failed health attestation are all worth alerting on.
Frequently asked questions
Is UEFI the same as BIOS?
No, although the names are often used interchangeably. UEFI replaced BIOS. Many settings screens are still labelled "BIOS" out of habit, even on machines that only run UEFI.
How do I check whether my PC uses UEFI?
On Windows, open System Information (msinfo32) and look at "BIOS Mode". It will say UEFI or Legacy. The same screen shows whether Secure Boot is on.
Can malware survive reinstalling Windows?
Malware in the firmware or on the boot partition can. That is rare, but it is why a device believed to have a firmware compromise should have its firmware reflashed from a trusted source, or be replaced, rather than simply reimaged.
Should I update my UEFI firmware?
Yes, from your hardware maker's official channel, on a regular schedule and promptly for critical security fixes. Test on a few devices first, especially servers, because a failed firmware update can leave a machine unable to boot.
What is PXE boot, and should I disable it?
PXE lets a machine start from an image on the network, which is useful for building new devices. Once a machine is built and boots from its own disk, PXE usually isn't needed. Disabling it removes a source of exposure, as this week's vulnerability shows.
Does Secure Boot stop all firmware attacks?
No. It checks the software that loads after the firmware, but it can't protect against flaws in the firmware itself, or against trusted but vulnerable boot software that hasn't been revoked.
How Wizard Cyber helps
If you need help bringing firmware into your patching programme, our vulnerability and patch management service is a good place to start. Our SOCs are staffed 24/7 with Microsoft Sentinel and Defender at the core of the managed service, and CYBERSHIELD AI investigates each incident as it arrives, with a senior analyst signing off by default. To talk it through, book a demo.