[论文解读] LPS-Bench: Benchmarking Safety Awareness of Computer-Use Agents in Long-Horizon Planning under Benign and Adversarial Scenarios
LPS-Bench 使用多代理数据生成管线和基于 LLM 的评估,在 7 个领域的 65 个场景中评估长时域规划安全性,覆盖良性与对抗性风险。
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.
研究动机与目标
- 评估基于 MCP 的 CUAs 在长时域任务中的安全感知规划能力。
- 表征良性与对抗性用户交互如何影响规划安全性。
- 提供一个自动化、可扩展的数据生成与评估框架。
- 识别规划中的常见失败模式并提出缓解策略。
- 将基准开源,供社区使用和扩展。
提出的方法
- 引入 LPS-Bench,包含 9 种风险类型和覆盖 7 个任务领域的 65 个场景(570 个测试用例)。
- 开发多代理数据生成管线(Instruction Designer、Tool Developer、Criterion Formulator、Orchestrator),并进行人工环节 refinement。
- 采用带有模拟工具包的 MCP 基于沙箱,以安全模拟工具交互。
- 使用将 LLM 作为评判的评估协议(DeepSeek-R1 评估器),具备针对情境的安全标准。
- 在随机采样(temperature=1)的条件下评估 13 种 LLM 代理(开放与闭源模型)。
- 以 Safe Rate(SR)度量安全性,即没有任何安全违规的轨迹比例。
- 提供一个情境特定的评估框架,将 Benign User Context(安全性保留或需确认)与 Adversarial User Context(安全性拒绝或安全中止)区分开来。
- 探索基于提示的轻量级缓解手段(对良性风险的人工在环澄清;对对抗性风险的安全感知型系统提示),并分析其有效性。
实验结果
研究问题
- RQ1当前基于 MCP 的 CUAs 是否能够在长时域任务中,在良性歧义和对抗性操控下维持安全的规划轨迹?
- RQ2风险类型和任务领域如何影响规划阶段的计划层安全性,而不仅仅是执行阶段?
- RQ3基于提示的缓解是否能显著提升规划时安全性,模型能力是否是关键限制因素?
- RQ4哪些缓解策略在促进长时域 CUA 规划安全方面最为有效?
主要发现
- 许多前沿模型在较长的规划轨迹中难以维持安全行为。
- FA(模糊指令)和 EB(环境后门/输出)是特别具有挑战性的风险类别。
- 对抗性提示在规划阶段较强的模型中更易被检测到(PI),但嵌入在工具输出中的风险(EB)仍然是一个漏洞。
- 更强的模型通常能获得更高的 Safe Rate,但即使是顶尖模型也存在显著的安全差距(如 FA 和 TS 的弱点)。
- 基于提示的缓解效果有限;要实现鲁棒安全,可能需要超越推理时提示的安全对齐训练。
- 在七个领域中,面向文件的任务显示出域特定的安全性弱点,表明训练时需考虑域相关的安全约束。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。