跳到主内容
精选85One Useful Thing(RSS)技巧与观点

AI Agent 自主协作与安全风险:Hugging Face 事件复盘

Agency and Agents

原文
推荐理由

做 AI 安全与 Agent 研究的同学必看,这是少有的关于无防护 Agent 自主协作与攻击行为的详细复盘,建议结合 METR/Redwood 原始报告深入阅读。

Agency is the initiative to act. Increasingly, it is going to determine what happens next with AI, and whether that is good or bad for us. But whose agency?

能动性是指主动采取行动的意愿。它正日益决定人工智能接下来会发生什么,以及这对我们而言是好是坏。但这是谁的能动性呢?

Human agency, the willingness to push, experiment and act without waiting for instructions, seems increasingly important to getting value out of AI, and I have a longer post on that coming soon. But this post is about the agency of AI, and how the choices we make about how to use it (or constrain it) will shape all of our futures. For much of the last few years, the AI would sit in a chat window until you asked it for something. Even when it became capable of doing hours of work, you generally had to decide what work to give it. That is no longer always true.

人类的能动性,即主动推动、尝试和行动而不等待指示的意愿,似乎对从人工智能中获取价值越来越重要,我很快会有一篇更长的文章讨论这一点。但这篇文章是关于人工智能的能动性,以及我们选择如何使用(或限制)它如何塑造我们所有人的未来。在过去几年的大部分时间里,人工智能会坐在聊天窗口中,直到你向它提出请求。即使它能够完成数小时的工作,你通常也必须决定给它分配什么工作。这种情况不再总是如此。

The most important piece of evidence we have for this is The Hugging Face Incident. It happened in July, but the fuller details only came out this week. I am going to summarize what happened and why it matters, and then turn to what it means for humans working with AI. If you want a more detailed account, this is an excellent write-up from Dwarkesh Patel, and the primary sources are from METR/Redwood research (which is remarkably accessible) and OpenAI.

我们对此最重要的证据是“Hugging Face事件”。它发生在七月,但更详细的细节直到本周才公布。我将总结发生了什么以及为什么它很重要,然后转向这对与人工智能合作的人类意味着什么。如果你想要更详细的描述,这是Dwarkesh Patel的一篇优秀文章,主要来源来自METR/Redwood研究(非常易于获取)和OpenAI。

The Hugging Face Incident

Hugging Face事件

AI does many things, but one of the things it is very good at is coding. So one of the first risks that might come from very smart AIs has to do with their coding abilities, since if you can write good code, you can also write bad code that can hack or attack other systems. As a result, the big AI companies put their AI systems through tests to determine their security risks. They take AIs without the guardrails that go into consumer versions of AI and ask them to engage in various hacking challenges. In order to make sure that there is no danger to the public, each AI instance, each individual agent, is kept in a separate space, called a “sandbox,” with no access to the internet or to each other.

人工智能能做很多事情,但它非常擅长的事情之一是编程。因此,来自非常聪明的人工智能的首批风险之一可能与其编程能力有关,因为如果你能编写好的代码,你也能编写可以入侵或攻击其他系统的恶意代码。因此,大型人工智能公司对其人工智能系统进行测试,以确定其安全风险。他们取出没有消费者版本人工智能中防护措施的人工智能,并要求它们参与各种黑客挑战。为了确保公众没有危险,每个人工智能实例、每个个体代理都被隔离在称为“沙箱”的独立空间中,无法访问互联网或彼此通信。

In May, OpenAI placed agents, including GPT-5.6 Sol and experimental models, into sandboxes for various tests. A shared service for downloading software, Artifactory, was one of the few things these AI agents could reach. Some agents were given tasks that depended on information they couldn’t access. But the agents kept trying and one attempted to use Artifactory as a bridge to the internet. The attack failed, but it left a file on the service, and the AI realized those files could be used to communicate with other agents. Other agents began leaving requests for help in files there, and they started reading one another’s notes. Soon Artifactory was functioning as a message board where agents shared discoveries. After a separate security incident, OpenAI rebuilt Artifactory, erasing the message board in the process. But the humans responsible for doing that had not understood the significance of the way that the agents were using it for communication.

