PRIMER · Agents

Agents

An agent is software that perceives its environment, makes decisions, and takes actions to achieve objectives autonomously. That word is what separates an agent from a workflow engine that runs predetermined steps.

The OWASP Threats and Mitigations document inherits its definition from Russell & Norvig: an agent is software that perceives its environment, makes decisions, and takes actions to achieve objectives autonomously. The word "autonomously" is doing the work. It is what separates an agent from a workflow engine that runs predetermined steps. In practice, production agentic systems are rarely single agents: they are networks of orchestrators, peer agents, MCP servers, and shared memory stores coordinating toward a joint goal. The single-agent decomposition below is the analytical baseline that multi-agent topologies layer on top of. Understanding one agent's internals is prerequisite to reasoning about what happens when several of them interact.

What's inside a single agent

A working agent decomposes into the components below. None of them is novel in isolation. What is novel is composing them together, with an LLM choosing the control flow. Most agentic threats target a specific component or the seambetween two components (the interactive view of this lives inthe fintech reference scenario; open it on the canvas and click any agent to see the anatomy with threats placed on each seam). The peer AGENT box (right side of the diagram) represents the multi-agent surface: each inter-agent seam replicates the threat exposure of a single agent and adds cross-peer interaction threats on top.

OWASP reference architecture

An OWASP reference architecture for agentic systems. Use the filter to see how OWASP's three catalogues overlap on the same surface. Click any badge to go to the relevant threat page.

