HazardAuditor:从可执行威胁到更安全的计算机使用代理
研究论文 · 2026/09/15
计算机使用代理日益与浏览器、终端、文件系统和外部服务交互,引入的安全风险源于运行时行为而非仅生成内容。现有防护模型针对静态提示和响应,不适合代理执行;现有可执行安全平台产生评估结论而非防护模型所需的规范化监督。我们提出HazardAuditor,一个基于执行的框架,弥补这两个缺口。其基础设施在受控环境中运行异构代理(Claude Code、Codex、Hermes和OpenClaw),并将其交互规范化为规范事件表示,以实现跨框架监督。我们进一步观察到,令牌级后训练目标为生成式防护模型造成结构性不匹配,导致较长的理由主导梯度更新。防护策略优化(GuardPO)通过将确定性安全结果转换为序列级优势,并规范化理由和判定区域,使安全决策成为有效的优化单元。在多个基准和异构计算机使用系统上,HazardAuditor相比最强先前防护模型准确率提升高达16.5个百分点。代码、模型和评估工件将在https://yunhao-feng.github.io/HazardAuditor/提供。
该研究解决了计算机使用代理运行时安全监督的关键缺口,提出了跨框架的规范化事件表示和新的优化方法GuardPO,显著提升了安全防护的准确性,对代理安全领域具有重要实践意义。
Computer-use agents increasingly interact with browsers, terminals, file systems, and external services, introducing safety risks that emerge through runtime behavior rather than generated content alone. Existing guard models target static prompts and responses and are poorly suited to agent execution; existing executable safety platforms produce evaluation verdicts rather than the normalized supervision a guard model needs to learn across heterogeneous agent frameworks. We introduce HazardAuditor, an execution-grounded framework that closes both gaps. Its infrastructure runs heterogeneous agents (Claude Code, Codex, Hermes, and OpenClaw) in controlled environments and normalizes their interactions into a canonical event representation for cross-framework supervision. We further observe that token-level post-training objectives create a structural mismatch for generative guards, causing longer rationales to dominate gradient updates. Guard Policy Optimization (GuardPO) addresses this by converting deterministic safety outcomes into sequence-level advantages and normalizing rationale and verdict regions, making the safety decision the effective unit of optimization. Across multiple benchmarks and heterogeneous computer-use systems, HazardAuditor improves accuracy by up to 16.5 percentage points over the strongest prior guard. Code, models, and evaluation artifacts will be available at https://yunhao-feng.github.io/HazardAuditor/.