野外间接提示注入:网页中间接提示注入的实证研究
Indirect Prompt Injection in the Wild: An Empirical Study of Prevalence, Techniques, and Objectives
AI总结:
研究通过分析网页和HTTP响应中的间接提示注入实例,揭示其在真实环境中的普遍存在性、技术手段及影响,发现大部分指令针对机器而非人类,且存在多种不同的目标和影响。
摘要:
随着大型语言模型(LLMs)被越来越多地集成到浏览、检索、总结和处理网络内容的系统中,网页已成为下游模型行为的不可信输入来源。这使网站所有者、贡献者和对手能够直接在网页资源中嵌入指令,即间接提示注入。尽管先前的工作在受控环境中展示了此类攻击,但其普及程度、部署方式和现实影响仍不清楚。本文提出了对网页中间接提示注入进行大规模实证分析的首次研究。分析了12亿个URL来自2480万个主机,识别出15300个经过验证的实例,分布在11700个页面中。这些并非孤立案例:少量的重复模板占大多数情况。我们描述了它们的目标、交付机制、可见性、持久性和影响,揭示了一个涵盖干扰提示、声誉操纵、内容保护指令和AI机器人检测的异质生态系统,针对爬虫、搜索管道、客户支持代理和招聘流程等系统。一个关键发现是大多数指令针对机器而非人类:大约70%出现在非渲染HTML(例如标题、注释、元数据)中,许多可见案例通过渲染技术隐藏。为了评估实际风险,我们跨13个模型和四种网页表示进行了5200次受控实验。我们的结果表明合规性有限但非可忽略,达到8%的小型模型在纯文本输入中,而结构化表示通过保留结构提示减少了合规性。总体而言,基于提示的干扰已经存在于网络生态系统中,并代表了LLM驱动自动化与所消费网站之间日益增长的张力。
英文摘要:
As LLMs are increasingly integrated into systems that browse, retrieve, summarize, and act on web content, webpages have become an untrusted input vector for downstream model behavior. This enables site owners, contributors, and adversaries to embed instructions directly in web resources, i.e., indirect prompt injections. While prior work demonstrates such attacks in controlled settings, their prevalence, deployment, and real-world impact remain unclear. We present one of the first large-scale empirical analyses of indirect prompt injections in webpages and HTTP responses. Analyzing 1.2B URLs from 24.8M hosts, we identify 15.3K validated instances across 11.7K pages. These are not isolated cases: a small number of recurring templates account for most cases. We characterize their objectives, delivery mechanisms, visibility, persistence, and impact, revealing a heterogeneous ecosystem spanning disruptive prompts, reputation manipulation, content-protection directives, and AI-bot detection, targeting systems such as crawlers, search pipelines, customer-support agents, and hiring workflows. A key finding is that most instructions target machines rather than humans: about 70% appear in non-rendered HTML (e.g., headers, comments, metadata), and many visible cases are hidden via rendering techniques. To assess practical risk, we run 5,200 controlled experiments across 13 models and four webpage representations. Our results show compliance is limited but non-negligible, reaching up to 8% for smaller models on plain-text inputs, while structured representations reduce compliance by preserving structural cues. Overall, prompt-based interference is already present in the web ecosystem and represents a growing source of tension between LLM-driven automation and the sites it consumes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。