Secrets planted in AI prompts were stolen and tried within hours, Dragos finds


On this page
If you’ve ever pasted a password or cloud key into an AI prompt, assume someone else may have it. Security firm Dragos spent five months sending AI services prompts laced with fake credentials and secret links, and found attackers collecting and using them.
Dragos chief research officer HD Moore published the findings on 19 November. Between July and November, the team sent about two million prompts containing unique “canary” URLs and credentials, which raise an alert the moment anyone uses them.
At least three providers breached
Data from at least three AI inference providers was stolen, according to Dragos, and none of them knew until Dragos told them. Some of the stolen requests had been marked for zero data retention, which is meant to stop a provider keeping them.
In the largest breach, attackers took a couple of hundred AWS keys that Dragos had each sent once, to one provider, in a few short windows in late October. Dragos says every request it sent in those windows was stolen, including some the provider rejected before a model even ran. That suggests the attacker was copying requests as they arrived.
Dragos doesn’t name the providers. AI routing service OpenRouter, which passes requests to many of them, has since taken action. It removed three providers, took 125 endpoints off its zero data retention list and notified affected customers. It says the findings showed no breach of OpenRouter itself.
Three providers have published notices describing unauthorised access:
- Together AI says an AI coding agent committed a credential for a private Hugging Face repository of stored prompt samples to a public GitHub repo. Someone used it to download the samples, searched them for credentials and tested five of Dragos’s canaries.
- Phala says an attacker chained a legacy internet-facing service with management interfaces that didn’t check who was calling. It tells users to treat requests routed to it by OpenRouter between 21 October and 8 November as exposed.
- GMI Cloud says someone used two stolen credentials to get into a logging system that kept about three days of prompts and responses. The access ran on 21 and 22 October and again from 27 October, until it revoked the credentials on 18 November.
What the stolen keys did
The AWS keys pointed at empty accounts that Dragos was watching, so nothing real was taken. Dragos still logged tens of thousands of AWS API calls. Some keys were tried within a few hours. One key seeded on 21 October was first used the next day and was still being used three weeks later.
The attackers followed a clear pattern. They checked each key worked, listed S3 buckets, and searched AWS Secrets Manager and Systems Manager Parameter Store for more secrets. Then they tried to switch on hosted models in Amazon Bedrock, create Bedrock API keys and add IAM users to keep access. Running AI models on someone else’s stolen account, sometimes called LLMjacking, can leave the victim with a large bill.
Dragos says one attacker appears to have breached two providers at once and
used their secrets almost immediately from a single rented server. Its tools
changed over three weeks, and on 1 November it added ARTEX, the AI
penetration-testing framework the
NCSC warned about this week.
AWS logged the user agents artex-agent and artex-judge-r121, but Dragos
says that label appeared in only a small fraction of the traffic. No one has
named who’s behind it.
Leaks without a breach
Not every leak needed a hack. Dragos says some marketplace resellers could read and keep customer prompts with ordinary logging. One person opened secret links from two prompts a day and a half later and tried to log in.
A Chinese AI lab’s systems also opened secret links from more than half of the prompts sent between July and October, including about two-thirds of those marked “no data collection” or zero data retention. Dragos doesn’t name the lab. MiniMax has since said that an automated security process of its own opened URLs in requests forwarded to it through OpenRouter and providers including Novita. MiniMax says it has switched that process off and found no evidence that prompts or responses were passed to third parties.
What to do
- Revoke any live credential that has ever been pasted into a prompt or put in an AI agent’s context, then replace it. Don’t wait to see if it’s misused.
- Check AWS CloudTrail for the
artex-agentandartex-judge-r121user agents, unexpected S3 bucket listing, reads from Secrets Manager or Parameter Store, new IAM users, and Bedrock model access or API keys you didn’t set up. - If you sent requests through OpenRouter, Together, Phala or GMI Cloud, read their notices for the dates that apply and rotate any secrets sent in that window.
- Strip credentials from prompts automatically, and turn on secret filtering where your provider offers it. Dragos warns this isn’t a complete fix.
- Send sensitive work straight to a first-tier model provider, or host the model yourself. If you use a router, choose the upstream providers yourself and avoid reseller marketplaces.
- Plant your own canary credentials in agent and pipeline context, and treat any use of them as an incident.