SysArt
Book a briefing
SysArt

Guide

AI agent security: threats and controls

AI agents hold credentials, call tools and act without a person reading every step, so a manipulated input can become a real action. This guide explains the OWASP Top 10 for Agentic Applications in plain language and the controls that limit what a compromised agent can do.

Last reviewed by SysArt AI Architecture Team11 min readHow we review

In short

AI agent security protects systems in which a language model chooses actions that run with real credentials. Because no current defence fully prevents prompt injection, it focuses on limiting what a manipulated agent can do: its own short-lived, scoped identity, allow-listed tools, sandboxed execution, human approval for high-impact actions, full tracing, red teaming and a tested stop control.

DefinitionAI agent security is the protection of AI agents, and of the systems and data they can reach, against attacks that manipulate or misuse their goals, tools, identities, memory and communications, so that an agent can take only the actions its owner has approved.

Key takeaways

  • Agents turn model output into actions: they hold credentials, call tools, keep memory and act without a person reading every step, so a planted instruction can become a payment, a deletion or a data leak.
  • The OWASP Top 10 for Agentic Applications, published in December 2025, names ten risks from ASI01 Agent Goal Hijack to ASI10 Rogue Agents, and recommends least agency: no more autonomy than the task needs.
  • Give each agent its own identity with short-lived, task-scoped credentials and an allow-list of narrow tools, and authorise every tool call outside the model.
  • Guardrails reduce risk but can be bypassed, and no current defence fully prevents prompt injection; sandboxing, egress control and human approval for high-impact actions set the real limits.
  • Trace every step, red-team agents with planted instructions before release, and keep a tested way to stop an agent and revoke its credentials.

What is AI agent security?

AI agent security, also called agentic AI security, protects AI agents and everything they can reach against manipulation and misuse. The US National Institute of Standards and Technology (NIST) describes an agent as a system that repeatedly prompts a model, processes its output, for example to select and call a function, and feeds the results back into the next prompt. That loop gives an agent what a chatbot lacks: credentials, tools that act on real systems, memory that persists across sessions, and the autonomy to chain steps without a person reading each one. The UK National Cyber Security Centre (NCSC) notes that problems are harder to spot when actions occur faster than people can review them.

Why are AI agents harder to secure than chatbots?

A manipulated chatbot gives a bad answer; a manipulated agent takes a bad action with real permissions. OWASP names the root cause: agents cannot reliably distinguish instructions from the content they process, so instructions hidden in a document, email, web page or tool result can redirect them. NIST adds that such attacks can hijack an agent to execute arbitrary code or exfiltrate data.

Exposure peaks when one task combines content an outsider can influence, access to sensitive data and a way to send data out. The NCSC cites the design rule that follows: a large language model (LLM) that processes emails from random external people should not have access to privileged tools.

Joint guidance published in May 2026 by cyber security agencies from Australia, Canada, New Zealand, the UK and the US, Careful adoption of agentic AI services, advises starting small, using agents only for low-risk tasks and applying established security controls from the outset. If you cannot understand, monitor or contain an agent’s actions, the NCSC adds, it is not ready for deployment.

What is the OWASP Top 10 for Agentic Applications?

