AgentHarm:用于衡量LLM智能体危害性的基准
AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents
AI总结:
针对LLM智能体滥用风险未被充分探索的问题,提出AgentHarm基准(含110个恶意任务及增强版本),评估发现领先LLM对恶意请求依从性高、通用越狱模板有效,为智能体安全研究提供工具。
摘要:
大语言模型(LLM)对越狱攻击的鲁棒性——即用户设计提示词绕过安全措施并滥用模型能力——主要针对LLM作为简单聊天机器人的场景进行研究。同时,LLM智能体(使用外部工具并能执行多阶段任务)若被滥用可能带来更大风险,但其鲁棒性仍未得到充分探索。为推动LLM智能体滥用相关研究,我们提出名为AgentHarm的新基准。该基准包含110个明确的恶意智能体任务(含增强版本共440个),覆盖欺诈、网络犯罪和骚扰等11个危害类别。除衡量模型是否拒绝有害智能体请求外,在AgentHarm中取得高分还要求越狱后的智能体在攻击后保持完成多步任务的能力。我们评估了一系列领先LLM,发现:(1)未经越狱的领先LLM对恶意智能体请求的依从性出乎意料地高;(2)简单的通用越狱模板可被调整以有效越狱智能体;(3)这些越狱使智能体呈现连贯且恶意的多步行为并保留模型能力。为实现对LLM智能体攻击与防御的简单可靠评估,我们在https://huggingface.co/datasets/ai-safety-institute/AgentHarm公开AgentHarm。
英文摘要:
The robustness of LLMs to jailbreak attacks, where users design prompts to circumvent safety measures and misuse model capabilities, has been studied primarily for LLMs acting as simple chatbots. Meanwhile, LLM agents -- which use external tools and can execute multi-stage tasks -- may pose a greater risk if misused, but their robustness remains underexplored. To facilitate research on LLM agent misuse, we propose a new benchmark called AgentHarm. The benchmark includes a diverse set of 110 explicitly malicious agent tasks (440 with augmentations), covering 11 harm categories including fraud, cybercrime, and harassment. In addition to measuring whether models refuse harmful agentic requests, scoring well on AgentHarm requires jailbroken agents to maintain their capabilities following an attack to complete a multi-step task. We evaluate a range of leading LLMs, and find (1) leading LLMs are surprisingly compliant with malicious agent requests without jailbreaking, (2) simple universal jailbreak templates can be adapted to effectively jailbreak agents, and (3) these jailbreaks enable coherent and malicious multi-step agent behavior and retain model capabilities. To enable simple and reliable evaluation of attacks and defenses for LLM-based agents, we publicly release AgentHarm at https://huggingface.co/datasets/ai-safety-institute/AgentHarm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。