← Lab /Software

LLM-assisted static analysis finds 5,775 quantum-vulnerable uses with 72% precision

The Quantum-Safe Code Auditor can identify quantum-vulnerable cryptographic primitives with 100% recall and about 72% precision

Software arXiv 1 Apr 2026 Method Prototype evidence Threat model

Published as “Quantum-Safe Code Auditing: LLM-Assisted Static Analysis and Quantum-Aware Risk Scoring for Post-Quantum Cryptography Migration”

Why it matters

The tool gives engineering teams an actionable, risk-based inventory to prioritize post-quantum migration before the 2030 CNSA 2.0 deadline.

Summary

The Quantum-Safe Code Auditor achieves 71.98% precision, 100% recall, and an 83.71% F1 score on a stratified sample of 602 labelled findings from five open-source libraries, providing a VQE-based risk score (0-10) to prioritize migration. Evidence comes from the authors' own evaluation; however, a large number of false positives from test code and sampling assumptions temper the strength of the claim.

What they found 2

  1. Precision of 71.98%, recall of 100%, and F1 of 83.71% on the labelled sample.

    “On a stratified sample of 602 labelled instances, we achieve 71.98% precision, 100% recall, and an F1 score of 83.71%.”

  2. VQE threat scores range from 3.54 to 7.00, with higher scores indicating immediate migration priority.

    “Node-jsonwebtoken scores highest (7.00) because it is a hightraffic JWT library used directly in authentication flows: RSA-2048 and ECDSA signing are in the critical production path, qubit costs are relatively low, and HNDL exposure is immediate.”

Caveats 6

  • 188 false-positive test-code findings (FP-Test) inflate the apparent false-positive rate, indicating that precision would drop without proper EXCLUDE_PATHS configuration.
  • The VQE scores are described as a relative prioritisation signal and are not actual qubit-requirement forecasts, limiting their predictive value.
  • The largest single source of false positives is the 188 FP-Test findings, all of which arise from python-ecdsa.
  • SHA-1 and 3DES have lower per-algorithm precision (0.458-0.667) due to two factors.
  • HARDCODED_KEY has 0.000 precision in our sample.
  • The 100% recall is a deliberate design choice.

What’s new here 4

  • Integrates a Variational Quantum Eigensolver (VQE) model to produce a continuous quantum-risk score for each finding.
  • Uses LLM (Claude) enrichment to classify usage context and reduce false positives beyond regex matching.
  • Provides NIST PQC migration guidance (FIPS 203/204/205) directly in the remediation report.
  • Supports multi-language analysis across five repositories and outputs GitHub issues and Notion dashboards.

Threat model stated by the source

AdversaryQuantum adversary with access to a cryptographically relevant quantum computer (CRQC)
CapabilityRuns Shor's algorithm to fully break RSA/ECDSA/ECDH/etc., or Grover's algorithm to halve symmetric security; can harvest encrypted traffic today for future decryption (HNDL).
AssumesCRQC becomes operational between 2030-2035; Adversary can store intercepted ciphertext now and decrypt later; Side-channel and implementation attacks are out of scope