工具链至关重要:测量与剖析Web智能体的安全弹性
Harness Matters: Measuring and Dissecting Security Resilience in Web Agents
AI总结:
该研究构建WebTrap Farm框架评估Web智能体工具链安全,发现工具链与后端模型共同影响安全,揭示工具链固有缺陷并提出工具链级安全设计方向。
摘要:
Web智能体通过依赖执行工具链(execution harnesses)将大语言模型(LLMs)从文本生成扩展到现实世界的Web交互,该工具链负责解析用户目标、感知网页、规划动作并将模型决策落地为浏览器操作。尽管已有研究认识到智能体安全不仅依赖后端模型,但工具链设计如何定量影响Web智能体安全仍未得到充分测量。为系统研究Web智能体工具链的安全性,我们首先将Web智能体工具链表征为包含目标解析、网页感知、推理规划和动作执行的四阶段执行工作流。基于该抽象,我们构建了WebTrap Farm——一个系统且可扩展的评估框架,涵盖三类代表性攻击:恶意用户提示、恶意提示注入和欺骗性网页设计。为避免将安全性与任务能力混淆,我们使用配对的可用性校准任务区分真正的防御行为与能力限制。我们的评估显示,现有Web智能体工具链仍易受典型攻击,部分不安全行为甚至在无明确攻击内容时出现,揭示了工具链固有的安全缺陷(研究问题1)。统计分析进一步表明,工具链和后端模型均显著影响安全结果,说明部署智能体的安全由工具链与后端模型共同塑造(研究问题2)。最后,我们定位了工作流各阶段防御行为的出现位置,并识别出更安全的设计机制,为构建更鲁棒的Web智能体提供可行指导(研究问题3)。这些发现凸显Web智能体工具链是重要的安全边界,推动从以模型为中心的防御转向工具链级安全设计。
英文摘要:
Web agents extend LLMs from text generation to real-world web interaction by relying on execution harnesses that interpret user goals, perceive webpages, plan actions, and ground model decisions into browser operations. While prior work has recognized that agent security depends on more than the backend model alone, how harness design quantitatively shapes web-agent security remains insufficiently measured. To systematically study web-agent harness security, we first characterize web-agent harnesses as a four-stage execution workflow covering goal interpretation, webpage perception, reasoning and planning, and action execution. Based on this abstraction, we build WebTrap Farm, a systematic and extensible evaluation framework covering three representative attack categories: malicious user prompts, malicious prompt injection, and deceptive web design. To avoid conflating security with task capability, we use paired usability calibration tasks to separate genuine defensive behavior from capability limitations. Our evaluation shows that existing web-agent harnesses remain vulnerable to typical attacks, with some unsafe behaviors occurring even without explicit attack content, revealing harness-intrinsic security failures (RQ1). Statistical analysis further shows that both harness and backend model significantly affect security outcomes, indicating that deployed-agent security is jointly shaped by the harness and backend model (RQ2). Finally, we localize where defensive behavior emerges across workflow stages and identify more secure design mechanisms, providing actionable guidance for building more robust web agents (RQ3). These findings highlight the web-agent harness as an important security boundary and motivate moving beyond model-centric defenses toward harness-level security design.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。