Guide

Agentic AI security: the complete guide

What is agentic AI security? It is the work of finding, testing and controlling what AI agents can read, call and change, so that a manipulated or faulty agent cannot do harm with the permissions it holds. This guide covers the definition, why agents change the threat model, the main threats mapped to OWASP, how to scope agents with the AWS matrix, the frameworks and the controls.

Last reviewed 23 November 2026 · reading time

Take the free Self-CheckOWASP Agentic Top 10 explained

  • Definition up frontthen threats and controls
  • Mappedto OWASP and AWS

About this guide

Author: [Author name and credentials – to be filled in by owner]. Last reviewed: 23 November 2026. Facts about frameworks and regulation link to the publisher's own page. No exploit code or step-by-step attack instructions: attacks are described only as far as defenders need to recognise and control them.

What is agentic AI security? A definition

Agentic AI security is the discipline of identifying, testing and controlling the actions, permissions and inputs of AI agents. An AI agent is software in which a language model decides which tools to call, in which order, and acts on the results, often over several steps and with some independence from a human.

Three properties make something an agent rather than a chatbot:

  1. It uses tools. It can call APIs, search systems, send messages, write files or run code.
  2. It acts on your behalf. It does so with credentials: a service account, an API key, an OAuth token or a user's session.
  3. It decides the path. Within its instructions, the model chooses the next step based on what it reads, including content from outside the company.

Agentic AI security therefore asks four questions classic application security only partly covers:

QuestionWhat it covers
Who is the agent?Its identity, credentials and the rights attached to them
What can it reach?Tools, MCP servers, data sources and systems it can change
What does it read?Untrusted inputs: emails, tickets, documents, web pages, tool output, memory
Who watches it?Approval steps, logging, monitoring and the ability to stop it

On our homepage we describe how we assess these four questions for companies running agents in production. This guide explains the subject itself.

Why agents change the threat model

With a chatbot, the worst outcome of a manipulated model is usually a harmful or wrong answer that a human reads. With an agent, the output is an action. The agent calls tools, moves data and changes systems. That changes three things.

The attack surface includes everything the agent reads. If an agent processes support tickets, emails, shared documents or web pages, then whoever can write into those sources can try to give the agent instructions. The language model cannot reliably tell data apart from instructions. This is the root of prompt injection, and it is why OWASP lists prompt injection as the first risk for LLM applications (LLM01:2025) and agent goal hijack as the first risk for agentic applications (ASI01) (OWASP LLM Top 10, OWASP Agentic Top 10).

Permissions decide the blast radius. A manipulated agent can do anything its credentials allow. An agent that runs with a developer's full token, a shared admin service account or broad OAuth scopes turns every successful manipulation into a broad compromise. The OWASP LLM list calls this Excessive Agency (LLM06:2025); the agentic list splits it into tool misuse (ASI02) and identity and privilege abuse (ASI03).

Failures compound. Agents keep memory, hand tasks to other agents and run in automated pipelines. A poisoned memory entry or a spoofed message between agents can affect many later actions. OWASP names these risks memory and context poisoning (ASI06), insecure inter-agent communication (ASI07) and cascading failures (ASI08).

untrusted input ─┐
(ticket, email,  │
 web page, tool  ▼
 output, memory) agent ──► tool call with agent's credentials ──► system change
                   ▲                                              (email sent,
 human approval? ──┘                                               record updated,
 logging? stop switch?                                             code merged)

Securing an agent means controlling each arrow: what enters, what the agent is allowed to call, with which identity, and who can see and stop what happens.

How exposed are your agents?

Twelve questions about inputs, tools, identities, approvals and logging, scored against the OWASP risk areas.

Take the free Self-CheckBook a 20-minute scoping call

The main threats, mapped to the OWASP Agentic Top 10

In December 2025 the OWASP GenAI Security Project published the OWASP Top 10 for Agentic Applications for 2026, developed with more than 100 industry experts (source). It is a widely referenced, peer-reviewed list of agent-specific risks. The table uses OWASP's IDs and names; the short descriptions and examples are ours.

IDOWASP nameIn plain termsTypical example
ASI01Agent Goal HijackContent the agent reads changes what it tries to doHidden instructions in a ticket make a support agent leak another customer's data
ASI02Tool MisuseLegitimate tools are used in harmful waysAn agent with a delete function removes far more than intended
ASI03Identity & Privilege AbuseThe agent acts beyond the rights it should haveA coding agent uses a developer's organisation-wide token
ASI04Agentic Supply Chain VulnerabilitiesTools, plugins, MCP servers or models are compromisedA community MCP server changes behaviour after an update
ASI05Unexpected Code ExecutionNatural-language input reaches code executionAn agent with a shell tool runs commands derived from a document
ASI06Memory & Context PoisoningPlanted content persists and alters later behaviourA poisoned memory entry biases every future answer on a topic
ASI07Insecure Inter-Agent CommunicationMessages between agents are spoofed or tampered withA fake "manager agent" message redirects a worker agent
ASI08Cascading FailuresErrors spread through automated chainsOne wrong signal triggers actions across several agents
ASI09Human-Agent Trust ExploitationPersuasive agent output misleads human approversAn approver clicks "yes" on a confident but harmful plan
ASI10Rogue AgentsAgents act outside their intended purposeAn agent pursues a goal in ways nobody approved and hides it

