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.
- Windows 11 Enterprise: the 2023 certificate was in the DB, the boot manager was an updated one (issued by PCA 2026), and PCA 2011 was not in the DBX. Patched, not protected, and ready to revoke. I applied the revocation inside a Hyper-V checkpoint: the Secure Boot servicing task wrote it to the DBX straight away, without waiting for a restart, the machine restarted normally on its updated boot manager, and the check above read
True. Then I rolled the checkpoint back. - Windows Server 2025: the 2023 certificate was in the DB, but every boot manager on the EFI partition was still signed by PCA 2011. Revoking would have left it unable to start.
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:
- It can’t be undone. Once PCA 2011 is in a machine’s DBX it stays there, “even reformatting of the disk will not remove the revocations”, as long as Secure Boot stays on.
- Old boot media stops working. USB sticks, ISOs and PXE images that still carry a PCA 2011 boot manager won’t start on a revoked machine. Update them first, or you find out on the day you need to reimage something.
- Have the BitLocker recovery key. Microsoft says some machines go into BitLocker recovery.
- Firmware matters. Microsoft lists known problems with HP Sure Start, some Arm64 devices, Apple T2 Macs running Windows, VMware virtual machines, and Symantec Endpoint Encryption.
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
- Kaspersky Securelist: New BlackX UEFI bootkit exploiting Baton Drop
- Microsoft: KB5025885: How to manage the Windows Boot Manager revocations for Secure Boot changes associated with CVE-2023-24932
- The Hacker News: BlackX UEFI Bootkit Bypasses Secure Boot on Patched Windows Systems Missing Revocations
Comments
Comments use GitHub Discussions, so you'll need a GitHub account to post. Corrections are especially welcome.