Login
You're viewing the ruby.social public feed.
  • Nov 27, 2026, 10:27 AM

    …we'll accept the unauthenticated PE addons, and at the same time hash them and store the hashed list in a special persistent EFI variable that is only accessible to pre-boot (i.e. not to the OS). On subsequent boots this variable in the system's NVRAM exists already, which we'll see and then *only* accept the same PE addons again, but no further ones.

    Note that this mechanism is opt-in: this TOFU scheme is never done unless the UKI vendor explicitly opted into it, for a specific profile.

    💬 1🔄 0⭐ 0

Replies

  • Nov 27, 2026, 10:30 AM

    Not defaulting to this matters, because upgrading from systems without this TOFU scheme to systems with it is not obvious. Something that isn't a first boot of the OS might appear as one, as the TOFU EFI variable didn't exist yet. By making this opt-in this upgrade pitfall will not exist unless developers opted into it explicitly.

    What's the usecase for all of this? Here at @amutable we want to be able to configure the first boot of the OS in a reasonable way, without compromising security…

    💬 1🔄 0⭐ 0
  • Nov 27, 2026, 10:32 AM

    @amutable …of subsequent boots. In particular we want to insert user-owned dm-verity signing keys into a fresh OS installation before it is booted for the first time.

    (More details about using this for dm-vertity signing keys, we'll have a in a later post in this series).

    💬 1🔄 0⭐ 0
  • Nov 27, 2026, 10:35 AM

    @amutable In case you wonder how reliable the security of those special pre-boot EFI variables unaccessible to the OS is, do note that this is also what SHIM uses to store its keyrings, hence it all rests on the same basic security concepts UEFI provides.

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0