PQCMigrate-Bench: Can LLM Agents perform Real-World Post-Quantum Cryptographic Migrations?
Abstract
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. We release the benchmark and agentic harness for future research.
Create a lesson
Metadata
- Categories
- cs.CR, cs.SE
- Comments
- 11 pages, 10 figures, 5 Tables
Related papers
PQCImplement-Bench: Evaluating LLMs on Implementing NIST Post-Quantum Standards in Production Cryptographic Libraries
Shared title terminologycs.CRSouhardya Saha Dip, Moshood A. Fakorede, A. B. Siddique et al.
SoK: Mapping LLM Agent Guardrails Against Real-World Incidents
Shared title terminologycs.CRYipu Dou
SPARQ: Post-Quantum Location-Attested Spectrum Access with Bilateral Privacy for Database-Driven Cognitive Radio Networks
Shared title terminologycs.CRSaleh Darzi, Gökcan Cantali, Dina Abdelhadi et al.
Post-AI Cryptography: Is Cryptographic Security Ready for AI-Driven Cryptanalysis?
Shared title terminologycs.CRAli Mohammadi Ruzbahani, Abbas Yazdinejad, Hadis Karimipour
Signals, Not Verdicts: Stateful Runtime Protection for Tool-Using Agents
Shared title terminologycs.CRTiancheng Zhu, Mingjie Chen, Mingxue Zhang et al.
PvP: Intent-Conditioned Anomaly Detection Against Tool Poisoning Attacks in Agentic AI
Shared title terminologycs.CRMax de Leeuw, Cristoffer Leite, Indika Kumara