惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
B
Blog
月光博客
月光博客
博客园 - 【当耐特】
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Jina AI
Jina AI
博客园 - Franky
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Last Week in AI
Last Week in AI
B
Blog RSS Feed
H
Help Net Security

Hacker News

GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Bonsai 1-bit WebGPU - a Hugging Face Space by webml-community Moving a large-scale metrics pipeline from StatsD to OpenTelemetry / Prometheus GitHub - Nightmare-Eclipse/RedSun: The Red Sun vulnerability repository GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - macOS26/Agent: Any AI, replaces Claude Code, Cursor, OpenClaw. Over 18 LLM providers (Claude, OpenAI, Gemini, Ollama, Zai, HF, Qwen) wired into a native Mac app that writes code, builds Xcode projects, bumps versions, manages git, automates Safari, use AppleScript, JS or Accessibility, extend Agent! w/ MCP Servers, run tasks from your iPhone via Messages. YouTube now lets you turn off Shorts I Made a Terminal Pager Burgers | マクドナルド公式 Commands — HackerNews CLI documentation ChatGPT for Excel PiCore - Raspberry Pi Port of Tiny Core Linux Live Nation illegally monopolized ticketing market, jury finds Google Broke Its Promise to Me. Now ICE Has My Data. Founding Engineer at Adaptional | Y Combinator CRISPR takes important step toward silencing Down syndrome’s extra chromosome GitHub - saffron-health/libretto: The AI toolkit for building reliable browser automations US v. Heppner (S.D.N.Y. 2026) no attorney-client privilege for AI chats [pdf] Retrofitting JIT Compilers into C Interpreters IPv6 – Google The Accursèd Alphabetical Clock Cybersecurity Looks Like Proof of Work Now Fragments: April 14 Cal.com Goes Closed Source: Why AI Security Is Forcing Our Decision | Cal.com - Scheduling Software for Online Bookings Laravel raised money and now injects ads directly into your agent When moving fast, talking is the first thing to break Too much Discussion of the XOR swap trick – Heather Cafe Introduction to Spherical Harmonics for Graphics Programmers The Grand Line
Lanzaboote: Towards Secure Boot for NixOS
2026-05-10 · via Hacker News

Secure Boot protects a system from an attacker that compromises the boot flow. For example, without Secure Boot it is easy to replace the code that reads your disk encryption password and store it somewhere where the attacker can pick it up later. So ideally you want Secure Boot to be enabled to limit the code that runs on your system to what is supposed to run there.

Unfortunately, NixOS, the Linux distro I use as a daily driver, does not have Secure Boot support. Something had to be done. On an island. 🌴

While attending the Ocean Sprint, a Nix-focussed hackathon, I chose to team up with nikstur and raitobezarius to work on Secure Boot for NixOS!

The sprint was an amazing opportunity to network with seasoned Nix veterans and also great fun in general. Many thanks to zupo and Domen for organising it!

Secure Boot with systemd-boot

Maybe some background first. As other distros, NixOS boots via systemd-boot on UEFI systems. For Secure Boot to work, systemd-boot demands UKIs. UKI is a format that is intended to wrap a Linux kernel, its command line and the initrd into a EFI application. This EFI application is then signed.

For UKI, the boot flow looks like this.

  1. UEFI verifies and loads systemd-boot.
  2. systemd-boot looks for UKIs and the user can select one to boot.
  3. systemd-boot loads and starts the UKI.
  4. The UKI boots the Linux kernel and intrd that it finds embedded in itself.

The chain of trust of Secure Boot is maintained by UEFI. All components use LoadImage to load files and LoadImage verifies the embedded signatures.

It’s an elegant design that avoids duplicating crypto in the boot loader and shoves all of this to UEFI.

NixOS-specific Problems and Solutions

NixOS users tend to have many system generations lying around. Each of those needs to have a boot loader entry. In the “traditional” UKI flow described above, this would mean a fat UKI binary, including kernel and initrd that may not even have changed, for every generation. Your ESP would quickly fill up.

For NixOS, we wanted to retain the ability to store Linux kernel and initrd separately from the UKI. This means we needed to develop our own stub.

Lanzaboote: A EFI UKI Stub for NixOS

To solve the above problem, we developed a small UEFI application (lanzaboote) that conforms to the UKI spec without embedding kernel and initrd into the UKI itself. Instead we only embed path names and defer signature checking to UEFI with LoadImage.

Lanzaboote is developed in Rust. Because the x86_64-unknown-uefi target is now a Tier 2, the development environment is nice. No need for build-std anymore. I also want to highlight the rust-osdev/uefi-rs project. It helps enormously to take the hassle out of dealing with UEFI.

Integration in Nixpkgs

The biggest blob of work is integrating this all into NixOS and nixpkgs. This is where nikstur and raitobezarius lead the effort.

We now have lanzatool for assembling the UKI, signing binaries and populating the ESP. We also have the NixOS modules to install everything during nixos-rebuild switch.

And of course we have integration tests. 👍

Root of Trust

So far we do not have a way to establish a chain of trust from the (Microsoft) keys that your laptop trusts by default. This means the user has to generate their own keys, which is a bit of an intimidating process. These keys then also have to be enrolled in the firmware.

We plan on streamlining this as much as possible, but so far this has not happened yet.

Get Involved

These are still early days and quite a bit has to happen before Secure Boot for NixOS can be upstreamed. The current status can be found by reading lanzaboote README. If you want to help out, please join us on #nixos-secure-boot:ukvly.org.

I’ll leave you with this screenshot of the GNOME Device Security tab:

If someone knows, what’s up with the question mark, please comment on this issue.