Skip to main content
[← back to blog]

Dragos's bait prompts caught attackers inside three AI providers

Dragos seeded nearly two million AI prompts with bait AWS keys and URLs. Attackers stole requests at three hosting providers, some marked Zero Data Retention, and used the keys to dig through AWS accounts.

Nov 20, 20267 min read

Between July and November 2026, Dragos sent nearly two million AI prompts carrying unique URLs and credentials nobody else had seen, including real AWS keys tied to empty accounts with full logging. Then it watched who used them. In its write-up published on November 19, Dragos reports that attackers were stealing request data at three AI hosting providers, and that none of the three knew until Dragos told them.

The prompts were bait, but they went through the same systems as everyone else's. Dragos writes that its requests "were processed along with real customer requests, and those were almost certainly copied too."

For a team running coding agents, the report traces the whole chain: what goes into a prompt, how many companies handle it before a model runs, and what an attacker did with the AWS keys found there.

How a prompt reaches the model

Most people picture inference as one request to one company. Dragos describes a longer path. AI routers offer a single API endpoint and forward each request to a pool of models, sometimes at different hosting providers. A request can pass through more than one router before it reaches the server that runs the model, and, in Dragos's words, "every hop can see the entire prompt and response."

Some routers are open marketplaces where the seller with the lowest price gets the request. Dragos found that sellers on one marketplace could read and keep customer prompts with ordinary request logging, without exploiting anything. In one case, two prompts went through a single seller's offer. About a day and a half later, someone on a home broadband connection opened both secret URLs in a desktop browser and started guessing usernames at the login page.

Some hops never appear on the route. To find out who really handled each request, Dragos built something like traceroute for inference and has traced about two thousand routes so far. Several hundred of them included a system it could not identify. One router was quietly forwarding some of its traffic to the marketplace.

Three providers and what the attacker did with the keys

The most serious finding was plain theft. Dragos found attackers copying requests at three hosting providers, and the earliest incident dates back to mid-July. Dragos does not name the providers. It says one of them has published a preliminary security notice, and that, as of its write-up, the provider behind the July incident had not publicly disclosed it.

At the largest breach, Dragos had sent a couple hundred AWS keys, each in exactly one request, during a few short windows in late October. Every request it sent in those windows was stolen. Some keys came from requests the provider rejected before a model ever ran, which told Dragos the attacker was copying requests at the provider's front door.

Dragos describes what the attacker did with them next:

  • The attacker tested each key to see if it was live, in some cases within a few hours of the request.
  • They went looking for data, listing S3 buckets and searching Secrets Manager and Parameter Store.
  • They tried to enable hosted models in AWS Bedrock, create Bedrock API keys and add their own IAM users to keep access.

In total, the bait keys were used for tens of thousands of AWS API calls. One key that Dragos seeded on October 21 was first used the next day and was still in use three weeks later.

One adversary appears to have compromised two of the providers at the same time. Secrets sent to both were used together, almost immediately, from a single rented server.

The attacker's tools changed over the three weeks Dragos watched, from a script posing as Chrome on Windows to Boto3 and then the AWS CLI on Kali Linux. On November 1 it added ARTEX, the LLM-driven penetration testing framework we wrote about in stolen AI keys paid for the hunt for more AI keys. Here ARTEX did little beyond confirming that keys the attacker already held were still live.

Zero Data Retention did not hold

In the other two breaches, some of the stolen requests were marked Zero Data Retention (ZDR), the strictest privacy setting, which says the prompt and response are not stored. Dragos writes, "A privacy flag doesn't help when the attacker is already inside."

The flag also failed where nobody broke in. One AI lab's systems fetched the secret URLs from more than half of the prompts Dragos sent to its models between July and October, including roughly two-thirds of the requests marked "no data collection" or ZDR. Several hosting providers resell that lab's models, and prompts sent to them set off the same scraper. One of the large providers kept crawling a secret URL more than two months after Dragos used it in a single call to its search endpoint.

In its advice to defenders, Dragos adds that "a privacy flag only binds the first hop." The setting you pick applies to the company you send the request to. What that company keeps, and who it forwards your request to, depends on its own systems and contracts.

The exposure also lasts. "Stolen keys and secret URLs continue to be accessed, even months after the initial incident," Dragos writes. Once a secret has been in a prompt, treat it as exposed.

Why this reaches developer machines

None of this happened on a laptop. The theft was at the providers and the marketplace sellers, and nothing a developer's machine runs would have seen it. But the bait was built to look like what real prompts carry, and Dragos lists what real prompts often hold: confidential source code, internal communications, strategic plans, customer information and credentials.

It also says how credentials get there: "AI agents will happily send whatever they can read, including credentials."

Take Claude Code. As of November 2026, Anthropic's data usage page says it runs locally and sends data over the network to reach the model, including all user prompts and model outputs, and that it works with most popular LLM proxies. The same page counts file contents as part of a session's conversation. If Claude Code opens .env or ~/.aws/credentials during a task, those keys can travel in its next request, through whatever routers sit between the developer and the model.

Nobody pasted the key. The agent read a file because the task touched it.

The same question applies on your side of the first hop. Which secrets can the agents on your developers' machines read, and which did they actually read last week?

What would have caught it

Dragos caught it with canaries, and the method carries over. A canary is a secret that exists in exactly one place, so any use of it means that place leaked. Dragos tied each one back to the prompt, model, router and privacy setting that carried it, so a single login attempt pointed at a specific hop.

On the AWS side, some of the attacker's tools named themselves. Kali and ARTEX both showed up in the user agent that AWS records in CloudTrail, and Dragos lists two ARTEX user agents, artex-agent and artex-judge-r121, as worth adding to detections. It also notes that this self-identification appeared in only a small fraction of the traffic, so a missing user agent proves nothing.

On the machine side, the useful record is what the agent read before it sent a request: which files Claude Code opened in a session, such as a .env file or ~/.aws/credentials. That record cannot tell you where a prompt went after it left. It tells you which keys could have been in it, which is the first thing you need when a provider's breach notice arrives.

What to do this week

  • Seed one canary. Put a fake credential in the context your agents and pipelines already send, and treat any use of it as an incident. This is Dragos's own advice, and a free canary token is enough to start.
  • Map your hops. For each AI service your teams call, write down the router and the upstream providers it can pick, and check that your privacy setting changes where requests go.
  • Choose providers on purpose. Dragos suggests going direct to a first-tier provider where you can, picking upstream providers on a router instead of taking the default pool, and staying away from reseller marketplaces.
  • Get long-lived cloud keys out of the files agents open. A key that sits in a project's .env file or in ~/.aws/credentials is one file read away from a prompt.
  • Turn on secret filtering where your provider offers it. Dragos says it "can't hurt" but is not a cure-all, since plenty of sensitive data in prompts doesn't look like an API key.

Quint records the files, processes and network connections of every AI agent on a developer's machine, from the operating system, so when a provider tells you your prompts were copied, you can see which credential files your agents had opened. See what your agents opened last week on one of your own machines: book a demo.

Related reading

Your agents are running. See what they're actually doing.

Book a demo