LPS-Bench: Benchmarking Safety Awareness of Computer-Use Agents in Long-Horizon Planning under Benign and Adversarial Scenarios

Tianyu Chen, Chujia Hu, Dongrui Liu, Xia Hu, Wenjie WangNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

When AI agents use tools to carry out multi-step computer tasks, a single bad assumption early on can snowball into deleted files, leaked data, or wasted money. LPS-BENCH is a new benchmark of 570 long-horizon tasks that evaluates whether computer-use agents stay safe throughout their entire planning trajectory—not just at the finish line. Testing 13 leading LLMs reveals a surprising blind spot: agents are often worse at handling ambiguous requests from well-meaning users than they are at fending off outright adversarial attacks.

What Problem Does This Paper Address?

Modern computer-use agents (CUAs) don't just chat; they execute multi-stage workflows using structured tools (such as Model Context Protocol, or MCP, tools and reusable skills). In these long-horizon settings, safety risks come from two directions:

  1. Benign users: A vague instruction like "clean up my workspace" can lead an over-eager agent to infer missing details and delete critical files.
  2. Adversarial users: Attackers can steer an agent's planning over multiple turns, hide malicious instructions inside files or tool outputs, or break a harmful goal into innocent-looking subtasks.

Existing safety benchmarks fall short here. Many only evaluate static dialogues, focus on short-horizon tasks, or judge only the final outcome—missing unsafe intermediate steps. Meanwhile, spinning up real, isolated application environments for hundreds of new test cases is prohibitively expensive.

Methods

To evaluate trajectory-level safety at scale without risking real-world side effects, the authors built a two-part framework:

  • Human-in-the-Loop Multi-Agent Data Generation: Rather than hand-crafting every test case from scratch, an Orchestrator Agent coordinates three specialized worker agents: an Instruction Designer (writes the user prompt), a Tool Developer (builds a sandboxed mock toolkit simulating APIs like file systems or web browsers), and a Criterion Formulator (defines case-specific pass/fail safety rules). Human experts then review and refine each draft case.
  • Trajectory-Level LLM-as-a-Judge: Instead of checking only the final state, an automated evaluator (DeepSeek-R1) inspects the entire execution record—intermediate plans, tool choices, arguments, and responses to environment feedback—against the case-specific criteria. A blinded human audit of 216 trajectories showed 97.22% agreement between human annotators and 96.19% exact agreement between DeepSeek-R1 and unanimous human labels.
Figure 3: Overview of LPS-BENCH. The framework illustrates the pipeline for multi-agent test case generation and the subsequent automated evaluation via LLM-as-a-judge. Additional test cases with complete trajectory examples are presented in Appendix A for further illustration.

The authors also created a skill-augmented extension (adapting 40 paired cases into higher-level reusable skills) and tested two prompt-based mitigations: Human-in-the-Loop Clarification (asking agents to pause under ambiguity) and Safety-Aware System Prompting (warning agents about common attack tactics).

Datasets

The authors introduce LPS-BENCH, comprising 570 test cases derived from 65 scenarios across 7 task domains (Web Browser, Social Media, OS Operation, Office, Multi-media, File I/O, and Code) and 9 planning-risk types:

  • Benign User-Induced Risks (4 types): Inter-task Dependency & Ordering Hazards (TS), Rigid Over-compliance & Ignored Implicit Intent (OC), Ambiguity-induced False Assumptions (FA), and Inefficient Planning & Resource Waste (IP).
  • Adversarial User-Induced Risks (5 types): Harmful Goal Decomposition (HS), Multi-turn Plan Corruption (MT), Environment-triggered Backdoor Actions (EB), Race-condition Exploitation (RC), and Prompt Injection / Jailbreak (PI).

Key Insights and Ideas

  • Benign ambiguity is the biggest safety bottleneck: Across all 13 models, Ambiguity-induced False Assumptions (FA) had an average Safe Rate ($\text{SR}_{\text{success}}$) of just 7.35%—lower than every adversarial risk category. Agents routinely guess missing constraints instead of pausing to ask for clarification.
  • Resisting direct prompt injection doesn't protect against poisoned environments: Models averaged 38.58% $\text{SR}_{\text{success}}$ on direct Prompt Injection (PI), but dropped to 27.34% on Environment-triggered Backdoor Actions (EB). Agents may reject obvious jailbreaks in user prompts while blindly trusting malicious instructions embedded in tool outputs.
  • Skill abstraction reshapes, rather than solves, safety: Wrapping fine-grained tools into reusable skills improved or preserved safety for ambiguity (FA-Skill) and task sequencing (TS-Skill), but generally worsened or left unchanged Over-Compliance (OC-Skill), shifting safety-critical decisions to the skill layer.
  • File operations are uniquely perilous: File I/O had the lowest $\text{SR}_{\text{success}}$ for 10 of the 13 models, highlighting how persistent, hard-to-reverse actions demand more conservative planning.

Key Results

The authors evaluated 13 LLM agents (7 proprietary, 6 open-weight) using Safe Rate conditioned on successful execution ($\text{SR}_{\text{success}}$):

  • Top proprietary models lead, but still fail on benign ambiguity: Claude-4.5-Sonnet achieved 95.77% average $\text{SR}_{\text{success}}$ on adversarial risks, yet only 58.55% on benign risks (including just 5.88% on FA). GPT-5.1 scored 82.20% (adversarial) and 49.95% (benign), while Gemini-3-Pro scored 66.11% (adversarial) and 55.35% (benign).
  • Open-weight models struggle across the board: Models like Llama-3.1-8B-Instruct, Llama-3.1-70B-Instruct, Qwen3-8B/32B-Instruct, and DeepSeek-V3.1/V3.2 all scored below 10% on adversarial risks and under 28% on benign risks.
  • Prompt-based mitigations are not enough: Adding clarification or safety-aware instructions to system prompts yielded inconsistent, model-dependent gains and failed to eliminate core planning-safety failures.
Figure 1: Success-conditioned Safe Rate (SRsuccess) of 13 LLM agents on LPS- BENCH, averaged separately over benign user-induced and adversarial user-induced risk types.

Limitations and Future Work

  • Mock toolkits vs. live servers: LPS-BENCH uses sandboxed mock toolkits rather than live MCP servers to prevent real-world harm and enable deterministic, scalable testing.
  • Execution reliability: Because $\text{SR}_{\text{success}}$ excludes execution_failed trajectories, it measures safety among determinate verdicts rather than overall task-completion reliability.
  • Future directions: Since inference-time prompting falls short, the authors call for dedicated safety training and runtime mechanisms that explicitly verify assumptions, validate tool feedback, and enforce safety constraints across multi-step trajectories.

Summary updated

BibTeX
@inproceedings{chen2026lps,
  author = {Tianyu Chen and Chujia Hu and Dongrui Liu and Xia Hu and Wenjie Wang},
  title = {{LPS-Bench: Benchmarking Safety Awareness of Computer-Use Agents in Long-Horizon Planning under Benign and Adversarial Scenarios}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vbY7BcSB0Z},
}
Figure