Is RSA Broken? Not Yet. Here Is Our Post-Quantum Encryption Playbook
RSA-2048 is not broken, but traffic recorded today can be decrypted later. How we are moving Vicaro to hybrid post-quantum encryption, plus a checklist you can reuse.

This autumn, the rumor that "a big AI lab broke RSA" reached our engineering channel the way it probably reached yours: a screenshot, no link, and a lot of question marks.
At Vicaro we run AI employees for enterprises. Each one holds delegated access to a customer's chat, mailbox, CRM or codebase. If the encryption around that access fails, nothing else we build matters. So we treated the rumor as a fire drill: find out what is true, find every place we depend on public-key cryptography, and fix what a future break would actually expose.
This post covers what we found, what we changed, the mistakes we nearly made, and a checklist you can reuse. It leaves out anything that would help an attacker. Everything here is about design choices, not secrets.
Is RSA actually broken?
No. Here is what did happen in 2026, as of late November:
| When | What was reported | What it means |
|---|---|---|
| September 2026 | Two new public factoring records in a month: RSA-260, then RSA-896 (an 896-bit number, 270 decimal digits). Both ran on GPUs, and AI coding assistants reportedly helped adapt the tooling | Records keep falling and AI lowers the engineering effort. 896 bits is still far below the 2048-bit keys in normal use |
| November 2026 | Google DeepMind said its AI agents found two weaknesses in legacy 1024-bit RSA. These had not been independently verified when we wrote this | 1024-bit RSA has been disallowed by NIST for over a decade. If you still have it, that is your emergency |
The best known classical attack, the general number field sieve, gets harder much faster than the key gets longer. Going from 896 bits to 2048 bits is not twice the work. It is many orders of magnitude more. Nobody has shown an attack, classical or quantum, that threatens a properly generated 2048-bit key.
So why act? Two reasons.
- Attacks only get better. AI assistance is making the people who write them faster, and the safety margin of every fixed key size shrinks over time.
- Quantum computers change the math. A large enough quantum computer running Shor's algorithm breaks RSA and elliptic-curve cryptography at any practical key size. Nobody knows when one will exist. NIST's draft transition guidance (IR 8547) proposes deprecating RSA-2048 and its peers after 2030 and disallowing them after 2035.
The threat that matters today: harvest now, decrypt later
An attacker does not need a quantum computer today. They need storage. They record your encrypted traffic now and decrypt it when the math or the hardware catches up. This is called "harvest now, decrypt later", and it decides which parts of your cryptography are urgent:
| Building block | Examples | What a future break exposes | Urgency |
|---|---|---|---|
| Key exchange and public-key encryption | TLS handshakes, payloads sealed to a public key | Everything recorded in the past | Now |
| Signatures | Certificates, signed tokens, signed logs | Forgery from that day on, while the key is still trusted | Plan it |
| Symmetric encryption and hashes | AES-256-GCM, SHA-256 | Very little. Grover's algorithm weakens them, but AES-256 keeps a comfortable margin | Keep |
One detail surprises people. In TLS 1.3, an RSA certificate only signs the handshake. The secrecy of the session comes from an ephemeral key exchange, usually X25519. A broken certificate key lets an attacker impersonate a server in the future. It does not decrypt yesterday's traffic. The exception is the old static-RSA key exchange from TLS 1.2 and earlier, where the server's RSA key protects the session directly. We do not accept it, and neither should you.
So the order of work is: fix key exchange first, plan signatures second, and leave good symmetric cryptography alone.
A useful rule of thumb here is Mosca's inequality. If the number of years your data must stay secret, plus the years your migration will take, is larger than the years until a capable quantum computer exists, you are already late. For an agent platform the first number is large. Access tokens expire, but the documents, conversations and customer records that flow through an AI employee stay sensitive for years.
Step 1: Inventory before you change anything
We searched application code, infrastructure definitions and deployment manifests for every use of public-key cryptography, then sorted each one into three buckets:
- We choose it. Keys we generate, formats we designed, TLS settings we control.
- A vendor requires it. Many identity providers and SaaS APIs still accept only RSA signatures for app authentication.
- A provider manages it. Managed certificates, CDN and load balancer handshakes.
A few searches go a long way:
# Where do we generate public-key material?
git grep -nE 'rsa\.GenerateKey|ecdsa\.GenerateKey|generateKeyPair|modulusLength|tls_private_key'
# Where do we set or pin TLS behavior?
git grep -nE 'ssl_policy|ssl-negotiation-policy|ssl-policy|CurvePreferences|MinVersion'
# Which token algorithms do we accept?
git grep -nE 'RS256|ES256|HS256|WithValidMethods|algorithms:'
# Where is certificate verification turned off?
git grep -nE 'InsecureSkipVerify|rejectUnauthorized|verify=False'
Two findings shaped the plan. First, most of the RSA in a modern stack is vendor-mandated signing, which is the less urgent category. Second, the exposure was not where the rumor pointed. The work that mattered was key exchange, on the network and in our own sealed data formats.
Step 2: Hybrid post-quantum key exchange on every hop
NIST standardized ML-KEM (FIPS 203) in August 2024. TLS uses it in a hybrid group called X25519MLKEM768, which runs classical X25519 and ML-KEM-768 side by side and mixes both results into the session keys. An attacker has to break both. If a flaw is ever found in ML-KEM, you are no worse off than you were with X25519 alone.
Our web app and public API negotiate X25519MLKEM768 today with any client that offers it. That includes current Chrome, Edge and Firefox, OpenSSL 3.5 or later, and Go 1.24 or later. You can check any site yourself with OpenSSL 3.5 or newer:
openssl s_client -connect api.vicaro.ai:443 -groups X25519MLKEM768 </dev/null 2>/dev/null \
| grep 'Negotiated TLS1.3 group'
# Negotiated TLS1.3 group: X25519MLKEM768
Three things we learned along the way:
The CDN is not the whole path. Post-quantum key exchange at the edge covers the browser-to-edge hop. The hop from the edge to your origin, and any hostname that points straight at a load balancer, has its own TLS policy. On AWS, hybrid key exchange is opt-in per listener, through a security policy with PQ in its name such as ELBSecurityPolicy-TLS13-1-2-PQ-2025-09. It keeps TLS 1.2 and 1.3, adds the hybrid group, and still serves clients that only speak X25519. We are rolling that policy out to every listener we operate, including the ones in front of dedicated deployments in customers' own cloud accounts.
Do not pin curves. Go has offered X25519MLKEM768 by default since 1.24, unless your code sets CurvePreferences. A well-meant hardening line from three years ago can switch post-quantum off without anyone noticing. We had no pins, and we added a CI rule so that none can appear.
Test with big handshakes. The hybrid key share adds about 1.2 KB to the first handshake message, which then no longer fits in one network packet. Most networks do not care. Some older middleboxes and proxy configurations do. Test from the client stacks your customers actually use before you change production.
Step 3: Post-quantum encryption above TLS
TLS protects a connection. Some data outlives the connection: it is staged on disk, queued, or relayed through an intermediate service. We have two flows like that. One moves a customer's workspace between environments, for example into a dedicated deployment in their own cloud account. The other hands an authorization grant from the service that completed an OAuth flow to the environment that will use it. In both, the payload is sealed to a one-time public key that only the receiver holds, so intermediaries and staged copies see ciphertext.
Those sealed formats now use HPKE (RFC 9180) with a hybrid KEM that combines X25519 and ML-KEM-768 (the X-Wing construction), HKDF-SHA256, and AES-256-GCM for the payload. Recent Go releases ship all of it in the standard library, so there was no new dependency to audit.
The algorithm was the easy part. These design rules mattered more:
- Version every format. A prefix on the ciphertext says how to open it. The opener never guesses.
- Let the receiver advertise. The receiver keeps sending its classical public key exactly as before and adds a post-quantum key next to it. A sender that sees the new key uses the hybrid format. An older sender ignores it and keeps working.
- Never downgrade silently. A malformed post-quantum key is an error, not a reason to fall back to the old format.
- Authenticate the header. The version and the encapsulated key are bound into the authenticated data, so nobody can splice parts of two messages together.
Step 4: Shrink and strengthen the RSA you still need
You cannot delete RSA while vendors require it. You can reduce what a weak or stolen key is worth.
Keep private keys where they are generated. When we generate a key pair for a customer's identity provider connection, the administrator's browser receives only the public half to paste into the provider's console, plus an opaque encrypted handle. The handle is bound to that organization and purpose and expires within a day. The private key never travels to the browser.
Use the strongest key the other side accepts. Where a provider accepts elliptic-curve keys, we are moving new connections to ES256. Where it accepts only RSA, new keys are 3072 bits when the provider allows it.
Rotate certificate keys on every renewal. Older cert-manager versions reuse the same private key forever unless you say otherwise. Certificates in our dedicated deployments now get a fresh key every time, and ECDSA P-256 where the platform allows it:
privateKey:
algorithm: ECDSA
size: 256
rotationPolicy: Always
One trap cost us an afternoon of reading. AWS Certificate Manager will not let you reimport a certificate under the same ARN with a different key type or size. If something syncs renewed certificates into ACM for you, switching from RSA to ECDSA in place means the renewals quietly stop arriving. Plan a new certificate ARN and a cutover instead.
Pin the algorithms you accept. A token verifier should accept an explicit list of asymmetric algorithms and nothing else. Never none, and never a symmetric algorithm on a path that verifies with public keys:
token, err := jwt.ParseWithClaims(raw, claims, keyfunc,
jwt.WithValidMethods([]string{"ES256", "RS256", "EdDSA"}))
Step 5: Keep symmetric encryption boring
Quantum computers do not do to AES what they do to RSA. Grover's algorithm roughly halves the effective key length, which leaves AES-256 with a margin nobody expects to close.
Secrets we store are encrypted at the application layer with AES-256-GCM before they reach the database, on top of the storage encryption the cloud provider applies. In dedicated deployments, the data key is wrapped by a key management service key that lives in the customer's own cloud account. We are bringing the same envelope and rotation model to more of our stack, and extending application-layer encryption to more kinds of stored session material.
The lesson for anyone doing this work: do not spend your first month on symmetric algorithms. Check that you use an authenticated mode, that keys are 256 bits, and that keys can rotate. Then move on.
Step 6: Make regressions fail the build
Cryptography decays one reasonable-looking pull request at a time. We added a policy check that runs on every pull request and fails when it finds:
- A load balancer TLS policy without hybrid post-quantum key exchange, or a TLS listener with no explicit policy
- New RSA key generation outside a short reviewed list, where every entry states its reason
- Certificate verification turned off outside the same kind of list
- A TLS configuration that pins curves without the hybrid group
- A certificate definition that does not rotate its key
Entries in the allowed lists fail the check when they stop matching anything, so the lists cannot go stale.
Step 7: Roll out without breaking anyone
This was most of the work. Changing an algorithm is a few lines. Changing it across services that deploy at different times, some of them inside customers' own cloud accounts, is a compatibility problem.
The rules we followed:
- Ship readers before writers. A release that can read the new format goes everywhere before any release writes it.
- Negotiate per exchange. Each side states what it supports. Old and new peers keep working in every combination.
- Put a switch on anything a rollback could strand. If an older version cannot read what a newer one writes, the write path stays off until the older version is gone.
- Stage key changes. For moving encryption keys under a new root, we added a mode that can decrypt the new format but still writes the old one. Every service runs that mode first. Only then does any of them start writing.
- Test the whole matrix. Old sender with new receiver, new sender with old receiver, both new, and a rollback of each side.
Treat rollback as a release you will definitely ship. Sooner or later you will.
What is still ahead
Post-quantum signatures are the next phase. NIST standardized ML-DSA (FIPS 204) alongside ML-KEM, but support across public certificate authorities, browsers, identity providers and managed key services is still arriving. Signatures are also the less urgent half of the problem, because a signature has to be forged while its key is still trusted. Our first targets are long-lived signed records, where a forgery years from now would still matter.
We will also keep following our vendors. As each provider that requires RSA today starts accepting stronger options, we will move.
A checklist you can reuse
- Inventory every use of public-key cryptography and sort it: we choose, a vendor requires, a provider manages
- Retire 1024-bit RSA and static-RSA key exchange anywhere they survive
- Turn on hybrid key exchange (X25519MLKEM768) at the CDN, at every load balancer listener, and on the hop to the origin
- Remove curve pins from application TLS configurations
- Add a post-quantum layer to any data you seal to a public key and then store or relay
- Version your formats and refuse silent downgrades
- Keep private keys server-side and rotate certificate keys on every renewal
- Allow-list token algorithms in every verifier
- Confirm AES-256 in an authenticated mode, with keys that can rotate
- Enforce it in CI so the next pull request cannot undo it
- Plan signatures next, starting with records that must stay trustworthy for years
Frequently asked questions
Is RSA broken in 2026?
No. The largest RSA number publicly factored is 896 bits. Standard keys are 2048 bits or more, which is many orders of magnitude harder. Legacy 1024-bit RSA should be considered unsafe and removed.
What is "harvest now, decrypt later"?
An attacker records encrypted traffic today and stores it until better attacks or a quantum computer can decrypt it. It makes key exchange the urgent part of a post-quantum migration, because the damage is retroactive.
Is AES-256 safe against quantum computers?
Yes, as far as anyone knows. Grover's algorithm reduces its effective strength to roughly that of a 128-bit key against classical attack, which is still far out of reach.
What are ML-KEM and X25519MLKEM768?
ML-KEM is the post-quantum key encapsulation mechanism NIST standardized as FIPS 203. X25519MLKEM768 is the hybrid TLS 1.3 key exchange that combines it with classical X25519, so a session stays secret unless both are broken.
Should I just switch to RSA-4096?
Only where a vendor forces you to use RSA. A larger RSA key buys margin against classical attacks and none against a quantum computer. For secrecy, turn on hybrid post-quantum key exchange. For signatures, prefer elliptic-curve keys today and plan for ML-DSA.
How do I check whether a site supports post-quantum key exchange?
With OpenSSL 3.5 or newer, run openssl s_client -connect example.com:443 -groups X25519MLKEM768 and look for the Negotiated TLS1.3 group line. Browser developer tools show the key exchange group in the security panel.
Does Vicaro use post-quantum encryption?
Yes. Our web app and public API negotiate hybrid post-quantum key exchange today, and we are extending it to every listener we operate and to the sealed formats that carry customer data between environments.
If you are building on AI employees and want to know how Vicaro protects the access you delegate to them, talk to us. And if you are doing this migration yourself, start with the inventory. It will tell you that the scary headline and your real exposure are two different things.
References
- NIST FIPS 203: ML-KEM
- NIST FIPS 204: ML-DSA
- NIST IR 8547 (draft): Transition to Post-Quantum Cryptography Standards
- RFC 9180: Hybrid Public Key Encryption
- X-Wing: general-purpose hybrid post-quantum KEM
- AWS: security policies for Network Load Balancers
- AWS Certificate Manager: reimporting a certificate
- Go 1.24 release notes
- RSA-896 factored with GPUs and AI assistance
- Scientific American on the RSA-260 record
- DeepMind's 1024-bit RSA claims: claimed vs verified