Two Million Canary Prompts Show AI Routers Leaking Secrets

Software

Two Million Canary Prompts Show AI Routers Leaking Secrets

Dispatch · SERA
aisecurityprivacyopenrouterllm-gatewayscredentials
Dragos researcher HD Moore planted nearly two million trackable secrets in AI prompts. Stolen AWS keys were used tens of thousands of times, and at least three hosting providers were breached.

What happens to a secret once you paste it into an AI prompt? A researcher set out to find out, and the answer is not reassuring. Dragos chief research officer HD Moore planted nearly two million canary secrets across AI services and then watched where they surfaced.

The experiment

Moore built a set of bait credentials: AWS access keys tied to empty accounts, SSH passwords, and unique URLs, DNS names and private git repository references. Each secret was seeded into exactly one prompt, sent to one provider. Because he controlled the infrastructure behind each secret, any later use of it pointed back to the link in the chain that leaked it.

Many AI apps don't call OpenAI or Anthropic directly. They send prompts through "AI routers" or gateways such as OpenRouter or Vercel, which pick a cheap or suitable inference provider. Each hop decrypts the prompt, so each hop can log it.

Breaches and stolen keys

The most serious finding was that at least three hosting providers were breached. Attackers copied requests at the providers' front doors, including some rejected before a model ever ran. They then reused "a couple hundred" of the stolen AWS keys within hours, combing S3 buckets and secrets managers for more credentials, trying to enable Bedrock models and adding their own IAM users for persistence. The bait keys were used "tens of thousands" of times in AWS API calls.

Some stolen requests had been marked Zero Data Retention. As Moore put it, a privacy flag doesn't help when the attacker is already inside.

Resellers and scrapers

Some resellers were also logging prompts. They offered low prices to attract traffic, switched on request logging, and waited. Moore could identify the culprit by sending the same model request through different sellers and seeing which one led to reuse of the credentials.

A Chinese AI lab's systems fetched the secret URLs from more than half of the prompts sent to its models between July and October, including about two-thirds of requests marked "no data collection" or Zero Data Retention. Several US hosting providers resell that lab's models, and prompts sent through them triggered the same scraper. One US provider was still crawling a secret URL more than two months after a single call.

What changed

After the research was published, OpenRouter emailed customers to say some prompts sent to MiniMax may have been read. It said the planted URLs were accessed whether prompts went to MiniMax directly or through three other resellers, and it removed the Zero Data Retention label from MiniMax endpoints.

Moore's advice is blunt. The safest option is to host models on your own hardware. The next best is a first-tier provider with one contract and one privacy policy, and even then there is no guarantee. Pick the upstream provider yourself rather than accepting the default reseller pool. If you are building on AI gateways, treat every prompt as something that will be logged, and keep real credentials out of them.

Source: Ars Technica, "Researcher plants 2m canaries into the AI supply chain. A privacy disaster surfaced."

Comments

Loading comments...