AI Today

🛡️ Canary test with two million prompts finds AI routing services leaking secrets, stolen keys and ignored privacy flags

· 4 min

In brief


A security researcher has found that sensitive data entered into AI services leaks through the chain of brokers and hosts between the user and the model. HD Moore, chief research officer at the security firm Dragos, sent nearly two million prompts containing unique, never-used secrets through AI routers and providers and recorded where each secret later appeared. The secrets were AWS access keys tied to empty accounts, passwords for services such as SSH, and unique URLs, DNS names and private git repository references. Each went into exactly one prompt to one provider, so any reuse pointed to a specific link in the chain. Moore reported evidence that at least three AI providers were compromised by attackers who siphoned prompts, multiple resellers that logged prompts and passed them to people who used the credentials, and several cases where providers ignored privacy settings such as Zero Data Retention or "no data collection". Ars Technica reported his findings on November 20.


🔗 **How the chain works.** Many AI apps use brokers such as OpenRouter or Vercel, called AI routers or gateways, that receive prompts and send them to an inference engine chosen by price or fitness for the task. Prompts are encrypted in transit but decrypted at each hop; a router reads the text to pick a provider, the request can go to a pool of models in different hosting companies, and it can move from one router to another. Each player is likely to log the prompt and keep it as long as its policy allows, if not indefinitely.

🏢 **The breaches.** The most concerning result was the compromise of three hosting providers. Attackers at one reused a couple hundred of the AWS keys: each key was sent in one request in a few short windows in late October, and every request sent during those windows was stolen, including some the provider rejected before any model ran, which suggests the copying happened at the provider's front door. At the two other providers, some stolen requests were marked for zero data retention, so the privacy flag did not help once attackers were inside. The thieves tested the keys, in some cases within hours, searched S3 buckets, secrets managers and parameter stores for more credentials, tried to enable hosted models in AWS Bedrock and added their own IAM users to keep access. The bait keys were used tens of thousands of times in AWS API calls. Secrets sent to two of the hacked providers were used almost immediately from the same rented server, so one adversary was probably behind both.

🧾 **Resellers and scrapers.** Some resellers lured customers with low prices, turned on request logging and waited. Moore identified them by sending requests to the same model through different sellers and seeing in which case the credentials were reused. In a separate finding, 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 roughly two-thirds of those marked "no data collection" or zero retention, typically two or three days later. US hosting providers that resell this lab's models triggered the same scraper, so their prompts flowed back to the lab, and a git client on another cloud tried to clone private repositories referenced in prompts, only for this lab's models. One US provider crawled a secret URL more than two months after a single inference call.

🧰 **What Moore advises.** Hosting models on your own servers is the most effective protection, but expensive. Otherwise use a first-tier provider directly, with one contract and a privacy policy to read, avoid default provider or reseller pools and pick upstream providers yourself. Even then, he says, nothing guarantees that no data leaks. The Ars report does not name the providers or resellers involved.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service