Skip to main content
Cybersecurity20 Nov 20263 min

Researchers Seed 2 Million AI Prompts With Fake Secrets and Watch Them Get Stolen

Photo: Tyler · Unsplash

Dragos researcher HD Moore’s canary test found hacked hosting providers, thieving resellers and a Chinese AI lab scraping private URLs, even from prompts flagged as zero data retention.

Photo: Tyler · Unsplash

Sensitive data sent through the layers of services behind many AI apps is leaking at an alarming rate, according to a large experiment reported by Ars Technica. The test planted trackable fake secrets in nearly two million prompts and then watched where they turned up.\n\nThe researcher behind it, HD Moore, is chief research officer at security firm Dragos. He wrote that the results showed “security breaches, prompt theft, and widespread failures to protect customer data.”\n\n## How the test worked\n\nMany AI apps don’t call a model maker such as Anthropic or OpenAI directly. They use brokers like OpenRouter or Vercel, often called AI routers or gateways. These read each prompt and send it to a suitable model, based on factors such as price or task fit.\n\nMoore built a set of “canaries”: AWS access keys tied to empty accounts, SSH-style passwords, and unique URLs, DNS names and private git repository references. None had been used before, and he controlled the infrastructure that would receive any attempt to use them. Each secret went into exactly one prompt sent to a single provider, so any later use could be traced back along the chain.\n\nPrompts are encrypted in transit but decrypted at each hop. Routers read the plaintext, and prompts may then pass to model pools hosted by different providers, or from one router to another. Each party may log and keep the prompt for as long as its policies allow.\n\n## What leaked\n\nThe most serious finding was the compromise of three separate hosting providers. Attackers who breached one reused “a couple hundred” of the AWS keys. Moore said every request sent during a few short windows in late October was stolen. Some stolen keys came from requests the provider rejected before any model ran, which suggests the attacker was copying traffic at the provider’s front door. In the other two breaches, some stolen requests had been marked as zero data retention (ZDR). “A privacy flag doesn’t help when the attacker is already inside,” Moore wrote.\n\nThe thieves tested the keys, sometimes within hours. They searched S3 buckets, secrets managers and parameter stores for more credentials, tried to enable hosted models in AWS Bedrock, and added their own IAM users to keep access. The bait keys were used “tens of thousands” of times in AWS API calls. Keys from two of the hacked providers were used almost immediately from the same rented server, which suggests a single adversary.\n\nSome resellers also took secrets themselves. They attracted traffic with low prices, turned on request logging and waited. Moore identified them by sending requests to the same model through different sellers. Credentials reused after going through one seller but not another pointed to the reseller rather than the model provider.\n\nThe test also caught providers scraping secret URLs in violation of their privacy terms. The clearest case, Moore said, was a Chinese AI lab whose systems fetched the secret URLs from more than half of the prompts sent to its models between July and October. That included roughly two-thirds of requests marked “no data collection” or ZDR. The scraper usually appeared two or three days later. Several US hosting providers resell this lab’s models, and prompts sent through them triggered the same scraper. Later, a git client on another cloud tried to clone the private repositories named in prompts, only for this lab’s models.\n\nMoore also found a US hosting provider crawling a secret URL more than two months after a single inference call. Another ran a scraper that returned days after each request, whichever router was used.\n\n## What users can do\n\nMoore said the best protection is hosting models on on-premises servers, though that is expensive. The next best option is to buy directly from a first-tier provider offering “one contract and a privacy policy to read.” Even that carries no guarantee, he said, but it lowers the odds. Users should also avoid default provider or reseller pools and choose upstream providers themselves.\n\nArs Technica called the research the latest evidence of lax privacy and security across much of the AI ecosystem, and said keeping prompt secrets private is unlikely to get easier soon.


Source: Ars Technica

Share this story
ai-securitydata-leaksai-routersopenrouterprivacy
About the author
Reporting Team
Editors and reporters

Morning to night, Reporting Team files on the machines and code changing daily life. We retell another publication's findings ourselves, always naming that publication and hyperlinking the original article.

Responses

Comments are public. Keep it civil.
    The Circuit Courier newsletter

    One briefing. Every morning. Free.

    Start the day with Circuit Courier: the essential AI & tech stories in one email.