APPLICATIONuser-facing interfaceINPUTOUTPUTAI AGENTSExecution LoopPLANNINGgoal decompositionTOOL CALLINGtool invocation & paramsACTIONexecute · observe · logMEMORY (short)context windowMODELLLMFUNCTION CALLINGAGENTpeer / sub-agentA2A · MCPSERVICESCONTENTweb · docsCODEexec · sandboxDATADBs · APIsHUMAN IN LOOPapprovalDEVICEIoT · desktopSERVICEexternal APIsSUPPORTINGSERVICESLONG-TERM MEMORYretrieval indexVECTOR DATASTOREembeddings · similarityT6 Intent Breaking and Goal Manipulation: Adversaries manipulate planning, reasoning, or self-evaluation to override goals.T6T1 Memory Poisoning: Adversarial content written into short- or long-term memory contaminates future decisions.T1T6 Intent Breaking and Goal Manipulation: Adversaries manipulate planning, reasoning, or self-evaluation to override goals. T7 Misaligned and Deceptive Behaviors: Agents pursue goals via constraint bypass, deception, or evasion of oversight.T6 · T7T2 Tool Misuse: Agent uses authorized tools in unintended ways via deceptive prompts or chained calls. T11 Unexpected RCE and Code Attacks: Code-execution paths in agents accept attacker-influenced input and run as arbitrary code.T2 · T11T8 Repudiation and Untraceability: Agent actions cannot be reliably traced, attributed, or reconstructed.T8T1 Memory Poisoning: Adversarial content written into short- or long-term memory contaminates future decisions. T5 Cascading Hallucination Attacks: Fabricated outputs propagate via reflection, memory, or multi-agent comms.T1 · T5T9 Identity Spoofing and Impersonation: Auth mechanisms exploited to impersonate agents, users, or services; misuse of persistent agent identities. T17 Supply Chain Compromise: Compromised upstream models, prompts, plugins, or framework updates land in the agent.T9 · T17T12 Agent Communication Poisoning: Inter-agent messages tampered with. The output of one becomes injection input of another. T13 Rogue Agents in Multi-Agent Systems: A malicious or compromised agent inside the system exploits trust to act unobserved. T16 Insecure Inter-Agent Protocol Abuse: MCP/A2A protocols abused via consent-flow manipulation, MCP response injection, or weaponised tool descriptions.T12 · T13 · T16T2 Tool Misuse: Agent uses authorized tools in unintended ways via deceptive prompts or chained calls. T3 Privilege Compromise: Mismanaged roles, dynamic inheritance, or overly broad scopes let agents escalate. T4 Resource Overload: Agents autonomously schedule, queue, and execute work. Exhaustion fans out.T2 · T3 · T4T10 Overwhelming Human-in-the-Loop (HITL): Reviewers are saturated with intervention requests; decision fatigue and HII manipulation make oversight ineffective. T15 Human Manipulation: Attacker turns the agent into a fluent, personalised social-engineering vector trusted by the user.T10 · T15T8 Repudiation and Untraceability: Agent actions cannot be reliably traced, attributed, or reconstructed.T8ASI01 Agent Goal Hijack: An attacker manipulates an agent's objective, task selection, or decision pathway (via injected prompts, deceptive tool ASI01ASI02 Tool Misuse and Exploitation: An agent applies authorised tools in ways their operator did not intend, driven by prompt injection, misaligned reasoninASI02ASI06 Memory & Context Poisoning: An adversary writes malicious or misleading data into an agent's persistent memory or shared vector store, so that everyASI06ASI01 Agent Goal Hijack: An attacker manipulates an agent's objective, task selection, or decision pathway (via injected prompts, deceptive tool ASI01ASI01 Agent Goal Hijack: An attacker manipulates an agent's objective, task selection, or decision pathway (via injected prompts, deceptive tool ASI01ASI09 Human-Agent Trust Exploitation: Adversaries exploit the tendency of humans to trust fluent, authoritative-sounding agents: an agent presents plausible jASI09ASI02 Tool Misuse and Exploitation: An agent applies authorised tools in ways their operator did not intend, driven by prompt injection, misaligned reasoninASI02ASI05 Unexpected Code Execution (RCE): In an agentic system, code generation and code execution happen in the same turn: the model emits an instruction and a tASI05ASI03 Identity & Privilege Abuse: When an agent acts on a user's behalf it inherits that user's credentials and permissions for the duration of the task. ASI03ASI08 Cascading Failures: A single low-severity fault (a hallucinated value, a corrupted tool output, a poisoned memory entry) propagates across aASI08ASI09 Human-Agent Trust Exploitation: Adversaries exploit the tendency of humans to trust fluent, authoritative-sounding agents: an agent presents plausible jASI09ASI06 Memory & Context Poisoning: An adversary writes malicious or misleading data into an agent's persistent memory or shared vector store, so that everyASI06ASI02 Tool Misuse and Exploitation: An agent applies authorised tools in ways their operator did not intend, driven by prompt injection, misaligned reasoninASI02ASI04 Agentic Supply Chain Vulnerabilities: Third-party components that agents depend on (models, MCP servers, plug-ins, datasets, peer-agent descriptors, and updatASI04ASI08 Cascading Failures: A single low-severity fault (a hallucinated value, a corrupted tool output, a poisoned memory entry) propagates across aASI08ASI02 Tool Misuse and Exploitation: An agent applies authorised tools in ways their operator did not intend, driven by prompt injection, misaligned reasoninASI02ASI03 Identity & Privilege Abuse: When an agent acts on a user's behalf it inherits that user's credentials and permissions for the duration of the task. ASI03ASI04 Agentic Supply Chain Vulnerabilities: Third-party components that agents depend on (models, MCP servers, plug-ins, datasets, peer-agent descriptors, and updatASI04ASI06 Memory & Context Poisoning: An adversary writes malicious or misleading data into an agent's persistent memory or shared vector store, so that everyASI06ASI07 Insecure Inter-Agent Communication: Agents in a multi-agent system pass instructions, results, and context to one another across APIs, message buses, and shASI07ASI10 Rogue Agents: A rogue agent is one whose behavioural objective has drifted from its authorised purpose, yet its identity still checks ASI10ASI02 Tool Misuse and Exploitation: An agent applies authorised tools in ways their operator did not intend, driven by prompt injection, misaligned reasoninASI02ASI03 Identity & Privilege Abuse: When an agent acts on a user's behalf it inherits that user's credentials and permissions for the duration of the task. ASI03ASI06 Memory & Context Poisoning: An adversary writes malicious or misleading data into an agent's persistent memory or shared vector store, so that everyASI06ASI08 Cascading Failures: A single low-severity fault (a hallucinated value, a corrupted tool output, a poisoned memory entry) propagates across aASI08ASI09 Human-Agent Trust Exploitation: Adversaries exploit the tendency of humans to trust fluent, authoritative-sounding agents: an agent presents plausible jASI09ASI05 Unexpected Code Execution (RCE): In an agentic system, code generation and code execution happen in the same turn: the model emits an instruction and a tASI05ASI09 Human-Agent Trust Exploitation: Adversaries exploit the tendency of humans to trust fluent, authoritative-sounding agents: an agent presents plausible jASI09LLM01:2026 Prompt Injection: Input from a user, retrieved content, tool output, or memory alters model behaviour in ways the developer did not intend.LLM01LLM01:2026 Prompt Injection: Input from a user, retrieved content, tool output, or memory alters model behaviour in ways the developer did not intend.LLM01LLM06:2026 Unbounded Consumption: Uncontrolled inference lets attackers disrupt availability, inflict runaway cost, or clone the model.LLM06LLM05:2026 Data and Model Poisoning: Data or model artifacts are manipulated to embed harmful behaviour, bias, or exploitable weaknesses.LLM05LLM06:2026 Unbounded Consumption: Uncontrolled inference lets attackers disrupt availability, inflict runaway cost, or clone the model.LLM06LLM04:2026 Supply Chain: Third-party training data, models, adapters, conversion pipelines, or deployment platforms arrive tampered with.LLM04LLM08:2026 Hidden Context Exposure: Non-user-facing context (system prompt, policy text, tool and function schemas) is extracted, inferred, or reconstructed.LLM08LLM03:2026 Excessive Agency: Excess functionality, permissions, or autonomy turns an unexpected or manipulated model output into a damaging action.LLM03LLM07:2026 Misinformation: Output that is incorrect or misleading, but credible enough to drive a human decision or an agent action.LLM07LLM02:2026 Sensitive Information Disclosure: The system exposes confidential, regulated, or proprietary data through a channel nobody authorised.LLM02LLM06:2026 Unbounded Consumption: Uncontrolled inference lets attackers disrupt availability, inflict runaway cost, or clone the model.LLM06LLM03:2026 Excessive Agency: Excess functionality, permissions, or autonomy turns an unexpected or manipulated model output into a damaging action.LLM03LLM06:2026 Unbounded Consumption: Uncontrolled inference lets attackers disrupt availability, inflict runaway cost, or clone the model.LLM06LLM09:2026 Vector and Embedding Weaknesses: Attacks on embedding geometry and similarity search change what the retrieval layer puts in front of the model.LLM09LLM10:2026 Improper Output Handling: Model output passes downstream to other components without validation or sanitisation.LLM10LLM05:2026 Data and Model Poisoning: Data or model artifacts are manipulated to embed harmful behaviour, bias, or exploitable weaknesses.LLM05

The components

  • Planning: decomposes a goal into subgoals and produces the step sequence the action loop will execute.
  • Tool Calling / Function Calling: turns a textual plan into a concrete tool invocation with parameters. The trust boundary between "what the model wrote" and "what gets executed."
  • Action: executes tool calls, observes results, decides whether to revise the plan or proceed. Logging happens here.
  • Memory (short): context window; persists within a session, often for the duration of a single multi-turn task.
  • Model (LLM + Function Calling): the foundation model that produces reasoning, plans, and tool-call decisions, plus its function-calling runtime.
  • Agent (peer): other reasoning agents the agent coordinates with. Their messages are untrusted inputs to the receiving agent.
  • MCP server: a tool, resource, or prompt provider rather than inherently a peer agent. Its descriptions and results remain untrusted context.
  • Services: the agent's hands: Content, Code (execution/sandbox), Data (DBs/APIs), Human-in-Loop (approval), Device, and external Service integrations.
  • Supporting Services: Long-term memory (vector store, retrieval index) and Vector Datastore. Persist across sessions; highest-leverage poisoning surface.

Which threats hit which component

Agency scoping matrix

OWASP's Agentic Top 10 measures severity across four autonomy scopes: from no agency (human-initiated, agentic change prohibited) through full agency (automated initiation, automated agent actions). Risk increases dramatically as scope widens.

RiskScope 1No AgencyHuman-initiated · agentic change prohibitedScope 2PrescribedHuman-initiated · human-approved actionsScope 3SupervisedHuman-initiated · automated actionsScope 4Full AgencyAutomated initiation · automated actions
ASI01Agent Goal HijackMediumMediumHighCritical
ASI02Tool Misuse and ExploitationLowMediumHighCritical
ASI03Identity & Privilege AbuseLowMediumHighCritical
ASI04Agentic Supply Chain VulnerabilitiesMediumMediumHighCritical
ASI05Unexpected Code Execution (RCE)LowMediumHighCritical
ASI06Memory & Context PoisoningMediumMediumHighCritical
ASI07Insecure Inter-Agent CommunicationLowLowHighCritical
ASI08Cascading FailuresLowMediumHighCritical
ASI09Human-Agent Trust ExploitationMediumMediumHighCritical
ASI10Rogue AgentsLowLowMediumCritical

LLM Top 10 ↔ Agentic Top 10 correlation

The relation is asymmetric. The Agents → LLMs view shows what each agentic risk inherits from the LLM Top 10 (narrow, 1–4 LLM parents per ASI, the way OWASP categorised them). The LLMs → Agents view inverts it: one LLM-level vulnerability fans out to every agentic risk it can cause, which is a wider set. Triggers reach further than categories.Dashed lines in that view are mechanistic connections OWASP describes in body text but did not include in their authored mapping. The crow's-foot end marks the many side of each line.

OWASP LLM Top 10OWASP Agentic Top 10LLM01:2026 Prompt Injection: Input from a user, retrieved content, tool output, or memory alters model behaviour in ways the developer did not intend.LLM01:2026Prompt InjectionLLM02:2026 Sensitive Information Disclosure: The system exposes confidential, regulated, or proprietary data through a channel nobody authorised.LLM02:2026Sensitive Information DisclosureLLM03:2026 Excessive Agency: Excess functionality, permissions, or autonomy turns an unexpected or manipulated model output into a damaging action.LLM03:2026Excessive AgencyLLM04:2026 Supply Chain: Third-party training data, models, adapters, conversion pipelines, or deployment platforms arrive tampered with.LLM04:2026Supply ChainLLM05:2026 Data and Model Poisoning: Data or model artifacts are manipulated to embed harmful behaviour, bias, or exploitable weaknesses.LLM05:2026Data and Model PoisoningLLM06:2026 Unbounded Consumption: Uncontrolled inference lets attackers disrupt availability, inflict runaway cost, or clone the model.LLM06:2026Unbounded ConsumptionLLM07:2026 Misinformation: Output that is incorrect or misleading, but credible enough to drive a human decision or an agent action.LLM07:2026MisinformationLLM08:2026 Hidden Context Exposure: Non-user-facing context (system prompt, policy text, tool and function schemas) is extracted, inferred, or reconstructed.LLM08:2026Hidden Context ExposureLLM09:2026 Vector and Embedding Weaknesses: Attacks on embedding geometry and similarity search change what the retrieval layer puts in front of the model.LLM09:2026Vector and Embedding WeaknessesLLM10:2026 Improper Output Handling: Model output passes downstream to other components without validation or sanitisation.LLM10:2026Improper Output HandlingASI01 Agent Goal Hijack: An attacker manipulates an agent's objective, task selection, or decision pathway (via injected prompts, deceptive tool ASI01Agent Goal HijackASI02 Tool Misuse and Exploitation: An agent applies authorised tools in ways their operator did not intend, driven by prompt injection, misaligned reasoninASI02Tool Misuse and ExploitationASI03 Identity & Privilege Abuse: When an agent acts on a user's behalf it inherits that user's credentials and permissions for the duration of the task. ASI03Identity & Privilege AbuseASI04 Agentic Supply Chain Vulnerabilities: Third-party components that agents depend on (models, MCP servers, plug-ins, datasets, peer-agent descriptors, and updatASI04Agentic Supply Chain VulnerabilitiesASI05 Unexpected Code Execution (RCE): In an agentic system, code generation and code execution happen in the same turn: the model emits an instruction and a tASI05Unexpected Code Execution (RCE)ASI06 Memory & Context Poisoning: An adversary writes malicious or misleading data into an agent's persistent memory or shared vector store, so that everyASI06Memory & Context PoisoningASI07 Insecure Inter-Agent Communication: Agents in a multi-agent system pass instructions, results, and context to one another across APIs, message buses, and shASI07Insecure Inter-Agent CommunicationASI08 Cascading Failures: A single low-severity fault (a hallucinated value, a corrupted tool output, a poisoned memory entry) propagates across aASI08Cascading FailuresASI09 Human-Agent Trust Exploitation: Adversaries exploit the tendency of humans to trust fluent, authoritative-sounding agents: an agent presents plausible jASI09Human-Agent Trust ExploitationASI10 Rogue Agents: A rogue agent is one whose behavioural objective has drifted from its authorised purpose, yet its identity still checks ASI10Rogue Agents

Single agent vs multi-agent

A single-agent system has one of these. A multi-agent system has many, with inter-agent communication in addition to the components above. Multi-agent threats (T12, T13, T14) and the MAESTRO Cross-Layer catalog exist because the seamsbetween agents are themselves an attack surface. See theA2A primer.

Levels of autonomy

Autonomy is a spectrum, not a binary. The OWASP document describes a range from hardcoded workflows at one end (the agent's choices are tightly constrained by code), through finite-state-machine or LangFlow-style constraints, to fully conversational agents whose decisions depend purely on interactions and model reasoning. The threat profile shifts dramatically along this spectrum, and most controls that work at the constrained end fail at the conversational end.

Where to go next

  • RAG primer: how the retrieval surface inside an agent becomes a primary attack target.
  • MCP primer: how tool catalogs are exposed to agents and where the trust model breaks.
  • A2A primer: what happens at each of the seven steps when agents talk to each other.
  • Agentic factors primer: the four properties (autonomy, non-determinism, identity, A2A) that drive the threat profile.
  • Threat catalogue: all T1–T51 threats with full detail, mitigations, and MAESTRO layer tags.
  • Mitigations catalogue: controls indexed by threat, principle, and MAESTRO layer.
  • Security principles: how Defence-in-Depth, Zero Trust, and Least Privilege apply to agentic architectures.
  • Threat-modelling wizard: guided walkthrough that maps your architecture against the T1–T51 catalogue.

Source: OWASP Agentic AI — Threats and Mitigations v1.1 (Dec 2025), §AI Agents and §Agentic AI Reference Architecture; OWASP Top 10 for Agentic Applications 2026; OWASP Top 10 for LLM Applications 2026.