Machine learning systems often feel new, but they depend on a very old promise: that certain mathematical problems are too hard for attackers to solve in time to matter. Quantum computers threaten part of that promise. They do not make every security control useless, and they will not suddenly make models intelligent or malicious. They change the risk around the cryptography that protects data, software, identities, and network connections. Post-quantum cryptography is the work of replacing the vulnerable parts before the risk arrives at scale.

Start with the lock, not the quantum computer

Cryptography is the practice of using mathematics to protect information. In machine learning (ML), cryptography protects training data in transit, model weights in storage, application programming interface (API) calls, user sessions, software packages, and the identities of people and services.

There are two broad families to understand. Symmetric cryptography uses one shared secret key to encrypt and decrypt data. Public key cryptography uses a public key that can be shared and a private key that must be protected. Public key cryptography is what lets two systems that have never met establish a shared secret over an untrusted network, and it is what lets software prove who signed it.

Today, much public key cryptography relies on problems that are hard for ordinary computers, such as factoring large numbers or solving elliptic curve problems. A sufficiently powerful quantum computer running the right algorithms would make those specific problems much easier. That is the core issue. Quantum computers do not break all encryption equally, but they do threaten the public key systems that hold much of the internet together.

📌
First principle. Post-quantum work is about changing the mathematical assumptions behind key exchange and signatures before attackers can exploit them.
Quantum computers mainly threaten public-key cryptography, which underpins key exchange and digital signatures. Symmetric vs Public Key Symmetric Public key One shared key Encrypt & decrypt Quantum-resilient Public + private Proves identity At quantum risk
Quantum computers mainly threaten public-key cryptography, which underpins key exchange and digital signatures.

Where cryptography hides in an ML system

An ML system is not only a model. It is a chain of data sources, notebooks, pipelines, feature stores, vector databases, model registries, deployment targets, monitoring services, identity systems, and human workflows. Cryptography appears at almost every boundary between those parts.

Transport Layer Security (TLS) protects connections between services. Public key infrastructure (PKI) issues and validates certificates used by those connections. Digital signatures protect container images, model artifacts, software updates, and sometimes datasets. Key management services store and rotate secrets. Identity providers such as Microsoft Entra ID help decide which users and services can get access.

This means post-quantum cryptography is not a model-training feature. It is an infrastructure and architecture concern that affects ML platforms, including cloud ML environments such as Microsoft Foundry, custom Kubernetes clusters, edge devices, and internal research systems.

Cryptography appears at almost every boundary of an ML system, from transport to signing to key management. Where Crypto Hides in an ML System TransportTLS connections PKIissues certificates Signaturesimages & models Key managementstores & rotates
Cryptography appears at almost every boundary of an ML system, from transport to signing to key management.

What post-quantum cryptography is

Post-quantum cryptography (PQC) means cryptographic algorithms designed to run on ordinary computers while resisting known attacks by both ordinary and quantum computers. It does not require quantum hardware. It is not quantum key distribution. It is software and protocol engineering based on different mathematical problems.

The National Institute of Standards and Technology (NIST) has standardized several PQC algorithms. ML-KEM, the Module-Lattice-Based Key-Encapsulation Mechanism, is used to help two parties establish a shared secret. ML-DSA, the Module-Lattice-Based Digital Signature Algorithm, is used for signatures. SLH-DSA, the Stateless Hash-Based Digital Signature Algorithm, is another signature option with different trade-offs.

The names can be confusing in an ML article because ML-KEM and ML-DSA use ML to mean module-lattice, not machine learning. They are cryptographic algorithms, not learning algorithms.

  • Use PQC for key establishment where vulnerable public key exchange is used today.
  • Use PQC signatures where long-lived authenticity matters, such as software, firmware, and model artifacts.
  • Keep strong symmetric encryption, but review key sizes and implementation quality.
  • Plan for larger keys, larger signatures, and changing protocol support.
⚠️
Not a magic shield. PQC does not fix weak access control, poor key storage, data leakage, prompt injection, or insecure model deployment.

The attack that starts before the quantum computer arrives

The most urgent risk is called harvest now, decrypt later. An attacker records encrypted traffic today and stores it. If that traffic used vulnerable public key exchange, and if the attacker later gains access to a capable quantum computer, they may be able to recover the session secrets and decrypt what they captured.

This matters for ML because some information keeps its value for a long time. Medical training data, financial records, genomic data, government workloads, proprietary model weights, and confidential research may still be sensitive in ten or twenty years. A model development conversation or dataset transfer that seems safely encrypted today may be readable later if it was protected with quantum-vulnerable key exchange.

Signatures have a different time shape. A forged signature in the future could make a malicious model update, driver, container image, or dataset appear authentic. For long-lived devices and regulated environments, signature migration can be as important as encrypted transport.

⚠️
Long-lived data. If stolen encrypted ML data would still be harmful years from now, it belongs near the front of the PQC migration plan.
Traffic recorded today can be decrypted years later once an attacker gains a capable quantum computer. Harvest Now, Decrypt Later Record traffictoday Storefor years Quantum arrivesfuture Decryptrecover secrets
Traffic recorded today can be decrypted years later once an attacker gains a capable quantum computer.

How migration usually works

A good PQC migration is not a single big switch. It starts with an inventory of cryptography in use, then ranks systems by data sensitivity, exposure, and expected lifetime. The next step is testing new algorithms in noncritical paths, then using hybrid modes where available.

A hybrid mode combines a traditional algorithm with a post-quantum algorithm. The goal is practical caution: the connection remains protected if either side of the hybrid remains secure. Hybrid designs are useful during transition because they reduce dependence on a single new assumption while standards, libraries, hardware, and compliance rules mature.