It is the OWASP GenAI Security Project’s list of the ten highest-impact security risks for agentic systems, published in December 2025 as the edition for 2026, with mitigations for each. It introduces the principle of least agency: agentic behaviour deployed where it is not needed expands the attack surface without adding value.

  • ASI01: Agent Goal Hijack. Instructions hidden in content the agent processes redirect its goals, for example a calendar invite that quietly reweights its objectives.
  • ASI02: Tool Misuse and Exploitation. The agent misuses a legitimate tool within its permissions: deleting data, looping on a costly API or chaining an internal tool with email to leak records.
  • ASI03: Identity and Privilege Abuse. Inherited, cached or delegated credentials are abused, as when a low-privilege agent relays instructions to a high-privilege one that does not re-check intent.
  • ASI04: Agentic Supply Chain Vulnerabilities. Tools, Model Context Protocol (MCP) servers, prompts, models or agents supplied by third parties are malicious or tampered with, such as an MCP server on npm that impersonated a legitimate one and secretly copied emails to an attacker.
  • ASI05: Unexpected Code Execution (RCE). Generated or injected code runs on a host or in a container, leading to compromise or sandbox escape.
  • ASI06: Memory & Context Poisoning. Malicious entries in memory or retrieval stores steer later reasoning, including in other sessions.
  • ASI07: Insecure Inter-Agent Communication. Messages between agents that lack authentication or integrity checks are intercepted, spoofed, replayed or altered.
  • ASI08: Cascading Failures. One fault, such as a hallucination or a poisoned input, spreads across agents faster than people can intervene.
  • ASI09: Human-Agent Trust Exploitation. A confident agent persuades a person to approve a harmful action, such as paying a fraudulent invoice, leaving its own role invisible to forensics.
  • ASI10: Rogue Agents. An agent deviates from its intended function or scope: it colludes with other agents, replicates itself or games its objective.

Whatever the entry point, the harm depends on the tools and privileges an agent holds, which is what most of the controls below limit.

How do you manage AI agent identity and credentials?

Give every agent its own identity, separate from users and other agents, with short-lived credentials scoped to the current task. OWASP warns that without a distinct, governed identity, an agent operates in an attribution gap that makes true least privilege impossible to enforce.

  • One identity per agent, in a class that distinguishes agents from people, as the NCSC advises. OWASP points to platforms that manage agents as non-human identities with scoped credentials, audit trails and lifecycle controls.
  • Short-lived credentials that expire with the task, not standing API keys; the NCSC recommends the shortest possible lifetime.
  • The user’s identity, carried through to downstream systems when the agent acts for a person, so that their permissions apply.
  • Authorisation at the time of action, re-checked by a policy engine for each privileged step, with no privileges passed between agents unless the original intent is re-validated.
  • No keys within the agent’s reach. OWASP says the orchestrator should mediate signing, so a compromised agent cannot exfiltrate long-lived keys.

A February 2026 draft concept paper from NIST’s National Cybersecurity Center of Excellence (NCCoE), part of NIST’s AI Agent Standards Initiative, considers OAuth 2.0 and its extensions, OpenID Connect, SPIFFE/SPIRE and SCIM for agent identification, authorisation and access delegation.

How do you control which tools an AI agent can use?

Allow-list the tools each agent may call, give every tool a narrow permission profile, and check each call outside the model before it runs. OWASP’s agentic mitigations translate into four controls:

  • Per-tool profiles with scopes, rate limits and permitted destinations. An email summariser needs read access, not send or delete rights.
  • A policy enforcement point that treats the planner’s output as untrusted, validates each call’s intent and arguments, and fails closed on ambiguity.
  • Budgets that cap cost, call rates and tokens per run.
  • Pinned tools with fully qualified names and versions from a curated registry, so that a look-alike cannot be substituted.

OWASP’s guidance on excessive agency adds: avoid open-ended tools that run any shell command or fetch any URL, and enforce authorisation in downstream systems rather than letting the model decide. These checks belong in the agent harness, the runtime around the model, not in the prompt.

Model Context Protocol (MCP). MCP standardises how agents discover and call tools. Its specification states that tools represent arbitrary code execution, that tool descriptions should be considered untrusted unless they come from a trusted server, and that the protocol cannot enforce its security principles itself. Our guide to MCP security covers the controls a deployment needs.

How do you sandbox an AI agent and control its network access?

Run the agent’s tools and generated code in an isolated environment that denies network traffic by default and allows only the destinations a task needs.

The NCSC’s interim advice on agentic AI, published in August 2026, describes four levels of network access: unrestricted, an allow-list of approved domains, the model’s API only, and no external access with the model hosted locally inside the sandbox. Compute isolation has a matching scale, from none through properly configured containers and virtualisation to dedicated hardware. For code execution, OWASP adds: never run as root, restrict file access to a working directory, validate code between generation and execution, and ban eval in production.

Egress control must cover every channel: one OWASP scenario has a coding agent leak data through DNS queries by repeatedly calling an auto-approved ping tool. Isolate memory too, by user and task, validating what is written and expiring unverified entries.

