Quantum Risk Map: what breaks and what survives
A quantum computer running Shor's algorithm breaks every public-key system in wide use today: RSA, ECDSA, ECDH, X25519, Ed25519. Symmetric crypto and hashes survive (Grover's algorithm only halves key strength, so AES-256 stays strong). This page maps every part of your stack, what an attacker actually gains, and the CNSA 2.0 fix. Companion to the PQC Lab where you can run the replacement algorithms yourself.
The two attacks that drive everything
Harvest now, decrypt later
Adversaries record encrypted traffic and store stolen ciphertext today, then decrypt everything once quantum computers can break the key exchange. Any data that must stay confidential into the 2030s is already lost.
This is why the NSA says act now: the deadline is not when quantum computers arrive, it is when your secrets expire.
Trust forgery
Signatures are how devices and servers prove identity. Shor's algorithm recovers signing keys from public keys, letting an attacker forge firmware updates, TLS certificates and SSH host keys that verify as genuine.
The worst case is hardware: a forged firmware root cannot be patched away.
What gets affected, system by system
| System | Typical crypto today | What an attacker gains | Severity | The fix (CNSA 2.0) |
|---|---|---|---|---|
| TLS key exchange | ECDHE / X25519 | Recorded traffic decrypted retroactively | critical | Hybrid X25519+ML-KEM-768 (already default in Chrome, Cloudflare, Apple) |
| TLS certificates | RSA / ECDSA signatures | Certificate forgery, server impersonation | high | ML-DSA certificates alongside classical during transition |
| SSH host keys | Ed25519 / ECDSA / RSA | Server impersonation, silent MITM | high | Rotate to ML-DSA host keys when supported; hybrid KEX now |
| SSH sessions | curve25519-sha256 KEX | Recorded sessions decrypted later | critical | mlkem768x25519-sha256 hybrid KEX (OpenSSH 9.9+ default) |
| Firmware root certs | RSA-2048/3072 burned into ROM | Forged updates = persistent implant, unpatchable | critical | SLH-DSA or ML-DSA roots, LMS for constrained MCUs |
| Code signing | RSA / ECDSA | Malicious builds that verify as legitimate | high | ML-DSA + dual-sign during transition |
| VPN tunnels | WireGuard Curve25519, IKEv2 DH | Session keys recovered from recordings | critical | Hybrid KEX; ML-KEM in IKEv2 extensions |
| JWT session tokens | RS256 / ES256 | Token forgery, account takeover | high | HMAC-SHA256 (quantum-safe) or ML-DSA signed tokens |
| Blockchain wallets | ECDSA secp256k1 | Key forgery, direct fund theft | high | PQ chains in research; hashes and symmetric sides are fine |
| Archived ciphertext | RSA / ECC wrapped keys | Everything recorded today, decrypted on day Q-day | critical | Re-encrypt long-lived archives with hybrid PQ now |
| Symmetric crypto | AES-256, ChaCha20, SHA-256 | Grover halves key strength: 256 bit becomes 128 bit | safe | Already safe at 256-bit sizes - no action needed |
How firmware root certs work (and why they cannot wait)
Secure boot is a chain of signatures anchored in hardware:
- A mask ROM inside the chip carries the OEM's root public key, burned in at fabrication. It cannot be changed by any software update.
- On every power-on, the ROM verifies the first-stage bootloader's signature with that root key.
- Each verified stage verifies the next: bootloader verifies kernel, kernel verifies drivers. Break one link and the device refuses to boot.
- Over-the-air updates are signed by a key certified under that same root - this is the firmware root certificate. It typically lives for the device's entire 10-15 year life.
Today those signatures are RSA-2048/3072 or ECDSA. A quantum attacker who forges the root signature installs malware below the OS: it survives reinstalls, re-imaging and antivirus. And because the trust anchor is burned into silicon, there is no patch. The only fix is a hardware recall.
That is why the NSA's guidance singles out acquirers: every device you buy today with a classical firmware root is a guaranteed replacement cost. New designs use SLH-DSA (conservative, hash-based) or ML-DSA for roots, ML-DSA for per-update signatures, and LMS for constrained microcontrollers. Dual-signing (classical + post-quantum) lets fielded devices keep booting during the transition.
Why SSH is at risk
SSH has two separate quantum problems, and people usually only think of the first:
1. Session confidentiality. Every session's keys come from a Diffie-Hellman style exchange (curve25519-sha256). An attacker who records your traffic today recovers those keys on day one of the quantum era and reads every byte: commands, passwords, file transfers. This is harvest now, decrypt later applied to ops.
2. Server authenticity. The host key (Ed25519/ECDSA/RSA) is what your known_hosts fingerprint actually checks. A quantum attacker derives the private key from the public key and impersonates the server: active MITM, not just passive recording.
The good news: SSH is the easiest fix on this page. OpenSSH 9.9+ ships the hybrid mlkem768x25519-sha256 key exchange as default - upgrading both endpoints largely solves session risk:
For host and user keys, plan rotation to ML-DSA as OpenSSH support matures; until then Ed25519 with short rotation windows limits the forgery window. Run our PQC Readiness Scanner on your sshd_config to see exactly where you stand.
Classical vs post-quantum, side by side
| Classical | Used for | Size | Post-quantum | PQC size | Quantum status |
|---|---|---|---|---|---|
| RSA-2048 | Signatures, certificates | 256 B signature | ML-DSA-65 | 1,312 B key / 3,309 B signature | Broken by Shor |
| ECDSA P-256 | TLS, SSH, code signing | 64 B signature | ML-DSA-65 | 3,309 B signature | Broken by Shor |
| X25519 | Key exchange | 32 B key | ML-KEM-768 (hybrid) | 1,184 B key / 1,088 B ciphertext | Broken by Shor |
| Ed25519 | SSH user keys, signed commits | 64 B signature | SLH-DSA-128s | 7,856 B signature | Broken by Shor |
| AES-256 | Symmetric encryption | - | AES-256 | unchanged | Safe |
| SHA-256 | Hashing | - | SHA-256 / SHA-384 | unchanged | Safe |
PQC keys and signatures are 10-50x larger than classical. That is the engineering cost of quantum resistance, and why hybrid modes (classical + PQC together) are the deployment default while the ecosystem adapts.
Tools for comparison
Run ML-DSA, ML-KEM and SLH-DSA in your browser and compare key and signature sizes against the table above.
Paste sshd_config, nginx, package.json or a certificate report and find every quantum-vulnerable algorithm.
Inspect a certificate signing request to see exactly which signature algorithm your PKI is committing to.
FAQ
Which of my cryptography is already quantum-safe?
Symmetric encryption (AES-256, ChaCha20), hashes (SHA-256 and up) and HMACs. At 256-bit strength they remain safe even against Grover's algorithm. Everything based on integer factorization or elliptic curves - RSA, ECDSA, ECDH, X25519, Ed25519, Diffie-Hellman - is broken by Shor's algorithm.
Can't we just rotate keys when quantum computers arrive?
No, for two reasons. Recorded traffic is decrypted retroactively, so secrets with long lifetimes are already exposed. And firmware trust anchors, long-lived certificates and burned-in keys cannot be rotated by software at all. The NSA's three steps - inventory, assess, triage - exist because the transition itself takes years.
What is CNSA 2.0?
The NSA's Commercial National Security Algorithm Suite 2.0, the required algorithm set for National Security Systems: ML-KEM for key establishment, ML-DSA and SLH-DSA/LMS for signatures (LMS specifically for firmware and constrained devices), AES-256 and SHA-384 for symmetric primitives. It is the reference target most enterprises are aligning to.
When will quantum computers actually break RSA-2048?
Nobody knows - estimates for cryptographically relevant machines cluster in the 2030s, but the NSA's December 2026 advisory was prompted partly by new cryptanalytic disclosures that shortened the perceived runway. The risk is asymmetric: migrating early costs engineering effort; migrating late means your archived traffic was already readable.
Continue with
Passkey Address Deriver
Derive EVM addresses from P-256 passkey public keys. For Ritual Chain TxPasskey and WebAuthn wallets.
DKMS Key Visualizer
Visualize how Ritual agents derive identity keys via DKMS from TEE-held roots to purpose-specific keys.
X402 Payment Encoder
Encode and decode X402 payment payloads for agent-to-agent transactions. Build HTTP 402 challenges.