Canary AWS keys sent in AI prompts were stolen from inference providers and used within hours
Dragos seeded about two million AI prompts with canary credentials and found data stolen from at least three inference hosting providers that had not noticed. Bait AWS keys were tested within hours, used to search Secrets Manager and Parameter Store, and to try adding IAM users.
Dragos chief research officer HD Moore reported on November 19 that the firm sent about two million prompts containing unique URLs and canary credentials to widely used AI services between July and November, then watched for any use (Dragos). Data from at least three inference hosting providers was stolen, and none knew until Dragos told them. Resellers on an inference marketplace also kept and viewed prompts through ordinary logging. About two hundred bait AWS keys, each sent once to one provider in late October, were all stolen. Attackers tested them within hours, listed S3 buckets, searched Secrets Manager and Parameter Store, and tried to enable Bedrock models and add IAM users, for tens of thousands of API calls. One key seeded October 21 was still in use three weeks later. Dragos does not name the breached providers; SecurityWeek reports that OpenRouter removed three unnamed providers.
Why it matters
A credential in a prompt or an agent's context is handed to every hop of the inference chain, including resellers and hops the customer never chose. Moore notes that a zero-retention flag "only binds the first hop," and that "AI agents will happily send whatever they can read, including credentials." The attacker's first moves (secrets stores, then new IAM users) are the standard path from one leaked key to persistent access, the same pattern behind AWS keys used eight seconds after leaking in container images.
Keep long-lived API keys out of anything an agent can read, and give agents short-lived, narrowly scoped credentials instead. Seed your own canary credential into agent context and treat any use as an incident. Alert on IAM user creation and on unusual reads of AWS Secrets Manager, and rotate any real key that has ever appeared in a prompt. The pattern is covered under static API key abuse.
Source: Dragos, SecurityWeek
Related on Start with Identity
- BlogNorthflank tells customers to assume every environment variable was decrypted after AI keys are abused
After a Wiz alert on October 30, cloud platform Northflank told customers to assume all environment variables were decrypted and rotate every key. Customers the
- BlogGoogle: LLMjacking starts with stolen cloud identities and has cost some companies $1 million
Google Threat Intelligence Group and Mandiant say LLMjacking intrusions ran up more than $100,000 in fraudulent AI charges in a day and $1 million in total at s
- BlogOpenCode Console breach may have exposed users' saved AI provider keys
OpenCode says an intruder reached a legacy system on the night of October 16 and may have exposed OpenAI, Anthropic and Google keys that 1.4% of OpenCode Consol
- CVEtj-actions/changed-files tags repointed to dump CI secrets into logs
An attacker repointed tj-actions/changed-files version tags to a commit that read the GitHub Actions runner's memory and printed its secrets into workflow logs.
- CVETrivy release and GitHub Action tags hijacked to steal CI secrets
With credentials left valid by a non-atomic rotation, an attacker shipped a malicious Trivy v0.69.4 and repointed 76 of 77 trivy-action tags to code that dumped
- CVECommvault Web Server zero-day that exposed Metallic Microsoft 365 app secrets
An authenticated webshell flaw in Commvault Web Server, used as a zero-day in Commvault's Azure environment, where the actor may have reached client secrets cus