Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents

Hanrong Zhang, Jingyuan Huang, K. Mei, Yifei Yao, Zhenting Wang, Chenlu Zhan, Hongwei Wang, Yongfeng Zhang

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

prompt-injection agent-framework security-evaluation llm-based-agents memory-poisoning agent-security plan-of-thought-backdoor attack-defense-benchmark

Abstract

Although LLM-based agents, powered by Large Language Models (LLMs), can use external tools and memory mechanisms to solve complex real-world tasks, they may also introduce critical security vulnerabilities. However, the existing literature does not comprehensively evaluate attacks and defenses against LLM-based agents. To address this, we introduce Agent Security Bench (ASB), a comprehensive framework designed to formalize, benchmark, and evaluate the attacks and defenses of LLM-based agents, including 10 scenarios (e.g., e-commerce, autonomous driving, finance), 10 agents targeting the scenarios, over 400 tools, 27 different types of attack/defense methods, and 7 evaluation metrics. Based on ASB, we benchmark 10 prompt injection attacks, a memory poisoning attack, a novel Plan-of-Thought backdoor attack, 4 mixed attacks, and 11 corresponding defenses across 13 LLM backbones. Our benchmark results reveal critical vulnerabilities in different stages of agent operation, including system prompt, user prompt handling, tool usage, and memory retrieval, with the highest average attack success rate of 84.30\%, but limited effectiveness shown in current defenses, unveiling important works to be done in terms of agent security for the community. We also introduce a new metric to evaluate the agents' capability to balance utility and security. Our code can be found at https://github.com/agiresearch/ASB.

한국어 요약

한 줄 요약

Agent Security Bench(ASB)는 LLM 기반 에이전트의 보안 취약점을 체계적으로 평가하기 위한 벤치마크 프레임워크로, 84.30%의 높은 공격 성공률을 기록하며 방어 기법의 한계를 드러낸다.

핵심 기여도

핵심 아이디어

LLM 기반 에이전트는 시스템 프롬프트, 유저 프롬프트 처리, 툴 사용, 메모리 검색 등 여러 단계에서 다양한 공격에 취약할 수 있다. 기존 연구는 주로 성능과 일반화에 집중했으나, 보안성은 충분히 평가되지 않았다. ASB는 이러한 문제를 해결하기 위해 공격과 방어를 체계적으로 범주화하고, 각 단계별 취약점을 평가하는 프레임워크를 제시한다. 특히, 시스템 프롬프트를 타겟으로 하는 Plan-of-Thought(Plan-of-Thought, PoT) 백도어 공격은 기존 공격 방식과 달리 에이전트의 계획 과정을 악용하여 높은 공격 성공률을 보인다. 이는 에이전트의 내부 작동 메커니즘을 깊이 이해해야 가능하며, 기존 방어 기법이 이를 효과적으로 막지 못함을 보여준다.

기술적 접근법

주요 결과

의의 및 한계

ASB는 LLM 기반 에이전트의 보안성을 체계적으로 평가하는 첫 번째 벤치마크로, 다양한 공격과 방어 기법을 포괄적으로 다루는 점에서 학술적·실용적 가치가 있다. 특히, Plan-of-Thought 백도어 공격은 기존 연구에서 다루지 않았던 새로운 공격 벡터를 제시하며, 에이전트의 내부 작동 메커니즘을 깊이 이해해야 적용할 수 있는 고급 공격 방식이다. 그러나 ASB는 특정 시나리오와 툴 집합에 제한되며, 실제 산업 환경에서의 보안 위협을 완전히 반영하지 못할 수 있다는 한계가 있다.

실용적 활용

ASB는 금융, 의료, 자율주행 등 안전-critical 도메인에서 LLM 기반 에이전트의 보안성을 평가하는 데 활용될 수 있다. 또한, 방어 기법 개발 및 LLM 백본 선택 시 NRP 지표를 기반으로 성능과 보안의 균형을 고려할 수 있다.