Dragos sent nearly 2 million prompts to AI inference providers over five months, each one carrying a secret nobody was supposed to see. Three providers saw it anyway, and attackers were already inside two of them stealing the bait credentials. The repo for the detection technique is on GitHub: a stdlib-only Python demo that reproduces the mechanism in under a minute, no real provider or credential required.
What Dragos actually found
HD Moore’s writeup, published November 19, lays out a five-month experiment. From July through November 2026, Dragos submitted roughly 2 million prompts to widely used AI providers and routers. Every prompt carried a unique Thinkst Canarytokens URL and a fake AWS access key, each one used exactly once. Nothing about the prompt said what the link was for. Any later request for that URL, or any attempt to use that AWS key, meant somebody in the pipeline had read the prompt and acted on it.
Three findings came out of it, and they get worse in order:
- Three providers were actively compromised. An attacker, not the provider itself, was stealing data at the front door. The largest breach stole a couple hundred bait AWS keys in a few windows in late October, and every one of them got used: tested for validity within hours, then walked through listing S3 buckets, searching Secrets Manager and Parameter Store, and finally creating Bedrock API keys and IAM users to keep access. Tens of thousands of AWS API calls came out of keys that were never supposed to exist. On November 1, the same attacker added ARTEX, an LLM-driven pentest framework, to go check that the stolen keys still worked.
- Marketplace resellers read prompts with nothing more than logging. No exploit needed. A reseller just has to list a model cheaply, turn on request logging, and wait. Dragos watched individuals on home internet connections open canary URLs in a browser and try logging into the bait systems by hand, one password guess at a time.
- ZDR flags were ignored outright. Prompts sent to U.S.-based providers under a strict no-retention setting turned up being accessed from inside a Chinese AI lab. One canary link surfaced in an internal company chat 24 days after the original request, opened from three desktops and three phones within two minutes of being posted.
That last category is the one that matters for anyone routing LLM traffic through a shared gateway: the privacy setting existed, the provider agreed to it, and it did not change what happened to the data.
OpenRouter’s response names the same pattern three different ways
Three days after Dragos published, OpenRouter posted its own response. It off-boarded three providers and pulled 125 endpoints from ZDR eligibility, which is a lot of endpoints to lose trust in at once. It also pointed to incident posts from three named providers, and each one is a different way the same promise breaks:
- Novita: a routing-config bug silently forwarded MiniMax-model requests to MiniMax’s own API, from 2026-05-28 to 2026-11-11, instead of handling them on Novita’s own infrastructure. An undisclosed hop, not an attack.
- Phala: an actual breach, chaining a legacy internet-facing service with an unauthenticated loopback management interface to create unauthorized compute instances and get in-flight visibility into requests, exposure window 2026-10-21 to 2026-11-08.
- Together: their own AI coding agent committed a Hugging Face credential, used to store test prompt samples, into a public repository. An attacker pulled it, downloaded the prompts, and tested the secrets it found, five of which were Dragos’s own canary credentials.
Three different root causes: a routing bug, a compromised management interface, a leaked credential from an internal coding agent. None of them required breaking the ZDR agreement on paper. All three broke it in practice.
The common thread: nobody can verify ZDR from their own side
A ZDR flag is a request to a provider, set at the account level, for a specific API key, or on a single request, not a control a customer can check. The customer sends it, trusts the provider implemented it correctly across however many internal services and however many resold hops the request takes, and finds out it didn’t work the same way Dragos and OpenRouter’s named providers found out: after the fact, from an outside report.
That is exactly the gap a canary closes. It does not ask whether a provider says it honors ZDR. It gives every request a unique, dead-end marker and watches whether anything downstream ever touches it. A touch is proof, not an inference from logs the provider controls.
Building a miniature version of the same trap
llm-canary-trap is a stdlib-only Python reproduction of the mechanism, built to run in under a minute with nothing but python3. It does not talk to a real AI provider or use a real credential. Instead it models three mock providers after the three shapes above:
demo.py
|- callback_server.py stdlib ThreadingHTTPServer, logs GET /canary/<token>
|- canary_mint.py mints one unique URL + fake AWS key per request
`- mock_gateway.py 3 mock providers, each simulating one failure mode
clean-directhonors the ZDR flag it’s sent and never touches its canary.logs-anywayis the Together/Phala shape: a background path reads the prompt after the response goes out, flag or no flag.router-Ais the Novita/OpenRouter shape: the request gets quietly forwarded to a second, undisclosed hop, and that hop is what touches the canary.
Running it sends one ZDR-flagged request through each mock provider, waits briefly for any out-of-band callback, then prints a verdict:
git clone https://github.com/themsquared/llm-canary-trap.git
cd llm-canary-trap
python3 demo.py
canary listener up on http://127.0.0.1:8743
sent ZDR-flagged request to 'clean-direct': {'provider': 'clean-direct', 'zdr_requested': True, 'forwarded_to': None}
sent ZDR-flagged request to 'logs-anyway': {'provider': 'logs-anyway', 'zdr_requested': True, 'forwarded_to': None}
sent ZDR-flagged request to 'router-A': {'provider': 'router-A', 'zdr_requested': True, 'forwarded_to': 'undisclosed-hop-B'}
waiting 1.5s for any out-of-band callbacks...
verdict (ZDR was requested on every row):
provider canary touched? hit count
clean-direct honored 0
logs-anyway LEAKED 1
router-A LEAKED 1
Every row asked for ZDR. Two of three mock providers touched their canary anyway. That ratio is invented for the demo, but the mechanism producing it is not: the canary doesn’t trust the flag, it watches for the flag being broken.
Why this is a gateway problem, not a provider-trust problem
Dragos’s 2 million prompts and OpenRouter’s 125 pulled endpoints are both operating at a scale individual teams can’t replicate. What a team routing LLM traffic through its own gateway or router can replicate is the pattern at a much smaller scale: seed real outbound requests with the same kind of tripwire, on an ongoing basis, instead of trusting a vendor’s privacy setting until a researcher’s report says otherwise. The three mock providers in this repo exist because that is the actual decision in front of anyone picking a gateway: can it log and alert on this class of signal itself, or does it only forward the ZDR header and hope.
I work at Solo.io, which makes agentgateway. The egress-control pattern I cover in agentgateway as an Egress Proxy is the same idea in a real gateway rather than a mock one: policy enforced and logged at the hop you control, instead of trusted at a hop you don’t. The canary technique in this post works independent of which gateway sits in front of your LLM traffic, which is the point. It’s cheap enough that there’s no excuse for finding out about a ZDR violation from somebody else’s blog post. I covered the credential side of the same supply chain in Your AI Agent Should Not Hold the LLM API Key: the fake AWS key in this demo’s prompt is standing in for the same class of secret that should never be the thing a provider breach exposes in the first place.
What to try next
Run the demo, then look at mock_gateway.py and swap in a fourth mock provider that touches the canary only after a delay longer than your own monitoring window, the way Dragos’s real hits sometimes landed days later. The hard part of this pattern is not minting canaries, it’s making sure something is still watching when the hit finally arrives.
Repo again: github.com/themsquared/llm-canary-trap.