Dragos canaries catch prompt theft at AI inference hosts
Dragos planted canary credentials in nearly 2M prompts and caught attackers, and in one case a model's own lab, reading ZDR-flagged prompts. What OpenRouter users and agent builders should check and change.
Say you run a two-person agency that builds internal agents for clients. Your coding agent and a document-triage pipeline both call open-weight models through OpenRouter, because one API key beats five provider contracts. You turned on Zero Data Retention (ZDR) in your account settings and moved on. The coding agent reads whole repos, including the .env file with a staging AWS key. The triage pipeline forwards client emails, some with passwords pasted into the body. Your working assumption is that ZDR on means nobody keeps or reads the prompt.
That assumption just failed a live test. Attackers sat inside three AI inference providers for months, copying requests, some flagged ZDR, and none of the three knew until researchers told them, according to Dragos's research as reported by The Hacker News on Nov 22. OpenRouter said the same day that it has off-boarded three providers, removed 125 endpoints from ZDR eligibility and notified all potentially affected customers, without naming the three or saying whether they are the ones Dragos found breached, while stating the findings showed no breach of OpenRouter itself.
What it is
Two things landed together: a research result and a platform response.
The research came from the industrial security company Dragos, which published it on Nov 19. From July to November its team sent nearly two million prompts to widely used AI services, each carrying unique web links and working credentials, including AWS keys tied to empty accounts. Researcher HD Moore seeded each secret into exactly one prompt sent to a single provider, so any use of a secret pointed back to the one link in the chain that leaked it.
What came back maps directly onto the agency scenario above:
- Breaches inside hosts. In the largest of the three, a couple hundred planted AWS keys were stolen during a few short windows in late October, and every request sent in those windows was taken, per The Hacker News. Some stolen requests had been rejected before a model ever ran, which indicates the attacker was copying traffic at the first point of arrival. The thief tested keys within hours in some cases, listed S3 buckets, searched Secrets Manager and Parameter Store, and tried to create Bedrock API keys and add IAM users. The same could happen to your staging key from
.env. - Reseller logging. No break-in was needed on an AI inference marketplace: sellers listed models at the lowest prices, enabled request logging and collected what flowed through. One, on home broadband in France, took passwords from two prompts and tried root SSH logins by hand.
- Privacy settings not honored. An unnamed Chinese AI lab fetched the secret links from more than half of the seeded prompts sent to its models from July to October, TNW reports, including about two-thirds of the requests marked ZDR or no data collection. Prompts sent to U.S. providers reselling that lab's models triggered the same scraper. One secret link surfaced in a Feishu chat 24 days after it was sent and was opened within two minutes from three desktops and three phones in Beijing and Shanghai.
For detection teams, Dragos flagged two user agents from ARTEX, an AI-driven penetration testing framework the attacker brought in on Nov 1: artex-agent and artex-judge-r121. The firm says they appear in no public indicator list and are worth adding to detections.
The core lesson for the agency is in one line Moore wrote: "A privacy flag doesn't help when the attacker is already inside." On OpenRouter, ZDR is a routing rule over a classification. Its documentation says OpenRouter works with providers to understand each data policy and routes ZDR-enforced requests only to endpoints classified as ZDR. A classification describes a policy; it cannot stop a compromised server or an upstream forward.
OpenRouter's announcement links notices from four providers: Atlas Cloud and the three below.
- Phala says an attacker took control of an inference server and could view request data during processing; requests to DeepSeek V4 Flash 0731 that reached it through the gateway between Oct 21, 00:00 UTC and Nov 8, 05:35 UTC should be treated as exposed, with every secret in them rotated, per The Hacker News.
- Together AI says an unauthorized party downloaded stored prompt samples kept for routine testing after an AI coding agent committed a credential to its public GitHub repository. The samples came from requests to MiniMax M3, GLM-5.2 and Kimi K2.6 in June and July; five tested credentials were Dragos canaries. Together has made ZDR the default for new accounts.
- Novita says a routing configuration issue sent some MiniMax requests on to MiniMax's official API, and its notice gives the window as May 28 to Nov 11, 2026, according to the DEV Community roundup.
Separately, Ars Technica reported, citing posts on Hacker News and X, that OpenRouter emailed customers saying the exposure involved prompts sent to MiniMax, that planted URLs were accessed whether prompts went to MiniMax directly or through AtlasCloud, Novita or StreamLake, and that it removed the ZDR label from MiniMax-model endpoints.
OpenRouter's response splits into done and underway. Done: three providers off-boarded, 125 endpoints removed from ZDR eligibility (some flagged by researchers, some cut as a precaution), customers notified. Underway: adapting the researchers' testing so checks run continuously, verifying network paths to find where requests may be forwarded to third parties, and requiring assurances and validation before any removed endpoint regains ZDR status, per its post.
The alternatives, as the sources describe them:
- Self-hosted inference. The only option in which no third party reads a prompt, Moore wrote.
- Direct first-party provider API. Leaves one company, one contract and one privacy policy to check, the advice runs in The Hacker News's account.
- OpenRouter with ZDR enforced and providers you choose. ZDR can be enforced globally, per model group, per guardrail or per request, the docs say; the trade-off is that routing rests on a policy classification, and the docs add that "ZDR only" mode can leave some models unavailable.
Who it's for
Act now if you send requests through OpenRouter, or any router, with secrets in the context. That covers coding agents that read repos and config, pipelines that forward email or documents, and anything that pastes logs into a prompt. Moore's framing is blunt: AI agents will send whatever they can read, credentials included. If you used MiniMax models, DeepSeek V4 Flash 0731 via Phala in the Oct 21 to Nov 8 window, or Together for the three models named above in June and July, treat it as an incident and rotate.
Act this week if you run detections for a company whose developers use these services: add the ARTEX user agents and watch for use of keys that should never leave your network.
You can lower the urgency, though not skip the hygiene, if you only call a first-tier provider directly and never put credentials in prompts. Even then, the research found one large U.S. provider kept crawling a secret link more than two months after a single request to its search endpoint, per The Hacker News, so going direct narrows the question rather than closing it.
@dhinchcliffe put the routing trade-off this way: bullish on token routing, but not suitable for certain sensitive workloads. That's one reading; ours is narrower. Routing price-shopped open-weight models stays reasonable for prompts you could publish. It's the wrong default for prompts carrying credentials or client data unless you choose the upstream yourself.
Before and after
Before, the agency's setup looked like this:
- Turn on ZDR once in account settings.
- Let the router pick the cheapest or fastest provider from the default pool.
- Let the coding agent read whatever files it needs,
.envincluded. - Treat a ZDR flag as the end of the privacy question.
- Learn about exposure only if someone notifies you.
After, following the researchers' advice and OpenRouter's documented controls:
- Decide per workload where prompts go: self-host the sensitive ones, send client data to one first-tier provider you have a contract with, and keep the router for low-sensitivity traffic.
- On the router, pick upstream providers yourself instead of accepting the default pool, and verify that your privacy settings actually change where requests go, as Moore recommends.
- Stay away from reseller marketplaces; some of their capacity runs on stolen keys, the researchers say.
- Keep credentials out of agent context, and turn on settings that scrub known credential formats, knowing they miss sensitive data that isn't shaped like a key.
- Seed your own canary in the context your agents send, so you learn about exposure from your own tripwire rather than from a vendor email.
Try it
Check your inbox first. OpenRouter says it notified affected users whether or not their provider has posted publicly. If you got the email, or used any model and window listed above, rotate every key, token and password that could have been in those prompts, as Phala and Novita both advise.
Then spend 15 minutes on a tripwire and your routing settings:
- Make a canary. The researchers say a free Thinkst Canarytoken is enough to get started; Dragos itself began with them in July before building its own service.
- Plant it where your agent already looks. Put it in a file your coding agent routinely reads, or in the system context your pipeline sends. It must never be a real credential, and it must exist in exactly one place, so that any use means someone read a prompt that carried it.
- Write the rule down. Decide now that any use of the token is an incident, not a curiosity. Our example of a runbook line: "Any trigger of canary token X means a prompt from the triage pipeline was read outside our control. Rotate all secrets that pipeline can reach, then check which provider served that traffic."
- Tighten ZDR. In OpenRouter's privacy settings, each model group has its own ZDR toggle, and the docs describe a separate choice between "Allow Safety Retention" and "ZDR only". For a single sensitive request, set
zdrtotruein the request's provider preferences; it works as an OR with account and guardrail settings, so it can only add enforcement, never remove it. - Instruct your agent. Our example of a CLAUDE.md line: "Never include the contents of .env files, credential files or cloud keys in prompts or tool output; refer to them by variable name only." This follows the researchers' point that agents send whatever they can read.
You can tell the setup works when you can point to the canary string inside your agent's actual outgoing context (check your own request logging), and when your runbook names who gets paged on a trigger. Don't trigger the canary from the agent's runtime to test it: if it fires later, you need that signal to mean exposure.
Where it breaks
The biggest limit is structural. A privacy flag binds only the first hop, Moore wrote. OpenRouter's docs show how much rests on declarations: for bring-your-own-key and private endpoints, OpenRouter records your ZDR declaration and routes on it, and does not independently verify the upstream's contractual behavior. The same docs say OpenRouter does not count in-memory prompt caching as retention, and that a planned update screens all requests, ZDR traffic included, for child sexual abuse material, with flagged content possibly retained for review and reporting.
The naming gap is real. Dragos has not named the three breached providers, OpenRouter has not named the three it removed, and neither has said whether they are the same three, per The Hacker News. The DEV Community roundup cautions that the provider notices OpenRouter links are not that list. Its author also says they ran no test and read no provider's logs, so treat it as a compilation. OpenRouter itself says not all affected providers have posted publicly, and the researchers say one provider, which they don't name, had still not publicly disclosed a mid-July breach as of this week.
Exposure windows are estimates. Phala says the researcher's tests sampled traffic rather than every request, so it keeps the wider Oct 21 to Nov 8 window as a precaution. Planted keys and links were still being accessed months after the first thefts, and the researchers are working with about a dozen providers, so more notices may follow. Railway said in October that an intrusion it suffered was likely part of a series built to reach inference providers through platform companies, which suggests the attack surface extends below the hosts themselves.
The mitigations have their own gaps. Credential scrubbing misses sensitive data that isn't shaped like a key. A canary tells you a prompt was read, not which of your other prompts went with it. Self-hosting removes third-party readers, but none of the pages we read put a cost on it. None of the pages we read describes a self-serve way, such as an activity log, to check whether your own requests passed through an affected provider beyond OpenRouter's email. And OpenRouter's continuous testing and network-path verification are listed as work underway, with no date in its announcement for when they will run or for when removed endpoints might regain ZDR status.
Sources
- OpenRouter Drops 3 Providers After Researchers Catch Months of Prompt Theft at AI Hosting Firms · The Hacker News
- Dragos planted 2m secrets in AI prompts and caught 3 hacked providers · TNW | Security
- Researcher plants 2m canaries into the AI supply chain. A privacy disaster surfaced. · Ars Technica
- OpenRouter zero data retention: what the Dragos canary test and three provider notices say · DEV Community
- Data Processing Incidents on Inference Providers · OpenRouter
- @dhinchcliffe: 3 Providers Are Dropped By @OpenRouter After Researchers Catch Months of Prompt Theft at… · @dhinchcliffe
- Zero Data Retention - How OpenRouter gives you control over your data · OpenRouter | Documentation