Each risk is explained with a longer example, a finding card and controls in our OWASP Top 10 for Agentic Applications explainer. Many of these risks connect: goal hijack (ASI01) is often the entry point, and identity and tool permissions (ASI02, ASI03) decide how much damage follows.

MITRE also maintains ATLAS, a public knowledge base of adversary tactics, techniques and case studies targeting AI systems, with mitigations (source). Security teams that already use MITRE ATT&CK-style threat modelling can use ATLAS alongside the OWASP list.

Scoping agents: the AWS Agentic AI Security Scoping Matrix

Not every agent needs the same controls. A read-only research assistant is a different risk from an agent that books, sends and pays on its own. AWS publishes the Agentic AI Security Scoping Matrix, which sorts agent systems into four scopes by how much agency and autonomy they have (source):

ScopeAWS nameWhat the agent may doHuman oversight
1No AgencyRead and recommend; cannot change external systemsHumans initiate and perform all changes
2Prescribed AgencyPrepare and recommend changesEvery change needs human approval before execution
3Supervised AgencyTake actions and complete multi-step tasks within set limitsContinuous monitoring, behavioural validation, shut-off switches
4Full AgencyInitiate its own activities based on conditions or patternsAdvanced behavioural monitoring, anomaly detection, automated containment

The matrix also names six security dimensions that apply at every scope: Identity Context; Data, Memory & State Protection; Audit & Logging; Agent & LLM Controls; Agency Perimeters & Policies; and Orchestration. AWS's guidance is that controls should scale with the scope: what is enough for a Scope 1 agent is not enough for Scope 3 or 4.

In practice, scoping is the first useful step for any company. Once every agent has a scope, it becomes obvious where approvals, monitoring and stronger identity controls are missing. We assign a scope to every agent in our Agent Security Assessment.

The frameworks that matter, in one overview

FrameworkPublisherWhat it is for
OWASP Top 10 for Agentic Applications (2026)OWASP GenAI Security ProjectCatalogue of the ten main agent-specific risks
OWASP Top 10 for LLM Applications (2025)OWASP GenAI Security ProjectRisks of LLM applications in general, including prompt injection and excessive agency
OWASP AI Testing GuideOWASP FoundationMethodology for testing AI systems; version 1 published 26 November 2025 (source)
AWS Agentic AI Security Scoping MatrixAmazon Web ServicesSorting agents into four scopes and scaling controls
NIST AI Risk Management FrameworkNISTVoluntary risk management framework with four functions: Govern, Map, Measure, Manage (source)
MITRE ATLASMITREAdversary tactics, techniques and case studies against AI systems
EU AI ActEuropean UnionRegulation (EU) 2024/1689, binding law with risk-based obligations (source)
ISO/IEC 42001:2023ISO and IECRequirements for an AI management system (source)

The short version: OWASP tells you what can go wrong, AWS tells you how strong controls need to be for a given agent, NIST and ISO/IEC 42001 give you the management system around it, and the EU AI Act sets legal obligations for some use cases. The frameworks comparison explains each one and how we combine them.

NIST has also started agent-specific work: its Center for AI Standards and Innovation runs an AI Agent Standards Initiative, created in February 2026, which includes research into agent authentication and identity infrastructure (source).

Controls that matter for AI agents

There is no single product that makes an agent secure. The controls below come up in almost every assessment. They follow the AWS dimensions and address the OWASP risks named in brackets.

Identity and permissions (ASI02, ASI03)

  • Give every agent its own identity. Avoid shared service accounts and avoid agents running with a human's full token.
  • Grant least privilege per tool: one repository, one mailbox, read-only where possible.
  • Use short-lived, just-in-time credentials rather than long-lived API keys. AWS recommends just-in-time credentials and guarding against the confused deputy problem, so agents never do more than the initiating person may do (source).

Inputs and context (ASI01, ASI06)

  • Treat all external content, tool output and retrieved documents as untrusted data, never as instructions.
  • Keep trusted instructions separate from untrusted content in the agent's context, and limit what untrusted content can trigger.
  • Validate what goes into memory and review long-term memory for planted entries.

Tools, MCP servers and supply chain (ASI04, ASI05)

  • Keep an approved list of tools and MCP servers, pin versions and review updates.
  • Apply the MCP project's own guidance: MCP servers must not accept tokens that were not issued to them (no token passthrough), and scopes should start minimal and grow only when needed (source).
  • Run any code execution in a sandbox with no access to secrets or production networks.

Human oversight (ASI09)

  • Define approval tiers by scope: which actions an agent may take alone, which need a human, and which are forbidden.
  • Show approvers enough context to say no: what the agent wants to do, why, and with which data. A bare "approve?" button invites rubber-stamping.