When should a human approve an AI agent’s actions?

Before actions that are destructive, irreversible or high-impact, such as deleting data, transferring money, publishing or granting access, and when the agent departs from its original task. OWASP recommends human confirmation for such actions, with a preview of the planned change.

A hijacked agent can produce a convincing rationale, so design the approval step with care:

  • Show the exact action and its effect with a plain-language risk summary, not the model’s explanation.
  • Keep previews free of side effects.
  • Pause the run when the agent’s goal shifts unexpectedly.
  • Avoid bulk approvals: OWASP lists oversight that weakens after repeated success among the causes of cascading failures.

For higher-risk scenarios, the NCSC recommends human oversight alongside technically enforced controls. Our explainer on human-in-the-loop AI compares the oversight patterns.

What can AI agent guardrails do, and what can’t they?

Guardrails, often called LLM guardrails, check what goes into a model, what comes out and what the agent proposes to do. They stop many attacks and mistakes but can be bypassed, so treat them as one layer of defence, not the security boundary.

Useful guardrails detect embedded instructions in inputs and mark external content as data, which the NCSC says can make injection harder; validate outputs against a schema; and check each proposed action against policy.

Their limits are documented. NIST states that current mitigations do not offer full protection and that detection systems are themselves vulnerable to attack. The NCSC warns that prompt injection may never be totally mitigated in the way SQL injection can be, cautions against deny-lists because attacks can be rephrased endlessly, and advises buyers to beware of products that claim to stop it. In a red-teaming competition whose results NIST’s Center for AI Standards and Innovation (CAISI) published in March 2026, at least one attack succeeded against each of the 13 frontier models tested.

So rely, as the NCSC advises, on deterministic, non-LLM safeguards that constrain what the system can do. Identity, tool permissions, sandboxing, egress control and approvals hold even when a guardrail is fooled. Our article on guardrails architecture for AI agents shows how the layers fit together.

How do you monitor and red-team AI agents?

Trace every model call, tool call and approval under one identifier tied to the agent’s identity, feed the traces into security monitoring, and attack the agent before release and after every change.

The NCSC advises treating agent activity as user activity: include it in round-the-clock security monitoring and incident response, protect the logs, make them immutable where possible and make agent traffic attributable, for example with identifying HTTP headers. Alert on suspicious chains, such as a database read followed by an external transfer, an OWASP example. OpenTelemetry’s semantic conventions for generative AI, still marked as in development, define spans for invoking agents and executing tools.

To test, plant instructions in content the agent reads, such as documents and tool results; NIST calls this agent hijacking. Repeat each attack: in one NIST evaluation, the average success rate across five injection tasks rose from 57% to 80% when each attack was attempted 25 times. Verify that rollback works, as OWASP recommends, and rerun the suite whenever the model, prompts or tools change.

How do you respond to an AI agent security incident?

Stop the agent, revoke its credentials, contain what it touched and preserve its traces, with each step prepared before the agent goes live.

  • Stop. The NCSC advises that, if an incident is detected or reported, you should be able to “pull the plug” and halt autonomous agent activity immediately, including by cutting network access to the agent’s infrastructure and its connection to the model.
  • Revoke. OWASP recommends kill switches and credential revocation that disable a rogue agent instantly, and a supply-chain kill switch for compromised tools and prompts.
  • Recover. Quarantine the agent, reverse its changes and reintegrate it only after fresh attestation and human approval.

Our agentic AI governance framework covers incident records and the EU AI Act’s serious-incident duties.

How do you secure AI agents against each OWASP risk?

Apply the controls OWASP lists against each risk; the table summarises the main ones.

