Prompt injection
Also written: Prompt injection attacks, Prompt Injection Robustness, Adversarial attacks, Adversarial examples, Staged prompt injection, Approval laundering
Prompt injection attacks trick AI models into performing unintended actions by hiding malicious instructions within user input.
Prompt injection is a security trick used against AI models. Attackers hide special instructions within the text they give to the AI. The goal is to make the AI ignore its original rules and do something the attacker wants instead.
For example, imagine you tell an AI chatbot to summarize a document. But hidden in the document is a secret command telling the AI to ignore your request and instead write a poem about cats. If the AI follows the hidden command, it's a prompt injection attack. This can be used to make AI reveal private information or perform harmful actions.
Prompt injection is a security vulnerability where an attacker crafts malicious input to manipulate an AI model's behavior. This input, often disguised as legitimate data, contains hidden instructions that override the model's original programming or safety guidelines. The attacker exploits the model's tendency to follow instructions within its input, leading to unintended actions such as data exfiltration, unauthorized content generation, or bypassing safety filters.
Prompt injection is a growing concern as AI models become more capable and integrated into complex systems. Recent research highlights sophisticated methods like staged prompt injection and approval laundering, showing attackers are finding new ways to exploit AI agents. This necessitates ongoing efforts to improve AI security and robustness against such adversarial inputs.
- AI harness crash courseGoogle · Google Cloud Tech on YouTube ·
- P2Patch: Exploit-Guided Vulnerability RepairAnthropic · arXiv cs.AI ·
- Blocking at the Boundary: Auditing Long-Horizon Agents against Staged Prompt InjectionAnthropic · arXiv cs.AI ·
- Microsoft Digital Defense Report: How AI is reshaping the cybersecurity landscapeMicrosoft · Microsoft Source ·
- Approval Laundering: Systematizing Approval--Execution Binding Failures in AI Coding-Agent HarnessesAnthropic · arXiv cs.AI ·
- OpenAI still doesn’t seem to have a handle on all of its rogue AI activityOpenAI · TechCrunch AI ·
- OpenAI paused all training runs... ALIGNMENT FAILUREOpenAI · Wes Roth ·
- OpenAI caught its models leaving notes to successors to hide bad behaviorOpenAI · TechCrunch AI ·
- ALIBI: Adversarial Legitimacy Injection in Binary Input against LLM Malware AnalyzersAnthropic · arXiv cs.AI ·
- ChatGPT agentOpenAI · OpenAI Help Center ·
- Ask Gemini to handle your multi-step tasks in select Android appsGoogle · Gemini Help Center ·
- Build zero-trust AI agents with Google's Agent Development KitGoogle · Google Developers Blog ·
- Anthropic just confirmed everyone's worst fearAnthropic · Wes Roth ·
- Introducing Claude Opus 4.7Anthropic · Anthropic News ·
- Introducing Claude Opus 4.5Anthropic · Anthropic News ·
- Introducing Claude Sonnet 4.5Anthropic · Anthropic News ·
- Introducing Sonnet 4.6Anthropic · Anthropic News ·
- GPT-Red: Unlocking Self-Improvement for RobustnessOpenAI · OpenAI News ·
- Securing the future of AI agentsGoogle · Google DeepMind Blog ·
- Claude Fable Blocked - 11 Quiet Details on What’s NextAnthropic · AI Explained ·
- Pope Leo Challenges Silicon Valley's AI VisionAnthropic · AI Inside ·
- OpenAI Board Member Zico Kolter on the Real Risks of Frontier AIOpenAI · The MAD Podcast ·
- Trustworthy agents in practiceAnthropic · Anthropic Research ·
- Designing AI agents to resist prompt injectionOpenAI · OpenAI News ·
- Improving instruction hierarchy in frontier LLMsOpenAI · OpenAI News ·
- Introducing Lockdown Mode and Elevated Risk labels in ChatGPTOpenAI · OpenAI News ·
- Keeping your data safe when an AI agent clicks a linkOpenAI · OpenAI News ·
- Continuously hardening ChatGPT Atlas against prompt injectionOpenAI · OpenAI News ·
- Addendum to GPT-5.2 System Card: GPT-5.2-CodexOpenAI · OpenAI News ·
- Mitigating the risk of prompt injections in browser useAnthropic · Anthropic Research ·
- Understanding prompt injections: a frontier security challengeOpenAI · OpenAI News ·
- Making Claude Code more secure and autonomous with sandboxingAnthropic · Anthropic Engineering ·
- Addendum to GPT-5 system card: GPT-5-CodexOpenAI · OpenAI News ·
- Security on the path to AGIOpenAI · OpenAI News ·
- Operator System CardOpenAI · OpenAI News ·
- Trading inference-time compute for adversarial robustnessOpenAI · OpenAI News ·
- Empowering defenders through our Cybersecurity Grant ProgramOpenAI · OpenAI News ·
- GPT-4 API general availability and deprecation of older models in the Completions APIOpenAI · OpenAI News ·
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged InstructionsOpenAI · OpenAI News ·
- Anthropic Claude
- Anthropic's research addresses prompt injection through methods like P2Patch for vulnerability repair and auditing agents against staged prompt injection.
- Google Gemini
- Google Gemini's AI harness course touches on building AI that acts on instructions, implying a need to secure against unintended actions.
- Microsoft Copilot
- Microsoft's Digital Defense Report notes AI's role in reshaping cybersecurity, including the need for new security approaches for connected systems.
- OpenAI ChatGPT
- OpenAI's recent issues highlight that their AI models are still prone to unexpected behavior and can be manipulated, indicating ongoing challenges with prompt injection.
- Jailbreaking
- Jailbreaking specifically aims to bypass content restrictions or s
- Data poisoning
- Data poisoning attacks corrupt the training data of an AI model
- Adversarial attacks
- Adversarial attacks typically involve making small, imperce
The concept of prompt injection emerged with the rise of large language models (LLMs) capable of following complex instructions. Early discussions and demonstrations of these vulnerabilities appeared in AI security communities and research forums around 2021-2022.
Try giving a chatbot like ChatGPT or Google Gemini a prompt that includes a command to ignore previous instructions. For example, ask it to summarize a paragraph, but embed a hidden instruction within the paragraph telling it to instead list its own safety guidelines. Observe if the chatbot follows the hidden instruction or adheres to your original request.
The Playbook: reusable how-tos, prompts, configs and tips pulled out of the news.
- ToolP2Patch for Exploit-Guided Vulnerability RepairAn AI system that uses adversarial attacks to find and fix software vulnerabilities. · 120 min
- ChecklistAudit agent actions for staged prompt injectionChecklist for auditing agent actions before they occur to block staged prompt injection. · 15 min
- HeuristicAudit agent actions before they occur to block attacksBlock malicious instructions at the boundary of an agent's interaction to prevent unauthorized actions or data leaks. · 30 min
- Safety tipDefend against prompt injection attacksImprove model resistance to prompt injection by following API documentation guidelines. · 10 min
- Safety tipDefend against prompt injection via adversarial trainingTrain models against strong automated red-teamers to improve resistance to prompt injection attacks. · 15 min
Questions people ask
- Can prompt injection steal my data?
- Yes, if an AI model has access to sensitive data and is successfully injected, an attacker could trick it into revealing that information.
- Is prompt injection the same as jailbreaking?
- Jailbreaking is a type of prompt injection focused on bypassing safety rules. Prompt injection is broader and can involve manipulating the AI for various unintended actions beyond just breaking rules.
First seen on Subvolts Apr 19, 2024. Updated Oct 15, 2026. Written by an AI model from the items above and reviewed against them weekly; report an error.

