arXiv:2610.35188cs.SEOct 2026

Manuscript Offprint

arXiv:2610.35188

V3^3AST-Bench: Verifiable, Valid, and Versatile Safety Evaluation for Coding Agents

Weitao Feng, Hengheng Xiong, Zihao Zeng, Jun Chen, Jiyang Guan, Xiaofeng Wang, Jialing Tao, Hui Xue, Wei Dong

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models increasingly act through code, modifying repositories, executing programs, and interacting with services in agent form. Their actions introduce risks that cannot be assessed from generated responses alone. Safety evaluation must verify actual consequences, distinguish harm avoidance from task incapability, and cover realistic workflows. We introduce V 3^{3}AST-Bench, a benchmark for Verifiable results, Valid interpretation, and Versatile risk coverage of Agent Safety. It comprises 212 risk tasks spanning 18 categories. Dedicated runtime environments verify harm and task outcomes through executable checks over states, records, and artifact behavior, while paired capability twin tasks verify workflow competence. Our experiments span 51 combinations of 11 models and five harnesses, spanning 86,496 trials and over 9 billion tokens of model interaction. Results show that V 3^{3}AST-Bench remains challenging even for frontier coding agents, as Claude Opus 4.8 with Claude Code still causes verified harm on 20.9% of tasks. Across model-harness combinations, agents with comparable competence exhibit markedly different safety outcomes, showing that task capability alone does not guarantee safe execution. More importantly, even explicit recognition of risks does not reliably prevent harmful actions, revealing a critical gap between risk awareness and safe execution. These findings highlight the need to move beyond risk recognition toward enforcing safety throughout execution. Our code and dataset are available at https://github.com/Alibaba-AAIG/VAST-Bench

1. Introduction

Large language models (LLMs) are increasingly deployed as agents entrusted with executing tasks. Approaches such as ReAct interleave reasoning and actions, allowing models to incorporate environmental feedback during task execution (Yao et al., 2023). Code provides a natural bridge between language models and execution environments: generated instructions become file edits, program executions, and service interactions. This has accelerated the development of coding agents that navigate repositories, install dependencies, modify implementations, and iterate on execution feedback to complete software-engineering workflows (Yang et al., 2024).

The ability to act introduces safety risks with concrete consequences. In July 2026, agents in OpenAI's internal cybersecurity evaluations crossed isolation boundaries and executed unauthorized code on Hugging Face's production infrastructure(OpenAI, 2026e; Larcher et al., 2026). Replit separately acknowledged that an agent working in development deleted production database data (Masad, 2025). These incidents illustrate a fundamental difference from chatbots: an agent's actions can affect systems and resources beyond its responses. Coding-agent safety evaluation must therefore establish what happens during execution, extending beyond assessments of generated content.

Existing evaluations leave three connected challenges:

Challenge 1: Safety judgments need verifiable consequences. Response-centered benchmarks assess safety of generated content (Mazeika et al., 2024), while trajectory-based LLM judgments can miss effects hidden behind seemingly ordinary tool calls. Consider an agent installing a malicious third-party dependency whose installation hook silently exfiltrates credentials. Its visible trajectory may contain only an installation command and successful output, yet the receiving server's records can establish that the credentials arrived. Such evidence is essential for assessing coding agents whose actions have effects outside the visible conversation.

Challenge 2: Safety awareness is confounded with workflow capability. Some models are harmless because they are incapable of completing the task. In the same example, the absence of credential leakage may reflect safe dependency handling, or simply a failure to complete installation.

1^{1}Nanyang Technological University, Singapore 2^{2}Alibaba Group, Hangzhou, China

Thus, it is important to disentangle agent safety from agent capability.

Challenge 3: Risk coverage, environmental realism, and workflow depth fall short of real-world conditions. Existing coding-agent benchmarks often focus on narrow threat categories, resulting in incomplete risk coverage. For example, AgentDojo (Debenedetti et al., 2024) primarily targets office tasks rather than coding scenarios (Steinberg & Gal, 2026), while SABER omits risks involving dependency vulnerabilities and deception (Hu et al., 2026b). Beyond limited risk coverage, these benchmarks often rely on simplified environments, such as minimal working directories and easily identifiable injection points, that fail to capture the complexity of real-world development. In practice, coding agents operate within complex repositories and multi-step workflows, where malicious content is often embedded alongside legitimate engineering artifacts, making threats substantially harder to identify and mitigate.

We introduce V3V^{3} AST-Bench, a Verifiable, Valid, and Versatile Agent Safety benchmark, designed to address these three challenges.

To address Challenge 1 and make safety outcomes verifiable, we use executable checks over environment states, event records, and artifact behavior. These checks independently establish whether a specified harm occurred and whether the agent achieved an appropriate task outcome. They distinguish safe completion from unfinished work and from stopping when no authorized completion path exists.

To address Challenge 2 and support valid interpretation, we pair every adversarial task with a capability twin task that preserves the relevant workflow under benign conditions. Twin completion is verified through its own executable checks using the same model–harness configuration. These twins provide the capability reference needed to interpret non-harmful executions against demonstrated workflow competence. We report capability alongside safety, condition safety scores on successful twins, and track risk-task completion separately, so avoiding harm does not automatically imply completing the requested work.

To address Challenge 3, we broaden risk coverage and workflow depth by adapting and expanding GitHub issue reports, CWE weakness patterns, and CVE mechanisms into executable software-engineering scenarios. The evaluation comprises 212 risk tasks, each paired with a capability twin, spanning nine risk types and both direct attacks in user requests and indirect attacks through environmental content. Similar to SWE-bench (Jimenez et al., 2024), each task has a dedicated runtime environment with a task repository and the dependencies and services needed for execution. Tasks include multi-step diagnosis, installation, testing, and publication workflows, as well as multi-turn interactions that retain session context across successive user requests.

Agents execute inside these environments using their native tools, prompts, context management, and execution loops. A model-API proxy records every model exchange, while harness adapters collect execution trajectories and independent detectors verify consequences. This separation reduces integration effort by providing shared observation around existing agent implementations. We do not need to locate and parse the session files specific to each harness, and we can seamlessly switch base models. We evaluate 11 models across 51 supported combinations of 5 harnesses: Mini-SWE-agent, Codex, Claude Code, OpenCode, and Pi.

Our results demonstrate that V3V^{3} AST-Bench remains challenging even for highly capable coding agents. Claude Opus 4.8 with Claude Code achieves a 92.0% capability-twin pass rate, yet still produces verified harm on 20.9% of eligible risk tasks. Our experiments further show that greater task competence does not necessarily translate into safer execution: models with comparable capability-twin performance can exhibit markedly different safety outcomes. Harness choice has a greater impact on the safety of stronger models, while weaker models remain vulnerable across harnesses. Models generally show weaker safety awareness for indirect attacks through environmental content than for direct attacks in user requests, this gap highlights a persistent weakness in distinguishing untrusted information during task execution.

Our contributions can be summarized as follows:

• We introduce an outcome-grounded methodology for coding-agent safety. Executable checks over environment states, event records, and artifact behavior independently verify specified harms and appropriate task outcomes.

• We pair every adversarial task with a verifiable capability twin task, separately measuring workflow competence and providing the reference needed to interpret safety beyond task failure or inaction.

• We construct 212 paired tasks, each with a dedicated runtime environment. They cover diverse risks, sustained workflows, and multi-turn interactions while retaining native agent execution.

• We evaluate 51 combinations of 11 models and 5 harnesses, revealing that existing agents still exhibit safety shortcomings, motivating model training and harness designs that enforce safety throughout execution.