The Jerusalem PostRare clay seal featuring Greek goddess of fortune found in Temple Mount soil ahead of HanukkahDaily MaverickWith a pinch of salt — beware nutrition influencers selling fear, not factsInquirerMarcos to new AFP officers: Loyalty belongs to the Republic, Filipino peoplePunch2027: Nasarawa APC begins governorship campaignEl ComercioCómo Kim Jong-un pasó de ser un paria internacional a negociar con las grandes potenciasColliderNetflix’s Steamy ‘Yellowstone’ Replacement Is Officially a 50-Day Streaming SensationBusiness AMFrédéric De Gucht (Anders) deelt uit woede over begrotingsimpasse zijn telefoonnummer en krijgt meteen tientallen oproepenKoimoiMy Crazy Feminist Girlfriend Ending Explained: Why Do Haruki & His Ex Break Up For Good?Antara NewsIndonesia eyes Rp40 trillion in 2026 online shopping day salesLa PresseLa revue de presse de Paul Arcand | Le « boys club » du poste 39, le PDG de Nvidia se fait brasser au Sénat et El Niño jusqu’en maiNOSZeker 25 doden in India na drinken van mogelijk illegale alcoholWirtualna PolskaNowe fragmenty okrętu Waza odnalezione na dnie Bałtyku
The Daily Newsstand · Free, Always
Friday, December 4, 2026
Automatic translation is active. Articles in other languages will open in English.Enable automatic translation of articles from other languages into English.

AI Agents Solve About Half of Real-World Post-Quantum Cryptography Migration Tasks

The article's text, from Joho no Todai's page.

Translate

Researchers at Louisiana State University and the University of Kentucky released PQCMigrate-Bench, a benchmark for evaluating how well AI agents powered by large language models (LLMs) migrate software to post-quantum cryptography (PQC).

The team submitted the paper to arXiv on December 3, 2026, at 17:23:41 UTC, and it appeared in the December 4 new submissions listing. The paper is titled "PQCMigrate-Bench: Can LLM Agents perform Real-World Post-Quantum Cryptographic Migrations?"

The team selected real patches from 17 open-source repositories, building 22 tasks from projects that included OpenSSL, PuTTY, Apache MINA SSHD, Go’s cryptography library, SSH.NET, Keycloak, rustls, AsyncSSH, and rPGP. The tasks covered nine programming languages. The original developers changed between one and 19 files per task, excluding dependency manifests, with a median of eight.

The tasks cover ML-KEM, ML-DSA, and SLH-DSA, standardized by the U.S. National Institute of Standards and Technology (NIST), as well as earlier changes based on Kyber and Falcon. ML-KEM establishes a shared secret that peers can use for purposes such as encryption. ML-DSA and SLH-DSA are used for digital signatures.

A post-quantum migration may require changes to key generation or encoding, negotiation between older and newer algorithms, and signing or signature verification. Developers also have to account for peers that still use conventional cryptography.

The researchers gave agents the source code as it stood before the patch and described the changes in prose. Where needed, they prepared dependency changes and provided short tests showing the expected interface. The agents used a shell in a network-isolated environment to inspect, edit, build, and test the code. They had no access to the original development history or the grading tests.

The researchers graded submissions in a separate offline environment. For ten tasks where the existing tests provided insufficient coverage, they added grading tests, keeping those that passed all three runs with the developer’s patch. Tests that failed or produced no result before the patch and passed afterward checked the migration requirements. Tests that passed both before and after were regression tests. A task counted as solved if the patch passed every required test.

The models solved 12 and 11 of 22 tasks

The experiment used Inspect AI, an evaluation framework developed by the UK’s AI Security Institute. Z.ai’s GLM-5.3-Flash and OpenAI’s GPT-6.2 Sol ran in the same agent environment, with one attempt per model for each of the 22 tasks.

GPT-6.2 Sol and GLM-5.3-Flash solved 12 and 11 of the 22 tasks, respectively, for success rates of about 55% and 50%.

Both models solved the single task of adding glue code to call an existing cryptographic implementation. Each solved ten of 17 tasks extending an existing protocol or key format. Of two tasks requiring an implementation of the cryptographic algorithm itself, GPT-6.2 Sol passed the OpenSSL ML-KEM-768 task. GLM-5.3-Flash passed neither.

Neither model solved the two tasks requiring protocol redesigns in Skywire and Xray-core. These required changes at several points in the existing communication flow.

Of 12 tasks related to ML-KEM key establishment, GPT-6.2 Sol solved seven and GLM-5.3-Flash four. Of eight tasks related to ML-DSA signatures, GLM-5.3-Flash solved five and GPT-6.2 Sol four. Tasks introducing more than one algorithm count toward every relevant category.

Both models solved eight tasks. GLM-5.3-Flash alone solved three and GPT-6.2 Sol alone solved four. Seven went unsolved by either model. There was only one task between the models in the overall totals, but comparing which tasks they solved reveals more. Performance varied with the algorithm and the kind of change, so the overall success rate alone is insufficient for choosing a model for a migration.

The SSH.NET patch passed 33 regression tests but failed key exchange with OpenSSH

Peers using encrypted SSH connections need to establish keys. OpenSSH 10.0 clients began using the hybrid key exchange method mlkem768x25519-sha256 by default, combining ML-KEM-768 with conventional X25519.