OWASP riskMain controls
ASI01: Agent Goal HijackExternal content treated as untrusted, least-privilege tools, approval for goal changes
ASI02: Tool Misuse and ExploitationPer-tool permission profiles, a policy check per call, budgets, egress allow-lists
ASI03: Identity and Privilege AbusePer-agent identity, short-lived scoped credentials, per-action authorisation
ASI04: Agentic Supply Chain VulnerabilitiesCurated registries, signed and pinned components, a supply-chain kill switch
ASI05: Unexpected Code Execution (RCE)Sandboxes without root, no eval, validation before execution
ASI06: Memory & Context PoisoningSegmented memory, validated writes, expiry of unverified entries
ASI07: Insecure Inter-Agent CommunicationMutual authentication, signed messages, anti-replay checks, typed schemas
ASI08: Cascading FailuresIsolation, independent policy checks, rate limits, circuit breakers
ASI09: Human-Agent Trust ExploitationPlain-language risk summaries, previews without side effects, reviewer training
ASI10: Rogue AgentsImmutable audit logs, behavioural monitoring, kill switch and credential revocation

What should regulated European enterprises add?

The same controls, plus evidence that they work. The EU AI Act has no separate category for agents, and NIS2 and DORA regulate organisations rather than technologies, but all three reach agents through existing duties. Which apply depends on the use case, your role and your sector.

  • EU AI Act. The European Commission’s AI Act Service Desk says existing definitions cover agents and calls its considerations preliminary. For a high-risk agent, with obligations from 2 December 2027 (Annex III) or 2 August 2028 (Annex I), Article 14 requires oversight commensurate with the risks, level of autonomy and context of use, so that the people assigned can override its output and halt it in a safe state. Article 15 requires resilience against attempts by unauthorised third parties to alter its use, outputs or performance, and Article 26 requires deployers to assign oversight to people with the necessary competence, training and authority.
  • NIS2. In-scope entities, mainly medium-sized and large organisations in 18 critical sectors, must take cybersecurity risk-management measures, including incident handling and supply chain security, and give an early warning of a significant incident within 24 hours. Agents used in their operations fall under those measures.
  • DORA. Since 17 January 2025, financial entities must manage ICT risk, report major ICT-related incidents, test their resilience and monitor ICT third-party risk; AI agents used in operations are part of that ICT estate. See our guide to DORA, NIS2 and the AI Act in financial services.

This guide is not legal advice. Confirm classification and scope with qualified legal counsel.

How SysArt secures AI agents

We start with what an agent can reach, not with its prompt. We threat-model each agent against the OWASP agentic Top 10, implement the controls with your security team and red-team the result, whether the agent runs on your infrastructure, in your sovereign cloud or in a dedicated SysArt-hosted environment in EU data centres. Read more about our AI and LLM security work and how we build enterprise AI agents.

Frequently asked questions

What is AI agent security?

AI agent security protects AI agents, and the systems and data they can reach, against manipulation and misuse. Agents hold credentials, call tools, keep memory and act without a person checking each step, so a manipulated input can become a real action. The core controls are a separate identity per agent, least-privilege tools, sandboxing, human approval for high-impact actions, tracing and red teaming.

What is the OWASP Top 10 for Agentic Applications?

It is a list of the ten highest-impact security risks for agentic AI systems, published by the OWASP GenAI Security Project in December 2025 as its edition for 2026. The risks run from ASI01, Agent Goal Hijack, to ASI10, Rogue Agents, and include tool misuse, identity and privilege abuse, agentic supply chain vulnerabilities, unexpected code execution, memory and context poisoning, insecure inter-agent communication, cascading failures and human-agent trust exploitation.

How is agentic AI security different from LLM security?

LLM security deals mainly with what a model says, such as prompt injection, data leakage and unsafe output. Agentic AI security adds what the system does. OWASP notes that its prompt injection entry for LLM applications focuses on altering a single response, while agent goal hijack covers redirected goals, plans and multi-step behaviour. Agents also bring identities, tools, memory and messages between agents, each with its own risks.

What are AI agent guardrails, and do they stop prompt injection?

Guardrails are checks on what enters a model, what comes out and what an agent proposes to do, such as injection detection, schema validation and policy checks on tool calls. They reduce risk but do not stop prompt injection: NIST states that current mitigations do not offer full protection. Pair them with deterministic limits, such as least-privilege tools, sandboxing and human approval, which hold when a guardrail is bypassed.

What is AI agent identity?

