Skip to content
Misconfiguration Write-up Advanced

Exploiting signed bootloaders to circumvent UEFI Secure Boot (2019)

A signed Kaspersky Rescue Disk bootloader allowed loading of GRUB modules and did not enforce signature checks on subsequently loaded code, so a modified chainloader could silently boot any unsigned .efi file with Secure Boot enabled. An attacker with physical access could use this to install a bootkit without disabling Secure Boot or enrolling a key.

habr.com

Published on habr.com

UEFI Information Security

The author, on habr.com

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 pre-loader and GRUB build permitted module loading and did not properly enforce signature verification on files loaded through a custom chainloader path.

Impact

With physical access, an attacker could silently boot untrusted code and install bootkits despite Secure Boot; the author expects the certificate to be revoked via the UEFI revocation list distributed through Windows Update.

What the attacker needed

Physical access to the machine; Secure Boot enabled; signed Kaspersky Rescue Disk files

The fix

The text does not describe a code fix; it expects the signing certificate to be revoked through the global UEFI certificate revocation list.

How it was found

  1. Obtain the signed Kaspersky Rescue Disk 18 bootloader files.
  2. Modify the chainloader module so GRUB loads the .efi file itself instead of using UEFI LoadImage/StartImage.
  3. Port a PE header parser from shim or PreLoader into GRUB to replace the header normally supplied by shim.
  4. Boot the resulting disk with Secure Boot enabled and load an unsigned .efi file.

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 lets signed boot software run, to stop malware that starts before the operating system. The author found that a signed antivirus rescue disk contained a bootloader that could be bent into running unsigned code without any prompt. That means someone at the keyboard could load their own software even with Secure Boot switched on.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.