Quantum Threats

The Cryptography Risk at the Intersection of AI and Quantum Computing

A knowledge graph drawn in white points and lines on black

Artificial intelligence is not making sound encryption obsolete overnight. It is making the weaknesses around encryption easier to find, exploit and scale. Quantum computing presents a different problem: a sufficiently capable quantum computer could break the public key mathematics behind RSA and elliptic curve cryptography. Managed separately, each risk is serious. Managed together, they expose a larger issue: most organizations still cannot see, govern or rapidly change the cryptography on which their operations depend.

How AI is changing cryptographic risk

AI accelerates discovery of weak cryptography. An attacker can use models to inspect source code, binaries, configuration files and certificate data for hard-coded keys, obsolete algorithms, weak random-number generation, reused nonces or unsafe protocol settings. None of these attacks requires AI to solve AES or factor a modern RSA key. AI changes the economics by reducing the expertise and time needed to find exploitable mistakes across a large estate.

AI-assisted development can introduce new flaws. A code assistant may produce a function that appears to encrypt data but uses a static initialization vector, selects an unauthenticated mode, disables certificate validation or stores a private key in a configuration file. Agentic systems raise the stakes further: an overprivileged agent connected to a CI/CD pipeline, secrets manager or signing service could expose keys, approve an unsafe dependency or sign a malicious artifact. NIST now lists insecure code generation, unauthorized actions, data leakage and unapproved AI-generated supply-chain artifacts among the risks of AI-enabled development. [1]

AI creates new concentrations of sensitive data. Prompts, retrieval stores, training sets, model logs and vector databases may contain credentials, tokens, certificates or fragments of proprietary code. A support engineer who pastes a TLS configuration into a public model, or a retrieval system that exposes an internal key-management runbook to the wrong user, can bypass the mathematics entirely. Joint US and allied guidance therefore emphasizes provenance, digital signatures and protection of data throughout the AI lifecycle. [2]

AI can strengthen attacks on implementations and people. Machine learning can improve side-channel analysis when an attacker has the necessary access and data. Generative AI also makes targeted impersonation cheaper: a convincing voice or email can persuade an operator to export a key, reset multifactor authentication or approve a signing request. The cryptographic primitive remains intact, but the trust process around it fails.

Where quantum changes the equation

Quantum risk is more structural. Shor’s algorithm would undermine the integer factorization and discrete logarithm problems used by RSA, Diffie Hellman and elliptic curve systems. Symmetric cryptography is affected differently: Grover’s algorithm reduces effective security, but larger key sizes can compensate. The immediate concern is harvest now decrypt later, in which adversaries collect encrypted traffic today and retain it until decryption becomes practical. Data with a long confidentiality life, including health, financial, defense, identity and intellectual-property records, is already exposed to that timeline.

The response has moved from research to implementation. NIST’s ML-KEM, ML-DSA and SLH-DSA standards are available for deployment, and NIST calls on organizations to begin migration now. [3] In the United States, Executive Order 14412 sets 2030 and 2031 PQC deadlines for key establishment and digital signatures in federal high-value and high-impact systems, while also pushing federal procurement and critical-infrastructure planning. [4] In Europe, the EU’s coordinated roadmap calls for a synchronized transition across Member States and critical sectors. [5]

The combined risk is a multiplier

The most credible combined scenarios do not depend on a quantum computer running an AI model. They arise because AI improves targeting and automation while quantum computing threatens the trust anchors the attacker has identified. Consider four examples:

  • Smarter harvesting. AI can classify intercepted traffic, stolen archives and public metadata to identify which encrypted records will retain value for ten or twenty years. An adversary can spend storage and collection resources on the data most worth decrypting later.
  • Machine-speed dependency mapping. AI can locate RSA and elliptic curve dependencies across applications, firmware, certificates and third-party libraries. Defenders can use the same capability for inventory; attackers can use it to prioritize systems that will remain quantum-vulnerable longest.
  • Unsafe migration at scale. Teams may use AI to rewrite cryptographic code or configure hybrid classical and post-quantum protocols. A plausible but incorrect implementation could introduce downgrade paths, broken certificate validation or interoperability gaps across thousands of endpoints before the error is noticed.
  • Compromised provenance. AI systems increase the volume of models, datasets, code and automated actions that must be signed and verified. If long-lived software-signing or identity keys remain quantum-vulnerable, a future attacker could forge updates, model artifacts or machine identities at precisely the point where organizations depend most heavily on automation.

A practical agenda for 2027

Organizations should treat AI security and PQC migration as one cryptographic-risk program. Start with an evidence-based inventory of algorithms, keys, certificates, libraries, protocols, HSMs, signing systems and data-retention periods, including assets embedded in AI platforms and their supply chains. Prioritize by data lifetime, business criticality, exposure and replacement difficulty.

Next, put boundaries around AI access to secrets and signing authority. Apply least privilege, isolate key operations in controlled services or hardware, scan prompts and pipelines for secrets, require provenance for AI-generated artifacts, and preserve human approval for high-impact cryptographic changes. Test post-quantum and hybrid deployments under real performance and interoperability conditions, with explicit downgrade protection and rollback plans. Most importantly, build crypto agility: the ability to discover, replace and verify cryptography without another multi-year emergency program.

The quantum timeline remains uncertain; the migration workload does not. AI is increasing the speed and scale at which cryptographic weaknesses can be found and operationalized. The organizations best prepared for both risks will be those that know where their cryptography is, understand what it protects and can change it before an attacker forces the decision.

Sources

  1. NIST NCCoE DevSecOps Practices
  2. NSA AI Data Security guidance
  3. NIST Post Quantum Cryptography project
  4. US Executive Order 14412
  5. EU coordinated PQC implementation roadmap

Related articles

The climb doesn’t get easier by waiting.

QIZ is your guide, every step of it.