PQCMigrate-Bench: Can LLM Agents perform Real-World Post-Quantum Cryptographic Migrations?
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 algorithms. We present PQCMigrate-Bench, a benchmark of 22 tasks built from real-world PQC changes in 17 open-source repositories spanning nine programming languages. 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 grading. GLM 5.3 Flash resolved 50% of the tasks and GPT-6.2 Sol resolved 55%. Each migration task involves several components, such as key generation, key encoding, encapsulation, and protocol handshakes. For error analysis, we evaluate each component separately. 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 decapsulation.…
- arXiv
- 2612.06106
- Authors
- Krishna Upadhyay, Daniel Liu, A. B. Siddique, Umar Farooq
- Categories
- cs.CR · cs.SE