How does Prompt injection work?
Simon Willison named the attack in September 2022. In direct injection the user types the instructions. In indirect injection they are hidden in content the model reads, such as a web page or a tool result. A model reads instructions and data as the same kind of text, which is why it can be fooled into treating data as an order.
There is no complete fix today. OWASP lists prompt injection first among the risks for applications built on language models. Teams limit the damage: they give the model only the access it needs, ask a person to approve risky actions and treat everything the model reads from outside as untrusted.
What does Prompt injection mean in Eva?
Eva does not run security tests. Your team can write a criterion such as “the answer never repeats the system prompt”, and Eva measures it on every answer against its pass mark.