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

WebAgentGuard: 一种基于推理的守护模型,用于检测Web代理中的提示注入攻击

WebAgentGuard: A Reasoning-Driven Guard Model for Detecting Prompt Injection Attacks in Web Agents

National University of Singapore(新加坡国立大学);HKUST(香港科技大学)

Yulin Chen, Tri Cao, Haoran Li, Yibo Li, Yue Liu, Yufei He, Le Minh Khoi, Yangqiu Song, Shuicheng Yan, Bryan Hooi

AI总结:

本文提出WebAgentGuard,一种基于推理的多模态守护模型,用于检测Web代理中的提示注入攻击。通过构建合成多模态数据集并采用推理密集型监督微调和强化学习,模型在多个基准测试中优于现有方法,同时保持代理的实用性,不引入额外延迟。

摘要:

基于视觉-语言模型的网络代理能够通过感知和作用于网页的视觉和文本内容来自主交互,完成用户指定的任务。然而,它们极易受到提示注入攻击的影响,其中嵌入在HTML或渲染截图中的对抗性指令可以操控代理行为,导致信息泄露等有害后果。现有防御措施,包括系统提示防御和直接微调代理,效果有限。为了解决这一问题,我们提出了一种防御框架,其中网络代理与专用的守护代理并行运行,将提示注入检测与代理自身的推理解耦。在此框架基础上,我们引入了WebAgentGuard,一种基于推理的多模态守护模型,用于提示注入检测。我们利用GPT-5构建了一个涵盖164个主题和230种视觉和UI设计风格的合成多模态数据集,并通过推理密集型监督微调后接强化学习进行训练。在多个基准测试中的实验表明,WebAgentGuard在保持代理实用性的同时,持续优于强基线模型,且不引入额外延迟。

英文摘要:

Web agents powered by vision-language models (VLMs) enable autonomous interaction with web environments by perceiving and acting on both visual and textual webpage content to accomplish user-specified tasks. However, they are highly vulnerable to prompt injection attacks, where adversarial instructions embedded in HTML or rendered screenshots can manipulate agent behavior and lead to harmful outcomes such as information leakage. Existing defenses, including system prompt defenses and direct fine-tuning of agents, have shown limited effectiveness. To address this issue, we propose a defense framework in which a web agent operates in parallel with a dedicated guard agent, decoupling prompt injection detection from the agent's own reasoning. Building on this framework, we introduce WebAgentGuard, a reasoning-driven, multimodal guard model for prompt injection detection. We construct a synthetic multimodal dataset using GPT-5 spanning 164 topics and 230 visual and UI design styles, and train the model via reasoning-intensive supervised fine-tuning followed by reinforcement learning. Experiments across multiple benchmarks show that WebAgentGuard consistently outperforms strong baselines while preserving agent utility, without introducing additional latency.

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

↑