Your YubiKey is still one of the best defenses against credential phishing you can buy. It also relies on cryptography that is suddenly under a lot of scrutiny. Both of these things are true at the same time, and that’s what makes this week’s news so awkward.
And it’s not just YubiKeys. The TPM in your laptop, the secure element in your phone and the HSMs in your data center lean on many of the same curves.
What happened this week
On December 2, the NSA urged operators of National Security Systems to speed up the move to post-quantum cryptography. The advisory, Immediate Actions to Push Toward Post-Quantum (PP-26-4956), came after AI labs privately disclosed discoveries affecting cryptography in use today. Note that the trigger wasn’t a breakthrough in quantum computing.
The same day, the NSA, CISA and the White House cyber office put out a joint statement saying the advances don’t constitute an immediate, widespread threat.
Nobody has publicly said what broke. So everyone is reading tea leaves. One of the more careful readings comes from Filippo Valsorda, who maintains Go’s cryptographic libraries. His conclusion is that 256-bit elliptic curves are likely broken or substantially weaker than previously believed. If he’s right, P-256 and the Curve25519 family (including Ed25519) are among the algorithms worth reassessing.
Why does this matter for your YubiKey? Every YubiKey 5 supports P-256, and it’s widely used for FIDO authentication. Newer firmware also supports Ed25519. What the other applications on the device use depends on how they were provisioned. P-256 is also common in TPMs and phone secure elements, which I’ll get to later.
So I did what I’d want a vendor to do. I built the strongest case I could that YubiKeys are in trouble. Then I tried to break it. I’m using the YubiKey as the worked example because it’s the hardware key most of us actually carry, but most of the reasoning carries over to other hardware.
The steelman: your YubiKey is in trouble
Here’s the alarmist case at its strongest. I’ve tried to keep the evidence separate from the inference.
1. The advisory points at your curves by omission. The inventory step singles out EdDSA and ECDH/ECDSA curves other than P-384 and P-521, alongside a few other algorithm families. RSA isn’t among those examples. The advisory recommends RSA-3072 or P-384 as the baseline for roots when updating infrastructure, with a footnote acknowledging that RSA-2048 may be needed for legacy support. There’s no comparable exception for P-256. See pages 1 and 2 of the original advisory.
2. The browser vendors are acting like it’s real. Chrome intends to stop trusting P-256 CA keys on March 15, 2027. That applies to root and intermediate CA keys, not P-256 across the board, although Google also recommends moving server keys off the curve. Mozilla’s cryptographers say they haven’t been told what the discovery is, but understand that there has been a substantial classical cryptanalytic advance. They describe a possible “immediate but narrow threat” to high-value targets. Browser vendors don’t set migration deadlines like this lightly.
3. The attack appears to be classical. That’s Mozilla’s understanding, not a published result. One outside analysis speculates that a new algorithm could beat Pollard’s rho and cut the work against 256-bit curves from roughly 2^128 to somewhere between 2^64 and 2^85 operations. Those numbers are speculation, not measurements. Even 2^64 elliptic-curve operations is an enormous computation. Whether an attack like this is practical depends on the type of operation, memory, parallelism, and whether precomputation can be reused across targets. None of that is public.
4. You can’t patch an existing YubiKey. Yubico’s firmware manual confirms the firmware can’t be updated after programming. We saw what that means in 2024, when an Infineon side-channel vulnerability meant replacing affected devices to get a hardware-level fix. The same goes for adding new algorithms to an existing YubiKey 5. Yubico’s next-generation PQC key uses a new secure element, so if you want native PQC, you’ll need a new device.
5. The common algorithm is the weak spot, and you rarely get to pick. According to Yubico’s technical manual, FIDO2 on the YubiKey 5 supports P-256 across the series, Ed25519 from firmware 5.2 and P-384 from 5.6. But the relying party offers the algorithms it accepts, and the client and authenticator negotiate from there. As a user, you generally can’t force a website to create a P-384 passkey. Hardware support is only one part of the equation.
6. Public keys are more exposed than you might think. SSH and OpenPGP public keys are often published on purpose. WebAuthn credential public keys are stored by relying parties and may also end up in backups or logs. With ECDSA, you can recover candidate public keys from a signature and its message (SEC 1, section 4.1.6). And if X25519 itself is weakened enough, recorded TLS sessions that relied only on X25519 key agreement could become decryptable later. A properly implemented hybrid ML-KEM key exchange is meant to address that confidentiality risk. In other words, passkey registration and login traffic could become relevant even without a breach of the relying party’s database.
7. Attestation is classical too. Existing YubiKey attestation relies on classical cryptography. If the attestation signing keys or their trust chains become forgeable, software could pose as an approved hardware authenticator during registration. That would weaken enterprise policies that rely on attestation to enforce hardware-only enrollment. It wouldn’t automatically compromise every existing credential. Yubico’s next-generation beta includes an updated attestation design that’s meant to evolve with the emerging FIDO standards.
Put it all together: the curves are suspect, existing devices can’t change, the ecosystem limits your choice of algorithm, and the replacement hardware is in beta. That’s a serious argument, and I don’t think it should be dismissed.
Where the steelman breaks
The alarmist case is strong on circumstantial evidence. It’s a lot weaker on what we actually know about the attack and what it means in practice.
Nothing is published, and the continuity reading is credible. The advisory doesn’t explicitly name P-256. The NSA’s guidance for National Security Systems already moved toward stronger classical algorithms back in 2015. The new inventory list is also broader than a warning about 256-bit curves. It includes all of EdDSA, even though Ed448 exists, and exempts P-521 from one inventory example even though P-521 isn’t in the advisory’s CNSA 1.0 appendix. The alternative reading is that this is simply an accelerated version of an existing migration plan. That doesn’t explain away the browser vendors’ response, but it’s a good reason not to read the inventory list as a disclosure of what’s broken.
A YubiKey login is a signature, not an encrypted secret. A captured WebAuthn assertion can’t just be replayed against a fresh challenge. And unlike an encrypted archive, an old login doesn’t contain a secret that needs to stay confidential for decades. However, if the signature algorithm becomes practically breakable, a captured public key (including one recovered from an ECDSA assertion) could enable impersonation down the line. Migrating means enrolling a credential that uses an unaffected algorithm and then explicitly removing trust in the old one. Re-enrolling on the same suspect curve doesn’t fix anything.
The public key matters, but it isn’t a security boundary. WebAuthn doesn’t usually publish credential public keys the way SSH and OpenPGP often do. TLS protects the traffic in transit, and most relying parties don’t publish their credential databases. That narrows some attack paths, but it’s no guarantee of secrecy. We also can’t assume the undisclosed attack needs an expensive computation per key. A reusable precomputation or a multi-target attack would change the economics considerably.
“Narrow” is carrying a lot of weight. Mozilla’s assessment is about well-resourced state actors and high-value targets. If that’s you, start assessing your exposure now. For most people, credential phishing, session theft and account recovery abuse are still the more immediate risks. FIDO2 gives you excellent phishing resistance, but it can’t generally stop someone from stealing an already authenticated session or bypassing it through a weak recovery process. Giving up hardware-backed FIDO today would mean throwing away a proven defense because of a risk nobody has quantified.
The hardware isn’t known to be broken. Breaking a public-key algorithm is not the same thing as extracting a private key from a secure element. The hardware still enforces PIN and touch policies and still stops ordinary key export. But if an attacker can derive an equivalent private key mathematically, those physical protections won’t stop forgery. Symmetric functions like OTP and HMAC have no known direct exposure to the suspected elliptic-curve weakness.
So the steelman survives, but in a much narrower form. Rather than “YubiKeys are broken,” it boils down to this: long-lived credentials that depend on suspect 256-bit curves deserve a fresh risk assessment, especially where the public keys are easy to get hold of or the consequences of compromise are severe.
The YubiKey audit, function by function
A YubiKey is really several products in one shell, and they don’t share a risk profile. The table below describes what happens if the suspected weakness turns out to be practical. It’s not a list of demonstrated YubiKey vulnerabilities.
| Function | Suspect algorithms | Exposure and impact | Interim mitigation |
|---|---|---|---|
| OpenPGP encryption subkey | X25519, P-256 ECDH | Public keys often published; historical and future ciphertext at risk | P-384 or RSA-4096; plan PQC encryption |
| PIV key management (9d and retired slots) | P-256, X25519 where supported | Certificate public keys; encrypted data or wrapped keys at risk | P-384 or RSA-3072/4096 on firmware 5.7+ |
| OpenPGP and PIV signing | Ed25519, P-256 | Public verification keys; forged releases, documents or commits | P-384 or RSA-4096; update verifier trust |
| PIV authentication (9a, 9e) and OpenPGP authentication | P-256, Ed25519 where supported | Certificates or public authentication keys; identity impersonation | P-384 or compatible RSA keys |
| SSH with FIDO keys | ed25519-sk, ecdsa-sk (P-256) | Public keys often distributed widely; unauthorized access | Hybrid ML-DSA where supported, or PIV-backed P-384/RSA |
| FIDO2 passkeys and U2F | P-256, Ed25519 (FIDO2 where supported) | Relying-party records and potentially captured assertions; forged login | Retain phishing-resistant MFA; prepare migration |
| FIDO, PIV and OpenPGP attestation | Depends on signing keys and trust chain | Forged hardware provenance | Vendor and verifier mitigation |
| Yubico OTP, OATH-TOTP/HOTP, HMAC | Symmetric primitives | No known direct impact from suspected ECC weakness | Keep |
Algorithm support comes from Yubico’s manuals for FIDO, PIV and OpenPGP. OpenPGP ECC support starts with firmware 5.2.3. PIV supports RSA-3072 and RSA-4096 from firmware 5.7.
A few things didn’t fit in the table.
Encryption has a harvest-now problem. Moving to P-384 or RSA-4096 may reduce your exposure to the suspected classical attack, but neither is post-quantum. Long-lived confidential data ultimately needs a proper PQC or hybrid encryption scheme. Re-encrypting protects the copies you still control. It can’t protect ciphertext someone else has already captured. Keep the old decryption keys somewhere safe until your historical data and backups have been migrated or have aged out of retention.
Signing keys have a backdating problem. If your release key becomes forgeable, an attacker can sign a malicious artifact and claim it’s old. Independently trusted timestamps and transparency logs can help prove that a signature or artifact existed before a compromise, provided those systems and their own trust anchors are still secure. A bare signature on a tarball can’t. Rotating a release key also isn’t enough if verifiers still accept the old one. I’d argue firmware signing and Secure Boot trust anchors deserve even higher priority than personal encryption keys, given their blast radius and how hard they are to replace.
SSH is the awkward one. OpenSSH 10.6 supports hybrid ML-DSA/Ed25519 authentication with ssh-mldsa44-ed25519. The FIDO-backed SSH key types are still just ed25519-sk and ecdsa-sk. A P-384 or RSA key in a YubiKey PIV slot, used through compatible PKCS#11 middleware, is an interim hardware-backed alternative. Generate it on the device, set sensible PIN and touch policies, and test both client and server before you retire the old credential. Keep in mind that PIV and FIDO don’t offer identical security properties. Also, SSH key exchange and authentication are two separate things. Your session may already be using hybrid post-quantum key exchange while still authenticating with classical keys.
Your firmware decides your options. Below 5.7, there’s no RSA-3072 or RSA-4096 in PIV. Below 5.6, there’s no P-384 in FIDO2. And no existing YubiKey 5 can be updated to add ML-DSA. On top of that, just because the device supports an algorithm doesn’t mean the application using it does.
It’s not just YubiKeys
To be clear, the advisory doesn’t name any hardware. There’s no mention of TPMs, HSMs, secure elements or tokens. What it does say is to inventory identity credentials, update firmware to enable PQC, and “Record products that cannot be upgraded as a risk.” That last line is the one that matters here. Everything below is my read of how the same curve question plays out on other hardware, not something the NSA said.
TPMs. The TPM in your laptop backs a lot more than you might think. On Windows, that includes Windows Hello for Business (where recent versions of Windows 11 also store passkeys), BitLocker, Measured Boot and device attestation (Microsoft). The current TCG PC Client profile requires both P-256 and P-384, plus RSA-2048 and RSA-3072 (TCG). But older TPMs often only do RSA-2048 and P-256 (more on that below). The good news is that, unlike a YubiKey, TPM firmware can be updated in the field. That’s how ROCA was fixed back in 2017. TCG also added ML-DSA and ML-KEM to the TPM library spec in March. What I haven’t found yet is shipping PQC TPM hardware, or any confirmation that existing TPMs can get PQC through a firmware update.
Phones. On Apple devices, P-256 is the only classical elliptic curve the Secure Enclave exposes through CryptoKit. As of iOS 26 and macOS 26, it also supports ML-KEM and ML-DSA, which puts Apple ahead of most. Keep in mind that passkeys in iCloud Keychain are synced across your devices, so they aren’t bound to one Secure Enclave. On Android, StrongBox is more limited. For asymmetric keys, it supports RSA-2048 and P-256 and nothing else. Android 17 adds ML-DSA to Keystore, but in the TEE, not StrongBox.
HSMs and cloud KMS. These are in the best shape. They’re firmware-upgradable, they already support P-384 and larger RSA keys, and most now offer PQC. AWS KMS has ML-DSA and ML-KEM key specs. Thales Luna added both in firmware, and Utimaco ships them as an in-field upgrade. Google Cloud KMS offers PQC at the software protection level for now, with HSM-backed PQC on its 2028 roadmap. If your HSM keys are on P-256, moving off is mostly a matter of picking a different key spec and rotating. That’s real work, but it’s not a hardware refresh.
A weaker key in hardware or a stronger key on disk?
This is where Matthew Garrett’s What do we do with keys? is worth reading. He has been advocating for keeping device identity keys in TPMs for years, and most TPMs more than a couple of years old only do RSA-2048 and P-256. RSA-2048 works, but signing is much slower, which hurts if every mTLS request goes through the TPM. His reasoning is that extracting a key from a TPM probably costs a few tens of thousands of dollars at most. So if breaking P-256 costs more than that, he’s “probably still safer keeping my weak keys in hardware than I am having strong keys on disk.” The catch, as he says himself, is that nobody outside knows what breaking P-256 actually costs.
I quite like this take. A P-384 key in a file on disk can be copied by any malware that lands on the machine, quietly and at scale. A P-256 key in a TPM, YubiKey or Secure Enclave forces the attacker to either get physical access or pay whatever the new cryptanalysis costs, and to pay it per key unless the work can be amortized. Until we know that number, I wouldn’t pull keys out of hardware just to get a bigger curve. Upgrade within the hardware where you can (P-384 on a modern TPM, ML-DSA on the Secure Enclave), and plan the hardware refresh where you can’t.
What to do now
Don’t pull your YubiKeys. Don’t move keys out of hardware just to get a bigger curve. Don’t go back to TOTP just because of the advisory. Instead, work through the list below, prioritizing by exposure, blast radius, data lifetime and how hard things are to replace.
- Inventory. Find your 256-bit curve keys on YubiKeys, TPMs, phones and HSMs, as well as on disk. Include the algorithms used by the protocols, certificates and trust chains around them.
- Prioritize long-lived encryption and critical trust anchors. For exposed OpenPGP encryption and PIV key management keys, consider P-384 or RSA-4096 as a stopgap, and plan a real PQC migration. Re-encrypt data you control where it makes sense. Treat firmware and release signing roots as high priority when a lot depends on them downstream.
- Rotate exposed signing keys. Update the systems that verify signatures, not just the ones that produce them. Preserve independent evidence of historical signatures where you need it.
- Review production SSH. Move high-value access off suspect curves where there’s a compatible alternative. Prefer hybrid ML-DSA authentication where it’s supported, or PIV-backed P-384/RSA if you need hardware isolation. Test the new access before revoking the old keys. And deal with key exchange separately.
- Keep your passkeys. Keep two hardware keys enrolled where you can. Plan to enroll unaffected credentials once your providers and hardware support them, and explicitly revoke the old ones once you’ve migrated. High-risk organizations should look at additional independent authentication controls in the meantime.
- Think twice about large hardware orders. Yubico’s post-quantum key has been in public beta since November 3, and it isn’t meant for production use. Hold off on discretionary fleet purchases if you can, but don’t delay rolling out phishing-resistant MFA where you need it today. Ask your vendors about migration timelines and replacement options. The same applies to laptops and phones you’re buying partly for their TPM or secure element.
- If you run HSMs or a cloud KMS, check which key specs you’re actually using. Moving to P-384, RSA-3072 or larger, or ML-DSA where it’s available, is usually a key rotation rather than a hardware purchase.
- If you run a login system, test ML-DSA support across your relying party, browsers, clients and authenticators. Prefer it in your WebAuthn algorithm parameters where you can actually verify it, with ES256 as a compatibility fallback where appropriate. Validate the negotiated algorithm, and plan for larger public keys and signatures. Track which credentials use which algorithm so you can retire the fallback later.
Start with Seth Larson’s one-liners, then go further
For step 1, Seth Larson’s How to find and upgrade SSH and PGP keys using P-256, ED25519, and Curve25519, published December 4, is a great starting point. His two commands find suspect SSH keys loaded into your agent and OpenPGP keys in your local keyring, while filtering out hybrid post-quantum keys.
His fallback advice is sensible too: hybrid ML-DSA for SSH where supported, P-384 otherwise, or RSA-4096 as a stopgap. He suggests a migration window of roughly three months rather than treating this as a drop-everything event. I think that’s a reasonable planning horizon for a lot of ordinary setups, but it’s not a universal safety deadline.
It’s a starting point for a laptop, though, not a complete YubiKey audit:
- Hardware keys need special treatment. You can’t switch OpenSSH’s FIDO-backed key types to P-384 by changing the key size. A YubiKey-backed P-384 SSH credential needs a different interface, such as PIV with PKCS#11.
- The SSH check only sees your agent. You also need to review keys on disk, server-side
authorized_keys, SSH CAs, host keys and keys registered with your git hosting. - Finding PGP keys is only the first step. Treat encryption, signing and authentication subkeys separately, since their risk and retirement requirements differ.
- Passkeys, PIV and attestation are out of scope. And those are a big part of what a YubiKey does.
One small date correction: Google’s official Chrome deadline is March 15, not March 17. Larson’s article now references OpenSSH 10.6p2. If you played around with hybrid ML-DSA keys in OpenSSH 10.4, check the official release notes and regenerate those experimental keys before using the stable implementation.
To cover the device itself, add the following read-only checks, using a current version of YubiKey Manager:
# Device and firmware
ykman info
# FIDO capabilities and discoverable credentials (may prompt for PIN)
ykman fido info
ykman fido credentials list --csv
# PIV configuration and individual slots
ykman piv info
ykman piv keys info 9a
ykman piv keys info 9c
ykman piv keys info 9d
ykman piv keys info 9e
ykman piv keys info f9
# OpenPGP card and local secret-key references
gpg --card-status
gpg --list-secret-keys --with-subkey-fingerprint
# SSH agent keys and algorithms supported by the client
ssh-add -L
ssh -Q key
A few caveats. PIV key metadata for individual slots depends on your firmware and CLI version. If you use the retired key management slots 82 through 95, inspect those too. The FIDO credential list only includes discoverable credentials, so for non-discoverable WebAuthn and U2F credentials you’ll need the relying parties’ records. And ssh -Q key lists the algorithms your client supports, not the keys you own. None of these commands on its own proves you’ve accounted for every credential.
What we still don’t know
This advice will age. These five open questions will decide how quickly:
- What the attack costs. Every estimate of the cost so far is speculation, and operation counts alone don’t tell you whether it’s feasible.
- Whether it’s generic or curve-specific. A general enough improvement in elliptic-curve discrete logarithms could hit P-256, Curve25519 and secp256k1. A curve-specific result might only hit some of them. Reviewing Ed25519 is prudent, not proof that it’s broken.
- Whether the work can be amortized. An expensive one-time precomputation followed by cheap per-key recovery is a very different threat from an expensive attack against each key.
- What the hardware vendors say. Yubico’s public beta documentation describes the next-generation hardware, but there’s no production ship date or trade-in plan. I haven’t seen Yubico, TCG, Apple, Google or Microsoft respond to the advisory itself. I’d welcome a specific assessment of what it means for existing devices.
- What the FIDO ecosystem does. ML-DSA passkeys are already showing up in software implementations, as Corbado’s survey documents, and Yubico is testing hardware support. The signal to watch for is broad production support for alternative algorithms across relying parties, browsers, clients and hardware authenticators, including attestation and credential retirement.
The bigger lesson
For a lot of us, hardware-backed keys are still the right tool. But some of the math they’re built on may no longer hold up.
Where you control the algorithm, moving off suspect 256-bit curves is a sensible interim step for high-value, long-lived keys. Where you don’t, keep your hardware-backed authentication and get ready to migrate. And remember that neither P-384 nor RSA is the end goal. Both are still classical cryptography.
The lesson here isn’t that hardware security keys have failed. It’s that hardware-backed security and cryptographic agility are two different things. A secure element can do a great job of keeping a key inside the device, and still offer zero protection if the algorithm itself is broken mathematically.
So don’t ditch your YubiKey, or your TPM. Audit what you’re using them for.
Sources
- NSA, Immediate Actions to Push Toward Post-Quantum, PP-26-4956
- US government, Joint encryption statement
- Google, Keeping HTTPS Connections Safe in Chrome, December 3
- Mozilla, Accelerating our post-quantum transition, December 3
- Filippo Valsorda, What to Make of the NSA Advisory
- Seth Larson, How to find and upgrade 256-bit curve keys, December 4
- PostQuantum.com, Accelerate, Don’t Panic
- Dead Neurons, Interpreting the NSA Advisory (speculation, not confirmed attack costs)
- SECG, SEC 1 v2.0, section 4.1.6
- W3C, Web Authentication Level 3
- OpenSSH, Release notes
- Yubico, PQC Beta Program
- Yubico, Firmware overview, FIDO, PIV, OpenPGP
- Yubico, Security advisory YSA-2024-03
- Yubico, YubiKey Manager documentation
- Corbado, Are Passkeys quantum safe?
- Matthew Garrett, What do we do with keys?, December 4
- TCG, PC Client Platform TPM Profile 1.06 and PQC in the TPM library specification
- Microsoft, How Windows uses the TPM
- CVE, CVE-2017-15361 (ROCA)
- Apple, CryptoKit SecureEnclave and About the security of passkeys
- Android, Keystore and Implementing post-quantum cryptography in Android
- AWS, KMS key specs
- Google Cloud, KMS algorithms
- Thales, Luna HSM PQC
- Utimaco, Quantum Protect
Enjoyed this post? Check out my podcast!
If you found this interesting, you might enjoy "Nerding Out with Viktor" - my podcast where I dive deep into tech, entrepreneurship, and security with industry experts.