What prompt injection means
- 01
Setup
The AI is given its rules and a task.
- 02
Input
Text arrives from a user or a source.
- 03
Hidden instruction
Some of that text acts as a command.
- 04
Changed behavior
The AI does something nobody intended.
OWASP says a prompt injection vulnerability occurs when user prompts alter the model's behavior or output in unintended ways.
In plain terms, the AI treats text it was handed as a command.
The text might come from a person, an email or a web page, and the system cannot always tell an instruction from ordinary content.
That is why prompt injection sits at the top of OWASP's list for language model applications. The model is built to follow instructions, and it has no perfect way to tell whose instructions count.