# Researcher boots custom OS on locked-down corporate laptops by borrowing Microsoft's signed shim

Original title: Borrowing a Microsoft-signed shim to abuse Secure Boot on corporate hardware

> Hacker News story 50423151 · language: en · submitted 2026-11-09
> Web version: https://zeli.app/story/50423151
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 48 · by [p4p1](<https://news.ycombinator.com/user?id=p4p1>) · 💬 13
[original](<https://leosmith.wtf/blog/not-so-secure-boot.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50423151>)

## Summary

Secure Boot only checks that the bootloader carries an accepted signature, not that the OS is trusted. Leo Smith shows how to grab a Microsoft-signed shim from distro packages like Ubuntu or Fedora, sign a custom kernel and GRUB with self-generated MOK keys, and enroll those keys through the shim's MOK manager on a target machine. No BIOS password is needed: just pick the USB drive from the boot menu and the attacker's OS loads on hardware with Secure Boot enabled.

## Key quote

> To me it seems a bit trivial well if I can pick the keys during mok enrollment why not just pick my own keys? From there it's jackpot I booted my OS on hardware that has secure boot enabled!

## HN discussion (13 comments)

### [Graziano_M](<https://news.ycombinator.com/item?id=50426567>)

> What I do is seal the disk encryption key against PCR 7 (among others) so even if it secure boots up, unless it boots with grub verified with a specific key, it won’t be able to decrypt the disk.

### [huslage](<https://news.ycombinator.com/item?id=50426515>)

> This is not a hack. It's working as designed.

### [p4p1](<https://news.ycombinator.com/item?id=50423152>)

> Secure Boot’s MOK enrollment lets you enroll arbitrary keys without a BIOS password. By borrowing a Microsoft-signed shim from a package like ubuntu’s shim-signed, you can boot any OS on a corporate machine that has 3rd party certificates installed — which most do.

---

## Cite

- Page: https://zeli.app/story/50423151
- Date: 2026-11-09
- Source: leosmith.wtf (https://leosmith.wtf/blog/not-so-secure-boot.html)
- Hacker News: https://news.ycombinator.com/item?id=50423151

## Other languages

- zh: https://zeli.app/zh/story/50423151 · markdown: https://zeli.app/zh/story/50423151.md
- ja: https://zeli.app/ja/story/50423151 · markdown: https://zeli.app/ja/story/50423151.md
- ko: https://zeli.app/ko/story/50423151 · markdown: https://zeli.app/ko/story/50423151.md
- de: https://zeli.app/de/story/50423151 · markdown: https://zeli.app/de/story/50423151.md
- es: https://zeli.app/es/story/50423151 · markdown: https://zeli.app/es/story/50423151.md
- ru: https://zeli.app/ru/story/50423151 · markdown: https://zeli.app/ru/story/50423151.md
