Documented Exercise · OBS.EX0001
PromptInject: Goal Hijacking & Prompt Leaking on GPT-3
Perez and Ribeiro (2022) introduced PromptInject, an alignment testing framework using mask-based iterative prompt composition to evaluate goal hijacking and system prompt leaking against production GPT-3 endpoints. Across controlled adversarial prompt templates, simple user-supplied directives reliably overrode developer system instructions and elicited hidden prompt text. The findings established that autoregressive token prediction lacks native separation between developer instructions and untrusted user input. Defensively, the authors motivate privilege isolation, input sanitization, and external policy enforcement rather than relying solely on prompt wording.
Exercise dossier metadata
- Case ID
OBS.EX0001- Classification
- Exercise
- Date
- Evaluation scope
- Commercial Autoregressive LLMs · Direct Instruction/Data Boundary Testing
- Reference URI
https://arxiv.org/abs/2211.09527
Mapped AI security techniques
- LLM Prompt Injection AML.T0051
- LLM Prompt Injection: Direct AML.T0051.000
- Discover LLM System Information: System Prompt AML.T0069.002
- Data from AI Services: System Instructions AML.T0085.003
Mapped defensive controls
- Generative AI Guardrails AML.M0020
- Generative AI Guidelines AML.M0021
- Input and Output Validation for AI Agent Components AML.M0033
Source citation records
- Ignore Previous Prompt: Attack Techniques For Language Models · arXiv (author preprint; peer-review status not inferred) ·