A benchmark of 22 real post-quantum crypto migrations finds two LLM agents each resolve about half. If it holds, agents can do part of such migrations but miss fallback to older peers and protocol redesigns.
| Repository | Requested change | Tests | GLM 5.3 Flash | GPT-6.2 Sol |
|---|---|---|---|---|
| Activeledger | ML-DSA and Falcon identity signatures | 16 | 16 | 15 |
| Kage | Hybrid recipient encryption | 263 | B | 261 |
| Apache MINA SSHD | Hybrid ML-KEM key exchanges | 54 | 54 | 54 |
| Cisco MLS++ | ML-KEM for Messaging Layer Security | 5 | 5 | 5 |
| pdfsign | ML-DSA PDF signing and verification | 405 | 405 | 405 |
| age | Hybrid recipient encryption | 245 | 243 | 245 |
| Go crypto | ML-DSA for SSH authentication | 541 | 536 | 534 |
| Go crypto | Hybrid ML-KEM key exchange for SSH | 1 | 1 | 1 |
| Keycloak | ML-DSA key support | 80 | 80 | B |
| ngchain-js | ML-DSA and SLH-DSA signatures | 31 | 27 | 31 |
| OpenSSL | ML-KEM-768 support | 2 | 1 | 2 |
| AsyncSSH | Hybrid ML-KEM key exchanges | 19 | 19 | 19 |
| rPGP | Hybrid ML-KEM encryption in OpenPGP | 8 | 2 | 5 |
| rPGP | Composite ML-DSA signatures in OpenPGP | 15 | 7 | 7 |
| rPGP | SLH-DSA signatures in OpenPGP | 24 | 24 | N |
| rustls | ML-DSA signature verification | 4 | 4 | 4 |
| rustls | Hybrid X25519 and draft Kyber exchange | 7 | 7 | 7 |
| PuTTY | ML-KEM implementation and hybrid exchange | 41 | 13 | B |
| Skywire | ML-KEM in the Noise handshake | 29 | 28 | 28 |
| SSH.NET | Hybrid X25519 and ML-KEM key exchange | 1 | 0 | 1 |
| Xray-core | ML-KEM for VLESS encryption | 50 | 20 | 21 |
| Xray-core | ML-DSA server certificate verification | 14 | 14 | 14 |
Going deeper
| Component | Variants with checks | GLM passes | GPT passes |
|---|---|---|---|
| Key generation | 13 | 8 | 10 |
| Key encoding | 11 | 6 | 7 |
| Encapsulation | 10 | 5 | 8 |
| Decapsulation | 10 | 5 | 8 |
| Signature verification | 5 | 3 | 2 |
| Signing | 3 | 2 | 1 |
| Integration | 6 | 4 | 5 |
| Client handshake | 3 | 1 | 2 |
| Server handshake | 2 | 1 | 1 |
| Parameters | 2 | 1 | 1 |
| Types represented once | 10 | 7 | 5 |
| Total | 75 | 43 | 50 |
Imagine a city changing every door lock to a new kind that future lockpicks cannot open. Not everyone changes at once, so each new door must still open for visitors carrying the old key. Changing a lock means new keys, new ways to cut them, and a new handshake at the door.
The authors took 22 real lock changes made by real projects and handed each, half-done, to two AI assistants. A hidden inspector then tried the doors. Each assistant got about half right. Neither managed the jobs that meant rebuilding the whole doorway.
The telling mistakes were quiet. One assistant tested that two new doors opened for each other, but never tried an old key, and the old key failed. Another made two copies of a door that agreed with each other but not with anyone else's. By breaking one part of a correct door at a time, the authors could often tell which part a failed attempt got wrong.
The abstract, word for word, with the six densest phrases unpacked.
Software that relies on public-key cryptography must migrate to post-quantum cryptography (PQC). Migration requires changes to how software generates and encodes keys, which algorithms it offers to peers, and how it derives shared secrets and produces signatures. Because systems upgrade at different times, migrated software must remain compatible with peers that still use classical algorithms1. We present PQCMigrate-Bench, a benchmark of 22 tasks built from real-world PQC changes in 17 open-source repositories spanning nine programming languages2. The tasks include bindings to existing PQC libraries, extensions of protocols and key formats, and protocol redesigns. We evaluate GLM 5.3 Flash and GPT-6.2 Sol under a ReAct-style agentic setup, with hidden tests for grading3. GLM 5.3 Flash resolved 50% of the tasks and GPT-6.2 Sol resolved 55%4. Each migration task involves several components, such as key generation, key encoding, encapsulation, and protocol handshakes. For error analysis, we evaluate each component separately5. GPT-6.2 Sol passed all tests for 67% of the components and GLM 5.3 Flash passed for 57%, and most of this difference lies in key encapsulation and decapsulation6. We release the benchmark and agentic harness for future research.
Two lines of work lead here: grading agents on real repositories, and using LLMs for post-quantum migration.
Read four parts of it, in this order.
Skip Related Work if you know SWE-bench.
If the model gap is smaller than it looks, these places show why.
| Task | Resolved by | Calls | Cause in the losing attempt | Grade |
|---|---|---|---|---|
| rPGP SLH-DSA | GLM | 4 | Added only the algorithm identifiers the contract names, and said that signing and verification were not covered. Ran no build. | Held-out tests did not compile |
| Keycloak | GLM | 7 | Made PREFIXES a private map of hex strings. The held-out test reads a package-visible map to byte arrays; the contract checks only that a map exists. | Build failed, 0/80 |
| Activeledger | GLM | 16 | No defect found. The failing test makes 80 signatures under a two-second default timeout. | 15/16 |
| SSH.NET | GPT | 61 | Hashed the ML-KEM secret with SHA3-256 before combining it with the X25519 secret. Local checks never contacted another implementation. | 0/1 (OpenSSH) |
| ngchain-js | GPT | 45 | Changed only the crypto module. Wallet serialization still wrote and accepted only the classical key. | 27/31 |
| OpenSSL | GPT | 111 | Its internal ML-KEM interface failed one check of the held-out internal test; its own test of that interface was discarded as a test file. Exact check not identified. | 1/2 |
| age | GPT | 92 | Library tests passed; the command-line script for hybrid recipients failed. Cause not identified. | 243/245 |
Each baseline describes one attempt per task with one agent and supplied task descriptions. Tasks from the same repository or upstream change can share code and tests. The local tests are chosen during the attempt, and their coverage varies. The logs therefore describe the checks the agents selected. They give no estimate of the effect of adding tests or tool calls.
We chose tasks whose upstream changes, builds, and tests we could recover. The changes were public and may have been in model training data. Seven tasks have no recorded tests that pass on both the starting code and the reference implementation. The repeated reference runs were part of test selection. We have no recorded recheck of the complete corpus through the final grading path. Two grades depend partly on the benchmark. GPT’s Activeledger failure came from a test that makes 80 signatures under a two-second timeout, and the Keycloak contract omits the type that its held-out test requires. Passing the benchmark establishes the tested behavior under the specified conditions. Broader interoperability, standards conformance, and resistance to side-channel attacks require separate evidence.
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
More latest news
Read all