Search papers, labs, and topics across Lattice.
This paper presents a large-scale empirical analysis of indirect prompt injection attacks found in the wild by analyzing 1.2B URLs, identifying 15.3K validated instances across 11.7K pages. The study characterizes the objectives, delivery mechanisms, and impact of these injections, finding that most target machines rather than humans and are often hidden in non-rendered HTML. Experiments across 13 models show compliance rates up to 8% for smaller models, highlighting the practical risks of prompt-based interference in LLM-driven systems.
Prompt injection isn't just a theoretical threat: over 15,000 instances are already lurking on the web, ready to hijack LLMs browsing the internet.
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.