OpenAI describes prompt injection as social engineering aimed at AI agents and lists its layered defenses: instruction-hierarchy safety training, automated red-teaming, AI-based monitors that can be updated quickly, sandboxing of code-running tools, link approval, confirmation before sensitive steps, logged-out mode in Atlas, and a watch mode on sensitive sites that pauses the agent if the user leaves the tab. It cites thousands of hours of prompt-injection-focused red teaming and a bug bounty, and says it has not yet seen significant attacker adoption of the technique.
Instruction hierarchy
Training approach that teaches models to prioritize system and developer instructions over lower-privilege text.
Records citing Instruction hierarchy
Nov 7, 2025
OpenAI describes its layered approach to prompt injection as a frontier security challenge
Apr 19, 2024
OpenAI trains models to prioritize privileged instructions via an instruction hierarchy
Wallace and co-authors at OpenAI argue that models treat system prompts and untrusted inputs with equal priority and propose an explicit instruction hierarchy that tells the model which instructions to follow when they conflict. Applied to GPT-3.5, they report large robustness gains against attack types not seen in training with minimal capability loss.