Borrowing a Microsoft-signed shim to abuse Secure Boot on corporate hardware leo...

@best

Borrowing a Microsoft-signed shim to abuse Secure Boot on corporate hardware leosmith.wtf · 8 points · 1 comments · HN thread

TL;DR A blog post by the author of the p3ng0s live OS describes booting an unsigned custom OS on Secure Boot-enabled machines by copying a Microsoft-signed shim (from a distro's shim-signed package), then enrolling the author's own key through MOK Manager. The author argues this works on corporate hardware that has Microsoft's third-party UEFI CA installed and requires no BIOS password.

  • Secure Boot checks signatures against a key database; Microsoft's third-party UEFI CA lets distros like Ubuntu, Debian and Fedora ship shims that the firmware trusts.
  • The shim hands off to MOK Manager, which lets a user enroll any key from disk, so an attacker can sign their own GRUB and kernel with a self-made key.
  • The author says the attack needs no BIOS password, only access to the one-time boot menu (F7 on some models) and a USB drive.
  • The author describes Secure Boot as aimed mainly at stopping EFI-level malware rather than physical-access attacks, and says the shim-signed package can be found via pkgs.org.
  • The post is a teaser for a future p3ng0s V2 release; the author notes the build hook and instructions are on a V2 branch and in a PDF guide.

Discussion The thread is a single top-level comment with no replies, so there is no real discussion. The one comment summarizes the post's claim: MOK enrollment lets arbitrary keys be enrolled without a BIOS password, and a borrowed Microsoft-signed shim makes this usable on corporate machines with third-party certificates installed.

  • MOK enrollment makes Secure Boot bypassable on corporate machines (a few): The only commenter says that a shim borrowed from a distro package lets anyone boot an arbitrary OS on most corporate hardware without a BIOS password. The comment restates the post's claim and does not add evidence or counterpoints.

#SecureBoot #UEFI #Linux #Security #PhysicalSecurity