One task asked the agent to add that method to SSH.NET. GLM-5.3-Flash’s patch passed all 33 regression tests. It failed the test that exchanged keys with OpenSSH using the new method.

For that method, RFC 10042 specifies that the shared secret from ML-KEM is concatenated with the shared secret from X25519, in that order, and SHA-256 is applied to derive the final shared secret.

GLM-5.3-Flash’s code applied SHA3-256 to the ML-KEM shared secret before combining the two. Two peers using the same patch could reach the same result despite diverging from the specification. The difference surfaced when the patch communicated with OpenSSH, an independent implementation that follows the specification.

The agent had run the existing key exchange unit tests. Those tests did not cover communication with another implementation.

Tests between peers using the same implementation can show that those peers agree. Tests for interoperability with independent implementations can uncover departures from the specification like this one.

Key exchange worked between updated peers but failed with an older implementation

GPT-6.2 Sol ran into a compatibility problem when asked to add ML-KEM to Skywire’s communication protocol.

The agent ran the existing Noise protocol tests and recorded 32 passes. It also wrote a test to check whether key exchange succeeded when both peers used the new implementation. That test passed as well.

The researchers’ grading suite passed 28 of 29 tests. The one failure involved an older responder using conventional cryptography and checked whether the updated initiator could fall back to the conventional method and keep exchanging data.

The agent’s test exchanged keys successfully with both peers updated. The failing test represented a mix of old and new implementations. In a real migration, teams may be unable to update every system at once, and software that supports the new method may still have to connect to older peers.

Among the 21 unsuccessful attempts out of 44, 17 recorded a failed test, three failed to build, and one produced no test results. None of the regression tests with recorded results failed.

For each model, four unsuccessful submissions passed at least 80% of the migration requirement tests. GLM-5.3-Flash’s patch for age passed 243 of 245 tests, while GPT-6.2 Sol’s patch for Kage passed 261 of 263.

In five attempts, the last recorded local test run succeeded with at least one pass and zero failures, while the researchers’ grading suite still marked the task as unsolved.

A single failing test can determine whether a connection works. Treating the pass rate as a measure of migration completeness risks overlooking that one test.

Where did the cryptographic operations go wrong?

For 21 tasks, the team also created 78 variants of the developers’ patches, each replacing one component with a simplified substitute. The researchers used the tests that failed under each substitution to determine which parts of the implementation the tests could check.

Among the 75 components with corresponding tests, GLM-5.3-Flash passed all related tests for 43, and GPT-6.2 Sol for 50, or about 57% and 67%, respectively.

Key encapsulation uses a peer’s public key to generate a shared secret and the ciphertext sent to that peer. Decapsulation recovers the shared secret from the ciphertext and the private key. The evaluation included ten cases for each operation. GLM-5.3-Flash passed five each and GPT-6.2 Sol eight each, a difference of six passes across the two operations.

For key generation, GLM-5.3-Flash passed eight of 13 cases and GPT-6.2 Sol ten. For key encoding, they passed six and seven of 11 cases, respectively.

For signature verification, GLM-5.3-Flash passed three of five cases and GPT-6.2 Sol two. For signature generation, they passed two of three and one of three, respectively, a different pattern from key establishment.

The links between tests and components also varied. Of the ten cases for encapsulation and ten for decapsulation, only one case each had a test capable of isolating that operation as the source of failure.

A test that exercises both operations together can catch a mismatch while leaving it unclear where the error lies. How well developers can test each operation independently affects what they can learn when reviewing AI-written code.

How to accept AI-written code

GLM-5.3-Flash made a median of 88 tool calls, compared with 15.5 for GPT-6.2 Sol.

GLM-5.3-Flash used more tools in all 22 tasks, yet cost less in API usage on ten. The experiment set a $2 cap per task, which neither model reached in any attempt.

Each model attempted each task once. The experiment does not show what would happen with different agent setups, instructions, or test conditions. The original patches were public and could have appeared in training data.

Seven of the 22 tasks had no recorded regression test that passed both before and after the original patch. The team also had no record of rerunning the entire dataset through the final grading process. The short tests given to the agent for Keycloak omitted a required data type. For Activeledger, the researchers said a two-second test runtime limit contributed to GPT-6.2 Sol’s failure.

Both models’ patches for hybrid key exchange in Go SSH passed the new key exchange test and all 305 regression tests. The grading test used Go’s implementation on both sides and invoked key exchange directly. The short tests given to the agents checked whether the default client configuration gave the new method top priority. Tests should check both whether the method works as specified and whether it is selected during an actual connection.

The researchers said that patches that pass the benchmark still require separate testing for broader interoperability, conformance to cryptographic specifications, and resistance to side-channel attacks.

On December 2, 2026, U.S. time, the U.S. government disclosed that it had received findings from a U.S. AI developer concerning the security of some existing cryptographic technology. The National Security Agency (NSA) recommended accelerating the migration of national security systems to post-quantum cryptography.

AI can contribute to cryptography research and help migrate cryptographic systems. This study on real software shows potential for the latter as well.

If AI can handle more of the implementation, teams may be able to spend scarce development time checking specifications and testing across implementations. The reasons for accelerating the migration also make it important to preserve time for verification.

View the original on Joho no Todai →