ENGINEERING

BlackX: your Windows machines are patched against BlackLotus-style bootkits, but probably not protected

On October 22, Kaspersky published BlackX, a UEFI bootkit found on machines at diplomatic agencies in Tajikistan, Uzbekistan and Turkmenistan, with medium-confidence attribution to APT41. Once the attackers had administrator rights, BlackX used Baton Drop (CVE-2022-21894), the same bug BlackLotus used in 2023, to enroll its own keys and load its own code before Windows starts.

The machines were fully patched. That’s the part worth reading twice.

Patched isn’t protected here

The Windows updates for Baton Drop and the related CVE-2023-24932 install the fix, but the protection only takes effect once the firmware stops trusting the old, vulnerable Windows boot managers. That means adding the Microsoft Windows Production PCA 2011 certificate, which signed all of them, to the firmware’s revocation list (the DBX). Windows doesn’t do that by itself. Microsoft’s KB5025885 says an administrator has to request it, and says plainly that a later “enforcement phase” will do it automatically, with six months’ warning first.

Until then, a bootkit can carry its own copy of an old, validly signed boot manager and the firmware will run it.

The PCA 2011 certificate also expired on October 19. That doesn’t help: firmware doesn’t check expiry dates when it loads a boot manager, so an expired certificate that isn’t in the DBX is still trusted. Kaspersky makes the same point.

Check one machine

Microsoft’s own verification commands, in an elevated PowerShell window:

[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI dbx).bytes) -match 'Microsoft Windows Production PCA 2011'

True means the revocation is in place. False means the machine is patched but not protected against this class of bootkit.

Before you revoke anything, two more things have to be true, or the machine stops booting:

[System.Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI db).bytes) -match 'Windows UEFI CA 2023'

That has to say True: the firmware has to trust the new 2023 certificate. And the boot manager on the EFI partition has to be an updated one, not one issued by PCA 2011:

mountvol S: /s
(Get-AuthenticodeSignature S:\EFI\Microsoft\Boot\bootmgfw.efi).SignerCertificate.Issuer
mountvol S: /d

If that issuer says Microsoft Windows Production PCA 2011, the machine is still booting the old boot manager, and revoking PCA 2011 would leave it unable to start. The updated boot manager on my Windows 11 lab machine showed Microsoft Windows Production PCA 2026 RSA2048-SHA256 instead. (Use any free drive letter in place of S:.)

What I found on two lab machines

Both are up to date, and neither had the revocation.

The Server is the one to learn from. Microsoft’s KB suggests checking UEFICA2023Status in HKLM\SYSTEM\CurrentControlSet\Control\SecureBoot\Servicing, and on that Server it said Updated while the boot manager the firmware actually loads was still the old one. Check the file, not the status value.

Before you revoke

This is the one Windows security change I’d treat as able to brick a machine, and Microsoft’s KB is blunt about it:

The order is: the 2023 certificates in the DB, the updated boot manager, your boot media, then the revocation. Microsoft’s KB5025885 has the steps. Do a few machines you can rebuild first.

Doing this across a fleet

The RFF Script Library has Secure Boot Revocation Check (BlackLotus / BlackX, KB5025885) for Windows. It reports each machine as protected, NOT REVOKED and ready, NOT REVOKED and not ready, or Secure Boot off, with the DB, DBX and boot-manager details behind the verdict. It’s read-only: it tells you who’s patched but not protected, and which machines are safe to revoke first. It doesn’t apply the revocation.

RFF is free for your first 100 endpoints: getrff.com.

Sources

One email per new post, nothing else. Unsubscribe in one click. Or use the RSS feed.

Comments

Comments use GitHub Discussions, so you'll need a GitHub account to post. Corrections are especially welcome.