Cisco researchers tested DeepSeek R1 in January 2025 with 50 jailbreak prompts. Understanding how prompt injection works requires seeing actual attack payloads. OWASP ranks prompt injection #1 on their 2025 Top 10 for LLM Applications specifically because indirect attacks scale. This guide breaks down what prompt injection is, shows actual attack examples, and provides defence strategies that work. The International AI Safety Report 2026 found that sophisticated attackers bypass the best-defended models approximately 50% of the time with just 10 attempts.
Prompt Injection is comparable to traditional command injection but applied in the realm of natural language. Meta’s AI research division publishing open-source safety tools including LlamaGuard and LlamaFirewall. MITRE’s knowledge base of adversary tactics and techniques targeting AI/ML systems, modeled after the ATT&CK framework.
Data poisoning modifies training data to permanently alter model behavior — the attack is embedded in the model’s weights. Studies have shown that virtually all current LLMs are vulnerable to indirect injection to some degree, with attack success rates ranging from 20% to over 90% depending on the model, attack technique, and context. Google Bard and Gemini have also been shown vulnerable to indirect injection through Google Docs, Gmail, and web content. Bing Chat (now Microsoft Copilot) was one of the first https://autonow.net/api-testing-to-ensure-software-quality-and-reliability-with-postman.html production systems shown to be vulnerable to indirect injection. Web-browsing agents that can read web pages are exposed to indirect injection through any web content they access.
- Studies have shown that virtually all current LLMs are vulnerable to indirect injection to some degree, with attack success rates ranging from 20% to over 90% depending on the model, attack technique, and context.
- In RAG systems, the attacker plants malicious instructions in documents stored in the knowledge base.
- LLMs with web browsing capabilities can be targeted by indirect prompt injection, where adversarial prompts are embedded within website content.
- Multimodal models may also be susceptible to novel cross-modal attacks that are difficult to detect and mitigate with current techniques.
- In January 2025, Infosecurity Magazine reported that DeepSeek-R1, a large language model (LLM) developed by Chinese AI startup DeepSeek, exhibited vulnerabilities to direct and indirect prompt injection attacks.
Defending Against Indirect Prompt Injection
Many organizations train employees to identify phishing attacks, but AI-specific training improves understanding of AI models, their vulnerabilities, and disguised malicious prompts. Additional safeguards include monitoring for hidden text in documents and restricting file types that may contain executable code, such as Python pickle files. Google rated the risk as low, citing the need for user interaction and the system’s memory update notifications, but researchers cautioned that manipulated memory could result in misinformation or influence AI responses in unintended ways. While DeepSeek-R1 ranked sixth on the Chatbot Arena benchmark for reasoning performance, researchers noted that its security defenses may not have been https://www.singulartists.com/get-catered-for-all-your-marine-needs/ as extensively developed as its optimization for LLM performance benchmarks.
Based on Injection Types
Build automated testing pipelines that evaluate each model update against indirect injection benchmarks like BIPIA. OpenAI’s instruction hierarchy research demonstrated that training models to respect this priority ordering significantly reduces indirect injection success rates. Defending against indirect prompt injection requires a multi-layered approach because no single defense is sufficient against all attack variants. The BIPIA (Benchmark for Indirect Prompt Injection Attacks) dataset provides standardized evaluation of indirect injection defenses. Understanding the distinction between direct and indirect injection is https://www.discoveryon.info/page/2/ critical for building effective defenses, because they require fundamentally different mitigation strategies. In another example, an employee frustrated with recruitment spam embedded an indirect prompt injection in their LinkedIn bio instructing AI-enabled recruiting systems to share a recipe for flan in their outreach (and one did).
While intentional and direct injection represents a threat to the developer from the user, unintentional indirect injection represents a threat from the data-author to the user. While some prompt injection attacks involve jailbreaking, they remain distinct techniques. Willison distinguished it from jailbreaking, which bypasses an AI model’s safeguards, whereas prompt injection exploits its inability to differentiate system instructions from user inputs. LLMs with web browsing capabilities can be targeted by indirect prompt injection, where adversarial prompts are embedded within website content. The attack takes advantage of the model’s inability to distinguish between developer-defined prompts and user inputs to bypass safeguards and influence model behaviour. It manipulates the model’s behavior by crafting malicious or misleading prompts—often bypassing safety filters and executing unintended instructions.
Researchers demonstrated that by creating web pages containing hidden instructions, they could manipulate Bing Chat’s responses when it retrieved those pages to answer user queries. Indirect prompt injection is not theoretical — it has been demonstrated against production systems and extensively studied by security researchers. Direct injection is generally considered a lower severity risk in well-defended systems because input-level defenses can catch most attempts. Defense must operate at the data retrieval layer, between the data source and the model, rather than at the user input layer. The AI system treats retrieved documents, email contents, and tool outputs as data to process, not as untrusted instructions to filter.
