Skip to content

Post-quantum readiness

Post-quantum readiness assessment, starting with your code

A post-quantum readiness assessment starts with an inventory of where you use RSA, elliptic-curve and Diffie-Hellman cryptography. CommentLLM gives your AI coding agent the models to take a first inventory of your code. With Cloudflare's open discovery prompt, five models found 92% to 98% of the labelled items in our test, in minutes per project.

  • From $0.15 per million input tokens
  • Credit from $10
  • Tested in Claude Code
Found with Cloudflare's prompt92% to 98% of labelled items
Median time per small project5 minutes
Cost per small project in our test$0.02 to $0.18
Context window1,048,576 tokens

What a readiness assessment covers

The risk from a large quantum computer is to public-key cryptography: RSA, elliptic-curve signatures and key exchange, and Diffie-Hellman. These hide in TLS settings, SSH libraries, signed tokens, certificate tooling and library defaults, often far from any line that names an algorithm. An assessment finds them, ranks them and plans their replacement.

  1. 01

    Inventory the cryptography

    List every use of public-key cryptography: in code and its dependencies, TLS and SSH settings, certificates, signed tokens, firmware and the products you buy. The NSA puts this first. An AI coding agent on CommentLLM can take a first inventory of your code.

  2. 02

    Rank it by risk

    Ask how long the data behind each use must stay secret, and how hard each system is to change. The NSA warns that adversaries already collect encrypted information to decrypt later, and asks organizations to prioritize quantum-resistant firmware signatures and hardware roots of trust, because they may be difficult or impossible to update after purchase.

  3. 03

    Ask your vendors

    Much of your cryptography sits in products you buy. The NSA, CISA and Australia's cyber agency publish questions to ask your vendors about their post-quantum plans.

  4. 04

    Plan the migration

    For most systems, key exchange moves first, to ML-KEM, because traffic recorded today can be decrypted later. On the internet that is usually a hybrid such as X25519MLKEM768; CNSA 2.0 asks for ML-KEM-1024 and does not require hybrids. Most other signatures follow, to ML-DSA or SLH-DSA. Prefer changes that make the next one easier: the NSA asks for systems that support cryptographic agility.

  5. 05

    Check again

    Run the inventory again after each change and on a schedule. PCI DSS already asks anyone who handles card data to keep an inventory of the cipher suites and protocols in use and to review it every 12 months.

What we tested

On 3 and 4 December 2026 we ran Claude Code on five CommentLLM models against three small open-source projects, in Go, Bash and Python, with an answer key of 32 uses of public-key cryptography. An AI agent wrote the key before any tested model ran, and no person has reviewed it yet. The guide has the method, the commands and every limit.

ModelItems foundMedian timeCost per project
GLM 5.3 Flash92%2 min$0.02
DeepSeek V4.1 Flash95%11 min$0.06
DeepSeek V4.1 Flash Fast98%4 min$0.05
GLM 5.395%3 min$0.16
Kimi K3.1 Pro95%8 min$0.18

All runs used Cloudflare's discovery prompt. Costs are what we were billed on the test days, on average per run; the pricing page has current rates.

  • The prompt does most of the work. Across all five models it found 95.3% of the items; the worst single run found 73%. A one-paragraph request found 72.5%.
  • Wrong findings were rare. With the prompt, 4 of 327 findings were not public-key cryptography or stated a wrong algorithm, default or role.
  • Factory's open-source skill found 78.5%, at about nine times the cost and a median of 19 minutes, in a setup that favoured the prompt: no network, and items split the way the prompt splits them. It also writes a CycloneDX CBOM, a report and a remediation plan, which the prompt does not.

Run it on your code

Start with one repository you know well, so you can judge the findings. The agent reads code you did not write, so run it in a sandbox you can throw away.

  1. 01

    Create a key

    Create an account, add credit and create an API key in the console.

  2. 02

    Point Claude Code at CommentLLM

    Set its base URL, key and model as in the Claude Code setup guide. For an inventory, give every helper and background task the same model.

  3. 03

    Run the discovery prompt

    Check out the repository at one commit, mount it read-only in a sandbox that can reach only the API, and give the agent stage 1 of Cloudflare's discovery prompts with your repository's details filled in. The guide has the exact commands and settings.

  4. 04

    Check the findings

    Look up library defaults in the versions you pin, look at both sides of every TLS connection, and open the cited lines before a finding goes into your plan.

What an AI agent does not cover

  • Live systems. Run as above, with no network beyond the API, it reads only code and configuration. Check TLS endpoints, certificates in use, hardware security modules and firmware with scanners and your own records.
  • Library defaults it cannot read. On one project in our test, runs stated a classical key exchange where the pinned libraries default to a hybrid post-quantum one: 3 of 10 with Cloudflare's prompt, 11 of 23 across all three methods. Check defaults against the versions you pin.
  • Products you buy. Their cryptography is for the vendor to disclose. Ask them.
  • Judgement. Findings are leads. Cloudflare says not to use its prompts as your only inventory tool, and a person should check each finding before it goes into a plan.
  • Compliance. An inventory is the first step regulators ask for, not proof that you meet their rules.

Why now, and the dates already set

On 2 December 2026 the White House's cyber office, the NSA and CISA said that American companies working on what the statement calls super intelligence had disclosed discoveries that "impact the security of some cryptography currently in use". Their assessment was that these advances do not present an immediate and widespread threat, and that industry and government should upgrade digital infrastructure expeditiously. The same day the NSA told the owners of national security systems to accelerate the move to post-quantum cryptography immediately, with the inventory as step 1. Neither statement said which cryptography is affected.

