Exploiting Signed Bootloaders to Circumvent UEFI Secure Boot
The author found that signed bootloaders from Kaspersky Rescue Disk 18 allow loading GRUB modules and a custom chainloader, so untrusted .efi files can be booted with UEFI Secure Boot enabled. An attacker with physical access could use this to install a bootkit without the owner's consent or without enrolling a key.
habr.com
Published on habr.com
UEFI Information Security
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the signed Kaspersky bootloader permits loading GRUB modules and a custom chainloader that self-loads .efi files instead of relying on UEFI signature checks, so the trust chain is bypassed.
Impact
An attacker with physical access could silently boot untrusted code and install bootkits with Secure Boot still enabled, though the author expects the signing certificate to be revoked soon.
What the attacker needed
Physical access to the machine; Secure Boot enabled; booting from attacker-controlled media
The fix
The author expects the Kaspersky bootloader signing certificate to be added to the global UEFI revocation list, which would break the disk.
How it was found
- Obtain the signed Kaspersky Rescue Disk 18 bootloader files.
- Modify the chainloader module so GRUB loads the .efi file itself instead of using UEFI LoadImage/StartImage.
- Port a PE header parser from shim or PreLoader into GRUB, since GRUB normally gets the parsed header from shim.
- Boot the resulting disk with Secure Boot enabled and load an untrusted .efi file without enrolling a key.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Secure Boot is a firmware feature that only runs boot software signed by a trusted key, which is meant to stop malware that starts before the operating system. The author showed that some signed boot software is too permissive: it can be made to run unsigned code anyway. That means someone at the keyboard could boot their own code even with Secure Boot switched on.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.