# Canary AWS keys sent in AI prompts were stolen from inference providers and used within hours

Source: https://startwithidentity.com/blog/2026-11-19-canary-aws-keys-sent-in-ai-prompts-were-stolen-from-inference-providers-and-used-within-hours/
Last updated: 2026-11-23
License: content by Start with Identity. Cite the source URL.

---

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](https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens)). 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](https://www.securityweek.com/ai-inference-providers-failed-to-detect-hacking-and-prompt-theft-says-dragos/) 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](https://startwithidentity.com/blog/2026-11-17-aws-keys-planted-in-public-container-images-were-used-within-eight-seconds/).

Keep long-lived [API keys](https://startwithidentity.com/glossary/api-key/) 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](https://startwithidentity.com/vendors/secrets/aws-secrets-manager/), and [rotate](https://startwithidentity.com/glossary/secrets-rotation/) any real key that has ever appeared in a prompt. The pattern is covered under [static API key abuse](https://startwithidentity.com/techniques/static-api-key-abuse/).

Source: [Dragos](https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens), [SecurityWeek](https://www.securityweek.com/ai-inference-providers-failed-to-detect-hacking-and-prompt-theft-says-dragos/)
