Post-quantum TLS censorship: DPI fails open
Post-quantum key shares push the TLS ClientHello past the MTU, and Turkey's DPI boxes fail open on the split handshake. One researcher measured a 5.24 percent bypass rate and found the parser bug behind it.

Discord came back to life on its own, roughly one request in twenty, and the ISP had changed nothing. A researcher in Turkey spent months pressing refresh on blocked pages, logging a 5 to 6 percent success rate, and blaming race conditions in the middleboxes. The real answer was stranger. Post-quantum TLS censorship was failing in the user’s favor: ML-KEM key shares pushed the ClientHello past the MTU, the DPI box misread the split handshake, and the censor waved the traffic through.
No one shipped a tool for this and no CVE covers it. It is the same species of bug as three correct-looking bugs that left a socket open for days: code that parses, ships, and hides its failure until the traffic on the other end changes shape. Xetera’s write-up documents the whole hunt, packet by packet, and the numbers below come from that capture work.
From DNS poisoning to PacketLogic boxes
Turkish blocking started crude. Plaintext DNS got poisoned answers, and after the 2014 Twitter ban the workaround was famous enough to end up as street graffiti: change your resolver, unblock the site. Turk Telekom answered by hijacking traffic to 8.8.8.8 and replying to Google’s own resolvers with poisoned records. By 2018 the government-controlled ISPs had PacketLogic deep packet inspection hardware, and those injected RST packets still carry a signature: a TCP window of 32120 that Citizen Lab fingerprinted on PacketLogic gear. The 2018 boxes also wrote a hardcoded IP ID of 13330 on injected packets. Today that ID is random, so the firmware has moved at least once since.
Freedom House scores Turkey 31 out of 100 on its 2025 Freedom on the Net index, wedged between Egypt at 28 and Kazakhstan at 37. The gear and the appetite have only grown since.
What post-quantum TLS censorship looks like on the wire
A TLS 1.3 ClientHello carries one field that names the destination, SNI, specified in RFC 6066 section 3. Censors read it and reset the connection. Everything else in the hello is skippable, extension by extension, using each entry’s 2-byte type and 2-byte length prefix, and that skip logic worked for years because the whole message fit inside a single TCP segment. The classic X25519 key share is 47 bytes. X25519MLKEM768 is 1,267 bytes, and 1,184 of those are the ML-KEM-768 public key by itself. The full hello grows from 637 bytes to 1,721, crosses the 1,500-byte MTU, and travels as two segments carrying 1,480 and 382 bytes of payload.
- Classic key_share (X25519): 47 bytes
- Post-quantum key_share (X25519MLKEM768): 1,267 bytes, 27 times larger
- ML-KEM-768 public key: 1,184 bytes, 93.4 percent of the extension
- Hybrid X25519 key plus fallback entry: 68 bytes
- Extension, list and GREASE overhead: 15 bytes
The split point is not random. Cloudflare advertises an MSS of 1,388 bytes, which is 1,400 minus 12 bytes of TCP options. The ClientHello header plus the GREASE extension BoringSSL always prepends occupy 118 bytes, and key_share occupies 1,267, so 1,385 of the available 1,388 are spoken for. An empty extension still costs 4 bytes. If any other extension gets shuffled in front of key_share, the segment boundary lands inside its body, and the censor reads enough of it to block. How that shuffle resolves decides everything, which brings us to the bug.
A length check that forgets its own state
Middlebox authors assume one segment, and the bug falls out of that assumption. Cut the hello 2 or 3 bytes into an ordinary extension and the censor lets it through. Cut 1 byte in and something worse happens for the censor: the parser reads the first byte, waits for the second, then forgets what it was doing entirely and restarts, interpreting 0x0002 as an extension type and 0x0101 as a 257-byte extension it must skip past. Extensions with inner length fields such as signature_algorithms occasionally let it re-synchronize by luck. SNI, supported_groups, GREASE, ECH and the legacy ESNI draft all run through a separate, correct path.
That special path reveals what the censor actually reads. The researcher set supported_groups’ inner list_len to 65535 on a captured hello, and the request sailed through with a TLS alert coming back from the server, which proves the box parses that body and chokes on a length it cannot validate. ALPN gets the same treatment. The interpretation fits a dashboard better than a filter: SNI is the enforcement target, ALPN tracks which clients speak HTTP/2 and HTTP/3, and supported_groups probably tracks post-quantum adoption. The two legacy codepoints still treated specially, 0xffce from the ESNI draft and 0xfe0a from early ECH deployments, show years of workaround tracking. The hardware matches AppLogic, formerly Sandvine.
A middlebox that treats a packet it cannot parse as “allow” enforces a different policy than the one it advertises, and the difference is reachable from the client side.
Why the bypass lands on 5.24 percent
Chromium randomizes TLS extension order to fight fingerprinting, so BoringSSL shuffles the extensions across 15 slots on every connection. Two conditions must hold at once for the split to fall where the parser breaks. key_share has to land in the first slot, a 1-in-15 event, and the extension after the cut has to be one of the 11 buggy ones among the 14 remaining, since SNI, supported_groups and ECH sit in the correct path. That is 11 out of 210, or 5.24 percent. It matches the observed 5 to 6 percent, and it explains why the same client, the same server, and the same day produce different verdicts connection after connection.
One edge case defeats the lottery entirely.
updates.discord.gg runs a different TLS stack with no post-quantum groups at all, so a restart that stalls on the update gate can never win it. The capture shows the difference between the two hellos; witr names the process that owns the port.
Two ISPs, two broken parsers
Both Superonline and Vodafone ignore a ClientHello split across multiple TLS records inside one segment, a quieter failure the two networks share. Past that, they diverge completely.
| Behavior | Superonline | Vodafone |
|---|---|---|
| IP fragmentation | reassembles correctly | reassembles correctly |
| TCP segmentation of the hello | fails open on 2 and 3 byte cuts | reassembles correctly |
| Small TCP segments | no confusion | passes any segment under 10 bytes |
| TLS record splitting | split records ignored | split records ignored |
| QUIC | inspects Initial packets | ignores QUIC entirely |
Superonline began censoring QUIC this year, inspecting Initial packets, which fits the ALPN special case: they want to know who speaks HTTP/3. JA3 and JA4 this is not. The box ignores ec_point_formats, a field any published fingerprint would weigh, so the extraction looks proprietary and feeds a usage dashboard rather than a blocklist. ECH gets watched closely, because ECH removes SNI from the censor’s reach, China and Iran already block it outright, and Chrome sends a GREASE ECH extension even toward servers that cannot support it.
Testing your own path through the censor
You can check your own path. OpenSSL 3.5 shipped ML-KEM support, and the hybrid group name in its group list is X25519MLKEM768, so the negotiation test is one command away:
openssl s_client -connect discord.com:443 -groups X25519MLKEM768 -brief </dev/null 2>&1 | grep -i "temp key"
A line reporting that group means your stack offered and completed a PQ exchange; follow it with a packet capture to see whether the hello split into two segments and at what offset. The researcher’s next step is to turn these parser ambiguities into a device fingerprint, building on the paper Fingerprinting Deep Packet Inspection Devices by Their Ambiguities, so middleboxes can be identified by vendor and country without touching them.
My own read says the 5.24 percent is on a timer. As ML-KEM adoption climbs toward 100 percent, the vendor either fixes reassembly, which ends the free bypass, or the censor moves the block onto ECH and supported_groups, which abandons SNI-based censorship altogether. I would bet on ECH blocking arriving first: one rule covers every modern browser, while the reassembly fix means touching DPI firmware deployed across an entire country’s access network. Whichever comes first, the failure that makes this bypass work is not a design choice. It is a bug nobody fixed, and thousands of users are routing their evenings through it.