prompt theft AI inference providers OpenRouter

How Attackers Stole Prompts from AI Inference Providers Without Detection

Three AI hosting companies did not know they were being robbed of customer data for months until external researchers brought them evidence. The theft happened inside their infrastructure, targeted the requests routed through OpenRouter, and included prompts marked for zero data retention, meaning they should never have been stored at all. This incident exposes a critical gap between what AI companies promise about data handling and what actually happens inside their systems.

OpenRouter Drops Providers Over Months of Undetected Prompt Theft

What Happened and When

In November, cybersecurity researchers at Dragos disclosed that attackers had stolen data from inside three AI inference providers over a span of months without triggering any alerts or detection from the providers themselves. OpenRouter, a service that acts as a gateway and routes customer API requests to a pool of competing AI model providers, subsequently removed the three affected providers from its roster. The researchers did not publicly name the three companies, but confirmed the breach had exposed customer prompts and requests, some of which carried metadata indicating they should not have been stored at all.

The timeline suggests the intrusions were discovered only after external investigation; the providers were not running detection systems sophisticated enough to catch the theft in real time. This is not a supply-chain attack on OpenRouter itself, but rather a compromise of infrastructure that OpenRouter's customers trusted to be secure.

How Internal Access Led to Data Theft

The attackers gained a foothold inside the inference providers' systems, meaning they were not attacking the public-facing API endpoints but rather accessing backend databases, logs or request caches where prompts are temporarily or permanently stored. This type of access typically requires either compromised credentials, a vulnerability in internal tools, or placement from a compromised employee or contractor. Once inside, the attackers could read the full contents of customer requests without needing to interact with the API in a way that might trigger rate-limiting or anomaly detection.

One critical detail: some of the stolen requests had been sent with a zero data retention flag, a setting that customers use when they believe their prompts contain sensitive information and should not be logged. The fact that these requests were stolen and stored anyway suggests either the flag was not honored at the infrastructure level, or the attacker bypassed the retention policy entirely by accessing raw storage.

Why Zero Data Retention Failed

Zero data retention is a contract and a technical claim. Customers rely on it when they send proprietary code, personal information, or confidential business queries to AI models via APIs. The provider agrees not to use the data for training, not to log it to disk, and often not to retain it past the session. However, implementing this correctly requires discipline across multiple systems: the API gateway must flag the request, the inference engine must skip logging, temporary caches must be cleared, and any distributed storage or backup systems must also respect the flag.

In this case, the breach shows that at least one of those systems failed or was bypassed. Whether the flag was ignored, the data was recovered from a backup, or the attacker accessed storage before the retention policy was enforced is unclear from the public details. What is clear is that a customer's explicit instruction to not store data was either violated or circumvented, which is a serious breach of trust.

Detection Gap: How Theft Went Unnoticed

The most alarming detail is that none of the three providers detected the theft themselves. This is not because the attackers used perfect stealth, but because inference providers, in general, do not run the kind of behavior-based or forensic monitoring that would normally catch lateral movement or large exfiltration of data. Many focus on API rate-limiting, DDoS protection and access control at the perimeter, but not on continuous monitoring of what happens inside their backend systems.

Dragos, an industrial cybersecurity firm, discovered the theft through research, possibly by analyzing logs after the fact or by working with OpenRouter on a security review. This suggests the theft was not caught by automatic intrusion detection systems or security operations center alerts. For a company storing and processing high-value customer data, the absence of tools and processes to detect insider threats or internal breaches is a significant weakness. The gap between what customers assume is monitored and what actually is monitored is a consistent theme in cloud and API security incidents.

What This Means for Your Data When Using AI APIs

If you use AI inference services through OpenRouter or directly, this incident should change how you think about request security. First, assume that any data you send to an API could be accessed by someone inside the provider's infrastructure, even if you are paying for privacy or retention guarantees. Second, treat the zero data retention flag as a preference, not a guarantee, and do not send unencrypted sensitive information (API keys, passwords, personal identifiers) in prompts, even to providers with the strongest privacy claims.

Third, use context to assess risk. Sending a software engineering question to a model is lower risk than sending sample customer data or internal business intelligence. If you must send sensitive information, consider anonymizing or fragmenting it across multiple requests, or using client-side encryption before sending the request to the API. OpenRouter's decision to drop three providers does show accountability in action, but it also highlights that due diligence is ongoing, not a one-time certification.

Lessons for Data Retention and Provider Accountability

This breach underscores that data retention policies and privacy claims are only as good as the monitoring and enforcement that backs them up. A provider that promises zero data retention but does not have automated enforcement, audit logging and regular third-party verification is making a promise it cannot keep. The fact that Dragos, not the providers' own security teams, discovered the theft suggests these companies lacked the operational visibility needed to catch a breach of this scope and duration.

OpenRouter's response to remove the three providers is a positive signal that the gateway service takes security seriously, but it also means customers may have been in the dark about a risk they were funding. If you are evaluating a provider or gateway for handling sensitive requests, ask directly about internal detection capabilities, how breaches are discovered, and whether there is a third-party security audit or bug bounty program. A provider that cannot answer these questions credibly is not ready to handle sensitive data.

Source: The Hacker News