Quantum-Safe AI Systems · 4 of 5
Crypto-Agility for AI
Crypto-agility lets AI systems replace cryptography safely when threats, standards, keys, or algorithms change.
Cryptography is the quiet machinery that lets artificial intelligence systems trust anything at all: the user, the model, the data, the software, the network, and the records left behind. Crypto-agility is the ability to change that machinery without rebuilding the whole system. It is not a product feature or a single algorithm. It is a design discipline for a world where AI systems move fast, depend on many services, and must remain trustworthy after today’s cryptographic choices become tomorrow’s weak link.
Start with the job cryptography does
Cryptography is the use of mathematics to protect information and prove trust. It can keep data secret, show that data was not changed, confirm who sent a message, and make a record hard to deny later. In an AI system, those jobs appear everywhere: a user signs in, an application calls a model, a model retrieves documents, an agent invokes a tool, and logs preserve what happened.
Crypto-agility means those protections can evolve. A team can replace a weak algorithm, rotate a key, change a certificate authority, add a stronger signing method, or adopt a new standard without breaking the business process. The goal is not to predict every future threat. The goal is to avoid being trapped by past assumptions.
Why AI makes the problem larger
Traditional applications usually have clear edges: users, databases, application programming interfaces, and networks. Artificial intelligence, or AI, adds more moving parts. A large language model, or LLM, may call external tools, search private documents, summarize sensitive records, generate code, or write to business systems. Each step may cross a trust boundary.
AI also creates new assets that need protection. Training data, prompts, embeddings, fine-tuned model weights, evaluation results, retrieval indexes, safety policies, and agent traces can all carry business value or personal data. If cryptography is hard-coded into each part, changing it later becomes a slow, risky hunt through a living system.
The three things that must be easy to change
A crypto-agile design separates what cryptography does from exactly how it is done. The first thing to change is the algorithm, such as the method used for encryption, digital signatures, hashing, or key exchange. The second is the key material, which includes the secrets and private keys that make the algorithms useful. The third is the policy that says which algorithms and key strengths are allowed in each situation.
Those three things should not be scattered through source code, notebooks, model orchestration scripts, and deployment templates. They should be named, versioned, configured, and observable. A team should be able to answer: what are we using, where are we using it, who approved it, when does it expire, and what depends on it?
- Algorithms should be selectable by policy, not buried in application logic.
- Keys should be created, stored, rotated, and retired through a controlled key management process.
- Cryptographic policy should be explicit enough for engineers to implement and auditors to verify.
- Dependencies should be inventoried so a change in one place does not surprise another service.
Design for replacement, not permanence
Many cryptographic failures are not caused by bad mathematics. They are caused by systems that cannot be changed when the mathematics, standards, or business risk changes. A crypto-agile AI platform treats cryptography as a replaceable layer with clear interfaces.
For example, an application should not assume that one signature algorithm will last forever. A service should not reject every unknown algorithm without a negotiation path. A model gateway should not store long-lived secrets in configuration files. A retrieval service should not encrypt data in a way that only one old library can ever decrypt. These are design choices, not merely security settings.
Where AI systems commonly get stuck
AI projects often begin as experiments and become production systems faster than their trust architecture matures. A prototype may use a single application programming interface key, temporary storage, a default Transport Layer Security configuration, or a copied encryption snippet. These choices can be reasonable for learning, but dangerous if they become permanent without review.
The hardest traps are the invisible ones. Embeddings may preserve sensitive meaning even when original text is removed. Logs may capture prompts that include secrets. Agents may store credentials for tools they call. Fine-tuning pipelines may copy protected data into new locations. Each of these places needs cryptographic controls that can be located and changed.
- Prompt and response logs should have retention limits, access controls, and encryption appropriate to their sensitivity.
- Vector indexes and embeddings should be treated as derived sensitive data, not harmless metadata.
- Agent tool credentials should be short-lived and scoped to the smallest useful set of actions.
- Model artifacts should be signed so teams can verify where they came from and whether they changed.
- Connections between orchestration services, data stores, and model endpoints should use current secure protocol settings.
Prepare for post-quantum change
Post-quantum cryptography, or PQC, means cryptographic methods designed to resist attacks from future large-scale quantum computers. This matters because some widely used public-key methods, especially for key exchange and digital signatures, could be broken by such machines if they become practical. Symmetric encryption is affected differently and is usually strengthened by using larger keys.
PQC migration is a perfect example of why crypto-agility matters. No serious organization should wait for a crisis and then search every AI workflow for every certificate, key exchange, signed model, package signature, and encrypted archive. The practical path is to build an inventory, test hybrid approaches where appropriate, watch standards and vendor support, and plan staged replacement.
There is also a time problem called harvest now, decrypt later. An attacker may record encrypted traffic or steal encrypted data today, then try to decrypt it years from now if future capabilities improve. AI systems that process long-lived secrets, intellectual property, medical data, legal data, or government data should consider that risk now.
The decisions leaders and practitioners face
Crypto-agility becomes real through decisions about ownership, budget, architecture, and risk. Leaders do not need to choose every algorithm personally, but they do need to make sure the organization can change cryptography without panic. Practitioners need enough authority and clarity to build that ability into platforms before applications multiply.
For teams using platforms such as Microsoft Foundry, identity providers such as Microsoft Entra ID, managed key services, model gateways, or third-party AI services, the question is not whether the platform has security features. The question is how those features fit into the organization’s cryptographic policy, evidence trail, exception process, and migration plan.
- Who owns the cryptographic inventory for AI systems, including experiments that reach production data?
- Which data has a confidentiality lifetime long enough to be affected by future decryption risk?
- Which cryptographic choices are mandatory, which are recommended, and which are prohibited?
- How quickly can the team rotate a compromised key or replace a disallowed algorithm?
- How are exceptions approved, time-limited, monitored, and retired?
- What evidence will prove that model artifacts, data pipelines, and agent actions were protected as required?
Operate crypto-agility as a loop
Crypto-agility is not finished when the first design is approved. Algorithms age, libraries change, certificates expire, keys leak, regulators update expectations, and AI systems gain new capabilities. The operating model should assume change and rehearse it.
A healthy loop begins with inventory and classification. It continues through policy updates, automated enforcement, testing, rotation, incident drills, and evidence collection. The same loop should cover application code, infrastructure, model supply chains, data pipelines, agent tools, and logs. If a team can practice change during calm periods, it is much less likely to improvise during an incident.
Key takeaways
- Crypto-agility is the ability to change cryptographic algorithms, keys, and policies without rebuilding the AI system.
- AI expands the trust surface because models, prompts, tools, embeddings, logs, and data pipelines all need protection.
- The most important design move is to separate cryptographic policy and key management from application logic.
- Post-quantum cryptography makes inventory and staged migration urgent, especially for data that must stay secret for years.
- Leaders should measure not only whether systems are encrypted, but how quickly and safely cryptography can be changed.
- Crypto-agility is an operating loop of discovery, policy, safe change, testing, and evidence.
Glossary
- Cryptography
- Cryptography is the use of mathematical methods to protect information, prove identity, detect changes, or support trust.
- Crypto-agility
- Crypto-agility is the ability to replace or update cryptographic algorithms, keys, protocols, and policies without disrupting the system.
- Algorithm
- An algorithm is a defined procedure for solving a problem, such as encrypting data or creating a digital signature.
- Key
- A key is secret or private information used by a cryptographic algorithm to protect data or prove control.
- Transport Layer Security
- Transport Layer Security is a protocol that helps protect data as it moves across a network.
- Large language model
- A large language model is an AI model trained on large amounts of text to generate, transform, or analyze language.
- Post-quantum cryptography
- Post-quantum cryptography is cryptography designed to resist attacks from future large-scale quantum computers.
- Harvest now, decrypt later
- Harvest now, decrypt later is the risk that attackers collect encrypted data today and try to decrypt it in the future.