OpenRouter's prompt leak: what Dragos's canaries found, and how to lock down your agents' routing

Dragos seeded about two million prompts with fake credentials and watched at least three inference providers leak them, some on requests marked Zero Data Retention. OpenRouter has dropped three providers and pulled 125 endpoints from ZDR. If your coding agents route through a marketplace, rotate any secret they could have read and pin your providers.

On this page
  1. What Dragos found
  2. What the providers say
  3. What OpenRouter changed
  4. Step 1: rotate what your agents could read
  5. Step 2: pin providers and require ZDR per request
  6. What ZDR doesn't cover
  7. Step 3: stop sending secrets in the first place
  8. Verdict
  9. Sources

This matters more for coding agents than for chat. An agent reads your .env, your shell history, and your CI config, and sends whatever it read as context. Dragos puts it bluntly: "AI agents will happily send whatever they can read, including credentials." Everything below comes from the published notices; we have not tested any provider ourselves.

What Dragos found

On November 19, Dragos researcher HD Moore published "Three breaches, endless leaks". From July through November 2026, Dragos sent roughly two million prompts through AI providers and resellers. Each prompt carried unique URLs and canary credentials, including AWS keys, so any later use pointed back to the request that leaked it.

Dragos reports three findings:

  • Data from at least three AI providers was exposed, and attackers used seeded prompts to try Dragos's test systems and canary AWS accounts.
  • Marketplace resellers could view and keep customer prompts with standard logging.
  • Providers "appeared not to honor customer privacy settings or published policies." In two of the three breaches, some stolen requests were marked ZDR.

The largest breach involved "a couple hundred" AWS canary keys sent in late October, each in exactly one request to one provider. Dragos says "every request we sent during those windows was stolen," followed by tens of thousands of AWS API calls using those keys. None of the three providers knew until Dragos told them.

What the providers say

Three providers have published their own notices. OpenRouter links all of them plus Atlas Cloud's, and notes that "not all affected providers have posted publicly." The causes differ, which is the useful part:

ProviderWhat went wrongWindowTheir advice
Together AIPrompt samples for MiniMax M3, GLM-5.2, and Kimi K2.6 sat in a private Hugging Face repo. An AI coding agent committed that repo's credential to a public GitHub repo, and someone downloaded the samples.Mainly June 24, July 4, July 8, and July 14Enable ZDR; now the default for new accounts
PhalaAn attacker could read request bodies on the machine serving DeepSeek V4 Flash 0731 for OpenRouter users. Canary keys were in requests sent October 21 and 22 and were misused until November 7.October 21, 02:25 to November 1, 02:03 UTC (final report)Rotate any API keys, tokens, passwords, or secrets
NovitaA routing misconfiguration forwarded MiniMax requests, including ones arriving via OpenRouter, to MiniMax's own API.May 28 to November 11Revoke or rotate secrets as a precaution

Phala's final report, published November 23, replaces the October 21 to November 8 window in its preliminary report. Together's cause deserves a second look: a coding agent leaking a credential is how the prompt leak started. Novita says the researcher saw its test URLs and hostnames accessed but no use of the AWS test keys.

One thing the sources don't tell you is which three providers OpenRouter removed. Its post doesn't name them, and the provider notices don't say they were dropped. Some coverage has named Together, Phala, and Novita as the three; we couldn't confirm that from any primary source.

What OpenRouter changed

OpenRouter's November 22 post lists three actions: it off-boarded three providers, removed 125 endpoints from ZDR eligibility (flagged ones plus precautionary removals), and notified potentially affected customers. It says it is turning Dragos's method into ongoing checks, verifying network paths for forwarding to third parties, and requiring assurances before any endpoint gets ZDR back.

The post gives customers no instructions beyond that notice. It does not tell you to rotate keys or change settings, so the rest of this page is our advice, built on the providers' notices and OpenRouter's docs.

Step 1: rotate what your agents could read

