Best post-quantum cryptography scanners and migration tools

Post-quantum cryptography migration pairs scanners that find weak RSA, 256-bit elliptic curves and classical TLS with tools that update endpoints and code. CBOMkit, Semgrep, ast-grep, SonarQube, testssl.sh, openssl s_client and commercial CBOM platforms handle discovery. Cloud policies fix edge TLS, and Capy turns scanner output into tested pull requests across repositories.
No single post-quantum cryptography tool finds weak RSA and 256-bit curves and edits code, so pair scanners with edge policies and coding agents. Pick one tool per job below, or see the NSA December 2026 post-quantum advisory engineering checklist.
Which post-quantum cryptography tool does each job
Capy sits in the code-change category and does not replace a scanner or CBOM platform.
| Tool | Finds | Where it looks | Output | Fixes code |
|---|---|---|---|---|
| CBOMkit | Algorithms, keys, certs | Java/Python, images, git | CycloneDX CBOM | No |
| Semgrep | Weak keys, 256-bit curves, JWTs | Source locally, CI | CLI, JSON | No |
| ast-grep | Structural calls, curves, sizes | Source locally, CI | CLI, exit code | No |
| SonarQube | Weak keys via S4426, CBOM | Source in CI, SonarQube | Issues, CBOM | No |
| testssl.sh | TLS settings, ML-KEM groups | Live network endpoints | Terminal report | No |
| openssl s_client | TLS 1.3 hybrid handshake | One live TLS endpoint | Transcript | No |
| Cloudflare Radar | Public PQ key exchange | One public hostname | Pass or fail | No |
| SandboxAQ AQtive Guard | Crypto vs CNSA 2.0, NIST | Enterprise systems | CBOM, reports | No |
| Keyfactor AgileSec | Quantum-vulnerable assets | Network, hosts, source, repos | Inventory, map | No |
| Cloud built-ins | Nothing | Edge load balancers, CDN | Logs, analytics | Edge only |
| Capy | Regressions via Capy Review | Cloned repos on microVMs | Tested PRs, findings | Yes |
How to scan code, images and live TLS endpoints
- CBOMkit. IBM donated it to the Post-Quantum Cryptography Alliance with
sonar-cryptographyfor Java and Python,cbomkit-theiafor images and filesystems, and a git service; Go and TypeScript need another scanner. - Semgrep. Default rules in
semgrep/semgrep-rulesdo not enforce a 3072-bit floor becauseuse-of-weak-rsa-keyflags RSA under 2048 bits only, missing RSA-2048, P-256 and Ed25519. Write custom YAML rules withpattern-eitherandmetavariable-comparison. - ast-grep. Runs free structural YAML rules locally or in CI, exiting non-zero on flagged calls while missing dynamic indirection. See Block weak RSA and ECC in CI and PR review.
- SonarQube. Runs
S4426across languages including Go in CI and hostssonar-cryptographyfor Java and Python CBOMs. DefaultS4426thresholds do not enforce a 3072-bit floor and miss P-256 and Ed25519. - testssl.sh. Pre-release
3.3devsnapshots, including snapshot2611from November 4, 2026, report ML-KEM hybrid groups with OpenSSL 3.5 or newer or LibreSSL 4.3 via--openssl. It checks live TLS only and fails ML-KEM on distro OpenSSL 3.0. - openssl s_client. OpenSSL 3.5 adds ML-KEM, ML-DSA, SLH-DSA and RFC 10024 hybrid groups with
X25519MLKEM768first by default. Probe one live TLS 1.3 host per run; distro OpenSSL 3.0 cannot negotiate PQ groups. - Cloudflare Radar. Checks one public hostname for
X25519MLKEM768, while Cloudflare zones log PQ traffic in HTTP Analytics and Logpush; internal hosts stay invisible. - SandboxAQ AQtive Guard and Keyfactor AgileSec. AQtive Guard tracks CBOMs against CNSA 2.0 and NIST mandates, and AgileSec maps vulnerable crypto across networks, hosts, source and artifacts. Both are commercial tools that stop at reporting.
openssl version
openssl list -tls1_3 -tls-groups
openssl s_client -connect example.com:443 -groups X25519MLKEM768 -tls1_3
Run a post-quantum migration across repositories with Capy
Scanners create the work list, and Capy executes the repository changes without replacing a scanner, CBOM tool or security team.
- One thread per repository. Give a Captain your CBOM, Semgrep JSON or repository list, and it splits the work into one thread per repository, each opening and following its own PR.
- Real tests on isolated cloud microVMs. Each thread runs on its own isolated cloud microVM with the repository cloned and environment setup installed, running your test suite and
openssl s_clientchecks before opening the PR. - PR review rules for regressions. Capy Review enforces plain-English rules in
AGENTS.mdunder## Reviewsplus organization rules in Review settings, flagging P-256, Ed25519 and RSA under 3072 bits on every PR. - Scheduled sweeps and human merges. Automations run a stored prompt on a schedule, such as a weekly re-scan opening a PR for weak crypto, and Capy never merges unless someone asks.
Which cloud load balancer policies fix edge TLS
- Google Cloud Load Balancing.
X25519MLKEM768is on by default for frontend connections on external, classic and internal ALBs and proxy Network Load Balancers, not backends. - AWS ALB and CloudFront. ALB
PQpolicies enableX25519MLKEM768,SecP256r1MLKEM768andSecP384r1MLKEM1024. Console listeners default toELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09andELBSecurityPolicy-TLS13-1-2-Res-FIPS-PQ-2025-09for FIPS, while CLI, CloudFormation and CDK default toELBSecurityPolicy-2016-08; logs track TLS in field 5 and key exchange in field 13, and CloudFront supportsX25519MLKEM768andSecP256r1MLKEM768. - Cloudflare. Supports
X25519MLKEM768for visitors, hybrid TLS 1.3 to origins in Full or Full (strict) mode, and ML-DSA origin authentication.
Backend TLS, Kubernetes ingress, JWTs, SSH and private PKI still need code edits; see Post-quantum Kubernetes, nginx and cloud load balancers.
How to combine scanners and migration tools
- Discover. Pair CBOMkit with custom Semgrep or ast-grep rules for Go and TypeScript.
- Gate diffs. Block RSA under 3072 bits and 256-bit curves in CI plus Capy Review rules in
AGENTS.md. - Verify endpoints. Probe hosts with
openssl s_client,testssl.sh3.3devon OpenSSL 3.5 or newer, and Cloudflare Radar. - Ship fixes. Enable edge PQ policies, update AWS listeners on
ELBSecurityPolicy-2016-08, then fan out batches with a Capy Captain; see How to run a code migration across many repositories with coding agents.
Start with free tools for inventory and CI gating. Buy AQtive Guard or AgileSec for enterprise CBOM governance, and use Capy when migrating dozens or hundreds of repositories becomes the bottleneck.
Frequently Asked Questions
Does a CBOM scanner automatically migrate weak RSA or ECC?+
Why do default Semgrep and SonarQube rules miss NSA advisory targets?+
Can cloud load balancer policies replace code changes?+
How does Capy fit beside CBOMkit or Semgrep?+
Sources
- PQCA: CBOMkit architecture
- GitHub: semgrep/semgrep-rules
- GitHub: testssl.sh releases
- Capy docs: Captains
Spotted something out of date? Tell us at support@capy.ai.
Turn scanner output into tested pull requests
Give a Capy Captain your CBOM or Semgrep JSON, fan out one agent per repository on isolated cloud microVMs, and review PRs that already pass CI.





