AI Prompt Privacy: Risks in the Inference Supply Chain11 min read2,294 words

AI Prompt Privacy: Risks in the Inference Supply Chain

Learn how AI prompts leak through routers, resellers and model hosts—and practical controls businesses can use to reduce exposure without stopping AI adoption.

AI prompt privacyAI data securityAI inference supply chainzero data retentionAI security risks
AI Prompt Privacy: Risks in the Inference Supply Chain

AI Prompt Privacy Is Only as Strong as the Supply Chain

AI prompts are often more than a question. Employees paste code, customer details, internal documents, and credentials because it's the fastest way to get work done. The problem is that a prompt can travel through several companies before a model answers - and every stop can become a place where data leaks.

A researcher tested that risk by sending nearly two million prompts containing unique, trackable secrets through AI providers and resellers. The reported results included credentials showing up again after provider breaches, prompts being captured by resellers, and secret URLs being fetched even when privacy settings like Zero Data Retention (ZDR) were used. This doesn't mean every AI provider is unsafe. It does show why one vendor's privacy promise may not cover the full path your data takes.

This matters for any business adopting AI - especially when staff handle source code, customer information, or operational credentials. The real question isn't just which model you use. It's who can read each prompt, what they retain, and how you limit the damage if one link in the chain fails.

What did the canary experiment reveal?

The experiment, led by security researcher HD Moore, used secrets that had never been used before. The package included AWS access keys tied to empty accounts, SSH passwords, unique URLs and DNS names, and references to private Git repositories. Moore controlled the infrastructure behind the credentials and URLs, so the researcher could observe what happened when they were used.

Each secret was placed in exactly one prompt and sent to exactly one provider. That made each item a canary: if it showed up somewhere else, Moore could trace which request - and potentially which part of the provider chain - was involved. The credentials were designed to be bait, not direct access to valuable production systems. The goal was to detect exposure without putting real customer secrets in play.

Moore reported three broad types of findings:

  • Compromised providers: Requests sent to three hosting providers were reportedly stolen by attackers. Some AWS keys were tested within hours, then used in tens of thousands of AWS API calls. The activity included probing S3 buckets, secrets managers, and parameter stores, plus attempts to extend access.
  • Reseller logging and credential use: Some inference resellers reportedly logged prompts and later enabled people to test the credentials. Moore compared the same model reached through different sellers to separate reseller activity from model-provider activity.
  • Unexpected access to secret URLs: Systems associated with some providers fetched URLs embedded in prompts. One lab reportedly accessed more than half of the secret URLs sent to its models during the test period, including prompts marked for Zero Data Retention or no data collection.

It's important to say what this doesn't do. The experiment isn't a measure of how often ordinary business prompts are stolen across the whole AI market. The canaries were deliberately designed to make exposure visible, and the findings focused on specific providers and observed behavior.

But it does illustrate a real risk: prompt data can be captured, tested, or fetched outside the model response the user sees.

That distinction matters. A "successful" AI answer doesn't prove anything was handled privately. And the absence of an obvious incident doesn't prove no copy was retained. For security teams, the takeaway is to treat prompt handling like a supply-chain problem: ask what evidence supports each provider's claims.

How does prompt data move through the AI supply chain?

Many AI applications don't send requests straight to a single model company. They route requests through an AI router or gateway that picks an inference provider, often based on price, availability, or task type. Before the prompt reaches the model, the request may pass through a reseller, a hosting company, or another router.

A simplified flow can look like this:

  1. An employee enters a prompt into an AI application.
  2. The application sends it to a router or gateway.
  3. The router selects a model provider or reseller.
  4. The request goes to the infrastructure hosting the model.
  5. The response comes back through some of the same services.

Encryption in transit protects data while it moves between systems. It doesn't stop any service that receives the request from reading it. At each hop, a service may need access to plaintext to route or process the prompt. That's also where logging, retention, support access, and security controls come into the picture.

More hops usually means more organizations and systems you have to evaluate. A US-based application could route requests through a US reseller, which then sends them to a model operated elsewhere. In Moore's test, prompts sent to US hosting providers reportedly triggered the same URL-fetching behavior associated with a model lab outside the United States. So choosing a local vendor doesn't automatically prove the underlying processing path stays local.

There's a second issue too: the end user may not know which route was selected. A platform might use a default provider pool, or swap providers when availability or cost changes. That can make operations work better for performance and price, but it complicates data governance when the route is opaque.

For a business, the boundary should be the entire request path, not just the interface or the model name. Identify which parties can receive prompts, whether the provider can change dynamically, where processing occurs, and what each party records. If a vendor can't give clear answers, that uncertainty belongs in your risk assessment - not in the "technical details" bucket you ignore.

Why do privacy settings fail to guarantee privacy?

Controls like Zero Data Retention (ZDR) and "no data collection" flags help only if the systems honoring them actually follow through. They can express a contractual or technical instruction to a provider, but they can't stop an attacker who compromises the provider's infrastructure from copying a request at the entry point.

Moore reported that some stolen requests came from a provider that rejected the requests before a model ran. That suggests interception at the provider's entry point, not only inside the inference step. He also found stolen requests marked ZDR in two provider breaches. The point is straightforward: a retention setting isn't a defense against unauthorized access by whatever system ultimately received the data.

Privacy claims also have scope. A vendor may promise not to train a model on customer prompts while still retaining operational logs, sending routing data to subcontractors, or processing under terms that differ from the training promise. "Not used for training" doesn't automatically mean "not stored," "not accessible to staff," or "not forwarded." Those are separate controls and should be checked independently.

