Harvest now, decrypt later: why your database just got post-quantum TLS
Aurora MySQL 3.14 added hybrid post-quantum key exchange (X25519MLKEM768) to TLS. What the handshake key exchange does, why traffic recorded today could be decrypted by a future quantum computer, what ML-KEM is, and what it costs: I measured 2,264 extra bytes per handshake and no measurable extra time.
On October 26, AWS released Aurora MySQL 3.14.0. Between the CVE fixes and a new RETURNING clause for DELETE, the release notes have one line that matters more than it looks:
Aurora MySQL introduces the hybrid key exchange groups
X25519MLKEM768andSecP256r1MLKEM768alongside the classical elliptic-curve groups for TLS 1.3 connections. Clients that support post-quantum key exchange automatically negotiate a quantum-resistant shared secret; those that do not continue using classical groups.
A week later AWS announced the same for Aurora PostgreSQL 18 and higher, through the ssl_groups parameter. So your database connection can now be post-quantum. Here’s what that protects against, what it is, and what it costs, measured.
What the key exchange in a TLS handshake does
Before your first query, the client and the server have to agree on a secret key over a network that anyone on the path can copy. TLS 1.3 (RFC 8446) does this with the key_share extension: each side generates a fresh key pair and sends the public half. With X25519 that’s 32 bytes each way. Each side combines its own private half with the other side’s public half, and both land on the same secret. An eavesdropper sees only the two public halves.
That shared secret becomes the key for the symmetric cipher (AES-GCM or ChaCha20) that encrypts every row you send and receive for the rest of the connection.
Harvest now, decrypt later
Now imagine someone records the whole connection: the handshake and the encrypted rows after it. Today that recording is useless, because nobody can get the key from two X25519 public values.
But they don’t have to read it today. In 1994 Peter Shor published polynomial-time quantum algorithms for factoring and discrete logarithms. Factoring is what RSA rests on; discrete logarithms (over elliptic curves too) are what X25519 and ECDH rest on. A large enough quantum computer could take the two recorded public halves, recover the session secret, and decrypt everything in the recording.
Chrome’s team named this in 2023 when it started shipping hybrid key exchange:
certain uses of cryptography are vulnerable to a type of attack called Harvest Now, Decrypt Later, in which data is collected and stored today and later decrypted once cryptanalysis improves. In TLS, even though the symmetric encryption algorithms that protect the data in transit are considered safe against quantum cryptanalysis, the way that the symmetric keys are created is not.
The weak link isn’t AES. It’s how the key was agreed. Cloudflare calls harvest-now-decrypt-later “the primary threat when Q-Day is far away”. Database connections are a natural target: they carry raw rows, password hashes, health and customer records, things that are often still secret ten years later.
ML-KEM: a key exchange that survives Shor
NIST standardized the replacement in August 2024 as FIPS 203, the Module-Lattice-Based Key-Encapsulation Mechanism (ML-KEM), derived from CRYSTALS-Kyber. Its security rests on the Module Learning with Errors problem, and NIST’s wording is that “ML-KEM is believed to be secure, even against adversaries who possess a quantum computer.”
It’s a key encapsulation mechanism, which works like a lockbox: the client sends an open lock (the encapsulation key), the server puts a random secret inside and snaps it shut (the ciphertext), and only the client, holding the private decapsulation key, can open it.
The catch is size. From FIPS 203, Table 3:
| public key / key share sent by client | sent back by server | |
|---|---|---|
| X25519 | 32 bytes | 32 bytes |
| ML-KEM-512 | 800 | 768 |
| ML-KEM-768 | 1,184 | 1,088 |
| ML-KEM-1024 | 1,568 | 1,568 |
ML-KEM-768 (NIST security category 3) is the one TLS uses: 37 times the bytes of X25519 on the way out.
Why hybrid: never weaker than today
Why not just replace X25519 with ML-KEM? Because new math can fail. In 2022 SIKE, another post-quantum key exchange that was still in NIST’s fourth round, was broken without any quantum computer: Castryck and Decru’s code “breaks SIKEp434 … in about ten minutes on a single core”.
So TLS sends both. The group X25519MLKEM768 (codepoint 0x11EC) glues an ML-KEM-768 key and an X25519 key into one key share, and mixes both secrets into the session key. To read the traffic an attacker must break both, so it’s never weaker than X25519 alone. It became an IETF standard in August 2026 as RFC 10024, which gives the sizes: a 1,216-byte client share (1,184 + 32) and a 1,120-byte server share (1,088 + 32).
What it costs, measured
My local openssl is 3.5.5, which supports X25519MLKEM768, SecP256r1MLKEM768 and X448MLKEM1024. Its default ClientHello already sends two key shares, the hybrid one and a plain X25519 one, the same way browsers do. I connected to five big sites that support the hybrid group, 31 interleaved rounds per configuration, with openssl s_client -groups X25519 against -groups X25519MLKEM768. The script and raw results are in the post’s notes.
| per handshake | X25519 | X25519MLKEM768 | difference |
|---|---|---|---|
| ClientHello | 313–317 B | 1,489–1,493 B | +1,176 |
| ServerHello | 118 B | 1,206 B | +1,088 |
| ClientHello, OpenSSL default (both shares) | 1,547–1,551 B | +1,234 |
So the quiz answer from the video: post-quantum adds 2,264 bytes per handshake (2,322 with the browser-style double key share). The ClientHello grows by 1,176 rather than 1,184 because an offer with no classic elliptic-curve group also drops the 8-byte ec_point_formats extension. The ServerHello grows by exactly the 1,088-byte ML-KEM ciphertext.
Two side effects of that size:
- A 1,489-byte ClientHello plus its 5-byte record header doesn’t fit in the 1,460 bytes of payload a standard 1,500-byte packet carries, so the hello now takes two TCP segments. Chrome’s team found that “in certain limited cases, TLS middleboxes failed due to improperly hardcoded restrictions on message size”, which is why Chrome had an enterprise policy to switch it off.
- For perspective, the server already sends 2.4 to 6.5 KB in a classic handshake to these sites, mostly certificates. Post-quantum key exchange adds less than one certificate chain.
And time:
Each run is a whole openssl s_client process: start-up, TCP connect (about 13 ms to each site here), the TLS 1.3 handshake, and close. Medians moved by at most 2.1 ms, and in both directions: four sites were slightly faster with the hybrid group. That’s network noise. I could not measure a slowdown.
What about CPU? openssl speed on one core of the same machine (an efficiency core, run at low priority):
| operation | per second | per operation |
|---|---|---|
| X25519 key agreement | 19,209 | 52 µs |
| P-256 ECDH key agreement | 14,612 | 68 µs |
| ML-KEM-768 key generation | 21,186 | 47 µs |
| ML-KEM-768 encapsulation (server) | 32,082 | 31 µs |
| ML-KEM-768 decapsulation (client) | 20,820 | 48 µs |
| RSA-2048 private-key operation, for comparison | 844 | 1,185 µs |
Every ML-KEM step is faster than one X25519 key agreement. The hybrid adds roughly 0.1 ms of CPU on the client and 31 µs on the server, which is lost in a handshake that takes tens of milliseconds of network time. The bytes cost more than the math.
Who already uses it
- Chrome turned on hybrid post-quantum key exchange (then Kyber) in Chrome 116 in 2023 and switched to ML-KEM, codepoint 0x11EC, in Chrome 131.
- Cloudflare reported in April 2026 that “over 65% of human traffic” to its network is post-quantum encrypted.
- I offered only
X25519MLKEM768to twelve large websites. Nine accepted (Google, YouTube, Cloudflare, Facebook, Instagram, Apple, Amazon, AWS, Microsoft). GitHub, Wikipedia and Netflix answered with ahandshake_failurealert; with OpenSSL’s normal offer they fell back to plain X25519. That fallback is exactly what keeps things working, and also exactly the traffic that can still be harvested.
What to do for your database
- Server: on Aurora MySQL 3.14 (and 8.4.8, which added PQ-TLS key exchange in September) the hybrid groups are on with no configuration. On Aurora PostgreSQL 18+, check
ssl_groups. For your own servers, the TLS library decides: OpenSSL 3.5 offers and acceptsX25519MLKEM768by default. - Client: the client’s TLS library must offer the hybrid group. If it’s linked against an older OpenSSL, or a language runtime with its own TLS stack, it silently negotiates classic X25519.
- Verify on Aurora MySQL:
SHOW STATUS LIKE 'Aurora_ssl_named_group';
-- X25519MLKEM768 means this session is post-quantum
Or test any TLS endpoint from a shell (for a MySQL server use port 3306 and add -starttls mysql):
openssl s_client -connect db.example.com:443 -groups X25519MLKEM768 -brief </dev/null
# Negotiated TLS1.3 group: X25519MLKEM768 -> yes
# alert handshake failure -> not supported
- Know what it doesn’t fix. This protects the key exchange, which is what harvest-now-decrypt-later attacks. Certificates still use classic signatures; post-quantum signatures for X.509 are only arriving now (RFC 10073, November 2026, composite ML-DSA). Cloudflare’s target for full post-quantum security including authentication is 2029.
The short version: traffic recorded today can be decrypted later, ML-KEM fixes the key exchange, hybrid means never weaker than today, and it costs about 2.3 KB per connection and no time I could measure. For a database connection that lives for hours in a pool, that’s nothing.
Sources
- AWS: Aurora MySQL 3.14.0 release notes (Oct 26, 2026); Aurora PostgreSQL PQ-TLS announcement (Nov 3, 2026)
- NIST FIPS 203, ML-KEM (Aug 2024)
- IETF RFC 10024, hybrid key agreement for TLS 1.3 (Aug 2026); RFC 8446, TLS 1.3
- P. Shor, Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer
- Chromium blog, Protecting Chrome Traffic with Hybrid Kyber KEM (2023); Google Security blog, A new path for Kyber on the web (2024)
- Cloudflare, Cloudflare targets 2029 for full post-quantum security (Apr 2026)
- W. Castryck, T. Decru, An efficient key recovery attack on SIDH (2022)
- Measurements: OpenSSL 3.5.5
s_clientandspeedon a generic Linux machine, November 12, 2026.