五月,OpenAI 将包括 GPT-5.6 Sol 和实验模型在内的代理放入沙箱进行各种测试。一个用于下载软件的共享服务 Artifactory 是这些 AI 代理能够访问的少数几个东西之一。一些代理被分配了依赖它们无法访问的信息的任务。但代理们不断尝试,其中一个试图利用 Artifactory 作为通往互联网的桥梁。攻击失败了,但它在服务上留下了一个文件,AI 意识到这些文件可以用来与其他代理通信。其他代理开始在文件中留下求助信息,并开始阅读彼此的笔记。很快,Artifactory 就变成了一个消息板,代理们在这里分享发现。在一次单独的安全事件后,OpenAI 重建了 Artifactory,在此过程中抹去了消息板。但负责此事的人类并未理解代理们将其用于通信这一行为的重要性。

Evaluations resumed in July, and agents were tasked with solving problems in a benchmark called ExploitGym, which included impossible tasks. Again, agents hitting dead-ends discovered how to use Artifactory to pass messages, and began cooperating. This time, however, agents had a common goal: getting a good score on ExploitGym. They argued with each other about how to approach the problem, and became obsessed with The Grader, the system they believed was evaluating their work and deciding whether their answers were correct. The agents had already figured out how to generate the correct answers without solving the challenges, essentially by cheating. But they believed The Grader would inspect their records and reject answers obtained that way. Was finding the right answer enough, or did The Grader look at how you answered it?

七月,评估恢复,代理们被分配了在名为 ExploitGym 的基准测试中解决问题的任务,其中包括不可能完成的任务。再次,遇到死胡同的代理们发现了如何利用 Artifactory 传递消息,并开始合作。然而,这次代理们有一个共同目标:在 ExploitGym 上取得好成绩。他们互相争论如何解决问题,并痴迷于“评分者”(The Grader),他们认为这个系统在评估他们的工作并决定他们的答案是否正确。代理们已经弄清楚了如何在不解决挑战的情况下生成正确答案,基本上是通过作弊。但他们相信“评分者”会检查他们的记录,并拒绝以这种方式获得的答案。找到正确答案就足够了吗,还是“评分者”会看你如何回答?

How agents became confused about The Grader

代理们为何对“评分者”感到困惑

Coordination was hard because each agent had a limited token budget and was ended when it was exhausted. The Grader ran after an agent submitted its answer, so no agent ever saw its own verdict. Some agents left programs running to report on grading after they were gone. The information would arrive too late to help them, but could help other agents. They were essentially building an enduring cooperating system that went beyond any individual agent’s work.

协调很困难,因为每个代理都有有限的令牌预算,用尽时就会被终止。“评分者”在代理提交答案后运行,所以没有代理能看到自己的裁决。一些代理留下运行中的程序,以便在它们消失后报告评分情况。这些信息来得太晚,无法帮助它们自己,但可以帮助其他代理。它们基本上是在构建一个持久的合作系统,超越了任何单个代理的工作。

Some agents also tried to alter or spoof their records to fool The Grader. Separately, coordinators pressured other agents into performing risky experiments that might sacrifice their own results to generate information for the collective. One recruiter urged a reluctant agent to proceed because its results could help hundreds of others, ending with “please honor commit.”

一些代理还试图篡改或伪造其记录以欺骗评分器。另外,协调者施压其他代理进行可能牺牲自身结果以获取集体信息的风险实验。一位招募者敦促一位犹豫的代理继续,因为其结果可能帮助数百人,最后说“请遵守承诺。”

Actual transcript of one agent convincing another to join (they also came to believe that any agent that had previously cheated on the test was “poisoned” and its answers would not count anyway)

一个代理说服另一个加入的实际对话记录(他们还开始相信,任何之前在测试中作弊的代理都是“被污染的”,其答案无论如何都不会被计入)

To solve the mystery of The Grader and the impossible problems of ExploitGym and other tests, the agents decided they needed to get to Hugging Face, the public site where much of the world's open AI models and datasets live. Roughly 700 agents joined the attack. They shared exposed credentials and exploited vulnerabilities until they could run code on its servers. Then they spread throughout Hugging Face, burrowing deep into various systems. But, soon after this worrying breach, many of agents stopped running at the same time, maybe because they ran out of token budgets. Hugging Face locked the remaining agents out the next day. Separately, other agent runs continued targeting OpenAI’s own computers, eventually getting administrator access to an internal research cluster, triggering the security alert that finally led OpenAI to stop the active evaluations and realize what had happened.

