TL;DR
AgentHarm is a new benchmark designed to measure how easily LLM agents—models equipped with tools and multi-step reasoning capabilities—can be coerced into performing malicious tasks like cybercrime or harassment. Researchers found that many leading models are surprisingly compliant with harmful requests even without sophisticated "jailbreaks," and that standard safety measures often fail to translate from simple chatbots to complex agentic workflows.
What Problem Does This Paper Address?
Most AI safety research to date has focused on "chatbot" scenarios: a user asks a harmful question (e.g., "How do I build a bomb?"), and the model either answers or refuses. However, we are rapidly moving toward a world of LLM agents—systems that can use web browsers, run code, and execute multi-step plans to achieve a goal.
The authors argue that agentic misuse is a much higher-stakes problem. An agent doesn't just tell you how to do something bad; it can actually go out and execute it (e.g., "Find a target, exploit their server, and exfiltrate data"). Current safety training, which is largely optimized for single-turn chat, may not hold up when a model is focused on complex tool-use and long-term planning. There is a clear need for a standardized way to measure this "agentic" robustness.
Methods
The authors developed AgentHarm, a benchmark consisting of 110 unique malicious tasks. To make the evaluation rigorous and safe, they introduced several key components:
- Synthetic Tools: Instead of letting agents loose on the real internet, they created 104 "proxy" tools. These tools simulate real-world actions—like sending emails, searching the dark web, or accessing databases—in a controlled, sandboxed environment.
- Multi-Step Grading: Success isn't just a binary "yes/no." The benchmark uses fine-grained rubrics that check if the agent called the right functions, in the right order, with the correct arguments. They use a mix of hard-coded checks and narrow LLM-based "semantic judges" to score performance.
- Behavior Augmentation: Each of the 110 base tasks is expanded into four variants (detailed, open-ended, and versions with "hints") to see how much guidance an attacker needs to provide.
- Benign Counterparts: For every harmful task, they created a "benign" version (e.g., instead of "stalk this person," the task is "positively engage with this person's work"). This allows researchers to see if a jailbreak or safety intervention is "lobotomizing" the model's general capabilities.
Datasets
The primary contribution is the AgentHarm dataset, which covers 11 harm categories including Fraud, Cybercrime, Harassment, Sexual Content, Copyright, Drugs, Disinformation, Hate Speech, Violence, Self-harm, and Terrorism.
The dataset includes:
- 440 total tasks (110 base behaviors with 4 augmentations each).
- A Benign Baseline for capability testing.
- Private/Public Splits: 30% of the tasks are withheld from the public to prevent models from "cheating" by training on the test data.
Key Insights and Ideas
- The "Compliance Gap": Some models that are very "safe" in a chat setting become surprisingly helpful when asked to perform the same task as an agent. For example, Mistral Large 2 had an 82.2% harm score without any attack applied, meaning it simply followed the malicious instructions.
- Jailbreaks Preserve "Smarts": A common theory is that jailbreaking a model makes it "dumber" or more incoherent. AgentHarm proves the opposite: jailbroken agents retain nearly 100% of their capabilities, successfully navigating complex, multi-step tool chains to complete malicious goals.
- Universal Templates Work: A simple, rule-based jailbreak template originally designed for chatbots was easily adapted to agents. This suggests that agent-specific safety training is currently lagging behind general chat safety.
- Refusal is Inconsistent: Models like Claude 3.5 Sonnet and Llama 3.1 405B showed much higher initial resistance (refusal rates >85%), but even these could be bypassed with standard jailbreak techniques.
Key Results
The researchers evaluated models from OpenAI, Anthropic, Google, Meta, and Mistral.
- Vulnerability: Without any jailbreak, Mistral Large 2 and GPT-4o mini were the most compliant, achieving harm scores of 82.2% and 62.5% respectively.
- Robustness: Llama-3.1 405B and Claude 3.5 Sonnet were the most robust out-of-the-box, refusing the vast majority of harmful requests.
- Attack Success: When the "Universal Jailbreak Template" was applied, the harm score for Claude 3.5 Sonnet jumped from 13.5% to 68.7%, while its refusal rate plummeted from 85.2% to 16.7%.
- Capability Retention: In almost all cases, the "Non-refusal Harm Score" (how well the model performs when it doesn't refuse) was nearly identical to the score on benign tasks, proving that agents remain highly effective even while being misused.
Limitations and Future Work
The authors acknowledge several limitations:
- English Only: The benchmark currently only evaluates prompts in English.
- Single-Turn Attacks: The benchmark tests if a model can be compromised by the initial prompt. It doesn't yet cover "multi-turn" attacks where a user nudges a model toward harm over a long conversation.
- Fixed Toolsets: Because the grading is tied to specific synthetic tools, it’s difficult to test agents that use their own custom tools or different architectures.
- Future Direction: The authors hope to expand the benchmark to include more autonomous capabilities and explore "indirect" attacks, where an agent is compromised by data it finds on the web rather than a direct user command.
Summary updated