Researchers from the security company Dragos claim to have discovered that queries sent to AI providers can be intercepted and reused by third parties. Out of nearly two million queries containing unique, traceable secrets, they observed query theft, intrusions at hosting providers, and numerous failures in customer data protection.
The secrets were sent to AI providers and then tracked to see where they reappeared. According to Moore, Dragos’s chief research officer, ‘we discovered security flaws, query theft, and widespread failures in customer data protection’. The post published on Dragos’s blog details the method.
A supply chain of intermediaries at risk
The queries, called ‘prompts’ in the jargon, are encrypted during transmission. However, they are decrypted at each step of the inference reseller network, i.e., the execution of the models. An AI router reads the plain text to choose the most suitable provider. The query is then sent to a set of available models, which sometimes run on different hosting providers. It can also pass from one router to another, for example from Vercel to OpenRouter.
Each of these actors can record the query and keep it for as long as their policy allows, or even indefinitely. The source describes three types of problems: AI providers compromised by attackers who siphoned off received queries, resellers who logged queries and transmitted them to people using their credentials, and several cases where providers did not respect users’ privacy settings, such as ‘Zero Data Retention’ (ZDR) notices, which indicate no data retention, or ‘no data collection’.
Stolen keys used on a large scale
The most concerning finding involves three distinct hosting providers. According to Moore, the attackers who compromised one of them reused ‘about a hundred’ AWS keys, Amazon’s cloud service. Each key was sent in a single query to a single provider, during short windows at the end of October, and all queries sent during these windows were stolen. Some keys came from queries rejected even before a model was executed, which indicates, according to the researcher, that the attacker was copying queries at the provider’s entry point.
In the other two intrusions, some stolen queries were nevertheless marked ZDR. Moore summarizes the limitation of this setting as follows: ‘A privacy indicator is useless when the attacker is already inside’.
The individuals linked to the hacking of these three providers then tested each key, sometimes just hours after they were disseminated, to see what resources they provided access to. They explored S3 storage buckets, secret managers, and parameter stores, looking for other credentials. They also attempted to activate models hosted on AWS Bedrock and added their own IAM users to retain access. In total, the stolen bait keys were used ‘tens of thousands’ of times in AWS API calls.
