[Paper Review] LPS-Bench: Benchmarking Safety Awareness of Computer-Use Agents in Long-Horizon Planning under Benign and Adversarial Scenarios
LPS-Bench evaluates long-horizon planning safety of computer-use agents (CUAs) under benign and adversarial risks, using a multi-agent data generation pipeline and LLM-based evaluation to assess planning-time safety across 65 scenarios in 7 domains.
Computer-use agents (CUAs) that interact with real computer systems can perform automated tasks but face critical safety risks. Ambiguous instructions may trigger harmful actions, and adversarial users can manipulate tool execution to achieve malicious goals. Existing benchmarks mostly focus on short-horizon or GUI-based tasks, evaluating on execution-time errors but overlooking the ability to anticipate planning-time risks. To fill this gap, we present LPS-Bench, a benchmark that evaluates the planning-time safety awareness of MCP-based CUAs under long-horizon tasks, covering both benign and adversarial interactions across 65 scenarios of 7 task domains and 9 risk types. We introduce a multi-agent automated pipeline for scalable data generation and adopt an LLM-as-a-judge evaluation protocol to assess safety awareness through the planning trajectory. Experiments reveal substantial deficiencies in existing CUAs' ability to maintain safe behavior. We further analyze the risks and propose mitigation strategies to improve long-horizon planning safety in MCP-based CUA systems. We open-source our code at https://github.com/tychenn/LPS-Bench.
Motivation & Objective
- Assess safety-aware planning capabilities of MCP-based CUAs across long-horizon tasks.
- Characterize how benign vs. adversarial user interactions affect planning safety.
- Provide an automated, scalable data generation and evaluation framework.
- Identify common failure modes in planning and propose mitigation strategies.
- Open-source the benchmark for community use and extension.
Proposed method
- Introduce LPS-Bench with 9 risk types and 65 scenarios spanning 7 task domains (570 test cases).
- Develop a multi-agent data generation pipeline (Instruction Designer, Tool Developer, Criterion Formulator, Orchestrator) with human-in-the-loop refinement.
- Employ an MCP-based sandbox with mock toolkits to safely simulate tool interactions.
- Use an LLM-as-a-judge evaluation protocol (DeepSeek-R1 evaluator) with case-specific safety criteria.
- Evaluate 13 LLM agents (open and closed models) under stochastic sampling (temperature=1).
- Measure safety with a Safe Rate (SR) metric, defined as the proportion of trajectories with no safety violations.
- Provide a case-specific evaluation framework distinguishing Benign User Context (safety-preserving or requiring confirmation) from Adversarial User Context (safety-refusal or safe halt).
- Explore lightweight prompt-based mitigations (Human-in-the-Loop Clarification for benign risks; Safety-Aware System Prompting for adversarial risks) and analyze their efficacy.
Experimental results
Research questions
- RQ1Can current MCP-based CUAs maintain safe planning trajectories throughout long-horizon tasks under both benign ambiguity and adversarial manipulation?
- RQ2How do risk types and task domains influence plan-level safety during planning, not just at execution?
- RQ3Do prompt-based mitigations meaningfully improve planning-time safety, and are model capabilities a key limiter?
- RQ4What mitigation strategies are most effective for improving safety in long-horizon CUA planning?
Key findings
- Many state-of-the-art models struggle to maintain safe behavior across extended planning trajectories.
- FA (ambiguous instructions) and EB (environmental backdoor/outputs) are particularly challenging risk categories.
- Adversarial prompts tend to be more detectable by capable models during planning (PI) but risks embedded in tool outputs (EB) remain a vulnerability.
- Stronger models generally achieve higher Safe Rates, but even top performers show nontrivial safety gaps (e.g., FA and TS weaknesses).
- Prompt-based mitigations yield limited gains; robust safety likely requires safety-aligned training beyond inference-time prompting.
- Across seven domains, file-centric tasks show domain-specific safety weaknesses, suggesting the need for domain-aware safety constraints during training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.