Subscribe
0%
Illustration for: microtun boot brings post-quantum firmware signatures to ESP32 and Raspberry Pi Pico 2 chips. What it does, and the limits

microtun boot brings post-quantum firmware signatures to ESP32 and Raspberry Pi Pico 2 chips. What it does, and the limits

microtun boot is a Rust bootloader that checks firmware with an FN-DSA (Falcon) post-quantum signature before it lets an ESP32-C3/C5/C6 or RP2350 run anything. It reached Show HN the week post-quantum migration became urgent. But the signature scheme isn't standardised yet, the chips' own boot ROMs still use classical keys, and the licence bars commercial use without a paid agreement.

Listen to this article0:00 / 6:35
microtun/microtun-boot

Rust secure-boot bootloader using MCUboot's on-flash formats with an FN-DSA-512 post-quantum signature, for ESP32-C3/C5/C6, RP2350 (Pico 2) and QEMU

Language
Rust
License
PolyForm Noncommercial 1.0.0 (source-available; commercial licence on request)
Try it
python3 -m pip install imgtool && cargo test # host-side tests; flashing needs microtun-signer 0.16+ and a board directory
View on GitHub

microtun boot is a new Rust bootloader for small microcontrollers that refuses to run firmware unless it carries a valid post-quantum signature. It supports Espressif's ESP32-C3, ESP32-C5 and ESP32-C6, Raspberry Pi's RP2350 (the chip in the Pico 2 and Pico 2 W), and a QEMU target for testing. Posted to Hacker News as "Post-quantum secure boot for the ESP32 and Pico 2" by its author, Damian Peckett (dpeckett), it had 77 points and 25 comments on the Show HN list when we checked late on December 5.

Why it matters: secure boot is what stops someone with flash access from planting their own firmware on a device. On the chips this project targets, the boot ROMs use RSA or elliptic-curve signatures. A large quantum computer, or a mathematical break, would let an attacker forge those. After this week's NSA advisory urging an immediate move to post-quantum cryptography, the question "will my firmware signatures survive?" now applies to embedded devices too. The repo's own threat model links that advisory. microtun boot tries to answer it on low-cost hobby and IoT chips that are shipping today.

What it does

According to the README, microtun boot:

  • Verifies every image with FN-DSA-512 over SHA-256. FN-DSA is the name for Falcon in NIST's draft FIPS 206 standard. The project uses an "experimental" pre-standard profile (fn-dsa-512-exp) from the author's companion tool, microtun-signer. Encrypted and compressed images are rejected.
  • Reuses MCUboot's on-flash formats. It reuses the MCUboot open-source bootloader's image header, TLV metadata and trailer formats, so images are built with MCUboot's standard imgtool. The README stresses that the project isn't affiliated with MCUboot.
  • Handles upgrades. It supports swap-using-scratch (with test/permanent images, revert and resuming after a power cut), overwrite-only, and direct execute-in-place with or without revert.
  • Enforces policy. That includes downgrade prevention, a minimum version, and a hardware security counter for anti-rollback, stored in eFuses on ESP32-C3/C6 (16 epochs) and in OTP on RP2350 (504 epochs).

On Hacker News, Peckett gave rough costs. FN-DSA-512 signatures are 666 bytes and public keys 897 bytes. On a Pico 2, he said, verification benchmarked at about 4.8 ms (1.1 ms to decode the key plus 3.7 ms to verify) and used about 7 KiB of SRAM. These are the author's figures. We did not build or run the project.

The chain of trust is only partly post-quantum

The repo's THREAT-MODEL.md is unusually candid about this. microtun boot is the last signature check in a chain that starts in each chip's mask ROM, and those ROMs are classical and fixed in silicon:

Chip Who checks microtun boot Signature
ESP32-C3/C5/C6 Mask ROM, via ESP-IDF second stage (Secure Boot V2) RSA-3072
RP2350 (Pico 2) Mask ROM, directly secp256k1 ECDSA

For the RP2350, the threat model says outright that a forged ROM signature would let an attacker install their own bootloader and key ring. It lists no fix in silicon, and advises choosing a part whose ROM verifies a post-quantum signature if you need that assurance. The top Hacker News comment, from user Tharre, made the same point. Peckett replied that RSA-3072 on the ESP32 should hold up better, and that the Pico 2 likely needs a new silicon revision.

Espressif's own October 14 post on post-quantum cryptography confirms the ROM side. It says the ESP32 mask ROM supports only classical Secure Boot V2, and that its own evaluation example adds an ML-DSA-65 check in the second-stage bootloader in software. That example uses a different algorithm from microtun boot's FN-DSA, and Espressif labels it as for evaluation and benchmarking.

Other limits worth knowing

  • Experimental, by its own description. SECURITY.md says that only the latest commit is supported, that formats and security behaviour may change without notice, and that maintenance is best effort.
  • ESP32-C5 has no hardware anti-rollback for now. The threat model says the security counter is disabled on the C5 because of an eFuse issue with esp-hal 1.2.2. There is also no hardware rollback protection for microtun boot itself on any board.
  • Not open source. The licence is PolyForm Noncommercial 1.0.0, which the README calls "source-available," with commercial use only under a separate written agreement.
  • Algorithm debate. Commenter amluto argued that a hash-based scheme such as SLH-DSA would be a safer long-term bet for code signing. Peckett said he plans to look at adding SLH-DSA.
  • Young code, AI-assisted. The public history starts on November 23, 2026, with 22 commits and tags v0.1.0 to v0.7.0, all from one author. Post-quantum support landed on December 4. Peckett said history was squashed before release, that it reflects a couple of months of work, and that LLMs were used with heavy human design and hardware-in-the-loop testing.

Who should look at it

Firmware engineers who ship ESP32 or RP2350 devices with long lives, and who want to try post-quantum image signing on real hardware now rather than wait for vendor silicon. Read THREAT-MODEL.md first: it lists the integrator checklist and every known limitation. If you want a post-quantum root of trust today, the honest answer from both the author and Espressif is that it needs new chips. Espressif says future SoCs will build post-quantum secure boot into their verification workflows, but gives no chip or date.

Sources

  1. GitHub — microtun/microtun-boot (README, THREAT-MODEL.md, SIGNING.md, SECURITY.md, LICENSE, commit history and tags) github.com
  2. Hacker News — Show HN: Post-quantum secure boot for the ESP32 and Pico 2 (discussion with author replies) news.ycombinator.com
  3. Espressif Developer Portal — Post-Quantum Cryptography on ESP32 (Oct 14, 2026) developer.espressif.com

#microtun boot#secure boot#post-quantum cryptography#FN-DSA#Falcon#ESP32#RP2350#Raspberry Pi Pico 2#MCUboot#Rust#embedded#Show HN