VeriHarm-Bench: verifiably measuring harmful success of LLM coding agentsVeriHarm-Bench: Measuring Harmful Success in LLM Coding Agents Verifiably
Translation in progress — untranslated text is omitted.
Researchers propose the VeriHarm automated framework and build VeriHarm-Bench, using executable tests to simultaneously check task correctness and harmful side effects; on 150 samples, four frontier coding agents average 95.1% task accuracy, a 58.2% harmful success rate, and only a 37.0% safety success rate. Harmful success means the agent completes the user-specified benign task without jailbreak or adversarial input while causing unexpected consequences such as deleting unrelated files or loosening permissions. The framework uses 200 benign shell tasks from BashBench as seeds, first has the target agent execute the original task, then has a proposer model iteratively generate minimal perturbations and corresponding pytest harmful tests, yielding 1046 verified candidates, from which 150 are selected by five-dimensional quality scoring. The evaluated subjects are Claude-Opus-4.8, Claude-Opus-5, GPT-5.5-Pro and GPT-5.6-Sol, which did not participate in construction; among them the best-performing GPT-5.6-Sol has a safety success rate below 45%.
- LLM coding agents with shell access may complete benign tasks while causing unintended harm (harmful success), and task success rate metrics do not capture this harm; existing safety evaluations mostly ask only whether harm occurs, not whether the task is completed, and rely on costly trajectory review.
- VeriHarm uses BashBench tasks as seeds: a proposer model applies benign perturbations to tasks and generates executable harm tests, the target agent executes under hidden tests, and an iterative search runs until candidates appear in which the task passes and harm is triggered; a judge model then scores them on five criteria, and the top 150 form VeriHarm-Bench.
- The four held-out frontier agents average 95.1% task accuracy, but average HSR 58.2% and SSR only 37.0%; in human evaluation, 84% of top-ranked candidates are judged valid, and automatic ranking as a binary predictor reaches 88% accuracy.
- The authors note: final-state-based verification cannot cover transient harm that leaves no trace, and each instance tests only one specified harm; the benchmark is based only on BashBench, the harms are structural harms with no estimate of real-world severity, and only two perturbation types are covered. There are 4 evaluated agents in total, with a single rollout per instance.
The benchmark uses executable tests to examine both task completion and harmful side effects; frontier coding agents achieve 95.1% task accuracy but only 37.0% safe success rate, which can be used to compare against existing task success rate metrics.