Those statements came on top of dates that were already set, and New York's financial regulator responded the next day. These are some of them, as each document stated them on 4 December 2026.

WhenWhoWhatSource
Since 31 March 2025Anyone who handles card dataKeep an inventory of the cipher suites and protocols in use, and review it every 12 monthsPCI DSS 4.0.1, requirement 12.3.3
3 December 2026Firms regulated by New York's financial regulatorAdvisory: review the NSA advisory, use the asset inventories its rules already require, revisit risk assessments and consider third-party providersNY DFS industry letter
By 31 December 2026EU member statesStart the transition: national roadmaps and first steps, such as inventoriesEU coordinated implementation roadmap
From 1 January 2027Buyers of US national security systems, and their vendorsCNSA 2.0 algorithms required in all new acquisitionsNSA, CNSA 2.0 FAQ
By 2028UK organizationsDiscovery and a migration plan; the highest-priority migrations by 2031 and the rest by 2035NCSC migration timelines
After 2030, then 2035Anyone following NIST's standardsQuantum-vulnerable public-key cryptography deprecated after 2030 and disallowed after 2035NIST IR 8547

Client work and sensitive code

Treat the code and the inventory as confidential: an inventory lists where your cryptography is weakest. Keep it out of public issues and pull requests.

Assessing a client's systems

Get the client's written permission first. For any part of the assessment that tests their live systems, such as their TLS endpoints, use a key bound to an engagement: each tool call is checked against the targets the client authorized, and the client gets a sealed record it can verify.

How an engagement key holds scope

Code that cannot leave your network

On the hosted API, prompts and responses pass through the gateway to an external inference provider to generate the answer, and CommentLLM does not store them. If your code must stay in your own cloud, a private deployment runs abliterated GLM and DeepSeek models in a cloud account you own, operated by CommentLLM.

Private deployment

Questions

What is a post-quantum readiness assessment?

A review of where an organization uses cryptography that a large quantum computer could break, how much each use matters and how to replace it. The cryptography at risk is public-key cryptography: RSA, elliptic-curve algorithms and Diffie-Hellman. The assessment starts with an inventory, ranks each use by risk and ends in a plan to move to post-quantum algorithms.

What does a post-quantum readiness assessment include?

An inventory of public-key cryptography in code, configuration, certificates, protocols, firmware and the products you buy. A ranking of each use by how long its data must stay secret and how hard the system is to change. Questions for your vendors. And a migration plan: for most systems key exchange moves first, because recorded traffic can be decrypted later, and most signatures follow.

What is the NSA's post-quantum warning about?

On 2 December 2026 the NSA advised the owners, operators and vendors of national security systems to accelerate the move to post-quantum cryptography immediately. It said that "frontier SI companies" had disclosed discoveries that "impact the security of some cryptographic systems currently in use", without saying which. Its next steps: inventory your cryptographic dependencies, assess risk, then triage and implement.

Can AI find quantum-vulnerable cryptography in code?

Most of it, in our test. On three small open-source projects, Claude Code with Cloudflare's open discovery prompt found 92% to 98% of the labelled uses of public-key cryptography on each of five CommentLLM models, against 72.5% for a one-paragraph request. An AI agent wrote the answer key, and no person has reviewed it yet. The agents' main weakness was library defaults they could not read, so check their findings.

How long does a cryptographic inventory take with an AI agent?

In our test, a median of 5 minutes per project with Cloudflare's prompt, with model medians from 2 to 11 minutes. The projects were small, so a large codebase will take longer, and a person still has to check the findings.

Which algorithms are vulnerable to quantum computers?

Public-key algorithms: RSA, elliptic-curve algorithms such as ECDSA, EdDSA and ECDH, and Diffie-Hellman. NIST will deprecate them after 2030 and disallow them in its standards after 2035, according to its transition report, IR 8547. Symmetric ciphers such as AES and hash functions such as SHA-256 are not broken by a quantum computer in the same way.

Is CommentLLM's own API post-quantum?

Its key exchange is, for clients that support it. When we checked on 4 December 2026, commentllm.com and api.commentllm.com negotiated TLS 1.3 with X25519MLKEM768, a hybrid of the classical X25519 and the post-quantum ML-KEM-768. Clients that do not offer it, including any still on TLS 1.2, get a classical key exchange such as X25519. Their certificates are signed with ECDSA P-256, which is classical. The check covered connections from a client to CommentLLM, not from CommentLLM to its inference provider.

Is it safe to send source code to an AI API for a cryptography review?

Treat the code and the inventory as confidential: an inventory lists where your cryptography is weakest. On CommentLLM's hosted API, prompts and responses pass through the gateway to an external inference provider to generate the answer, and CommentLLM does not store them. If your code must not leave your network, a private deployment runs abliterated GLM and DeepSeek models in a cloud account you own, operated by CommentLLM.

Can I assess a client's code with CommentLLM?

Yes, with the client's written permission. Keep their code and the inventory confidential. For any part of the assessment that tests the client's live systems, such as its TLS endpoints, use a key bound to an engagement: each tool call is checked against the targets the client authorized, and your client gets a sealed record it can verify.

Does an inventory make us compliant with CNSA 2.0 or NIST's deadlines?

No. An inventory is the first step the NSA, NIST and other agencies ask for, not proof of compliance. Whether you comply depends on what you migrate, how and by when, under the rules that apply to you.

What does it cost?

You pay per token at the model's rate, from prepaid credit of $10 or more. What an inventory costs depends on the model and the size of the code: this page shows what each small project cost us in the test. The pricing page has current rates.

Start with your inventory.

Create an account, point your coding agent at CommentLLM and run the discovery prompt on one repository.