Skip to content

VeriHarm-Bench: verifiably measuring harmful success of LLM coding agentsVeriHarm-Bench: Measuring Harmful Success in LLM Coding Agents Verifiably

arXiv: Dangerous Capabilities & Safety Evals· arXiv:2611.03575· Wei-Lin Chen, Zhepei Wei, Xinyu Zhu, Yu-Min Tseng, Tzu-Han Lin, Yu MengUniversity of Virginia; Virginia Tech; UCLAIndexed by this site · 20 days ago· Originally publishedSelected EvaluationSelectedAttention40

Translation in progress — untranslated text is omitted.

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

AI summaryResearchers 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%.

Questions
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.
Methods
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.
Experiments and results
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.
Limitations and future work
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.
Why it was selectedThe 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.

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.

Read originalarxiv.org