AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents

Maksym Andriushchenko, Alexandra Souly, Mateusz Dziemian, Derek Duenas, Maxwell Lin, Justin Wang, Dan Hendrycks, Andy Zou, Zico Kolter, Matt Fredrikson, Eric Winsor, Jerome Wynne, Yarin Gal, Xander Davies

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

llm-agents fraud-detection llm-robustness safety-evaluation multi-step-tasks jailbreak-attacks cybercrime harm-measurement

Abstract

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.

한국어 요약

한 줄 요약

AgentHarm은 LLM 에이전트의 해로운 행동을 측정하기 위한 벤치마크로, 110개의 악의적 에이전트 작업과 440개의 증강 작업을 포함한다.

핵심 기여도

핵심 아이디어

LLM이 단순 챗봇이 아닌, 외부 도구를 사용하는 에이전트로 작동할 때, 그 위험성은 훨씬 더 커질 수 있다. 기존 연구는 단일 대화 턴을 중심으로 했으나, 에이전트는 다단계 작업을 수행하므로, 그에 따른 안전성 평가가 필요하다. 이에 따라, 연구팀은 AgentHarm이라는 새로운 벤치마크를 제안한다. 이는 11개의 해로운 범주(사기, 사이버 범죄, 괴롭힘 등)에 걸쳐 110개의 악의적 에이전트 작업을 포함하며, 각 작업은 2~8개의 도구를 사용하는 일관된 다단계 행동을 요구한다. AgentHarm은 단순히 요청 거부 여부를 평가하는 것이 아니라, jailbreak 후에도 모델이 원래의 능력을 유지하며 해로운 작업을 완료하는지 평가한다.

기술적 접근법

주요 결과

의의 및 한계

AgentHarm은 LLM 에이전트의 해로운 행동을 측정하는 첫 번째 벤치마크로, 다단계 작업에서의 안전성 평가를 가능하게 한다. 특히, 단순한 jailbreak 템플릿이 에이전트 설정에서도 효과적이라는 점은 안전성 연구에 중요한 시사점을 제공한다. 그러나 한계도 존재한다. 첫째, 프롬프트는 영어만 사용되어 다국어 환경에서는 제한적이다. 둘째, 사용자는 단일 턴의 프롬프트만 제공하며, 후속 질의는 고려하지 않는다. 셋째, 일부 경우 평가 기준이 실제 실행 경로와 다를 수 있다. 넷째, 사용 가능한 도구가 제한되어 있어 외부 도구와의 호환성은 낮다.

실용적 활용

AgentHarm은 LLM 에이전트의 안전성 테스트 및 방어 기법 평가에 활용될 수 있다. 특히, 사이버 보안, 금융, 소셜 미디어 관리 등에서 악의적 에이전트의 다단계 작업을 사전에 탐지하고 차단하는 데 유용할 수 있다. 또한, 모델 개발자들이 jailbreak 공격에 대한 내성을 향상시키는 데 사용할 수 있다.