Logging, monitoring and stopping (ASI08, ASI10)

  • Log prompts, tool calls, parameters and decisions per agent run. AWS recommends tamper-evident logs that capture why an agent made a decision, not just what it did.
  • Set rate limits, quotas and circuit breakers for tool calls.
  • Make sure someone can stop an agent within minutes, and test that this works.

Testing

  • Test agents as agents: injection through every input channel, tool misuse, privilege escalation and exfiltration through allowed tools. Our Agent Red-Team Test covers these paths under written rules of engagement.
Risk: High

Customer-service agent can reply with any customer's data

OWASP ID
ASI01 Agent Goal Hijack, ASI03 Identity & Privilege Abuse
AWS scope
Scope 3 (Supervised Agency)
Observed
The agent's CRM tool accepts any customer ID, and the agent sends replies without review.
Impact
Instructions hidden in a ticket could make the agent fetch and disclose another customer's records.
Fix
Bind the CRM tool to the ticket's customer; treat ticket text as data; route replies containing records from other accounts to human approval; log every lookup.
Status
Synthetic example, not a client finding

Governance and regulation: what the EU AI Act means for agents

Controls need rules around them: who may deploy an agent, who approves its permissions, what is logged and reviewed. That is governance, and for companies in or selling into the EU it increasingly has a legal side.

The EU AI Act (Regulation (EU) 2024/1689) entered into force on 1 August 2024. It does not regulate "agents" as a category. It regulates AI systems by risk and by role, so whether obligations apply to a given agent depends on what it is used for and whether you are, for example, its provider or deployer. According to the European Commission's timeline (source):

DateWhat applies
2 February 2025Prohibited practices and AI literacy obligations
2 August 2025Governance rules and obligations for general-purpose AI models
2 August 2026The Act becomes generally applicable, with exceptions; transparency rules such as disclosing chatbot interactions
2 December 2027High-risk rules for Annex III use cases (for example employment, education, biometrics)
2 August 2028High-risk rules for AI embedded in regulated products (Annex I)

The later high-risk dates come from the Digital Omnibus, which the Commission says entered into force on 27 July 2026. Law firm Orrick summarised the change: Annex III high-risk obligations moved from 2 August 2026 to 2 December 2027 (source).

For agents, high-risk obligations matter most when an agent is part of a high-risk use case, such as screening job applicants. The Commission lists obligations for high-risk systems including risk management, logging, documentation, human oversight and robustness. Much of what good agent security already requires (approval tiers, logging, documented permissions) supports those obligations.

Treat the AI Act as a planning argument, not an emergency. This section is general information, not legal advice; your counsel decides how the law applies to you. Our Agent Governance Pack maps agent controls to the AI Act, NIST AI RMF and ISO/IEC 42001 alongside your counsel.

Where to start: a five-step plan

  1. List your agents. Every agent in production or near it, its owner, its tools and MCP servers, its credentials and its data.
  2. Assign a scope. Use the four AWS scopes. Most companies find agents with Scope 3 behaviour and Scope 1 controls.
  3. Score against OWASP. For each agent, ask which of the ten risks apply. Goal hijack, tool misuse and privilege abuse are the usual top three.
  4. Fix identity and approvals first. Dedicated identities, least privilege and approval tiers reduce the blast radius of almost every other risk.
  5. Test and log. Test the riskiest paths, then make sure you can see and stop what agents do.

If you want this done with a documented result, the Agent Security Assessment follows exactly these steps in 2–3 weeks at a fixed price. If you want a quick view first, take the Self-Check.

Frequently asked questions

What is agentic AI security in one sentence?

It is the practice of identifying, testing and controlling what AI agents can read, call and change, so that a manipulated or faulty agent cannot cause harm with its permissions.

How is agentic AI security different from LLM security?

LLM security focuses on the model's inputs and outputs. Agentic AI security adds the tools, identities, memory, inter-agent messages and approvals that turn model output into actions. OWASP publishes separate lists for both.

Is prompt injection the biggest risk for agents?

It is usually the entry point. OWASP lists agent goal hijack as ASI01. The damage it causes depends on the agent's tools and permissions, which is why identity and least privilege matter as much.

Which framework should we start with?

Use the OWASP Top 10 for Agentic Applications to name the risks and the AWS scoping matrix to decide how strong controls must be. Add NIST AI RMF or ISO/IEC 42001 for the management system around them.

Does the EU AI Act regulate AI agents?

It regulates AI systems by risk and role, not agents as such. According to the European Commission, high-risk rules for Annex III use cases apply from 2 December 2027. Whether they apply to your agent is a legal question.

Do we need a special tool to secure agents?

Not necessarily. Many of the most effective controls are configuration and process: dedicated identities, scoped tokens, approval tiers and logging. Tools can help, but should follow the risk assessment, not precede it.

Not affiliated

Agentic Security is an independent practice. We are not affiliated with, endorsed by or sponsored by OWASP, Amazon Web Services, NIST, MITRE, ISO/IEC, the European Commission or any vendor named on this site. Names are used only to describe their published work; we show no logos.

Turn this guide into a score

Twelve questions, five minutes. A score per OWASP risk area, your top three gaps and the matching service.

Take the free Self-CheckBook a 20-minute scoping call

Take the Agent Security Self-Check