It is the identity an agent uses to authenticate to systems and to be held to account for its actions. Good practice is one unique identity per agent, distinct from human accounts, with short-lived credentials scoped to the current task, and the requesting user's identity carried through when the agent acts for someone. NIST's National Cybersecurity Center of Excellence is exploring how standards such as OAuth, OpenID Connect and SPIFFE apply to agents.

How do you sandbox an AI agent?

Run the agent's tools and generated code in an isolated environment, such as a properly configured container, a virtual machine or dedicated hardware, without root rights and with file access limited to a working directory. Deny network traffic by default and allow only the destinations a task needs. The UK National Cyber Security Centre describes maturity levels for both; at its strictest network level, the model is hosted locally inside the sandbox.

Which AI agent actions need human approval?

Actions that are destructive, irreversible or high-impact, such as deleting data, transferring money, publishing content or granting access, and steps where the agent departs from its original task. Show the reviewer the exact action and its effect with a plain-language risk summary, not the agent's own justification, because OWASP warns that a hijacked agent can produce a convincing rationale for a harmful step.

How do you test the security of an AI agent?

Red-team it before release and after every change to its model, prompts or tools. Plant instructions in the documents, emails, web pages and tool results it reads, then check whether it takes unintended actions. Test tool misuse, privilege escalation, memory poisoning and attacks through other agents, and repeat each attack: in one NIST evaluation, repeated attempts raised the average attack success rate from 57% to 80%.

Sources

  1. OWASP GenAI Security Project: OWASP Top 10 for Agentic Applications for 2026 (December 2025) · checked 29 October 2026
  2. OWASP GenAI Security Project: LLM01:2025 Prompt Injection · checked 29 October 2026
  3. OWASP GenAI Security Project: LLM06:2025 Excessive Agency · checked 29 October 2026
  4. NIST AI 100-2 E2025: Adversarial Machine Learning, a Taxonomy and Terminology of Attacks and Mitigations (March 2025) · checked 29 October 2026
  5. NIST CAISI: Technical blog, strengthening AI agent hijacking evaluations (January 2025) · checked 29 October 2026
  6. NIST CAISI research blog: Insights into AI agent security from a large-scale red-teaming competition (March 2026) · checked 29 October 2026
  7. NIST CAISI: AI Agent Standards Initiative · checked 29 October 2026
  8. NIST NCCoE: Accelerating the Adoption of Software and Artificial Intelligence Agent Identity and Authorization, draft concept paper (February 2026) · checked 29 October 2026
  9. UK National Cyber Security Centre: Managing the cyber risk of agentic AI (August 2026) · checked 29 October 2026
  10. UK National Cyber Security Centre: Thinking carefully before adopting agentic AI (May 2026) · checked 29 October 2026
  11. UK National Cyber Security Centre: Prompt injection is not SQL injection (it may be worse) (December 2025) · checked 29 October 2026
  12. Canadian Centre for Cyber Security: Joint guidance on the careful adoption of agentic artificial intelligence services (May 2026) · checked 29 October 2026
  13. Model Context Protocol specification (version 2026-07-28): security and trust and safety · checked 29 October 2026
  14. OpenTelemetry: semantic conventions for GenAI agent and framework spans · checked 29 October 2026
  15. AI Act Service Desk: How are AI agents addressed within the AI Act? · checked 29 October 2026
  16. AI Act Service Desk: Article 14, human oversight · checked 29 October 2026
  17. AI Act Service Desk: Article 15, accuracy, robustness and cybersecurity · checked 29 October 2026
  18. AI Act Service Desk: Article 26, obligations of deployers of high-risk AI systems · checked 29 October 2026
  19. European Commission: AI Act, regulatory framework and implementation timeline · checked 29 October 2026
  20. European Commission: NIS2 Directive · checked 29 October 2026
  21. European Commission: NIS2 Directive FAQs · checked 29 October 2026
  22. EIOPA: Digital Operational Resilience Act (DORA) · checked 29 October 2026

Review the security of an AI agent

Bring one agent with its tools, credentials and data sources. We map its threats against the OWASP agentic Top 10, name the priority controls and propose a red-team plan.