A URL inside a prompt creates another kind of exposure. If a provider or connected system fetches it, the URL can indicate the prompt was processed - and can leak information encoded in the address. References to private repositories can be even more sensitive if a system tries to clone them. In the reported experiment, repository-cloning activity was associated with prompts routed to a particular lab's models.

This is why a privacy review should separate four questions:

  • Collection: Does the service receive and inspect the prompt?
  • Retention: How long are prompts, logs, and metadata kept?
  • Use: Can data be used for training, evaluation, abuse monitoring, or other purposes?
  • Access and onward transfer: Which employees, subprocessors, model providers, or infrastructure operators can access it?

A "yes" or "no" for one question doesn't answer the others. The failure mode is treating a single privacy label as if it's a complete security guarantee. It's better to view it as one control inside a longer chain of contracts, technical safeguards, and operating practices.

How can businesses reduce AI prompt risk?

The strongest control is to keep sensitive prompts inside infrastructure you operate - for example, an on-premises deployment. Moore found self-hosting to be the most effective way to reduce exposure through external providers. It's not a universal fit though. Hardware, engineering work, ongoing maintenance, and model-quality trade-offs can make it expensive. The right choice depends on how sensitive and how frequent the work is, not on a blanket preference for local hosting.

For organizations that need a hosted service, aim for a direct relationship with a first-tier provider when that's practical. A single contract and a clearly scoped privacy policy reduce the number of parties you need to evaluate. This doesn't eliminate risk, but it makes responsibility easier to reason about than an arrangement with multiple resellers and an opaque provider pool.

A workable control plan has five parts:

1. Classify what staff may send

Define data tiers employees can apply without slowing down normal work. For example:

  • Public: Published material and non-sensitive questions; approved for standard AI tools.
  • Internal: Routine internal content; allowed only in company-approved services.
  • Confidential: Customer records, unreleased product plans, or proprietary code; use only with explicit approval and suitable contractual and technical controls.
  • Restricted: Passwords, API keys, private keys, regulated personal data, or production secrets; do not paste into general-purpose AI prompts.

The exact labels matter less than the boundary. A policy that just says "be careful" forces staff to make high-stakes security decisions under time pressure.

2. Remove secrets before a prompt leaves your environment

Use secret scanning and data-loss prevention where they fit your workflow. Redact credentials, replace customer identifiers with placeholders, and provide only the minimum context needed for the task. If an AI assistant needs to explain a deployment error, it usually needs the error message - not an unredacted production environment file.

These steps reduce impact even if a provider logs the prompt. They aren't a replacement for choosing a trustworthy service, but they're a useful second layer of defense.

3. Make the route explicit

Don't rely on default pools when prompts include sensitive data. Pick the upstream provider intentionally and document whether your application can switch providers automatically. Ask vendors for a current list of subprocessors, where processing happens, retention periods, deletion procedures, and what privacy settings like ZDR actually mean.

If answers differ across plans or endpoints, record the exact configuration you intend to use. A general company privacy page may not describe the specific request route enabled on your account.

4. Test controls with safe canaries

Security teams can use non-production credentials and unique URLs to check whether data shows up in unexpected places. Keep the test isolated: use empty accounts, harmless tokens, and infrastructure you control, and set clear rules for access and cleanup. Don't put working production secrets into prompts just to see what happens.

A controlled test can reveal routing changes, unexpected URL fetches, or retention behavior. Repeat it when providers, model routes, or contracts change - because the supply chain isn't guaranteed to stay the same.

5. Prepare for exposure, not just prevention

Assume a sensitive prompt could eventually be copied. Use short-lived credentials, least-privilege access, monitoring, and a rotation process you can trigger quickly. Review cloud audit logs for unexpected use of exposed credentials and make sure staff know how to report accidental disclosure.

A practical decision rule: self-host when sensitivity and business impact justify the operational cost. Otherwise, use a directly contracted provider with a known route, strong contractual limits, and data minimization. If you can't identify who might see a prompt, don't send restricted information to that service.

Conclusion

The canary experiment highlights a gap between what users see in a simple interface and the supply chain that may handle their prompts. Encryption in transit, a ZDR setting, or a US-based vendor can all help - but none of them answers every question about access, retention, and onward processing.

You don't have to abandon AI to manage this risk. You need to classify data, minimize what leaves your environment, choose routes deliberately, and plan for the possibility that credentials or prompts get exposed. Treat every AI prompt as data moving through a service chain - and approve that chain before sensitive information goes in.

Frequently Asked Questions

No. ZDR generally addresses how long a provider retains data under specified conditions. A provider must still process the request, and the setting cannot stop an attacker who copies it from compromised infrastructure. Check what the specific service means by ZDR and which parties in the route are covered.
No. Routers can improve availability, price and model choice. They also add another party that may receive prompts and another contract or system to assess. Their suitability depends on transparency, retention controls, security practices and whether you can select or restrict the upstream providers.
No. Self-hosting reduces reliance on external inference services but brings its own operational costs and security responsibilities. A well-governed hosted service may be a reasonable choice for many tasks. Match the deployment to the data: keep credentials and highly sensitive records out of general-purpose prompts regardless of hosting model.
Ask who receives prompts, which subprocessors and model providers are involved, where processing occurs, how long prompts and logs are retained, whether data is used for training, and how deletion works. Also ask whether routing can change automatically and whether privacy settings apply to every provider in the chain.

Related articles