Experiment Design: The Significance of Planting 2 Million Canaries
Security company Dragos's Chief Research Officer HD Moore embedded unique 'canaries' into approximately 2 million AI prompts from July to October 2024 and tracked where, how, and by whom that secret information was reused. The canaries consisted of never-before-used credentials such as actual working AWS access keys, SSH passwords, unique DNS names, and private Git repository references, and Moore directly controlled the infrastructure to detect the moment those credentials were used.
"We sent nearly 2 million AI prompts containing unique and trackable secret information to AI providers and watched where that information appeared. What we found was widespread security breaches, prompt theft, and failures in customer data protection."
This experiment demonstrated that in the current structure where intermediary services known as AI routers or AI gateways (e.g., OpenRouter, Vercel) receive user prompts and route them to inference engines based on price and performance criteria, prompts can be decrypted in plaintext at each hop for processing and logging.
Structural Vulnerabilities in the AI Router Ecosystem
Currently, many AI applications do not contract directly with first-tier providers like Anthropic and OpenAI, instead dynamically selecting the optimal model through AI routers. In this process, prompts pass through the following path:
- user app
- AI router (e.g., Vercel)
- another router (e.g., OpenRouter)
- inference pool (hosting provider)
- model execution
At each stage, prompts are encrypted in transit (TLS), but are decrypted in plaintext internally for routing decisions. According to Moore, "prompts are read in plaintext at the first AI router to determine the appropriate inference provider, and subsequently, various hosting providers and model pools can log according to their policies (or indefinitely)." This means that data is placed under opaque policies of multiple entities rather than a single contract and single privacy policy.
Summary of Key Findings
| Discovery Area | Details | Severity |
|---|---|---|
| Hosting Provider Breaches | Attackers stole prompts in bulk from at least 3 providers | Critical |
| Reseller Logging and Leakage | Logging after inducing prompts with low-cost bait, passing to third parties | High |
| Ignoring ZDR and No Collection Flags | Requests marked 'no data retention' were still collected by providers and scrapers | High |
| Scraping by Chinese Research Institute | Collected secret URLs from over 50% of prompts routed to their models, including ~67% of ZDR requests | Critical |
| Scraping via US Resellers | Data leaked to Chinese research institutes even when selecting US providers | High |
Three Instances of Hosting Provider Breaches and Attacker Behavior
The most shocking discovery was that three individual hosting providers were breached, allowing attackers to extract prompts in real-time. Moore described it as "attackers copying requests from the provider's front door." Some stolen keys were already taken during the stage where the provider rejected the request before the model was executed.
- Scale of Theft: "A couple hundred" AWS keys were stolen within a short time window at the end of October 2024.
- Reuse Speed: Attackers tested the keys within hours after seeding.
- API Call Count: Tens of thousands of AWS API calls were made using the stolen keys.
- Behavior: Exploration of S3 buckets, secret managers, parameter stores, attempts to activate Bedrock models, and adding their own IAM users for persistent access.
- Evidence of Same Perpetrator: Secrets stolen from two providers were used almost simultaneously on the same rented server → the same adversary compromised both providers.
This shows that upstream supply chain breaches have a cascading impact on all downstream customer data.
Reseller Prompt Theft and ZDR Policy Violations
Not only attackers but also resellers themselves were found to be intercepting prompts. They provided inference capacity at low prices to attract traffic, then activated request logging and waited. Moore identified that by calling the same model through different resellers, responsibility could be separated. When credentials were reused only in requests through a specific reseller and not in requests through others, it was determined that the reseller, not the model provider, was the source of the leak.
Moreover, prompts marked with ZDR (Zero Data Retention) flags or "no data collection" were still collected, stored, and reused by providers, resellers, and scrapers. Moore pointed out, "Privacy flags are of no help when attackers are already inside."
Systematic URL Scraping by Chinese AI Research Institutes
The most clear and widespread pattern observed in the experiment was the scraping activities of Chinese AI labs.
- Targets Collected: Over 50% of prompts routed to their models had secret URLs collected.
- ZDR Violations: URL collection occurred in about two-thirds (~67%) of requests marked 'no data collection' or ZDR.
- Time Delay: Scrapers appeared 2-3 days after requests.
- Path Independence: The same scrapers operated not only on requests sent directly to the institute but also on paths where US hosting providers were reselling the institute's models → data flowed back to the institute.
- Geographic Deception: Customers who chose US providers under the pretense of "keeping data in the US" actually had their data sent to Chinese institutes.
- Continuous Crawling: One US provider crawled secret URLs used in a single inference call more than 2 months later.
- Subsequent Attacks: Later attempts included cloning private repositories included in prompts using other cloud Git clients → occurring only in prompts using that institute's models.
This pattern proves that a systematic data collection infrastructure exists at the model provider level, and that data leaks upstream through downstream resellers.
Defense Strategies and Industry Implications
Based on the experiment results, Moore proposed two practical alternatives.
1. On-Premises Model Hosting: "The most effective leakage prevention measure" but costly. 2. Direct Contracts with First-Tier Providers: Engage directly with providers that have one contract and a readable single privacy policy → not a complete prevention but minimizes the likelihood of leaks.
He also recommended not to accept default provider and reseller pools, and to directly select upstream providers.
This research serves as a latest indictment showing the 'Wild West' reality of the AI inference marketplace. Prompts are exposed in plaintext at each stage as they pass through multiple intermediaries, and in the current structure where they are uncontrollably distributed across contracts, policies, and borders, end users, companies, and developers are all left in a state where they cannot know 'where the data goes'.
Actions Developers and Companies Can Take Immediately
- Supply Chain Mapping: Identify the entire path through which your AI traffic passes, including routers, resellers, hosting providers, and model providers.
- Stop Relying on ZDR: Do not send sensitive data just because of flags; combine data classification, masking, and on-premises inference.
- Simplify Contracts: Whenever possible, contract directly with a single first-tier provider, securing Data Processing Agreements (DPA) and audit rights.
- Introduce Canary Testing: Periodically verify leakage by embedding unique tokens as Moore's method.
- Verify Geographic Routing: Always confirm the nationality of upstream model providers and scraping policies even when selecting 'US hosting'.