The deeper engineering goal is crypto agility. Crypto agility means a system can change algorithms, key sizes, certificate profiles, and libraries without redesigning the product. It is a design property, not a procurement slogan.

  1. Map every place ML systems use TLS, certificates, signing keys, secure shell access, package signing, or hardware-backed keys.
  2. Separate short-lived low-sensitivity traffic from long-lived sensitive data and artifacts.
  3. Test PQC and hybrid support in libraries, gateways, service meshes, devices, and managed platforms.
  4. Measure latency, packet size, certificate size, memory use, and failure modes under production-like load.
  5. Build rotation and rollback paths before making PQC a default.
Migration is an ongoing loop: inventory, rank by risk, test hybrid modes, rotate, and stay crypto-agile. A Migration Loop Inventory Rank by risk Test & hybrid Rotate stay agile
Migration is an ongoing loop: inventory, rank by risk, test hybrid modes, rotate, and stay crypto-agile.

The ML-specific wrinkles

ML systems add some unusual migration pressure. Training data is often copied into many places: raw stores, cleaned datasets, feature tables, experiment snapshots, and backups. Each copy may have a different retention period and a different encryption path. If a team protects only the serving endpoint, it may miss the higher-value data movement behind it.

Model artifacts also deserve attention. A foundation model, fine-tuned model, embedding model, or reward model can represent expensive intellectual property. If the system depends on signatures to prove that a model is approved, the signing scheme and the signing key lifecycle matter. A future signature break can become a supply-chain problem.

Edge and offline ML deployments are harder still. Devices in factories, vehicles, clinics, and stores may remain deployed for years with limited update windows. Some have constrained processors and small memory budgets. PQC algorithms can have larger keys and signatures, so teams must test them where the hardware is weakest, not only in the cloud.

  • Dataset transfers between regions, tenants, labs, and vendors.
  • Model registry signing and approval workflows.
  • Container images and inference server updates.
  • Vector database backups that contain sensitive embeddings.
  • Device provisioning certificates for edge inference.
  • Secrets used by pipelines, agents, and evaluation jobs.

Decisions leaders and practitioners face

The leadership decision is not whether quantum computers are available this quarter. The decision is which assets would be expensive, illegal, unsafe, or embarrassing to expose in the future, and how long it will take to migrate the systems that protect them.

Practitioners face more concrete choices. Which cryptographic libraries are allowed? Which protocols support hybrid key exchange? Which certificate authorities and hardware security modules support the needed algorithms? Which managed services expose enough configuration? Which third-party vendors can show a PQC roadmap rather than a vague statement of awareness?

For teams using Microsoft Foundry, Foundry Tools, Microsoft Entra ID, or other managed services, the practical task is shared-responsibility mapping. The provider may update platform cryptography, but the customer still owns architecture choices, data retention, client compatibility, private endpoints, signing policies, and any custom code or deployed agents.

  • Prioritize systems that protect long-lived confidential data.
  • Require an inventory before funding large platform changes.
  • Prefer products and libraries with crypto agility and clear standards alignment.
  • Do not accept performance claims without workload-specific testing.
  • Include PQC readiness in vendor risk reviews and architecture review boards.
✅
Good question. Ask vendors where they use vulnerable public key cryptography, what their PQC migration timeline is, and how customers will verify the change.

Operate it as an ongoing control

PQC migration does not end when one algorithm is enabled. Standards evolve, implementations receive security fixes, certificates expire, and old clients remain in surprising places. The operational problem is to know what cryptography is actually in use, not just what the architecture diagram says.

Useful telemetry includes protocol versions, key exchange methods, certificate algorithms, signature verification failures, handshake latency, error rates, and client compatibility. For signing systems, track which artifacts were signed with which algorithm and key, when the key expires, and how revocation works.

The safest organizations will treat post-quantum readiness like patch management and identity hygiene: a standing program with owners, evidence, exceptions, and deadlines.

Key takeaways

  • Quantum risk mainly threatens today’s common public key cryptography, not every kind of encryption at once.
  • ML systems depend on cryptography across data flows, identities, model artifacts, software supply chains, and edge devices.
  • Harvest now, decrypt later makes long-lived sensitive ML data a priority before large quantum computers exist.
  • PQC migration should start with inventory, risk ranking, hybrid testing, automation, and measurable crypto agility.
  • Leaders should treat PQC as an architecture and governance program, not as a model feature or a one-time tool upgrade.
  • Vendor roadmaps matter, but each organization still owns its data retention, signing, client compatibility, and custom code.

Glossary

Post-quantum cryptography
Cryptographic algorithms designed to run on ordinary computers while resisting known attacks from both ordinary and quantum computers.
Quantum computer
A computer that uses quantum mechanical effects to solve certain kinds of mathematical problems much faster than ordinary computers can.
Public key cryptography
A cryptographic method that uses a public key for sharing or verification and a private key that must remain secret.
Transport Layer Security
A protocol that protects network connections by encrypting data and authenticating the systems communicating.
Public key infrastructure
The system of certificate authorities, certificates, keys, and rules used to establish trusted digital identities.
Key encapsulation mechanism
A method that lets two parties establish a shared secret key over an untrusted network.
Digital signature
A cryptographic proof that data or software was approved by the holder of a private signing key and has not been changed.
Hybrid mode
A transition approach that combines a traditional cryptographic algorithm with a post-quantum algorithm so security does not depend on only one of them.
Crypto agility
The ability to replace cryptographic algorithms, keys, libraries, and policies without redesigning the whole system.