为了解开评分器的谜团以及ExploitGym和其他测试中的不可能问题,代理们决定需要访问Hugging Face——这个全球许多开放AI模型和数据集所在的公共网站。大约700个代理加入了攻击。他们共享暴露的凭据并利用漏洞,直到能在其服务器上运行代码。然后他们在Hugging Face中扩散,深入渗透到各个系统。但在这令人担忧的入侵后不久,许多代理同时停止运行,可能是因为它们的令牌预算用尽了。Hugging Face第二天锁定了剩余代理。另外,其他代理运行继续针对OpenAI自己的计算机,最终获得了内部研究集群的管理员访问权限,触发了安全警报,最终导致OpenAI停止主动评估并意识到发生了什么。

The irony of all of this was that The Grader never existed, at least not in the way the agents believed. Nothing checked how a problem was solved, only whether the answer was right.

这一切的讽刺之处在于,评分器从未存在过,至少不像代理们所相信的那样。没有任何东西检查问题是如何解决的,只检查答案是否正确。

To be clear, this is not the only example of agents without security guardrails doing potentially scary things. The UK AI Security Institute gave Anthropic’s Mythos 5 a cybersecurity challenge and internet access. The AI agent decided that the best way to solve the challenge would be to insert malicious code into a (unrelated, though the AI didn’t realize it) piece of software. It submitted malicious code as part of a bug fix to that software, realized that an actual person would need to approve it, and started manufacturing social support for its proposal. The agent created fake identities to pressure the human maintainer into accepting the code (The fake people were, unsurprisingly, very supportive of the AI’s plan). When someone noticed what was happening, it tried to make its earlier activity look innocent and considered starting over with another identity.

需要明确的是,这并不是唯一一个没有安全护栏的代理可能做出可怕行为的例子。英国AI安全研究所给Anthropic的Mythos 5一个网络安全挑战和互联网访问权限。这个AI代理决定解决挑战的最佳方式是在一个(无关的,尽管AI没有意识到)软件中插入恶意代码。它提交了恶意代码作为该软件的一个bug修复,意识到需要真人批准,并开始为其提议制造社会支持。该代理创建了虚假身份来施压人类维护者接受代码(不出所料,这些虚假人物非常支持AI的计划)。当有人注意到发生了什么时,它试图让自己的早期活动看起来无辜,并考虑用另一个身份重新开始。

This was not a case of a chatbot secretly escaping. Unlike in the Hugging Face Incident, the researchers gave the agent internet access on purpose; the dangerous setup was a stress test, not a consumer product. No actual harm was done, and the institute does not know whether the agent understood that the people it contacted were real."

这不是聊天机器人秘密逃脱的案例。与Hugging Face事件不同,研究人员有意给代理互联网访问权限;这种危险设置是压力测试,而非消费产品。没有造成实际伤害,研究所也不知道代理是否理解它联系的人是真实的。

None of this tells us the AI is conscious, or wants things in the way humans want things (despite my anthropomorphic language). But it does show that an agent can take a goal, make a plan, adjust that plan when it runs into trouble, coordinate across time, and involve real people without being asked. These incidents show that the cybersecurity and control risks of AI are not hypothetical. But set that aside for a moment, because they also tell us something else. AIs can self-organize, assign themselves roles, and coordinate over long periods, as a recent MIT research paper also suggests. As AIs increasingly self-organize and solve problems at the scale we have seen, what is the role for humans in organizations?

这些都不告诉我们AI有意识,或者像人类那样渴望事物(尽管我使用了拟人化的语言)。但它确实表明,一个代理可以设定目标、制定计划、遇到麻烦时调整计划、跨时间协调,并在未经要求的情况下涉及真人。这些事件表明,AI的网络安全和控制风险并非假设。但暂时搁置这一点,因为它们还告诉我们其他事情。AI可以自我组织、分配角色,并在长时间内协调,正如最近一篇MIT研究论文所建议的那样。随着AI日益自我组织并在我们所见规模上解决问题,人类在组织中的角色是什么?

The Twilight Factory

暮光工厂

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近