Indirect Injections from Unmonitored Data Sources
Canary tokens are typically embedded in specific trusted contexts like system prompts or tool descriptions. However, indirect prompt injection attacks can originate from external data sources (e.g., documents, web pages) processed by the LLM that do not contain canary tokens, allowing the injection to occur undetected by this method.
The top 3
- Top 3 Unmonitored Data Sources Fueling Indirect Prompt Injections: Malicious instructions for indirect prompt injections are commonly hidden in web pages and online content, documents (like PDFs and Word files, often in metadata), and enterprise data such as emails, chat logs, or database records, which LLMs then unknowingly process.
- Stealthiest Indirect Prompt Injection Techniques Revealed: Attackers employ techniques like invisible text (e.g., zero-font-size, white-on-white text, CSS concealment), embedding malicious instructions in file metadata (like author fields or EXIF data), and leveraging contextual ambiguity or obfuscation to hide commands within benign content, making them difficult for humans to spot.
- Indirect vs. Direct Prompt Injections: Detection Difficulty Ranking: Indirect prompt injections are significantly harder to detect than direct ones because the malicious commands are hidden within seemingly benign external data sources, rather than being overtly typed into an LLM's interface. LLMs struggle to differentiate between legitimate information and embedded instructions, often requiring complex, multi-layered defenses to identify anomalies.
Sources
Open the full topic