hn.today

Show HN: Post-quantum secure boot for the ESP32 and Pico 2

github.com83 points29 comments
Screenshot of Show HN: Post-quantum secure boot for the ESP32 and Pico 2

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.

Read on github.com29 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

Practical Quantum Safe Bitcoin

Practical Quantum Safe Bitcoin

Practical Quantum Safe Bitcoin presents Legacy and SegWit methods designed to protect Bitcoin spends against quantum attacks, with adjustable security levels and measured signing times. SegWit versions meet standard relay limits, and spends using both methods have been mined on Bitcoin mainnet. (github.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.