arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.12822cs.AI
收藏

MirrorGuard:通过模拟到现实推理校正实现安全的计算机使用代理

MirrorGuard: Toward Secure Computer-Use Agents via Simulation-to-Real Reasoning Correction

Fudan University(复旦大学);Shanghai Innovation Institute(上海创新研究院)

Wenqi Zhang, Yulin Shen, Changyue Jiang, Jiarun Dai, Geng Hong, Xudong Pan

AI总结:

MirrorGuard通过模拟到现实推理校正提升计算机使用代理的安全性,有效降低系统风险并保持代理实用性

摘要:

大型基础模型被集成到计算机使用代理(CUAs)中,使代理能够通过图形用户界面(GUI)与操作系统进行自主交互以执行复杂任务。这种自主性引入了严重的安全风险:恶意指令或视觉提示注入可能触发不安全的推理并导致有害的系统级操作。现有的防御措施,如基于检测的阻止,虽然可以防止损害,但往往提前中止任务,降低代理的实用性。在本文中,我们提出了MirrorGuard,一种即插即用的防御框架,它利用基于模拟的训练来提高CUA在现实世界中的安全性。为了减少在操作系统中进行大规模训练的成本,我们提出了一种新的神经符号模拟管道,该管道在基于文本的模拟环境中生成逼真的、高风险的GUI交互轨迹,从而捕捉不安全的推理模式和潜在的系统危害,而无需执行真实操作。在模拟环境中,MirrorGuard学习拦截并纠正CUA不安全的推理链,以防止它们产生并执行不安全的操作。在现实世界测试中,跨多样化的基准和CUA架构的广泛评估表明,MirrorGuard显著减轻了安全风险。例如,在字节跳动UI-TARS系统中,它将不安全率从66.5%降至13.0%,同时保持了极低的误拒率(FRR)。相比之下,最先进的GuardAgent仅实现了将不安全率降至53.9%,但其误拒率比MirrorGuard高15.4%。我们的工作证明了基于模拟的防御方法可以提供稳健的现实世界保护,同时保持代理的基本实用性。我们的代码和模型可在https://bmz-q-q.github.io/MirrorGuard/上公开获取。

英文摘要:

Large foundation models are integrated into Computer Use Agents (CUAs), enabling autonomous interaction with operating systems through graphical user interfaces (GUIs) to perform complex tasks. This autonomy introduces serious security risks: malicious instructions or visual prompt injections can trigger unsafe reasoning and cause harmful system-level actions. Existing defenses, such as detection-based blocking, prevent damage but often abort tasks prematurely, reducing agent utility. In this paper, we present MirrorGuard, a plug-and-play defense framework that uses simulation-based training to improve CUA security in the real world. To reduce the cost of large-scale training in operating systems, we propose a novel neural-symbolic simulation pipeline, which generates realistic, high-risk GUI interaction trajectories entirely in a text-based simulated environment, which captures unsafe reasoning patterns and potential system hazards without executing real operations. In the simulation environment, MirrorGuard learns to intercept and rectify insecure reasoning chains of CUAs before they produce and execute unsafe actions. In real-world testing, extensive evaluations across diverse benchmarks and CUA architectures show that MirrorGuard significantly mitigates security risks. For instance, on the ByteDance UI-TARS system, it reduces the unsafe rate from 66.5% to 13.0% while maintaining a marginal false refusal rate (FRR). In contrast, the state-of-the-art GuardAgent only achieves a reduction to 53.9% and suffers from a 15.4% higher FRR. Our work proves that simulation-derived defenses can provide robust, real-world protection while maintaining the fundamental utility of the agent. Our code and model are publicly available at https://bmz-q-q.github.io/MirrorGuard/.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