WebSentinel: 检测和定位网页代理中的提示注入攻击
WebSentinel: Detecting and Localizing Prompt Injection Attacks for Web Agents
AI总结:
WebSentinel通过两步方法有效检测和定位网页代理中的提示注入攻击,显著优于现有方法。
摘要:
提示注入攻击通过操纵网页内容,使网页代理执行攻击者指定的任务,而不是用户原本意图的任务。现有检测和定位此类攻击的方法效果有限,因为其底层假设在网页代理设置中往往不成立。在本文中,我们提出WebSentinel,一种用于检测和定位网页中提示注入攻击的两步方法。给定一个网页,步骤一提取可能被污染的感兴趣段落,步骤二通过检查每个段落与网页内容作为上下文的一致性来评估每个段落。我们证明WebSentinel非常有效,在多个我们收集的受污染和干净网页数据集上,其性能显著优于基线方法。我们的代码可在:https://github.com/wxl-lxw/WebSentinel 上获得。
英文摘要:
Prompt injection attacks manipulate webpage content to cause web agents to execute attacker-specified tasks instead of the user's intended ones. Existing methods for detecting and localizing such attacks achieve limited effectiveness, as their underlying assumptions often do not hold in the web-agent setting. In this work, we propose WebSentinel, a two-step approach for detecting and localizing prompt injection attacks in webpages. Given a webpage, Step I extracts \emph{segments of interest} that may be contaminated, and Step II evaluates each segment by checking its consistency with the webpage content as context. We show that WebSentinel is highly effective, substantially outperforming baseline methods across multiple datasets of both contaminated and clean webpages that we collected. Our code is available at: https://github.com/wxl-lxw/WebSentinel.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。