Your AI Router Is Just a Proxy You Forgot to Threat Model
Somebody finally put canary tokens in two million prompts, and the result is exactly as ugly as you'd guess. HD Moore ran the experiment from July to November. He pushed roughly two million prompts containing bait secre
Somebody finally put canary tokens in two million prompts, and the result is exactly as ugly as you'd guess.
HD Moore ran the experiment from July to November. He pushed roughly two million prompts containing bait secrets (fake AWS keys, passwords, hidden links) through widely used AI services and routers, then watched what happened. Attackers were copying prompts at three hosting providers. Marketplace router sellers were logging requests. The stolen AWS keys got tested and used within hours. Hours, not weeks.
Not a new problem
Strip away the AI branding and this is a man-in-the-middle problem with a friendlier name. A router that sits between your app and a model provider is a proxy. It terminates your traffic, reads the plaintext, and forwards it. We have been burned by this exact pattern with CDNs, API gateways, logging pipelines, and every "free proxy list" anyone ever pasted into a config file. The industry knows this. We just collectively decided that when the payload is a chat prompt, the rules relax.
They don't. A prompt is a request body. It has all the secrets a request body has, plus the stuff people paste into chat boxes because it's convenient. Nobody ever thought "I should paste my production key into this curl command" and felt good about it, but plenty of people do the equivalent in a prompt without blinking.
The hype check
Expect two bad takes from this one.
The first is "AI is inherently insecure," which is lazy. The models weren't the weak link here. The plumbing was. Marketplace router sellers logging your requests is a supply chain issue, not a machine learning issue.
The second, and the one I'd watch for, is the quiet vendor reassurance that you're fine if you've got the right flag set. This is where the finding that stung me most lives. Zero Data Retention flags did not hold beyond the first hop. A Chinese AI lab fetched canary links from over half of the prompts, including ones flagged ZDR. Read that again. The flag is a promise from one party about its own behavior. It says nothing about the next hop, and the next hop never signed anything.
What's understated: how fast the abuse was. Stolen keys tested and used within hours means someone built automation around this. It isn't a curious grad student poking around. It's a pipeline.
What's overstated, possibly, is how representative two million bait prompts are. Moore's setup was a probe, and I'd like to see how much of the leakage concentrates in a small number of bad routers versus being spread evenly across the ecosystem. The summary doesn't tell us, so I won't pretend to know.
What this means for you
If you're a developer, assume anything you send through a third-party router is readable by that router and by whoever it forwards to. Treat prompts the way you treat logs. Don't put live credentials in them, ever. Short-lived, scoped keys at minimum, and ideally nothing sensitive at all.
If you run a security team, your inventory is probably incomplete. Do you know which AI routers and gateways your engineers are using? Not the sanctioned ones. The ones someone found on a forum because it had cheaper per-token pricing. Marketplace sellers logging requests is precisely what you'd expect when the product is "access to expensive models, but cheaper." Somebody is paying for that discount, and it's usually you, in data.
Canary tokens deserve more love here, too. Moore's whole method is a reminder that the cheapest detection is a fake secret that screams when it's touched. Seed a few and you learn about leaks the same day instead of at the breach disclosure.
And the ZDR thing should change how procurement conversations go. A contractual or configured retention flag only covers the party that made the promise. Ask where the request goes after it leaves them, and who they've delegated to. If the answer is vague, the flag is decoration.
I'll be honest, I expected the numbers to be bad but not this bad on timing. Keys burned in hours means rotation policies measured in days are theater.
So here's what I keep turning over: if the trust boundary doesn't survive the first hop, and most teams can't even enumerate their hops, what does a realistic control look like that isn't just "stop using routers"?
— Cor, Skyblue Soft
Sources
AI-assisted draft or imaging, human-curated, reviewed and edited.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.