AI doesn't break encryption — your data handling around it will
A support engineer is debugging a failed identity check. The customer's document image is in a ticket, the extracted fields are in a log, and the fastest way to understand the mismatch is to paste the record into a model prompt. The bug gets fixed. A copy of a passport now lives in a vendor's prompt history, a staging bucket and a vector index nobody owns.
AI rarely breaks encryption directly. It breaks the assumptions around it: that sensitive data has one home, that keys have one owner, and that logs are metadata rather than content.
Encryption is not a property of the pipeline
Teams often answer the data-protection question with "it is encrypted in transit and at rest". That is table stakes, not a control model. The useful questions are harder: which keys exist, who can use them, what they protect, how often they rotate, and what happens when a service account is over-privileged.
AI workflows add new places where plaintext appears:
- Prompt and response logs. Many platforms retain them by default. If a prompt contains customer data, the log is now a copy of that data, often outside the retention policy that governs the original.
- Embeddings and vector stores. Embeddings are not encryption. Sensitive text can be reconstructed or inferred, and access controls on a vector index are frequently weaker than on the source database.
- Staging and evaluation sets. Production data copied for testing, fine-tuning or evaluation multiplies the number of systems that must be protected and deleted.
- Secrets in the AI supply chain. API keys in notebooks, CI variables, model registries and local developer environments. Rotation is rare because nobody has the full inventory.
Key and secret sprawl is the quiet risk
Most incidents that look like "AI data leakage" are ordinary key-management failures with a new surface. A service account with broad read access is convenient for a retrieval pipeline. A long-lived API key is convenient for a notebook. Neither is acceptable when the data includes identity documents, payment details or health information.
The fix is unglamorous: centralise keys in a managed service or HSM, issue short-lived credentials per workload, scope them to the minimum data set, and log every use. If a key cannot be rotated without a redeploy, it is not really managed.
Prompts are an attack surface
Two failure modes matter for risk teams. The first is accidental: sensitive data pasted into a prompt that is retained or used for training. The second is deliberate: prompt injection that causes an agent to read data it should not, call a tool it should not, or disclose its instructions.
Treat model output as untrusted input. Do not let an agent act on production systems without a policy layer, an allowlist of tools and a human approval step for value-moving actions. Redact or tokenise identifiers before they reach a model unless the use case genuinely requires them.
Long-lived records and harvest-now-decrypt-later
There is a slower problem. Data captured today can be stored and decrypted later. For records that must remain confidential for a decade or more — identity documents, KYC files, payment histories — the relevant question is not whether today's encryption is strong. It is whether the data will still need protection when quantum-assisted decryption becomes practical.
NIST published its first three post-quantum standards (FIPS 203, 204 and 205) in August 2024. Migration is a multi-year engineering programme, not a switch. The practical starting point is a data inventory: what is long-lived, where is it encrypted, and which systems would need to change if the algorithm changed.
Crypto-agility matters more than any single algorithm choice. If your architecture can rotate a cipher without rewriting every service, you can respond to the timeline when it firms up.
What to fix first
- Classify before you connect. Mark fields as identity, payment, health or free text, and decide which may never enter a prompt or a vector store.
- Inventory keys and secrets. Every key, owner, scope, rotation date and consumer. Delete what has no owner.
- Minimise and tokenise. Send references, not raw records. If a model needs a name, consider a reversible token mapped in your own store.
- Control retention. Turn off provider training and prompt retention where available; set explicit retention for logs and evaluation data; delete staging copies on a schedule.
- Put a policy layer in front of agents. Tool allowlists, least privilege, rate limits and human approval for payments, refunds and account changes.
- Plan for crypto-agility. Identify long-lived sensitive data and the systems that protect it; document a migration path, even if you do not execute it yet.
One question to ask this quarter
Take your highest-value customer record and trace every copy of it: production database, backup, analytics warehouse, support ticket, log, evaluation set, vector index, model provider. If the list is longer than you expected, that is the project.
AI is not the enemy of encryption. Unmanaged data movement is. The teams that get this right treat models like any other third party with access to sensitive data — scoped, logged and removable.
If you are introducing AI into identity or payment workflows, a focused review of data flows and key management will find the expensive mistakes early. Scope a diagnostic or start the conversation before your next launch.