Architecture
Key components
The six key components (KC1–KC6) of an agentic AI system from the OWASP Agentic Security guide, their sub-components and the threats that affect each.
- 6 key components
- 40 component nodes
KC1 Language Models (LLMs)
The core cognitive engine or "brain" of the agent (e.g., GPT-4, Claude), responsible for understanding, reasoning, planning, and generating responses. This includes various types of language models.
Threats: T5 Cascading Hallucination Attacks, T6 Intent Breaking & Goal Manipulation, T7 Misaligned & Deceptive Behaviors, T15 Human Manipulation, T17 Supply Chain Compromise
KC1.1 Large Language Models (LLMs)
Core cognitive engine utilizing pre-trained foundation models for reasoning, planning, and generation, primarily directed via prompt engineering. Operates within constraints like context window, latency, and cost.
KC1.2 Multimodal LLMs (MLLMs)
LLMs capable of processing and/or generating information across multiple data types beyond text (e.g., images, audio), enabling agents to perform a wider variety of tasks.
KC1.3 Small-Language Models (SLMs)
Language models with fewer parameters, trained on smaller, focused datasets, designed for specific tasks or use cases. Characterized by smaller weight space, parameter size, and context window compared to LLMs.
KC1.4 Fine-tuned Models
Language models (LLMs/MLLMs) that undergo additional training on specific datasets to specialize their capabilities, enhancing performance, adopting personas, or improving reliability for particular tasks.
KC2 Orchestration (Control Flow)
Mechanisms that dictate the agent's overall behavior, information flow, and decision-making processes. The specific mechanism depends on the architecture and impacts responsiveness and efficiency.
Threats: T6 Intent Breaking & Goal Manipulation, T8 Repudiation & Untraceability, T9 Identity Spoofing & Impersonation / Agent Identity Compromise, T10 Overwhelming Human in the Loop, T12 Agent Communication Poisoning, T13 Rogue Agents in Multi-Agent Systems, T14 Human Attacks on Multi-Agent Systems, T16 Insecure Inter-Agent Protocol Abuse
KC2.1 Workflows
Structured, pre-defined sequence of tasks or steps that agents follow to achieve a goal, defining the flow of information and actions. Can be linear, conditional, or iterative.
KC2.2 Hierarchical Planning
Multiple agents collaborating via an orchestrator (router) that decomposes tasks, routes sub-tasks to specialized agents, and monitors performance.
KC2.3 Multi-agent Collaboration
Multiple agents working together, communicating and coordinating actions, sharing information and resources to achieve a common goal. Useful for complex tasks requiring diverse skills.
KC3 Reasoning / Planning Paradigm
How agents utilize LLMs to solve complex tasks requiring multiple steps and strategic thinking by breaking down high-level tasks into smaller sub-tasks.
Threats: T5 Cascading Hallucination Attacks, T6 Intent Breaking & Goal Manipulation, T7 Misaligned & Deceptive Behaviors, T8 Repudiation & Untraceability, T15 Human Manipulation
KC3.1 Structured Planning / Execution
Focuses on decomposing tasks into a formal plan, defining sequences of actions (often involving tool calls), and executing the plan, sometimes with separate planner/executor components (e.g., ReWoo, LLM Compiler, Plan-and-Execute).
KC3.2 ReAct (Reason + Act)
Dynamically interleaves reasoning steps with actions (like using tools or querying APIs) and updates reasoning based on feedback.
KC3.3 Chain of Thought (CoT)
Enhances reasoning quality by prompting step-by-step "thinking," inducing an LLM to generate a set of "thoughts" before arriving at a final action or conclusion.
KC3.4 Tree of Thoughts (ToT)
Generalizes CoT by exploring multiple reasoning paths and plans in parallel with lookahead, backtracking, and self-evaluation.
KC4 Memory Modules
Enable the agent to retain short-term (immediate context) and long-term information (past interactions, knowledge) for coherent and personalized interactions. Context sensitivity is used to reduce risk. RAG with vector databases is common for long-term memory.
Threats: T1 Memory Poisoning, T3 Privilege Compromise, T5 Cascading Hallucination Attacks, T6 Intent Breaking & Goal Manipulation, T8 Repudiation & Untraceability, T12 Agent Communication Poisoning
KC4.1 In-agent session memory
Memory limited to a single agent and a single session.
KC4.2 Cross-agent session memory
Memory shared across multiple agents but limited to a single session.
KC4.3 In-agent cross-session memory
Memory limited to a single agent but shared across multiple sessions.
KC4.4 Cross-agent cross-session memory
Memory shared across multiple agents and sessions.
KC4.5 In-agent cross-user memory
Memory limited to a single agent but shared across multiple users.
KC4.6 Cross-agent cross-user memory
Memory shared across multiple agents and users.
KC5 Tool Integration Frameworks
Allow agents to extend capabilities by using external tools (APIs, functions, data stores) to interact with the real world or other systems. Manages tool selection and use.
Threats: T2 Tool Misuse, T3 Privilege Compromise, T6 Intent Breaking & Goal Manipulation, T7 Misaligned & Deceptive Behaviors, T8 Repudiation & Untraceability, T11 Unexpected RCE and Code Attacks, T16 Insecure Inter-Agent Protocol Abuse, T17 Supply Chain Compromise
KC5.1 Flexible Libraries / SDK Features
Code-level building blocks (e.g., LangChain, CrewAI) or API capabilities (OpenAI Tool Use) offering high flexibility but requiring more coding effort.
KC5.2 Managed Platforms / Services
Vendor-provided solutions (e.g., Amazon Bedrock Agents, Microsoft Copilot Platform) handling infrastructure and simplifying setup, often with easier ecosystem integration and low-code interfaces.
KC5.3 Managed APIs
Vendor-hosted services (e.g., OpenAI Assistants API) providing higher-level abstractions, managing state and aspects of tool orchestration via API calls.
KC6 Operational Environment (Agencies)
Manages the integration layer between AI agents and external tools, APIs, code execution environments, and database systems. Ensures secure invocation of tools with proper authentication, input validation, sandboxing, and output verification to prevent unauthorized access and tool misuse.
Threats: T2 Tool Misuse, T3 Privilege Compromise, T4 Resource Overload, T10 Overwhelming Human in the Loop, T11 Unexpected RCE and Code Attacks, T12 Agent Communication Poisoning, T13 Rogue Agents in Multi-Agent Systems, T15 Human Manipulation
KC6.1 API Access
Agents utilizing LLM capabilities to interact with APIs.
KC6.1.1 Limited API Access
Agent generates some parameters for a predefined API call. Compromise can lead to API attacks via LLM-generated parameters.
KC6.1.2 Extensive API Access
Agent generates the entire API call. Compromise can lead to unwanted API calls and attacks.
KC6.2 Code Execution
Agents utilizing LLM capabilities for code-related tasks.
KC6.2.1 Limited Code Execution Capability
Agent generates parameters for a predefined function. Compromise can lead to code injection.
KC6.2.2 Extensive Code Execution Capability
Agent runs LLM-generated code. Compromise can lead to arbitrary code execution.
KC6.3 Database Execution
Agents utilizing LLM capabilities to interact with databases.
KC6.3.1 Limited Database Execution Capability
Agent runs specific queries/commands with limited permissions (e.g., read-only, parameterized writes). Compromise can lead to data exfiltration or limited malicious writes.
KC6.3.2 Extensive Database Execution Capability
Agent generates and runs all CRUD operations. Compromise can lead to major data alteration, deletion, or leakage.
KC6.3.3 Agent Memory or Context Data Sources (RAG)
Agent uses external datasources for context or updates records. Compromise can disrupt data or provide malformed information.
KC6.4 Web Access Capabilities (Web-Use)
Agent utilizing LLM for browser operations. Compromise (often from untrusted web content) can lead to unwanted operations on behalf of the user.
KC6.5 Controlling PC Operations (PC-Use)
Agent utilizing LLM for OS operations, including file system. Compromise can lead to unwanted operations, data leakage, or malicious actions like encrypting files.
KC6.6 Operating Critical Systems
Agent utilizing LLM to operate critical systems (e.g., SCADA). Compromise can cause catastrophic failures.
KC6.7 Access to IoT Devices
Agent controlling IoT devices. Compromise could impact the operational environment or misuse devices.
Source: OWASP Securing Agentic Applications Guide (KC1-KC6 reference architecture) 1.0 (Jul 2025) · retrieved 2026-11