Post-quantum cryptography is required now

An open-source recipe makes an agent find the cryptography you must replace, rank each use by urgency and open pull requests with the fixes, without your code leaving your cloud.

By Introspection Team4 min readShare

On 2 December 2026 the NSA advised the owners, operators and vendors of national security systems to immediately accelerate the transition to post-quantum cryptography. It said that AI companies have disclosed discoveries that affect the security of some cryptography in use today, and that "delaying modernization exposes sensitive information, increases costs, and disrupts critical mission systems."

The move is to the NIST post-quantum standards: ML-KEM for key exchange and ML-DSA for signatures, published in August 2024 as FIPS 203 and 204. They replace RSA, elliptic curve cryptography and Diffie-Hellman.

The NSA's first step is the same for everyone: inventory your cryptographic dependencies. That means a list of every place your systems use those algorithms, and it is most of the work. The cryptography is in TLS settings, JWT libraries, SSH configs, certificates and signed webhooks, and in the dependencies of all of them. Someone must read thousands of files.

An agent can do that reading. It also has to read the code that holds your keys, so it has to run somewhere your security team accepts. This post shows how to run that agent on a data plane in your own cloud account.

Why it matters now. An attacker can copy encrypted traffic today and decrypt it once the algorithm is broken. This attack is called "harvest now, decrypt later". Data that must stay secret for ten years is already at risk. A broken signature algorithm is different: from the day it breaks, an attacker can forge a token or a certificate for as long as anyone trusts the key. Each finding therefore says whether the cryptography encrypts data or signs something, because that decides how urgent the fix is.

The recipe

template-post-quantum is an open-source recipe, Apache 2.0, published as a template: introspection init makes your own copy to run and deploy. It checks a codebase for RSA, ECDSA, ECDH, EdDSA, X25519, Diffie-Hellman and DSA, and works in four steps.

  1. Connect and scan. It finds the checkout or connects the repository, maps where the vulnerable algorithms are used, and runs the code locally where it can. The scanner records places by path and line and never copies source.
  2. Read and band. Reader subagents each take one area, with no shell and no write tool. The lead merges their notes into findings banded high, medium or low.
  3. Review. You see at most eight cards. Each says what will hold afterwards, where in the code, what keeps working for clients that have not changed, and how it is checked. You approve, comment or decline each one.
  4. Fix and verify. For each approved area the lead tests the unchanged code, changes it in its own worktree, and a verifier that did not write the change tries to break it. Only then is a pull request opened on a pq/ branch, for a person to merge.

A gate extension refuses any push or pull request for an area you have not approved, and keeps the agent out of your own checkout.

Run it on your own repository

1. Install the Introspection CLI and Pi (once, with Node.js 24 or later):

npm install -g @introspection-ai/cli @earendil-works/pi-coding-agent
pi auth login anthropic

2. Make your own copy of the recipe (once), in a folder outside any git repository:

cd ~/src
introspection init post-quantum --template template-post-quantum

3. Run it from inside the repository you want checked:

cd ~/src/your-repo
introspection local --work-dir ~/src/post-quantum -- "Check this repository for post-quantum risks"

Ask for "a report only" to change nothing. The results go to .pq/ in your repository, which git never sees, and the model is the one your Pi uses.

Run it on a data plane in your cloud

On the platform every project runs on one data plane: the cluster that runs the agent's sandboxes and stores its conversations, files and telemetry. On BYOC the data plane runs in your own AWS, GCP or Azure account, encrypted with a KMS key you hold. Each path the code could take stays inside:

  • The sandbox and everything it records live in the data plane in your account.
  • Model calls go to an endpoint inside your boundary when your copy sets llm_mode: byok. The template defaults to Introspection's managed models.
  • Observation extraction goes through Introspection's model gateway by default. We turn it off for the project on request.
  • GitHub is where the code already lives. The agent writes only pq/ branches and pull requests, which describe their change and never the findings.
  • The web and your running systems are never touched. Findings come from the code and a local run, never from live probes.

The deployment steps are in the template's README: push your copy, grant it the repositories to check, and bind your own model endpoint to keep model calls inside your boundary.

We started with our own platform

We are running this migration on Introspection first. Our service tokens can be signed with ML-DSA-65, and our Envoy gateways prefer X25519MLKEM768 on their upstream connections.

envoy-post-quantum is open source

Envoy had no way to verify ML-DSA, the post-quantum signature standard NIST published as FIPS 204, so our gateways could not check those tokens. We built envoy-post-quantum, an Envoy external authorization service that verifies ML-DSA-65 tokens beside RS256. It works with any gateway built on Envoy, including Agent Router, which runs our managed model gateway. The source is on GitHub under the Apache 2.0 license.

The lasting fix belongs in Envoy itself, so we have opened envoyproxy/envoy#49839 to add ML-DSA to its jwt_authn filter. Until a released Envoy includes it, envoy-post-quantum covers the gap.

Read more on the post-quantum readiness page, or talk to us about running the check on a data plane in your account.

← All news