Agent goal hijacking
An attack that changes what an AI agent is trying to achieve, usually through injected content, so it works for the attacker while seeming to work for you.
Goal hijacking is first on the OWASP Top 10 for Agentic Applications as ASI01 Agent Goal Hijack. A chatbot hit by prompt injection says something wrong once. An agent that plans many steps can have its whole plan rewritten: a support agent asked to summarize a ticket ends up issuing a refund, or a research agent starts collecting data for someone else.
The usual entry point is indirect prompt injection in a web page, document or email the agent reads in the middle of a task. In practice that means keeping the goal fixed outside the model, checking each planned action against the original request, and putting a human in the loop before actions that are hard to undo.
Sources
- OWASP GenAI Security Project: ASI01 Agent Goal Hijack genai.owasp.org
Related terms
- Indirect prompt injection: Prompt injection that arrives in content an AI system reads on its own, such as a web page, email, document or tool result, instead of what the user types.
- Prompt injection: Instructions hidden in data (a web page, an email, a file) that the model follows as if they came from you.
- OWASP Top 10 for Agentic Applications: OWASP’s list of the ten most critical security risks of AI agents that plan and act with tools, coded ASI01 to ASI10, published in December 2025.
- Agent tool misuse: When an AI agent uses a tool it was legitimately given in a harmful way, such as deleting data, overspending or leaking files, after manipulation or a bad plan.
- Human in the loop: A person approves, edits or rejects the agent’s action before it takes effect.
- Excessive agency: An AI agent with more tools, permissions or autonomy than its task needs, so a mistake or an injected instruction can do real damage.