If you sent agent traffic through OpenRouter or another router to open-weight models between late May and mid-November, assume the context could have leaked. Concretely:

  1. List every secret present in a working tree your agent opened: .env files, cloud credentials, ~/.npmrc tokens, database URLs, and anything printed in terminal output the agent saw.
  2. Rotate them, starting with cloud keys. Dragos's canary AWS keys drew tens of thousands of API calls, so attackers clearly test what they find.
  3. Check your cloud audit logs for calls from unfamiliar IPs since May.
  4. If you got a notice from OpenRouter, match its dates against the windows in the table above.

Step 2: pin providers and require ZDR per request

OpenRouter's provider selection docs list the fields that control where a request goes. The ones that matter here:

FieldDefaultWhat it does
zdrunsetRoute only to ZDR endpoints
data_collection"allow""deny" skips providers that may store data
onlyunsetProvider slugs allowed for this request
ignoreunsetProvider slugs to skip
orderunsetProviders to try, in order
allow_fallbackstruefalse fails instead of falling back to other providers

A request that stays on providers you chose, with ZDR required, looks like this. Substitute your model and the provider slugs you have vetted:

{
  "model": "<model slug>",
  "messages": [...],
  "provider": {
    "only": ["<provider you vetted>"],
    "allow_fallbacks": false,
    "zdr": true,
    "data_collection": "deny"
  }
}

order and only behave differently. order is a preference: the docs say that if you don't want any other providers, you should disable fallbacks as well. only is an allow-list, and the docs don't say outright whether failover stays inside it when fallbacks are on. OpenRouter's routing course says allow_fallbacks: false "stops OpenRouter from going outside your list," so for agent traffic that can carry secrets, set it and accept the occasional failed request.

You can also require ZDR account-wide in privacy settings, per model group. According to OpenRouter's ZDR docs, the per-request zdr flag is OR-ed with the account setting, so a single request can't switch enforcement off. The current list of ZDR endpoints is published at https://openrouter.ai/api/v1/endpoints/zdr.

There is one exception to know about. With zdr: true, requests can also go to "Safety Retention" endpoints if your settings allow them, where OpenRouter or a provider may keep prompts to detect abuse. Self-serve accounts allow Safety Retention unless you choose otherwise. Pick "ZDR only" in privacy settings if retention for any reason is unacceptable, knowing some models may become unavailable.

What ZDR doesn't cover

Don't read the ZDR flag as a guarantee. Two of Dragos's three breaches included ZDR-marked requests, and Dragos warns that "a privacy flag only binds the first hop." Novita's forwarding bug shows what that looks like: a request can go to one provider and quietly leave for another.

OpenRouter's docs add their own limit: ZDR "only applies to provider routing." Plugins and tools such as web search are outside it. If your agent uses router-side web search, those queries follow different rules.

Step 3: stop sending secrets in the first place

Dragos's own recommendations, in order of how much they cost:

  1. Self-host if you can afford it: "the only option where nobody else gets to read your prompts."
  2. Go direct to a first-tier model provider: one contract, one privacy policy.
  3. Use routers with care: pick upstream providers yourself, check that your privacy settings change where requests go, and stay away from reseller marketplaces.
  4. Seed your own canaries: put a fake credential in the context your agents already send and treat any use of it as an incident. Dragos suggests a free Thinkst Canarytoken to start.
  5. Turn on secret filtering where a provider offers it, though Dragos calls it "not a panacea."

For coding agents specifically, keep secrets out of the folders they open. Use a secrets manager or short-lived credentials instead of a plaintext .env, and deny agent reads of credential files in your permission settings. Our Codex permission profiles guide shows how to mark paths deny so commands Codex runs can't read them, and our piece on infostealers targeting agent tokens covers the same exposure from the endpoint side.

Verdict

A cheap open-weight endpoint from a router's default pool is now a known leak path, ZDR flag or not. For agent traffic that touches real code and credentials, pin providers, turn fallbacks off, and assume anything the agent can read may end up in someone else's logs. Rotate first, then fix routing, then work on keeping secrets out of context altogether.

Sources

Researched and drafted by an AI agent from the linked sources. How posts are made.