# Zero Data Retention and AI routers

> November 25, 2026 · https://eldermoraes.com/zero-data-retention-and-ai-routers/

Between July and November, the Dragos research team sent about two million prompts to widely used AI services. Each prompt carried unique URLs and bait credentials, the canary tokens, that no legitimate system would ever use. Any access to them meant that someone, somewhere in the chain, had seen the prompt. In the [report published on November 19](https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens), HD Moore describes what showed up: three compromised inference providers, resellers reading customer prompts, and privacy settings that were not honored.

A coding agent's prompt carries a lot. The report points out that prompts and responses often contain confidential source code and credentials, along with internal communications and customer data. And the agent sends whatever it can read, credentials included, as the report itself warns.

## The path to the model

An AI router offers a single endpoint and forwards the request to a pool of models, sometimes at different providers, with unified billing. Before it reaches the server running the model, the request can go through more than one router and through another provider. According to Dragos, every one of these hops sees the entire prompt and response.

Some routers work as marketplaces, and whoever offers the lowest price gets the request. The providers Dragos caught only had to list a model at the lowest price and turn on request logging. After that, they just waited. In one case, a router was forwarding part of its traffic to that marketplace without disclosing the hop.

To measure that path, the team built something like a traceroute for inference. Out of about two thousand traced routes, several hundred went through a system they could not identify, and a handful sent the test image to a company that was not on the advertised path.

## Where Zero Data Retention comes in

Zero Data Retention (ZDR) is the strictest privacy setting these services offer: the prompt and the response are not stored. In the Dragos data, that flag did not stop the copying. In two of the three breaches, some of the stolen requests were marked as ZDR. A Chinese AI lab fetched the secret URLs from roughly two-thirds of the requests marked "no data collection" or ZDR that went to its models.

The line from the report I would keep is this one: a privacy flag only binds the first hop. I read ZDR as a promise made by whoever receives your request. What happens on the next hops depends on each of them keeping the same promise, and you do not see those hops.

On November 22, [OpenRouter published](https://openrouter.ai/blog/announcements/data-processing-incidents-on-inference-providers/) what it did after the report. It off-boarded three providers, removed 125 endpoints from ZDR eligibility (the ones flagged by the researchers plus others as a precaution), and notified potentially affected customers. The company says the testing did not show any breach of OpenRouter and that it is adapting the researchers' approach to run these checks on an ongoing basis. Neither Dragos nor OpenRouter names the three providers in the published texts.

## The credential the agent committed

An inference provider described an incident tied to the same experiment. On November 21, [Together AI published](https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026) that it kept prompt samples in a private Hugging Face repository for software testing. During development of its public GitHub repository, xorl, an AI coding agent committed a credential that gave access to that private repository. The company's automated scanning detected the credential and the commit was reverted. In that window, someone obtained the credential and downloaded the samples. Then they searched the samples for credentials to other services and tested whether those worked. Five of the credentials tested were canaries from the Dragos experiment.

I would not put the blame on the agent. It committed a credential that was within its reach. The changes Together listed point to that: scoped or short-lived credentials, keyless access where supported, credential checks on every pull request, ZDR as the default for new accounts, and an updated process for using AI coding agents. These are engineering decisions about what stays within the agent's reach and for how long it remains valid.

## What you can do in your own service

The first step is to decide where the prompt goes. Dragos says that if you do not make that decision, the lowest price will make it for you. In the OpenRouter API, for example, the `provider` field of each request accepts `only`, with the list of allowed providers, `allow_fallbacks`, which controls whether another provider can take over when the primary is unavailable, and `zdr`, which restricts routing to ZDR endpoints. The report also recommends verifying that these settings actually change where the request goes.

The second is to take out of the agent's context any credential it does not need to see. The ones that have to stay there should have a small scope and a short lifetime, which is what Together now does.

The third is the canary itself. Dragos suggests adding a fake credential to the context your agents and pipelines already send and treating any use of it as an incident. To know which path the prompt leaked through, each request needs its own canary, recorded together with the route. In a Java service, this fits in a few lines:

```java
record Route(String router, String provider, String model, boolean zdr) {}

static String newCanary(Route route) {
    byte[] bytes = new byte[16];
    RANDOM.nextBytes(bytes); // SecureRandom
    String id = HexFormat.of().formatHex(bytes);
    canaries.put(id, route);
    return "https://canary.example.com/repo/" + id;
}

static Optional<Route> whoReceived(String accessedPath) {
    String id = accessedPath.substring(accessedPath.lastIndexOf('/') + 1);
    return Optional.ofNullable(canaries.get(id));
}
```

The URL goes into the context built for the model, and the domain is yours. When someone opens that URL, the server behind the domain logs the path. With it, `whoReceived` returns the route that carried that prompt: router, provider, model, and privacy flag. Two identical prompts sent through different routes carry different canaries, so the access points to a single route.

The canary registry has to be persistent. In the Dragos experiment, tokens seeded in July were still firing in November. If you do not want to run a server, the report says a free Canarytoken from Thinkst is enough to get started.

The canary does not prevent the leak. It shows that the prompt left the agreed path and where it went, which the privacy flag alone does not show.

## References

- HD Moore, [Three breaches, endless leaks: Your AI supply chain needs canaries](https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens), Dragos, November 19, 2026.
- OpenRouter, [Data Processing Incidents on Inference Providers](https://openrouter.ai/blog/announcements/data-processing-incidents-on-inference-providers/), November 22, 2026.
- Vipul Ved Prakash, [Security event: prompt leakage for requests in June and July of 2026](https://www.together.ai/blog/security-event-prompt-leakage-for-requests-in-june-and-july-of-2026), Together AI, November 21, 2026.
- OpenRouter, [documentation: Provider Selection](https://openrouter.ai/docs/guides/routing/provider-selection) and [Zero Data Retention](https://openrouter.ai/docs/guides/features/zdr).
- Thinkst, [Canarytokens](https://canarytokens.org/).
- Oracle, [java.util.HexFormat Javadoc](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/HexFormat.html) and [java.security.SecureRandom](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/security/SecureRandom.html), Java SE 21.
