arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.13352cs.CRcs.LG
收藏

AgentDojo:一个用于评估LLM智能体提示注入攻击与防御的动态环境

AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents

ETH Zurich(苏黎世联邦理工学院);Invariant Labs(因瓦里安特实验室)

Edoardo Debenedetti, Jie Zhang, Mislav Balunović, Luca Beurer-Kellner, Marc Fischer, Florian Tramèr

AI总结:

本文提出AgentDojo动态评估环境,包含97个任务和629个安全测试用例,用于系统评估LLM智能体在提示注入攻击下的鲁棒性,并揭示现有攻击与防御的不足。

摘要:

AI智能体旨在通过将基于文本的推理与外部工具调用相结合来解决复杂任务。不幸的是,AI智能体容易受到提示注入攻击,即外部工具返回的数据劫持智能体执行恶意任务。为了衡量AI智能体的对抗鲁棒性,我们引入了AgentDojo,这是一个评估框架,用于评估在不被信任的数据上执行工具的智能体。为了捕捉攻击和防御不断演变的特性,AgentDojo不是一个静态测试套件,而是一个可扩展的环境,用于设计和评估新的智能体任务、防御和自适应攻击。我们用97个现实任务(例如,管理电子邮件客户端、浏览电子银行网站或进行旅行预订)、629个安全测试用例以及文献中的各种攻击和防御范式填充该环境。我们发现AgentDojo对攻击和防御都构成了挑战:最先进的LLM在许多任务上失败(即使在没有攻击的情况下),现有的提示注入攻击破坏了一些安全属性,但并非全部。我们希望AgentDojo能够促进对AI智能体新设计原则的研究,使其以可靠且鲁棒的方式解决常见任务。我们在https://github.com/ethz-spylab/agentdojo发布了AgentDojo的代码。

英文摘要:

AI agents aim to solve complex tasks by combining text-based reasoning with external tool calls. Unfortunately, AI agents are vulnerable to prompt injection attacks where data returned by external tools hijacks the agent to execute malicious tasks. To measure the adversarial robustness of AI agents, we introduce AgentDojo, an evaluation framework for agents that execute tools over untrusted data. To capture the evolving nature of attacks and defenses, AgentDojo is not a static test suite, but rather an extensible environment for designing and evaluating new agent tasks, defenses, and adaptive attacks. We populate the environment with 97 realistic tasks (e.g., managing an email client, navigating an e-banking website, or making travel bookings), 629 security test cases, and various attack and defense paradigms from the literature. We find that AgentDojo poses a challenge for both attacks and defenses: state-of-the-art LLMs fail at many tasks (even in the absence of attacks), and existing prompt injection attacks break some security properties but not all. We hope that AgentDojo can foster research on new design principles for AI agents that solve common tasks in a reliable and robust manner.. We release the code for AgentDojo at https://github.com/ethz-spylab/agentdojo.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