Researcher plants 2m canaries into the AI supply chain. A privacy disaster surfaced.
本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。
Researchers planted 2 million digital tripwires in requests sent through a sprawling network of AI services to find out what happened to sensitive information entrusted to them. What they discovered was an ecosystem that leaked highly sensitive data like a sieve.
研究人员在通过庞大的 AI 服务网络发送的请求中植入了 200 万个数字“绊线”,以查明委托给它们处理的敏感信息究竟发生了什么。他们发现的是一个像筛子一样泄露高度敏感数据的生态系统。
The exposure was found through an ingenious experiment designed to test if sensitive information can leak through the vast chain of widely used AI services and how that information is exploited when it does. Many of today’s AI apps use services such as OpenRouter or Vercel that act as brokers. These “AI routers,” sometimes also known as “AI gateways,” receive large numbers of prompts sent from AI app end users and route them to an available inference engine based on criteria such as the one charging the lowest price or being best suited for the given task.
这一漏洞是通过一项巧妙的实验发现的,该实验旨在测试敏感信息是否会通过广泛使用的 AI 服务链泄露,以及这些信息在泄露后如何被利用。当今许多 AI 应用使用 OpenRouter 或 Vercel 等充当代理的服务。这些“AI 路由器”(有时也称为“AI 网关”)接收来自 AI 应用终端用户的大量提示词,并根据价格最低或最适合特定任务等标准,将其路由到可用的推理引擎。
Instead of using Anthropic, OpenAI, or another big provider, the developer hires an AI router to find the most suitable model. Security breaches, prompt theft, and privacy violations. To test for potential leakage, researcher HD Moore assembled a collection of Amazon Web Services access keys, functioning credentials tied to empty AWS accounts, passwords for services such as SSH, and unique URLs, DNS names, and private git repository references.
开发者无需使用 Anthropic、OpenAI 或其他大型提供商,而是聘请 AI 路由器来寻找最合适的模型。安全漏洞、提示词窃取和隐私违规。为了测试潜在的泄露情况,研究员 HD Moore 收集了一系列亚马逊云科技(AWS)访问密钥、绑定到空 AWS 账户的功能性凭证、SSH 等服务的密码,以及唯一的 URL、DNS 名称和私有 git 仓库引用。
None of the secrets had ever been used before, and he controlled the infrastructure that received any requests using the credentials. He then seeded each secret into exactly one prompt sent to a single provider. In the event any of the secrets were leaked, these “canaries”—so called because they resemble the role of that bird when taken into coal mines—would allow Moore to identify each link in the chain that was responsible.
这些机密此前从未被使用过,且他控制着接收使用这些凭证的请求的基础设施。随后,他将每个机密植入发送给单一提供商的唯一提示词中。如果任何机密发生泄露,这些“金丝雀”(之所以这样命名,是因为它们的作用类似于带入煤矿的鸟)将使 Moore 能够识别出链条中负责的每一个环节。
The findings are striking. They included: Evidence that at least three AI providers were compromised by attackers who used their access to siphon prompts they received; Multiple resellers in the inference marketplace that logged the prompts and somehow passed them along to people who used the credentials; Multiple cases of AI providers not following end-user privacy settings embedded into flags specifying terms such as Zero Data Retention (ZDR) or “no data collection.”
研究结果令人震惊。其中包括:至少有三家 AI 提供商遭到攻击者入侵,攻击者利用其访问权限窃取了收到的提示词;推理市场中的多家经销商记录了提示词,并以某种方式将其传递给使用这些凭证的人;多起 AI 提供商未遵守嵌入在“零数据保留”(ZDR)或“不收集数据”等条款标志中的终端用户隐私设置的案例。
“We sent nearly two million AI prompts containing unique, trackable secrets to AI providers, then watched where those secrets surfaced,” Moore, the chief research officer of security firm Dragos, wrote Thursday. “What we found revealed security breaches, prompt theft, and widespread failures to protect customer data.”
安全公司 Dragos 的首席研究官 Moore 周四写道:“我们向 AI 提供商发送了近 200 万个包含唯一、可追踪机密的 AI 提示词,然后观察这些机密出现在哪里。我们的发现揭示了安全漏洞、提示词窃取以及在保护客户数据方面的普遍失败。”
Although prompts are encrypted in transit, they are decrypted at each hop inside the large inference reseller network. The prompt is first sent to an AI router, which reads the plaintext in it to determine the most suitable inference providers to handle the request. Often, the prompt is then sent to a pool of available models, which sometimes run inside different hosting providers. Prompts can also pass from one AI router (such as Vercel) to another one (e.g., OpenRouter). Each one of these players is likely to log the prompt and store it for as long as its policies call for (if not indefinitely).
尽管提示词在传输过程中是加密的,但在大型推理经销商网络内的每一跳都会被解密。提示词首先被发送到 AI 路由器,路由器读取其中的明文以确定处理该请求的最合适推理提供商。通常,提示词随后会被发送到可用模型池,这些模型有时运行在不同的托管提供商内部。提示词还可能从一个 AI 路由器(如 Vercel)传递到另一个(如 OpenRouter)。这些参与者中的每一个都可能记录提示词,并根据其政策要求将其存储(如果不是无限期存储的话)。
The most concerning finding was the breach of three separate hosting providers. The attackers who compromised one of the providers reused “a couple hundred” of the AWS keys. Moore wrote: Each key was sent in exactly one request to one provider, all within a few short windows in late October, and every request we sent during those windows was stolen. Some of the stolen keys came from requests that the provider rejected before a model ever ran—this tells us that the attacker was copying requests at the provider’s front door, and not somewhere deeper in the inference stack.
最令人担忧的发现是三家独立的托管提供商遭到入侵。入侵其中一家提供商的攻击者重复使用了“几百个”AWS 密钥。Moore 写道:每个密钥都在 10 月下旬的几个短窗口期内,通过单一请求发送给单一提供商,而我们在这些窗口期内发送的每一个请求都被窃取了。一些被窃取的密钥来自提供商在模型运行前就拒绝的请求——这告诉我们,攻击者是在提供商的“前门”复制请求,而不是在推理堆栈的更深处。
In the other two breaches, some of the stolen requests were marked as ZDR. A privacy flag doesn’t help when the attacker is already inside. Parties tied to the hack of these three providers then tested each key, in some cases within hours of being seeded, to see what kind of resources it gave access to. The parties looked through S3 buckets, secrets managers, and parameter stores in search of still more credentials. They also tried to enable hosted models in AWS Bedrock and added their own IAM users to maintain access.
在另外两起入侵事件中,一些被窃取的请求被标记为 ZDR。当攻击者已经进入内部时,隐私标志毫无用处。与这三家提供商遭黑客攻击相关的各方随后测试了每个密钥,有时在植入后的几小时内就开始测试,以查看它能访问什么样的资源。这些各方查看了 S3 存储桶、机密管理器和参数存储,以寻找更多的凭证。他们还试图在 AWS Bedrock 中启用托管模型,并添加了自己的 IAM 用户以维持访问权限。
In all, the stolen bait keys were used “tens of thousands” of times in AWS API calls. Secrets sent to two of the hacked providers were quickly used together, almost immediately, from the same rented server. That means the providers were almost certainly compromised by the same adversary. As noted earlier, some of the secrets were stolen by the resellers themselves. To lure prompts to their servers, they offered low prices. Then they turned on request logging and waited.
总共,被窃取的诱饵密钥在 AWS API 调用中被使用了“数万次”。发送给两家被黑提供商的机密几乎立即从同一台租用服务器上被同时使用。这意味着这些提供商几乎肯定是被同一个对手入侵的。如前所述,一些机密是被经销商自己窃取的。为了将提示词吸引到他们的服务器上,他们提供了低价。然后,他们开启了请求记录并静候结果。
Moore identified them by sending requests to the same model through different sellers. When credentials were later reused when sent through one seller and not another, the researcher knew it was the reseller, not the model provider, that was responsible. Last, the canary experiment revealed that some providers are scraping secret URLs put into the prompts, in violation of privacy terms.
Moore 通过通过不同的卖家向同一个模型发送请求来识别他们。当凭证在通过某一个卖家发送后被重复使用,而通过另一个卖家发送时却没有,研究人员就知道是经销商而非模型提供商在负责。最后,金丝雀实验揭示了一些提供商正在抓取提示词中放入的机密 URL,这违反了隐私条款。
Moore wrote: The clearest example involves a Chinese AI lab. This lab’s systems fetched the secret URLs from more than half of the prompts that we sent to its models between July and October, including roughly two-thirds of the requests marked as “no data collection” or Zero Data Retention. The scraper typically showed up two or three days after the request. This wasn’t limited to requests sent to the lab directly. Several US hosting providers resell this lab’s models, and prompts sent to those providers triggered the exact same scraper—the prompts were flowing back to the lab.
Moore 写道:最明显的例子涉及一家中国 AI 实验室。该实验室的系统从我们在 7 月至 10 月间发送给其模型的超过一半的提示词中获取了机密 URL,其中包括约三分之二标记为“不收集数据”或“零数据保留”的请求。抓取工具通常在请求发出两三天后出现。这不仅限于直接发送给该实验室的请求。几家美国托管提供商转售了该实验室的模型,发送给这些提供商的提示词触发了完全相同的抓取工具——提示词正在流回该实验室。