A Raspberry Pi Pico became a working FIDO2 security key after one failed flash and a necessary wipe. This hands-on write-up explains the Pico FIDO setup, the failure, the phishing resistance, and the physical security limits.
How a Raspberry Pi Pico became a working FIDO2 security key, why the first flash failed, and where the cheap version stops being a serious hardware wallet.
A conference freebie became one of the most useful pieces of hardware on our keyrings.
The board was a Raspberry Pi Pico, the small microcontroller that usually ends up driving LEDs, reading sensors, or sitting in a drawer after a weekend project. The software was Pico FIDO, an open-source project that turns compatible Raspberry Pi Pico and ESP32 boards into FIDO authenticators.
That combination is a strange contrast. A commercial security key can cost more than forty pounds. A Pico is inexpensive, widely available, and built to be programmed. The firmware gives it a very different job: WebAuthn, FIDO2, U2F, passkeys, PIN-protected credentials, and one-button user presence.
The result is not a counterfeit YubiKey. It is an open-source authenticator that speaks standard protocols and appears to a computer as a USB security key. That distinction matters. It is also why the project is interesting enough to build and limited enough that I would not use it as my only recovery path for an important account.
The board that sat in a bag
Goa, 2024. There was a conference, a swag table, and a small bag of hardware that looked like the kind of thing people take home and forget. Inside was a Raspberry Pi Pico. It was small, green, and had a microcontroller on it, which was enough reason to keep it.
The board stayed untouched for months. Later, while clearing a desk, we started talking about two-factor authentication. We had all gone through the same setup process: authenticator apps, recovery codes, SMS fallbacks, and the quiet realization that a time-based one-time password can still be phished if a user types it into the wrong page.
A hardware key solves a different problem. The browser binds a FIDO credential to the legitimate relying party. A phishing site can imitate a login page, but it cannot ask the authenticator to produce a valid response for another origin. The FIDO Alliance describes passkeys as phishing-resistant because of verifier name binding. That is the useful part of the standard, not the brand printed on the plastic.
CVE-2026-99362 turns a small NFSv4.1 and NFSv4.2 reply-cache negotiation value into a kernel memory corruption boundary. Here is what the primary records show about scope, exploit evidence, patch status, and safe containment.
CVE-2026-138445 shows how Umami's Reports API let a client supplied filter prefix reach PostgreSQL query structure. The patch is a precise lesson in separating request data from SQL identifiers, and in verifying source revisions when a fix lands after the latest release.
Nov 30, 2026 / Jahan
The commercial keys are polished and purpose-built. The Pico was already in the drawer. We looked for firmware and found Pico FIDO.
What Pico FIDO actually provides
Pico FIDO is more than a demonstration that makes a microcontroller blink when a browser sends it a challenge. The project's documentation lists CTAP 2.3 and CTAP 1 support, WebAuthn, U2F, PIN-based user verification, discoverable credentials, a physical user-presence button, OATH credentials, TOTP and HOTP support, and compatibility with common authenticator tooling.Pico FIDO project
That makes the Pico useful in two different ways. It can act as a normal FIDO security key for sites that support passkeys or security keys, and it can expose additional authenticator functions such as OATH codes or a keyboard-style one-time-password mode. The second category is convenient, but it should not blur the distinction between a phishing-resistant FIDO credential and a typed OTP. A TOTP code is still a code that can be entered into a fake page. FIDO is strongest when the browser and authenticator perform the origin-bound ceremony together.
The project also supports more recent hardware. The repository's security notes draw a sharp line between the older RP2040 and the RP2350 used in the Pico 2. An RP2040 does not provide the same hardware security features for protecting secrets stored in flash. If somebody steals the board, reads the flash, and obtains the relevant key material, the physical security story is poor. Pico FIDO documents secure boot, secure lock, and OTP-backed key protection for RP2350-class hardware and selected other chips.Pico FIDO security considerations
That is the first important qualification. The low price is real, but the security properties depend on the silicon.
What you need
You need a compatible Raspberry Pi Pico, Pico W, Pico 2, or Pico 2 W, a USB cable that carries data, and a Windows 10 or 11 PC for the setup described here. A Linux or macOS workflow may work as well, but this write-up follows the Windows path we used.
The cable is the least interesting part and the most common source of wasted time. A charge-only micro-USB cable can power the board without exposing the USB mass-storage interface needed for flashing. Test the cable with another device before assuming the Pico is broken.
You also need the correct firmware file. The board family matters:
Boards built around RP2040 use the Pico firmware image.
Boards built around RP2350, including Pico 2 models, use the Pico 2 firmware image.
The chip marking is visible on the large package in the middle of the board. Do not guess based only on the board's shape. Download the current board-specific UF2 from the Pico FIDO release page, and keep a copy of anything already stored on the board before flashing it.
The installation that looked too simple
The Pico has a ROM-level BOOTSEL mode. That means the recovery path is not dependent on the firmware currently installed on the flash chip. Hold the white BOOTSEL button while connecting the Pico to the computer, then release it after the removable drive appears.
On a normal Pico, Windows shows a drive called RPI-RP2. The Pico 2 may identify itself differently. The important point is that the board exposes a UF2 drop area rather than starting the application already stored in flash.
The first time, the process seems almost comically easy. Copy a firmware file onto the drive, wait for the drive to disappear, and the board reboots into its new role. The problem is that the flash may contain data from an older project. A board that has carried CircuitPython, MicroPython, or a half-finished experiment can retain state at addresses the new firmware expects to use.
Pico FIDO has a specific storage layout for credentials and other device state. The project also provides a rescue interface for devices that become unresponsive or undetectable, but it is better not to create the problem in the first place.Pico FIDO repository
Wipe before you flash
Raspberry Pi provides a small UF2 utility called flash_nuke.uf2. Its job is to erase the flash before you install new firmware.
The clean sequence is:
Disconnect the Pico.
Hold BOOTSEL while connecting it to the PC.
Wait for the UF2 drive to appear.
Copy flash_nuke.uf2 onto the drive.
Wait for the board to reboot and for the drive to appear again.
Copy the board-specific Pico FIDO UF2 onto the drive.
Wait for the board to restart as a FIDO device.
The wipe is not cosmetic housekeeping. It removes old application data and avoids a firmware upgrade inheriting assumptions from whatever occupied the board before. In our case, skipping it produced a board that went quiet immediately after flashing. There was no useful LED pattern, no new drive, and no obvious error. Windows made the USB connection sound and then behaved as if nothing had happened.
BOOTSEL brought the board back. The nuke utility cleared the stale state. The second firmware flash worked.
How to tell whether it worked
Windows should expose more than one interface after Pico FIDO starts. Device Manager may show an HID-compliant FIDO device, a Microsoft USB smart-card reader, and an HID keyboard device, depending on the firmware features and enabled interfaces.
The FIDO HID entry is the important one for passkeys and security-key authentication. The smart-card interface relates to functions such as OATH. The keyboard interface is useful for typing generated one-time passwords, but it has a different threat model from WebAuthn.
The Pico FIDO project documentation explains that the firmware uses the standard HID driver, which is why a supported operating system and browser can interact with it without a custom driver package. If no interface appears, go back to basics before blaming the firmware: use another USB port, avoid a hub, test another data cable, and return to BOOTSEL.
Set the PIN, then test the ceremony
After Windows recognizes the key, set a PIN through the operating system's security-key settings. Use a PIN you can recover from your password manager or remember reliably. A hardware key is useful only while you can still use it, and repeated incorrect attempts can trigger lockout behavior.
The next step should be a test site, not your most important account. WebAuthn.io provides a convenient way to register and authenticate a security key. Choose the security-key option, follow the browser prompt, touch the Pico's button when asked, and verify that the same credential can authenticate afterward.
This test checks the entire path: USB detection, browser support, CTAP communication, PIN handling, user presence, credential creation, and assertion verification. It also gives you a chance to discover a bad cable or an incomplete flash before you start changing account security settings.
Adding the key to real accounts
Once the test succeeds, add the Pico as a separate security key or passkey on each account. The wording differs by service, but the principle remains the same: register the physical security key first, then use it during sign-in or confirmation.
Google exposes passkeys and security keys under account security settings. GitHub places them under password and authentication settings. Microsoft lists them among the available sign-in methods. OpenAI accounts also allow passkeys or security keys through their security settings. These interfaces change, so follow the current account page rather than treating an old menu path as permanent documentation.
There is one easy mistake in account flows that offer several authenticators. If a site asks you to authenticate with selected keys, that list usually contains only credentials already attached to the account. Add the Pico first. Selecting it before registration cannot work because the relying party has no credential for that key yet.
Keep another recovery method. A second hardware key is the cleanest option. Recovery codes and an authenticator app are better than being locked out, even though they do not offer the same phishing resistance as FIDO. The homemade key should be an additional factor, not the only door into an account that would be painful to lose.
The security trade-off nobody should skip
Against remote phishing, the Pico is doing the job we want. The browser and the authenticator bind the credential to the legitimate site, so a fake site cannot simply replay the hardware response for its own origin. That is the main reason to prefer FIDO over a manually entered OTP when a service supports it.FIDO Alliance passkey guidance
Physical theft is different. On an RP2040 board, Pico FIDO's own security notes warn that private or master keys stored in flash may be exposed if an attacker can dump the device. The chip lacks the same hardware-backed protection available on newer platforms.Pico FIDO security considerations
The Pico 2 uses the RP2350, which adds a more serious hardware security foundation. Raspberry Pi documents secure boot, OTP storage, key fingerprints, access controls, and separation between secure and non-secure execution contexts for the RP2350 platform.Raspberry Pi's RP2350 security white paper Pico FIDO can use secure boot and secure-lock features on supported RP2350 configurations, but those protections depend on how the firmware and device are configured. Buying a Pico 2 does not automatically turn every deployment into a professionally managed hardware security module.
That makes the hardware choice important. An RP2040 Pico is a cheap and useful way to learn FIDO, build a spare authenticator, or keep a low-risk account protected from remote phishing. An RP2350 Pico 2 is the better choice when physical extraction matters. Neither replaces a threat model.
The four-dollar calculation
The appeal is not that a Pico is secretly equivalent to every commercial security key. It is that the board gives you a real, standards-based authenticator at a price that makes experimentation possible.
You can see how the pieces fit together. The FIDO protocol handles the origin-bound authentication. The browser handles the relying-party interaction. The board provides the button and stores the credential. The firmware turns a general microcontroller into the expected USB interfaces. The wipe step prevents old flash state from poisoning a new install.
The part that costs more than the hardware is the judgment around it. You need to understand what the board protects, what it does not protect, and what happens when the board is lost. You need a backup key. You need recovery codes. You need to avoid treating a cheap device as a vault simply because it produces the same browser prompt as a commercial product.
What we took away
A conference freebie became a working security key after one failed flash and one boring correction. Most of the installation really is dragging files onto a removable drive. The part worth remembering is the step that feels unnecessary: erase the old flash before installing firmware that expects to own the storage layout.
Pico FIDO makes the experiment approachable because the project exposes real FIDO and WebAuthn functionality rather than a toy login demo. Its limitations are just as useful to understand. RP2040 storage does not provide the physical protection of a newer secure-capable microcontroller. The Pico 2 improves that position, but the device still needs sensible enrollment and recovery practices.
If you have a Pico in a drawer, this is a worthwhile project. Start with the correct board image, use a real data cable, wipe the flash, test the key before attaching it to important accounts, and register a backup before you lose the first one.
That is a better security lesson than the price tag suggests.