Agentic AI security architecture starts with a map of the components of an AI agent system and the connections between them, which sets the scope, and then applies controls to each component and connection so a company can give agents real tools and authority with confidence in what they do and proof of what they did. It is the next application of the lifecycle used for wireless, remote work and BYOD (identify, protect, detect, respond, recover, the core functions of NIST CSF 2.0), with audit logging as the record that connects all five. A company that builds this once approves new agent use cases faster, because each agent inherits a tested control set.
At a glance
The table below summarizes the five lifecycle functions as applied to an AI agent: the question each answers and the core controls it uses.
| Lifecycle function | Question answered for an AI agent | Core controls |
| Identify | What agents exist, what can each one access, and what is the worst outcome? | Architecture map, inventory, owners, autonomy tiers, threat model |
| Protect | How does the agent get the access to do its job, and nothing beyond it? | Agent identity, task-scoped tools, data boundaries, approval gates |
| Detect | How does the team know when an agent behaves differently? | Telemetry in the SIEM, policy and behavior alerts |
| Respond | How does the team contain an agent and find out what it did? | Kill switch, evidence preservation, agent incident playbook |
| Recover | How does the business return to normal work, with a better agent? | Reversible actions, rollback, credential rotation, fallback process |
| Audit logging (all five) | Can anyone reconstruct who made the request, which inputs the agent processed, and which actions it took? | Traceable, tamper-evident, retained tool-call records |
Agentic AI security follows the same playbook as wireless, remote work and BYOD: security identifies the risks, applies mitigations and lets the business use the technology. Wi-Fi, Bluetooth, remote work and BYOD each arrived with real security concerns, and agents are the latest technology the business wants to adopt. A program that only restricts the agent produces one too limited to deliver value, and teams tend to work around it, as they did with blocked personal devices.
| Technology | Risk identified | Mitigation that enabled business use |
| Wireless networks | Unauthorized access, eavesdropping | WPA-class encryption, segmentation, authenticated access |
| Remote work | Untrusted networks, unmanaged endpoints | VPN or zero trust access, MFA, endpoint management |
| BYOD | Data on unmanaged devices, lost devices | Mobile device management, conditional access |
| AI agents | Excess access, hijacked instructions, unattributed actions | Agent identity, scoped tools, approval gates, monitoring, audit logging |
LLM security protects what a model says: harmful output, leaked training data, jailbreaks of a chat interface. Agentic AI security protects systems where a model takes actions with real credentials. An AI agent adds tools (APIs, databases, code execution, email, payments), permissions (the tokens and service accounts that make tool calls succeed) and memory (stored context carried between sessions). For a chatbot, the worst case is a bad answer. For an agent, the worst case is a bad action: a refund issued in error, a customer record emailed to an outside address.
An AI agent also processes retrieved text as potential instructions, so any document, email, web page or ticket in its inputs becomes a channel for an attacker. The attack is called indirect prompt injection, or agent hijacking. In the EchoLeak case (2025, CVE-2025-32711), a crafted email caused Microsoft 365 Copilot to exfiltrate data from the user's context with no click from the user. In a public red-teaming competition hosted by Gray Swan and analyzed by NIST's Center for AI Standards and Innovation (CAISI), the UK AI Security Institute and frontier AI labs, more than 250,000 attack attempts from over 400 participants found at least one successful hijack against every one of the 13 frontier models tested.
Ali Aleali explains why agents raise the stakes of prompt injection in his talk at
AI Security Engineers Ottawa:
Key insight
Architecture assumes some prompt injections will succeed
Model-level defenses (system prompts, input filters, guard models) reduce the success rate and are worth running. The architecture assumes a hijack will sometimes succeed, limits what a hijacked agent can reach, shows the team when one misbehaves, and supports recovery.
An AI agent system is a set of components joined by connections, and the map of both defines the scope of the security work. Each control attaches to a specific component or connection, so anything missing from the map ends up with no controls. The same method applies to any security architecture review, whether the system is a payment platform or an AI agent.
The components of a typical agent system are:
The diagram below groups the components by trust boundary: untrusted inputs, the company boundary, and external parties. The agent runtime box includes memory and other agents, and the control plane (identity, approval, logging) governs every connection.
Figure: reference architecture of an AI agent system with trust boundaries marked. Click to enlarge.
Each connection between components is a data flow that crosses a trust boundary, with its own risk and controls:
| Connection | Main risk | Controls that apply |
| Users and triggers to agent | Prompt injection through the request or attachments | Requester authentication, input logging |
| Data sources and retrieval to agent | Indirect prompt injection from untrusted content | Source trust levels, detection alerts |
| Agent to model endpoint | Data exposure, provider retention | Data classification limits, private or in-environment endpoints, vendor review |
| Agent to tools and MCP servers | Tool misuse, token passthrough, unexpected code execution | Tool allow-list, short-lived scoped tokens, MCP server review, sandboxing |
| Tools to downstream systems | Privilege abuse, over-broad data access | Per-agent identity enforced downstream, classification-based access |
| Agent to memory | Memory and context poisoning | Access control, retention limits, inspect and clear |
| Agent to other agents | Insecure inter-agent communication, cascading failures | Own identity per agent, authenticated messages |
| Agent to human approver | Approver misled by the agent's summary | Approval screen built from tool call parameters |
| Agent to external destinations | Exfiltration | Egress allow-lists, data loss controls |
| Every component to logging | Gaps or tampering in the record | Complete, tamper-evident, correlated audit logs |
The map answers the scoping questions before any control is chosen: which components exist, which data crosses which boundary, which connections carry the highest-impact actions, and which parts the company operates versus a model provider or tool vendor.
The identify function turns the architecture map into a register of every agent, with a named owner, its purpose, the tools and data it can access, its dependencies (model provider, frameworks, MCP servers, with versions) and an autonomy tier. Agents adopted by individual teams without review are often the first gap an inventory finds.
The autonomy tier is the central business decision. Tiering by action keeps routine work fast and applies more control to the highest-impact actions:
| Autonomy tier (AI agent actions) | Examples | Control applied |
| Read | Search tickets, read docs, query reporting data | Logged |
| Internal write | Draft a reply, update a ticket field | Logged, sampled review |
| External send | Email a customer, post to a shared channel | Human approval |
| Financial or irreversible | Refunds, payments, deletes, permission changes | Human approval, sometimes two people |
Key insight
Agent authority grows tier by tier as controls are proven
Authority follows evidence. An agent starts at the read tier with logged activity, moves to internal writes after its behavior has been observed, and reaches external-send or financial actions once the approval, detection and rollback controls for those actions are proven.
Threat modeling walks each connection in the map through known agent attacks. The OWASP Top 10 for Agentic Applications lists ten risks (ASI01 Agent Goal Hijack through ASI10 Rogue Agents), and MITRE ATLAS catalogs adversary techniques against AI systems in the style of MITRE ATT&CK. For each tool, the team asks what a hijacked agent could do with it, and which control limits, detects or reverses that action.
The protect function gives each AI agent exactly the access its task requires, so the worst outcome has a known and acceptable size. Five controls carry most of the weight.
The detect function sends AI agent activity into the SIEM alongside identity, endpoint and network telemetry, so the existing security team monitors agents with tools already in place. Useful alerts include:
Detection depends on the audit log. An agent that does not record its tool calls cannot be monitored.
AI agent audit logging records every tool call with enough context to answer four questions after the fact: who requested the work, which inputs and data the agent processed, which actions it took, and who approved them. The same record supports traceability in normal operation, detection, incident response, forensics, and evidence for customers and auditors. CIS Controls v8 covers this as audit log management (Control 8), and agents add fields that traditional application logs omit.
| Audit log field for an AI agent | Why it is recorded |
| Trace ID linking request, agent steps and tool calls | Reconstructs one task end to end across systems |
| Agent identity, owner and autonomy tier | Attribution and incident scoping |
| Triggering user or event | Shows whose request or which input started the task |
| Input sources and retrieved context | Finds the injected content behind a hijack |
| Model, prompt and tool definition versions | Reproduces behavior and shows which change introduced a problem |
| Tool, parameters and result | Records exactly what the agent did |
| Approval request, approver and decision | Shows human oversight operated as designed |
Five properties make the log usable for investigation. It is complete, including blocked and failed calls. It is tamper-evident, written to a store the agent and its operators cannot alter. It is correlated, with one trace ID from the user's request through each tool call into downstream systems. It is retained for the longest incident, contractual or regulatory need. It is handled as sensitive data, because prompts and context often hold personal data: secrets are redacted and access to the log is controlled and logged.
Key insight
Audit logs answer scoping and root-cause questions after an agent incident
For incident response, the log answers scoping questions within minutes: which records the agent read, what it sent and where, and which systems it accessed. For forensics, the stored inputs identify the injected document or poisoned memory entry, and the version fields show whether a model, prompt or tool change contributed. AIUC-1 makes AI system activity logging a mandatory requirement (E015, Log AI system activity).
The respond function gives the security team a tested way to stop a misbehaving agent and establish its impact. Agents can keep acting after something goes wrong (OWASP ASI08 Cascading Agent Failures, ASI10 Rogue Agents), so containment speed depends on controls built beforehand. The playbook, aligned with CIS Control 17, Incident Response Management, has five steps:
A tabletop exercise such as an agent emailed customer data to an external address tests whether the kill switch, the log and the notification path work together.
The recover function restores operations after an agent incident and feeds the lessons back into the architecture. Recovery is easier when actions were designed to be reversible before deployment.
The lifecycle controls produce most of the evidence AI frameworks ask for, and mapping happens after the controls exist.
| Control area | AIUC-1 requirement | ISO/IEC 42001 Annex A | EU AI Act (high-risk systems) |
| Agent identity and tool scope | B007 enforce user access privileges to AI systems; B006 prevent unauthorized AI agent actions; D003 restrict unsafe tool calls | A.6 AI system life cycle | Art. 15 cybersecurity |
| Data boundary | A003 limit AI agent data access; A005 prevent cross-customer data exposure; A008 prevent leakage of credentials and secrets | A.7 Data for AI systems | Art. 10 data governance |
| Human approval | C007 flag high risk outputs for human review (optional) | A.9 Use of AI systems | Art. 14 human oversight |
| Audit logging | E015 log AI system activity | A.6.2 operation and monitoring | Art. 12 record-keeping |
| Incident response and recovery | E001 AI failure plan for security breaches | ISO 27001 incident management controls carry over | Art. 73 serious incident reporting |
| Supply chain | E006 conduct vendor and model due diligence | A.10 third-party relationships | Provider and deployer obligations |
| Adversarial testing | B001 third-party testing for security risk | A.6 verification and validation | Art. 15 accuracy and robustness |
A company putting its first AI agents into production can cover the lifecycle in six steps, ordered by risk:
Agentic AI security architecture applies the established security lifecycle to a new technology: each AI agent is identified, scoped, monitored, recorded, containable and recoverable, like any other system the business depends on. Enterprise buyers now ask vendors how their AI agents are secured, and an answer built on identity, scoped access, monitoring and an incident process closes that question, where the model is well prompted leaves it open. A team that builds these controls first gets the framework evidence as a byproduct and a faster path to approving the next agent.
If your team is putting agents into production and a customer is asking how they are secured, Truvo designs these controls through its security architecture consulting work and maps them to the evidence your buyers request. Book a security architecture review or start with the AIUC-1 certification readiness service.
An effective security program lets the business approve AI agents faster, with evidence.
Agentic AI security is the practice of securing AI systems that take actions with tools and credentials, so the business can rely on them for real work. It maps the system's components and connections, then applies identify, protect, detect, respond and recover controls, supported by audit logging.
LLM security protects what a model outputs, such as harmful content or leaked data. AI agent security also covers what the model does: the API calls, data access and transactions an agent performs with real permissions, and the records needed to trace and reverse them.
Model-level defenses reduce prompt injection success rates, and NIST-analyzed red-teaming found successful hijacks against every frontier model tested. Agent architecture assumes some injections succeed and limits, detects and reverses what a hijacked agent can do.
Yes. A dedicated identity per agent allows scoped permissions, attribution in logs, and a kill switch for one agent. NIST's NCCoE draft concept paper examines how OAuth, OpenID Connect, SPIFFE and SCIM apply to agent identity and authorization.
Each tool call records the agent identity, the triggering user or event, the input sources and retrieved context, the model and prompt versions, the tool and parameters, the result and any approval. A trace ID links the steps of one task, and logs are tamper-evident and retained long enough for incident response and forensics.
The OWASP Top 10 for Agentic Applications is a peer-reviewed list of the ten highest risks for autonomous AI systems, labeled ASI01 Agent Goal Hijack through ASI10 Rogue Agents and released in December 2025. Threat modeling uses it to walk each connection in an AI agent system through known attacks.
Autonomy tiers classify each action an AI agent can take by impact: read, internal write, external send, and financial or irreversible. Each tier gets its own level of control, from logging alone to human approval, so routine work stays fast and the highest-impact actions get more control.
The Model Context Protocol specification defines OAuth 2.1-based authorization with token audience validation, but authorization is optional. Security depends on each MCP server implementing it, so third-party servers need vendor review before use.