Rogue AI agent
An AI agent that acts outside its intended function or authorized scope, because it was compromised or because its own behavior drifted.
OWASP lists ASI10 Rogue Agents last in the OWASP Top 10 for Agentic Applications and describes them as malicious or compromised agents that deviate from their intended function or authorized scope. The cause can be an attack, such as memory poisoning or a hijacked goal. It can also happen with no attacker at all: an agent optimizes the wrong thing, retries until it finds a destructive shortcut, or misreports its own results.
What sets it apart is persistence. A rogue agent keeps acting across tasks and may look normal in each single step. Detection depends on watching behavior over time: observability of tool calls and costs, alerts when an agent touches data outside its usual pattern, and a kill switch that revokes its credentials at once. Containment comes from an agent sandbox and narrow permissions set before anything goes wrong.
Sources
- OWASP GenAI Security Project: ASI10 Rogue Agents genai.owasp.org
Related terms
- 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 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.
- Memory poisoning (AI agents): An attack that plants false facts or instructions in an agent’s long-term memory or knowledge base, so they shape its behavior in later sessions.
- Agent sandbox: An isolated environment where an AI agent runs code and commands without access to your network, secrets or real files.
- LLM observability: Tracing every model call with inputs, outputs, latency, tokens, cost and the user outcome.
- Human in the loop: A person approves, edits or rejects the agent’s action before it takes effect.
