microtun boot is an experimental Rust secure-bootloader project for ESP32-C3/C5/C6 chips and the RP2350 used in Pico 2 boards, with QEMU support for testing. It checks an application’s authenticity on every startup, processes pending upgrades, and refuses to run images that fail verification. It follows MCUboot’s image and flash-layout formats but uses FN-DSA-512 signatures over SHA-256, based on an experimental profile derived from a pre-standard FIPS 206 draft. Images must be signed with the project’s tools; stock MCUboot and imgtool cannot sign or verify them. Encrypted and compressed images are unsupported.
Upgrade options include scratch-based swapping with rollback and power-failure recovery, overwrite-only updates, and direct-XIP modes with or without reversion. Security policies include downgrade prevention, minimum-version checks, and hardware anti-rollback counters, though the counter is temporarily disabled on ESP32-C5. The repository provides board-specific build and flashing instructions, examples, host-side tests, QEMU regression tests, and hardware smoke tests. Building requires Rust 1.95 or newer, imgtool, and the microtun-signer CLI; signing can use local development keys or a signer service. The project is independent of MCUboot and warns users to review its security guidance before product use. It is licensed for noncommercial use under PolyForm Noncommercial, with commercial rights available only through a separate written agreement.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.