arXiv:2607.08147cs.CRcs.AI2026-07被引 1

为网页智能体设计动态安全防护,防住恶意指令注入。

Prismata: Confining Cross-Site Prompt Injection in Web Agents

论文配图:Prismata: Confining Cross-Site Prompt Injection in Web Agents
图 1 · 摘自论文原文
  • 通过动态生成权限标签,限制智能体可见内容和操作权限。
  • 在真实攻击测试中大幅降低成功率,同时保持正常任务可用性。
  • 无需开发者标注,适配海量非主流网站的复杂场景。

自主网页智能体虽能自动化日常浏览任务,却继承了网络最古老的安全风险。跨站脚本证明,混合可信与不可信内容极为危险,即便在看似无害的页面上也是如此。智能体通过将自然语言解析为指令,使第三方或用户生成的内容可通过提示注入劫持系统。核心挑战在于:制定特定任务的安全策略需分析与攻击者内容纠缠的页面结构。本文提出 Prismata,一种面向网页智能体的上下文最小权限防御机制,限制智能体所见内容及其可执行操作。Prismata 的动态信任推导为页面内容生成权限标签,基于经典完整性模型,确保标签错误仅导致权限下降且误标范围受限。其机械式隔离通过内容删减和能力限制强制执行这些标签。关键优势是无需开发者注释,可覆盖长尾网站。在近期公开发布的网页智能体攻击(包括自适应变体)中,Prismata 显著降低攻击成功率,同时维持良性任务功能。

原文摘要 · Abstract (English)

Autonomous web agents promise to automate everyday browsing tasks, but inherit one of the web's oldest attack surfaces. Cross-Site Scripting proved that mixing trusted and untrusted content is dangerous, even on benign pages. Agents resurface this risk by interpreting natural language as instructions, allowing third-party and user-generated content to hijack the agent via prompt injection. The core challenge is that deriving a task-specific security policy requires reasoning over page structure that is entangled with the attacker's content. We present Prismata, a defense enforcing contextual least privilege for web agents, constraining both what the agent sees and what it can do. Prismata's dynamic trust derivation produces permission labels for page content, with structural confinement guarantees, inspired by classical integrity models, that bound any labeling errors so that labels can only decrease in privilege and mislabelings are bounded. Prismata's mechanical confinement enforces these labels by redacting content and restricting agent capabilities. Importantly, these mechanisms require no developer annotations, so Prismata supports the long tail of websites. Across recent published web agent attacks, including adaptive variants, Prismata substantially reduces attack success while preserving benign task utility.

智能体安全提示注入网页自动化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。