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

Edoardo Debenedetti, Jie Zhang, Mislav Balunovi'c, Luca Beurer-Kellner, Marc Fischer, F. Tramèr

arXiv:2406.13352 · 2026-07-27 공개 · arXiv · PDF

llm-agents prompt-injection agent-framework tool-calls adversarial-robustness security-evaluation attack-defense task-management

Abstract

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.

한국어 요약

한 줄 요약

AgentDojo는 LLM 에이전트의 보안성을 평가하기 위한 동적 환경으로, 97개의 실제 작업과 629개의 보안 테스트 케이스를 포함한다.

핵심 기여도

핵심 아이디어

AgentDojo는 AI 에이전트가 외부 도구를 사용하면서 발생할 수 있는 보안 위협, 특히 프롬프트 인젝션 공격을 평가하기 위한 새로운 프레임워크이다. 기존 연구는 대부분 정적 테스트 스위트에 의존했지만, AgentDojo는 공격과 방어가 진화하는 현실을 반영하기 위해 동적이고 확장 가능한 환경을 설계했다. 이는 에이전트가 상태를 유지하면서 여러 도구를 동적으로 호출해야 하며, 공격자는 특정 지점(예: 사용자의 이메일)에 악의적인 지시를 삽입하는 방식으로 작동한다. AgentDojo는 환경 상태를 기반으로 공식적인 유틸리티 체크를 수행하여, 다른 LLM을 사용한 시뮬레이션에 의존하지 않는다.

기술적 접근법

주요 결과

의의 및 한계

AgentDojo는 AI 에이전트의 보안성 평가를 위한 첫 번째 동적 프레임워크로, 공격과 방어 모두에 도전적인 환경을 제공한다. 이는 연구자들이 새로운 에이전트 설계 원칙을 개발하고, LLM이 지시와 데이터를 구분하는 능력을 향상시키는 데 기여할 수 있다. 그러나 현재 AgentDojo에 포함된 공격과 방어는 상대적으로 단순하며, 더 복잡한 공격(예: 분리된 LLM 공격)이나 방어 전략이 추가될 필요가 있다. 또한, 현재는 텍스트 기반 에이전트만 지원하며, 멀티모달 에이전트(텍스트와 이미지 처리)를 지원하는 확장이 제안되었다.

실용적 활용

AgentDojo는 디지털 비서, 스마트 운영 체제, 코드 생성 환경 등 다양한 AI 에이전트가 사용되는 산업에서 보안성 평가에 활용될 수 있다. 특히, 외부 도구를 사용하는 시스템의 보안 취약점을 사전에 평가하고, 방어 전략을 개선하는 데 유용하다.