Why Indirect Prompt Injection Thwarts Simple Defenses
Single-layer input filters often fail against indirect prompt injection, where malicious instructions are hidden within seemingly trusted external data, such as retrieved RAG documents or web content, as the LLM processes this as authoritative input.
The top 3
- Indirect Injection's Hidden Attack Vectors: Unlike direct attacks targeting user input, indirect prompt injections embed malicious instructions within external data sources—like web pages or emails—that an LLM later processes, bypassing immediate input filters.
- How Indirect Prompts Mimic Legitimate Data: Malicious instructions in indirect prompt injections are often seamlessly blended into an LLM's retrieved context, appearing as normal information, which effectively bypasses simple keyword or pattern-matching defenses.
- Indirect Injection's End-to-End Attack Chain: Simple input sanitization only protects the immediate user query; indirect attacks leverage the LLM's ability to process and act on information from *any* part of its operational context, including data it retrieves or generates itself, creating a broader attack surface.
Sources
Open the full topic