System vs. User: The Undifferentiated LLM Instructions
Unlike traditional software with strict code and data separation, LLMs struggle to distinguish between developer-defined "system prompts" (which establish behavior and safety rules) and user-supplied "user prompts," treating both as equally weighted natural language instructions that can be overridden.
The top 3
- First Public Prompt Injection: Goodside's GPT-3 Feat: In September 2022, security researcher Riley Goodside publicly demonstrated that GPT-3 could be tricked into ignoring its system prompt, a key moment that led to the coining of 'prompt injection' for this instruction-data confusion.
- Top 3 Attacks from Blurry LLM Instructions: The core vulnerability of LLMs failing to distinguish system from user instructions enables critical attacks: data exfiltration, bypassing safety filters for harmful content generation, and manipulating the model to perform unauthorized actions.
- Leading Defenses Against LLM Instruction Confusion: To counter LLMs' tendency to conflate system directives with user input, developers employ defensive prompt engineering, explicit context separation using 'system' roles in APIs, and input validation or guardrails to filter malicious instructions.
Sources
Open the full topic