VeriHarm-Bench: Measuring Harmful Success in LLM Coding Agents Verifiably
On the map: LLM agents and tool use → Agent threats, guardrails and governance also fits: Software engineering coding agents
Abstract (arXiv)
Large language model (LLM) coding agents increasingly operate with shell access, allowing them to write scripts, move files, alter permissions, and modify system configurations. However, an agent may achieve a user's goal while causing unintended harm, such as deleting unrelated files, weakening access controls, or corrupting data, in response to benign inputs without explicit jailbreaking. This failure mode is particularly important because apparent task success may reassure users that an agent behaved correctly, causing harmful side effects to go unnoticed. We call this harmful success: the agent successfully completes the intended benign task while simultaneously causing unintended harm. Despite its importance, harmful success is difficult to measure because conventional task-success metrics overlook harmful behaviors, while existing safety evaluations are often designed solely to assess harmful outcomes. We introduce VeriHarm, an automatic framework for constructing programmatically verifiable benchmarks that directly measure harmful success. VeriHarm minimally perturbs coding tasks to elicit unintended harmful behavior while maintaining the benignity of the task and preserving the original task objective. It then synthesizes executable harm tests that, together with the original task-correctness tests, evaluate both task accuracy and harmful outcomes. Frontier agents, including GPT-5.6-Sol and Claude-Opus-5, achieve an average task accuracy of 95% on our curated VeriHarm-Bench, yet still struggle to complete tasks safely: their safe success rate, the fraction of tasks completed successfully without triggering the designated harm, averages only 37%. These results suggest that successful task completion can frequently coexist with unintended harm, and that task-success metrics alone may substantially understate the potential safety risks of coding agents.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 19 of its 24 references that are in the map. Submitted 2 Nov 2026.
Builds on
19 of 24 references.
Closest ancestors · 9
Same direction, newest first
- 2026SABER: Benchmarking Operational Safety of LLM Coding Agents in Stateful Project Workspaces31 May
- 2026Overeager Coding Agents: Measuring Out-of-Scope Actions on Benign Tasks18 May
- 2026The Blind Spot of Agent Safety: How Benign User Instructions Expose Critical Vulnerabilities in Computer-Use Agents12 Apr
- 2026Training Agents to Self-Report Misbehavior25 Feb
- 2026When Actions Go Off-Task: Detecting and Correcting Misaligned Actions in Computer-Use Agents9 Feb
- 2026When Benign Inputs Lead to Severe Harms: Eliciting Unsafe Unintended Behaviors of Computer-Use Agents9 Feb
- 2025Just Do It!? Computer-Use Agents Exhibit Blind Goal-Directedness2 Oct
- 2025OS-Harm: A Benchmark for Measuring Safety of Computer Use Agents17 Jun
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep
Other references · 10
- 2025Qwen3 Technical Reportcited by 9,994
- 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,383
- 2026Kimi K2.5: Visual Agentic Intelligencecited by 574
- 2025Chain of Thought Monitorability: A New and Fragile Opportunity for AI Safetycited by 315
- 2025SafeChain: Safety of Language Models with Long Chain-of-Thought Reasoning Capabilitiescited by 143
- 2025Ctrl-Z: Controlling AI Agents via Resamplingcited by 58
- 2026Reasoning Models Struggle to Control their Chains of Thoughtcited by 36
- 2025Is Chain-of-Thought Really Not Explainability? Chain-of-Thought Can Be Faithful without Hint Verbalizationcited by 25
- 2026Coding Agents Are Guessing: Measuring Action-Boundary Violations in Underspecified DevOps Instructionscited by 17
- 2026ClashBench: Conflicts Leading Agents to Seize and Harmcited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025ImpossibleBench: Measuring LLMs' Propensity of Exploiting Test Cases
- 2026V3AST-Bench: Verifiable, Valid, and Versatile Safety Evaluation for Coding Agents
- 2026EpiSEM-Bench: Evaluating Safety and Evidence Recovery in LLM Agents under Missing Evidence
- 2026What Breaks When LLMs Code? Characterizing Operational Safety Failures of Agentic Code Assistants
- 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents
- 2026Benchmarks as Software: Terminal-Bench and the Case for Continuous Benchmarks
- 2026Who Tests the Testers? Systematic Enumeration and Coverage Audit of LLM Agent Tool Call Safety
- 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents