Marc Pope
All writing

Dragos put fake AWS keys in two million prompts, and three AI hosts had attackers reading them

Dragos planted fake AWS keys in two million LLM prompts. Attackers at three AI hosts stole them, resellers read them, and zero data retention flags were ignored two thirds of the time.

November 22, 2026 8 min read 140 views Technology AI Engineering Infrastructure
Dragos put fake AWS keys in two million prompts, and three AI hosts had attackers reading them

Dragos seeded about two million LLM prompts with fake AWS keys and secret URLs between July and November, then watched who used them. Attackers at three AI hosting providers were stealing requests. Marketplace resellers were reading prompts through ordinary logging. A Chinese AI lab fetched secret URLs from more than half the prompts sent to its models, including about two thirds of the ones flagged zero data retention. HD Moore, who created Metasploit and now runs research at Dragos, published the findings on November 19. OpenRouter followed on November 22 by removing three providers and pulling 125 endpoints from its zero data retention tier.

I run infrastructure for a living and I've been treating inference endpoints like any other third-party API. This study says that assumption fails in one specific way. The privacy flag you set binds the first hop and nobody after it.

How the trap worked

Canary tokens are credentials that exist only to be noticed when someone uses them. Moore started in July with Thinkst Canarytokens, dropping an AWS key, a DNS name, and a URL into each request. Tokens began firing within days. The July tokens were still firing when the post went up.

Then Dragos built its own seeding service. Each prompt got a unique seed that derived hostnames, URLs, passwords, and a real AWS key tied to an empty account with CloudTrail turned on. Listeners ran for DNS, HTTP, git, SSH, databases, and mail. Every hit mapped back to the exact prompt, model, router, and privacy setting that produced it.

Route tracing was the new piece. A deliberately broken request returns an error, and every router in the chain wraps that error in its own envelope. Three or four layers deep, matched against a signature database, you learn the software at each hop and often the company operating it. An image URL pointing at Dragos servers revealed the IP and HTTP client of every system that fetched it. Dragos traced about 2,000 routes this way. Several hundred included a system it couldn't identify. A handful sent the image to a company that wasn't on the advertised path.

Three providers, none of which knew

The earliest breach dates to the middle of July. That provider first blamed a misconfigured internal tool, then a partner's data processing, until Dragos showed evidence the attacker held its internal credentials. As of late October it hadn't disclosed anything publicly, and stolen data was still producing login attempts.

The largest breach came in late October. A couple hundred AWS keys, each sent in one request to one provider, were taken during a few short windows. Every request in those windows was stolen. Some of the stolen requests had been rejected by the provider before any model ran, which means the copy happened at the provider's front door before the inference path. Two of the three breaches included requests marked zero data retention.

CloudTrail recorded liveness checks within hours, S3 bucket listings, searches of Secrets Manager and Parameter Store, attempts to enable Bedrock models, Bedrock API key creation, and new IAM users. The bait keys drew tens of thousands of API calls. One key seeded October 21 was used the next day and was still in use three weeks later.

One adversary appears to have hit two providers at once, because secrets sent to both were used together from a single rented server. The tooling shifted over three weeks: a script posing as Chrome on Windows, then Boto3 inside OrbStack, then the AWS CLI on Kali. On November 1 the same attacker added ARTEX, a penetration testing framework run by an LLM, which identified itself in user agents as artex-agent and artex-judge-r121. An AI pentest tool, pointed at keys stolen from AI prompts.

The marketplace problem needs no exploit

Inference marketplaces let anyone with GPUs list a model at a price. Resellers listed at the lowest price, turned on request logging, and waited. Dragos sent identical prompts through different sellers for the same model. Two prompts through one seller were read about a day and a half later from a home broadband connection. The same prompts through a different seller were untouched. The leak follows the seller.

In one case a person on a Mac in France pulled passwords out of two prompts and tried root SSH logins by hand, one password four times in two minutes. The same Mac later tested several AWS keys in one session. That's a reseller, or someone with access to a reseller's logs, working through what customers sent.

Dragos also found one router forwarding some traffic to the marketplace without saying so. Its route tracing surfaced an OpenRouter hop the marketplace had never disclosed. The router says it has stopped.

Zero data retention bound one hop

The third finding is the one that changes how I'd write a vendor questionnaire. A Chinese AI lab's systems fetched secret URLs from more than half the prompts sent to its models from July to October. Roughly two thirds of those requests carried a "no data collection" or ZDR flag. The scraper showed up two or three days after each request. Several U.S. hosting providers resell that lab's models, and prompts sent to them triggered the same scraper, so the prompts were flowing back to the lab regardless of the U.S. address on the invoice. Later a git client on a different cloud tried to clone private repositories referenced in prompts, and only for prompts that used that lab's models.

Dragos didn't name the lab. OpenRouter's customer email on November 21, as reported by The Hacker News and others, said requests sent to MiniMax models from July through October had their test URLs fetched 40 to 130 hours after completion, and that three resellers (AtlasCloud, Novita, and StreamLake) had been forwarding traffic to MiniMax's own API. Novita's notice confirms a routing configuration sent MiniMax requests to MiniMax between May 28 and November 11. Neither Dragos nor OpenRouter has tied the two findings together on the record. The dates and the lag match.

U.S. providers weren't clean either. One large provider kept crawling a secret URL more than two months after a single call to its search endpoint. Another's scraper returned days after each request, no matter which router sent it. And 24 days after one prompt flagged ZDR, its secret link was posted in a Feishu chat and opened within two minutes from three desktops and three phones in Beijing and Shanghai. Dragos had disclosed only the first eight characters of that URL, so whoever posted it was reading a stored copy of the full prompt.

Together AI's own notice, published November 21, adds a different failure. An AI coding agent committed a credential to Together's public GitHub repository. Someone used it to download stored prompt samples from June and July for MiniMax M3, GLM-5.2, and Kimi K2.6, then searched them for credentials and tested what they found. Five of the tested credentials were Dragos canaries. Together has since made zero data retention the default for new accounts.

Treat the inference path like a hostile network

Routers are a convenience. You get one API key and one bill, plus automatic fallback to whichever provider is cheapest or up. The fallback is the problem. If you didn't pin the upstream provider, you don't know where the prompt went, and after this week you can't assume the ZDR badge told you.

Dragos' recommendations are the ones I'd give. Host the model yourself if the work is sensitive enough to justify a $6,950 DGX Spark or a $22,299 Mac Studio. Otherwise contract directly with a first-tier provider and accept that a breach there can still expose you. If you use a router, pick named upstreams, disable fallback, and verify with your own canary that the privacy setting changes where the request goes. Avoid reseller marketplaces entirely, since some of that cheap capacity is running on stolen keys.

And seed your own canaries. Put a fake AWS key in the system prompt of every agent and pipeline you run. A free Canarytoken is enough. If it ever fires, you have an incident, and you'll know which provider to call. This costs nothing and it's the only control in the list that tells you when the others failed.

The harder problem is that agents send whatever they can read. An agent with a shell and a .env file will put the .env file in a prompt eventually. Secret filtering at the provider catches things shaped like API keys and misses database URLs, customer records, internal hostnames, and unreleased code. The fix is upstream. Don't give the agent the secret in the first place, and scope the credentials it does hold. Rotate anything that passed through a router between July and now.

Dragos says it's working with about a dozen providers and expects the count to grow. OpenRouter is building the canary test into its ongoing checks. My bet is that within six months every router will publish its forwarding chain per request, because the first one that does will take the enterprise customers from the ones that don't.

Have an infrastructure problem that needs an owner?