mlsanityData to 14 Oct 2026

Indirect Prompt Injection in the Wild: An Empirical Study of Prevalence, Techniques, and Objectives

arXiv 2604.27202 ↗First posted 29 Apr 2026cs.CRcited by 6

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

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.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 22 of its 71 references that are in the map. First posted on arXiv 29 Apr 2026.

Builds on

22 of 71 references.

Closest ancestors · 10

Same direction, newest first

  1. 2025When AI Meets the Web: Prompt Injection Risks in Third-Party AI Chatbot Plugins8 Nov
  2. 2025VortexPIA: Indirect Prompt Injection Attack against LLMs for Efficient Extraction of User Privacy5 Oct
  3. 2025EchoLeak: The First Real-World Zero-Click Prompt Injection Exploit in a Production LLM System6 Sep
  4. 2025Detection Method for Prompt Injection by Integrating Pre-trained Model and Heuristic Feature Engineering5 Jun
  5. 2025Prompt Injection Attack to Tool Selection in LLM Agents28 Apr
  6. 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks15 Apr
  7. 2025PromptShield: Deployable Detection for Prompt Injection Attacks25 Jan
  8. 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models21 Dec
  9. 2023Safeguarding Crowdsourcing Surveys from ChatGPT with Prompt Injection15 Jun
  10. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb

Other references · 12

  1. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  2. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  3. 2020Document Ranking with a Pretrained Sequence-to-Sequence Modelcited by 376
  4. 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systemscited by 130
  5. 2024Machine Against the RAG: Jamming Retrieval-Augmented Generation with Blocker Documentscited by 102
  6. 2018Tranco: A Research-Oriented Top Sites Ranking Hardened Against Manipulationcited by 63
  7. 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMscited by 51
  8. 2024When LLMs Go Online: The Emerging Threat of Web-Enabled LLMscited by 24
  9. 2024Rag and Roll: An End-to-End Evaluation of Indirect Prompt Manipulations in LLM-based Application Frameworkscited by 17
  10. 2025Fun-tuning: Characterizing the Vulnerability of Proprietary LLMs to Optimization-based Prompt Injection Attacks via the Fine-Tuning Interfacecited by 17
  11. 2025Investigating the Impact of Dark Patterns on LLM-Based Web Agentscited by 17
  12. 2024PromptKeeper: Safeguarding System Prompts for LLMscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Exploiting Web Search Tools of AI Agents for Data Exfiltration
  2. 2026From Prompt Injection to Web Exploitation: Revisiting Classic Vulnerabilities in LLM-Integrated Applications
  3. 2026BrowseSafe++: Benchmarking Prompt Injection Detection Across Web Contexts, Languages, and Browser Views
  4. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents
  5. 2026Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM Systems
  6. 2025BrowseSafe: Understanding and Preventing Prompt Injection Within AI Browser Agents
  7. 2025Network-Level Prompt and Trait Leakage in Local Research Agents
  8. 2025WAInjectBench: Benchmarking Prompt Injection Detections for Web Agents