LLMs' Single Input Stream Blurs Commands and Data
Unlike traditional computer systems, Large Language Models process all input—instructions, context, and user data—as one continuous sequence of tokens, lacking any architectural separation or explicit delimiters to inherently distinguish commands from passive information.
The top 3
- Who First Articulated LLM Instruction-Data Confusion?: Riley Goodside publicly highlighted in September 2022 that Large Language Models (LLMs) fundamentally process system instructions and user data within the same channel, leading to prompt injection vulnerabilities. Preamble AI had privately reported this "command injection" to OpenAI in May 2022. [8, 11, 14, 17]
- Top 3 Attack Types from Instruction-Data Blurring: Prompt injection attacks primarily exploit LLMs' instruction-data confusion through three main types: Direct Injection (malicious commands inserted directly into user input), Indirect Injection (hidden commands embedded in external data the LLM processes), and Agentic/Tool-Mediated Injection (manipulating autonomous agents via their connected tools). [9, 17, 21, 24]
- Top 3 Strategies to Isolate LLM Instructions and Data: Key mitigation strategies include using structured prompt formats with clear delimiters to separate instructions from data, implementing robust input validation and sanitization, and applying the principle of least privilege to restrict the LLM's access and capabilities.
Sources
Open the full topic