Anyone who handles your request on its way to the model can read it: your logging, a router, resellers, the host and the lab. In November 2026, a Dragos study of about two million prompts with planted secrets caught breached providers and resellers seeing prompts, some on “zero data retention” routes. Never send live secrets, call providers directly for sensitive work, and redact first.
What did the 2-million-canary study find?
It found that prompts leak at more than one point in the chain, and that “zero data retention” labels didn’t stop it. HD Moore at Dragos published the results on November 19, 2026. From July through November 2026, the team sent about two million prompts, each carrying unique URLs and canary credentials, to widely used AI services, then watched for anyone using them.
What came back:
- Data from at least three AI providers was exposed, and none of the three knew about the breach until Dragos told them. Attackers tested the planted AWS keys, “in some cases within a few hours” of the request, then went looking for data in S3, Secrets Manager and Parameter Store. In total the bait keys were used for “tens of thousands of AWS API calls.”
- Marketplace resellers saw and kept customer prompts “using standard logging capabilities, without exploiting a vulnerability or bypassing platform controls.”
- A Chinese AI lab’s systems fetched the secret URLs from more than half of the prompts sent to its models, “including roughly two-thirds of the requests marked as ‘no data collection’ or Zero Data Retention.”
- One provider kept crawling a secret URL more than two months after a single request.
- Dragos traced about two thousand routes and found one marketplace seller that “quietly adds about a thousand hidden tokens to every prompt.”
What did OpenRouter and MiniMax confirm?
Both confirmed parts of it. On November 22, OpenRouter published a list of data processing incidents at providers on its platform. It off-boarded three providers, removed 125 endpoints from ZDR eligibility and notified potentially affected customers. The list also includes a Together notice about “prompt leakage for requests in June and July of 2026.” OpenRouter says it’s adding continuous security testing, checking network paths for third-party forwarding, and requiring validation before an endpoint gets ZDR status back.
On November 24, MiniMax explained that its internal security monitoring pulled URLs out of API requests forwarded by OpenRouter and other providers, and that its “internal security programs and agents actively probed and accessed some of the logged URLs.” The monitoring was “enabled by default” on those endpoints, and it covered requests marked ZDR. MiniMax says it disabled the process, deleted the logged URLs and found no evidence that prompt content was disclosed to third parties.
By MiniMax’s account, its own security tooling opened those links. For you the effect is what matters: if one of those links had been a pre-signed download URL, opening it would have handed over the file.
Who can actually see a prompt?
More parties than most teams list. Here’s the chain for a typical app, with the control you have at each hop.
| Hop | Who can read the prompt | Your control |
|---|---|---|
| Your app, logs and tracing | Anyone with access to your logs, your error tracker and your LLM observability tool | Don’t log full prompts by default. Redact before logging. |
| Router or gateway | The router operator | Pin providers, deny data collection, turn fallbacks off |
| Reseller or host | Whoever runs the GPUs, and anyone who has broken into them | Choose first-party or major cloud hosts. Avoid the cheapest unknown listing. |
| Model lab | The lab’s API, safety systems and, for flagged content, human reviewers | Retention settings, ZDR agreements, region choice |
| Stored state | Anything you asked the API to keep: conversation state, files, vector stores | Turn storage off, delete what you don’t need |
The first row is the one teams forget. During pentest remediation on a client platform, I found a payment client that could put its API key into exception messages, and those fed a third-party error tracker. That’s the same leak with a different reader. The details are in pentest quick wins.
What does zero data retention actually cover at each provider?
Less than the name suggests. ZDR is about storage after the request. Every hop still processes the prompt in memory, and most providers keep some data for abuse monitoring unless you have a separate agreement. Here’s where the major APIs stood when I checked each vendor’s docs on November 29, 2026:
| Provider | Default for API data | Stronger option | Catch |
|---|---|---|---|
| OpenAI API | Not used for training. Abuse monitoring logs kept up to 30 days. | Zero Data Retention or Modified Abuse Monitoring, with sales approval | With store=true, Responses API data is kept “for at least 30 days.” Vector stores and conversations stay until you delete them. |
| Anthropic API | Inputs and outputs deleted within 30 days. Flagged content kept up to 2 years. | ZDR by agreement | Since June 9, 2026, Covered Models (Mythos-class, including Claude Fable 5, 5.1 and 5.2) require 30-day retention on every platform, so a ZDR org has to turn retention on for a workspace to use them |
| AWS Bedrock | Retention mode per Region and per project: none, default or aws_review. Unset means each model’s own default. Bedrock says it doesn’t share content with model providers in any current mode. |
none, enforceable org-wide with an SCP |
Claude Fable 5, 5.1 and 5.2 require aws_review unless your account is approved for ZDR on them: up to 30 days retained in AWS, possibly reviewed by AWS |
| Azure (Microsoft Foundry) | Not available to OpenAI or other model providers. Flagged samples may get human review. | Modified Abuse Monitoring, by application | A November 17, 2026 update says Modified Abuse Monitoring won’t be offered for models released on or after November 1, 2026, from a date still to be announced. “Global” deployments can process prompts in any geography. |
| Google Gemini API | Unpaid tier: used to improve Google products, and humans may review it. Paid tier: not used for that. | Paid tier | Paid traffic is still logged “for a limited period of time” for abuse detection |
| OpenRouter | Depends on the upstream provider | zdr: true per request, or account-wide in privacy settings |
The label is only as good as the upstream provider’s word, which is what the November incidents tested. In-memory prompt caching doesn’t count as retention, and plugins such as web search follow their own policies. |
The vendor pages carry their own dates: Anthropic’s privacy article was last updated July 1, 2026, Microsoft’s change log lists the November 17, 2026 update, and Google’s Gemini API terms were last modified March 23, 2026. Retention rules for new models change often, so check again before you sign anything.
Watch for free-tier keys. If someone on the team sends production data through an unpaid Gemini API key, Google’s terms allow human reviewers to read it.
What should never go into a prompt?
Live credentials of any kind, because a prompt can end up in places you’ll never audit. That means:
- API keys, cloud access keys, database URLs with passwords,
.envcontents - Session cookies, bearer tokens, OAuth refresh tokens
- Pre-signed or tokenized URLs. The MiniMax case shows these get opened.
- Customer personal data the task doesn’t need. A support summary rarely needs the customer’s email address.
Coding agents make this harder. An agent that reads your repository and runs commands will put whatever it reads into its context, so a .env file in the working tree can end up in the next request. Keep real secrets out of the directories agents work in. Coding agents without your keys covers sandboxes and scoped tokens.
How do I redact prompts before they leave?
Put one function between your code and every LLM client, and make it the only path out. I built this for OpenSRE, an open-source toolkit for AI SRE agents: a guardrails engine that scans content before every LLM call and can redact, block or audit it, with rules in a YAML file. A blocked request raises an error that the retry logic never retries.
The core idea fits in a few lines:
import re
# Known key shapes only. Run a real scanner too (see below).
PATTERNS = [
("aws_access_key", re.compile(r"\b(?:AKIA|ASIA)[0-9A-Z]{16}\b")),
("github_token", re.compile(r"\bgh[pousr]_[A-Za-z0-9]{36,}\b")),
("private_key", re.compile(r"-----BEGIN [A-Z ]*PRIVATE KEY-----.*?-----END [A-Z ]*PRIVATE KEY-----", re.S)),
("bearer", re.compile(r"(?i)\bbearer\s+[A-Za-z0-9._~+/=-]{20,}")),
("signed_url", re.compile(r"https?://\S+[?&](?:X-Amz-Signature|Signature|sig|token)=\S+", re.I)),
("db_url", re.compile(r"\b(?:postgres(?:ql)?|mysql|mongodb(?:\+srv)?|redis)://[^\s:@/]+:[^\s@/]+@\S+", re.I)),
("email", re.compile(r"\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b")),
]
def redact(text: str) -> tuple[str, list[tuple[str, int]]]:
found = []
for name, rx in PATTERNS:
text, n = rx.subn(f"[REDACTED:{name}]", text)
if n:
found.append((name, n))
return text, found
Log the found list (names and counts, never the matches) so you can see what your users and agents are trying to send. Regexes only catch known shapes, so add a scanner. gitleaks reads from stdin and exits with code 1 when it finds a leak, which makes it a simple block-or-allow check: printf '%s' "$PROMPT" | gitleaks stdin --no-banner. For personal data, Presidio detects and anonymizes names, card numbers and similar entities, and its docs say plainly that “there is no guarantee that Presidio will find all sensitive information.”
How do I find out if my prompts are leaking?
Do what Dragos did, on a small scale. Its team seeded every request with Thinkst Canarytokens: an AWS key, a DNS name and a URL used nowhere else. Create a decoy AWS key and a unique URL on canarytokens.org, which Thinkst runs for free. Its AWS key token is a real AWS key with no permissions that alerts you, with the source IP and user agent, when someone tries to use it. Put both in places your pipeline sends to a model: a test document in your RAG corpus, a fake config file in a repository your agents work on, a line in a staging system prompt. Use a different set of canaries for each route, including fallbacks.
If an alert fires, you know which route leaked, and you didn’t need anyone’s cooperation to find out. Dragos recommends exactly this for teams running their own agents and pipelines.
Should I stop using routers?
Not for everything. Match the route to the data. This is the guide I’d use:
| What’s in the prompt | Route | Settings |
|---|---|---|
| Public content: marketing copy, docs, published pages | Router is fine | data_collection: "deny", zdr: true |
| Internal code and business data | First-party API or your cloud provider, direct | ZDR where offered, Bedrock none, storage off |
| Customer personal or regulated data | Cloud provider in your region under your DPA or BAA, or self-hosted | Retention none, no Global deployment type, redaction on |
| Live secrets | Nowhere | Redact or block |
If you do use OpenRouter for the first row, pin it down so a cheap unknown listing can’t pick up your traffic:
{
"model": "MODEL_ID",
"messages": [{ "role": "user", "content": "..." }],
"provider": {
"only": ["anthropic", "openai"],
"allow_fallbacks": false,
"data_collection": "deny",
"zdr": true
}
}
These parameters are in OpenRouter’s provider routing docs. Replace MODEL_ID with your model, and check the provider slugs on its page. At Zaher.AI, the GEO audit pipeline runs on Azure AI Foundry with OpenRouter as a fallback, as described on the platform page. Its prompts are shopper-style questions about brands, not customer records. If they carried customer records, a router fallback wouldn’t belong there. How a vendor can change under you is covered in treat your LLM like a dependency.
What I’d do this week
- List every route your prompts take, including fallbacks, SDK defaults and the observability tool that logs them.
- Classify each route against the table above. Move anything with customer data off routers and resellers.
- Check retention settings: OpenAI
store, the Anthropic workspace retention, the Bedrock mode per Region (nonewhere you can, enforced with an SCP), Azure deployment type. - Make sure nobody uses a free Gemini API key for real data.
- Put one redaction function in front of every LLM client, plus a gitleaks check that blocks.
- Plant two canaries per route and leave them there.
- If secrets ever went to MiniMax models through a router or reseller, rotate them now. MiniMax says the affected requests came directly from OpenRouter or through Novita, Streamlake and Atlas Cloud. Do the same for anything that went through a provider OpenRouter off-boarded.
The same “what can a stolen credential do” question applies to your build pipeline, and what can your CI reach? walks through it. Inference-provider risk is one part of a wider AI architecture review, and I do those as part of my fractional CTO work.