首个系统性评测大模型智能体攻防的基准框架,揭示安全漏洞并评估防御效果。
Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents

- 构建10类场景、400+工具、27种攻防方法的标准化评测体系
- 实测攻击成功率最高达84.3%,现有防御效果有限
- 适合关注AI安全、智能体可靠性与攻防研究的研究者
尽管基于大语言模型(LLMs)的智能体可通过外部工具和记忆机制完成复杂任务,但可能引入关键安全漏洞。现有研究未全面评估针对此类智能体的攻防策略。为此,我们提出Agent Security Bench(ASB),一个综合性框架,用于形式化、基准化和评估LLM智能体的攻防能力,涵盖10个应用场景(如电商、自动驾驶、金融)、10个目标智能体、400多个工具、27种攻防方法及7项评估指标。基于ASB,我们对10种提示注入攻击、1种记忆污染攻击、一种新型思维链后门攻击、4种混合攻击及其11种对应防御进行了测试,覆盖13个LLM骨干模型。结果揭示了智能体在系统提示、用户输入处理、工具使用和记忆检索等阶段存在严重漏洞,最高平均攻击成功率达84.30%,而现有防御效果不佳,凸显该领域亟待突破。我们还引入新指标以评估智能体在效用与安全间的平衡能力。代码已开源:https://github.com/agiresearch/ASB。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。