Security researcher plants 2 million secrets, finds three AI providers were hacked

HD Moore of Dragos seeded fake AWS keys and credentials into prompts routed through AI gateways, and found attackers, resellers, and even a Chinese AI lab harvesting the data despite privacy promises.

AIVIO News Desk 2 min read
AIVIO News cover illustration for: Security researcher plants 2 million secrets, finds three AI providers were hacked

HD Moore, chief research officer at security firm Dragos, sent nearly 2 million AI prompts containing unique, trackable secrets through a wide network of AI providers and resellers, then tracked where those secrets ended up. The secrets included AWS access keys tied to empty accounts, SSH passwords, and unique URLs, DNS names, and private git repository addresses, none of which had ever been used before. Moore controlled the infrastructure that would receive any attempted use of the credentials, so any contact told him exactly which service was responsible.

The prompts traveled through “AI routers” such as OpenRouter and Vercel, services that read the plaintext of a request to decide which inference provider should handle it, often passing it along to a pool of providers or through more than one router. In a post describing the project, Moore wrote that the results showed “security breaches, prompt theft, and widespread failures to protect customer data.”

Three separate hosting providers were breached by attackers who stole the planted secrets directly, Moore found. In one case, a couple hundred AWS keys sent in individual requests during a few windows in late October were all stolen, including some from requests the provider had rejected before any model ran, indicating the theft occurred at the provider’s entry point. In two of the breaches, some stolen requests carried a Zero Data Retention flag, which the attacker’s access bypassed entirely. Within hours of being planted, the stolen keys were tested against S3 storage buckets, secrets managers, and AWS Bedrock, and were used tens of thousands of times in total, Moore reported.

Separately, some resellers in the inference marketplace captured prompts themselves by undercutting competitors on price, then turning on logging to collect the traffic that flowed through, Moore found. He identified the offending resellers by routing identical requests to the same model through different sellers and comparing which credentials resurfaced.

The most striking finding involved a Chinese AI lab whose systems retrieved secret URLs embedded in more than half of the prompts sent to its models between July and October, Moore reported, including roughly two-thirds of requests marked as Zero Data Retention or “no data collection.” The same scraping occurred when prompts were routed to the lab’s models through U.S.-based resellers, meaning data that customers believed was staying domestic was reaching the lab anyway, Moore wrote.

What this means

The experiment shows that encryption in transit does not stop exposure once a prompt is decrypted at each hop in a reseller chain, and that privacy flags like Zero Data Retention offer no protection once an attacker already has access to the pipeline. The reports do not name which companies operated the breached hosting providers or the resellers that logged traffic, only that three hosts were compromised and that a Chinese lab’s scraping reached customers even through U.S. resellers.

Moore said the safest option is hosting models on-premises, though that is too costly for most users. The next best choice, he said, is working directly with a single first-tier provider rather than a default reseller pool, even though that still carries some risk of leakage.

Sources

Ars Technica