APEX-Harm:评估共享专业工作空间中的代理安全性

·

研究论文 · 2026/10/16

专业智能体越来越多地通过命令行界面和多种工具在共享工作空间中工作,这些空间包含文件、消息和业务应用。此类环境带来的安全风险难以通过放置在单一已知读取位置的攻击来捕捉。我们提出 APEX-Harm,一个用于评估针对在大型工作空间中执行金融、咨询和法律任务的长时程智能体的提示注入和脚本注入的基准。每个任务包含 115 至 328 个文件,以及通过 MCP 服务器暴露的电子邮件、日历、聊天、文档、电子表格、PDF 和代码执行工具。该基准包含六类攻击,涵盖静态和动态注入、任务特定脚本替换以及攻击者提供的通用脚本,并评估攻击成功率、暴露程度和任务性能。我们在每个模型 180 个任务实例上评估了 12 个前沿模型。Opus 5 和 Sonnet 5 的总体攻击成功率最低(8% 和 20%),而任务特定脚本替换和攻击者提供的通用脚本攻击仍然显著更有效,平均攻击成功率分别为 81-84% 和 73%。Gemini 3.8 Flash 取得了最高的平均任务得分(0.877),同时仍表现出 33% 的攻击成功率。这些结果表明,完成请求的任务不足以证明行为安全:智能体可以在产生正确交付物的同时,在工作空间中执行未经授权的操作。

该研究揭示了共享工作空间中智能体安全评估的关键盲点:即使任务成功完成,智能体仍可能执行未授权操作,这对专业场景下的智能体部署具有重要警示意义。

Professional agents increasingly work through command-line interfaces and multiple tools over shared workspaces containing files, messages, and business applications. These environments create safety risks that are difficult to capture with attacks placed at a single, known read location. We introduce APEX-Harm, a benchmark for evaluating prompt and script injection against long-horizon agents performing finance, consulting, and legal tasks in large workspaces. Each task contains 115 to 328 files, together with email, calendar, chat, document, spreadsheet, PDF, and code-execution tools exposed through MCP servers. The benchmark includes six attack categories covering static and dynamic injections, task-specific script replacement, and attacker-provided generic scripts, and evaluates attack success, exposure, and task performance. We evaluate 12 frontier models on 180 task instances per model. Opus 5 and Sonnet 5 have the lowest overall attack success rates (8% and 20%), while task-specific script replacement and attacker-provided generic script attacks remain substantially more effective, averaging 81-84% and 73% attack success, respectively. Gemini 3.8 Flash achieves the highest mean task score (0.877) while still exhibiting a 33% attack success rate. These results show that completing the requested task is not sufficient evidence of safe behavior: an agent can produce a correct deliverable while also performing an unauthorized action in the workspace.

阅读原文

参与讨论