Prompt injection
Prompt injection is an attack where someone hides an instruction for the agent inside their own text: an email, a ticket, a web page. The agent reads it along with the data, takes it as part of the request, and its behaviour is swapped: it does what the attacker wants instead of what you asked. The more access the agent has, the costlier the swap.
Frequently asked questions
What is prompt injection?
An attack that hides an instruction for the agent in an email, ticket or web page, and the agent takes it as part of the request.How do you defend against prompt injection?
Keep outside text in the data plane so it cannot become a command, and give the agent minimal permissions.Source: OWASP LLM01: Prompt Injection
Where it appears · 3
- MCP server and AI agent for 1C · Harness
- The agent’s data plane and control plane · Harness
- Incident investigation with an AI agent · Harness