Engineering · Agent Security

Agentic AI Security: The Main Risks and How to Secure AI Agents

What agentic AI security means, the OWASP Top 10 risks for AI agents, and a step-by-step way to secure agents with permissions, approvals, limits and records.

Author
Quaspar Research
Published
November 23, 2026
Last reviewed
Last reviewed November 23, 2026
Reading time
11 min read
Article contents

What is agentic AI security?

Agentic AI security

Agentic AI security is the work of protecting AI agents, the tools they can use and the systems they reach, so that an agent can only take the actions it was meant to take, even when it reads bad information or a hidden malicious instruction.

Why agents need different security than chatbots3,4

A chatbot gives an answer that a person can ignore. An agent takes actions. It reads email, opens web pages, calls APIs, updates records, sends messages and sometimes runs code, often with real credentials and without anyone watching each step.

That changes the attack surface. Every email, document, web page, tool result and message from another agent the agent reads is input that can shape what it does next. OWASP describes prompt injection as user prompts that alter the model's behavior or output in unintended ways, and the same is true of text hidden inside content the agent retrieves.

The UK's National Cyber Security Centre puts the core problem plainly: current large language models do not enforce a security boundary between instructions and data inside a prompt. Agent security therefore cannot depend on the model telling the two apart.

The OWASP Top 10 for Agentic Applications, in plain words1,2,10

The OWASP GenAI Security Project released this peer-reviewed list in December 2025 as the 2026 edition. Names are OWASP's; the one-line explanations are our own summaries.

OWASP riskWhat it looks like in practice
ASI01 Agent Goal HijackInstructions hidden in an email or web page quietly change what the agent is trying to do
ASI02 Tool Misuse and ExploitationThe agent uses a legitimate tool in a harmful way, such as bulk-deleting records or sending data out
ASI03 Identity and Privilege AbuseThe agent runs on a borrowed or overly broad account, or its access is used to reach what the requester could not
ASI04 Agentic Supply Chain VulnerabilitiesA third-party tool, plugin, model or prompt the agent depends on is compromised
ASI05 Unexpected Code ExecutionThe agent writes or runs code that does something nobody intended
ASI06 Memory and Context PoisoningFalse information planted in memory or retrieved documents shapes later decisions
ASI07 Insecure Inter-Agent CommunicationMessages between agents are spoofed, altered or trusted without checks
ASI08 Cascading FailuresOne agent's mistake spreads through other agents and connected systems
ASI09 Human-Agent Trust ExploitationA confident, well-written proposal persuades a person to approve something harmful
ASI10 Rogue AgentsAn agent keeps operating outside its intended purpose

The root cause is usually too much agency5,8

OWASP traces most agent damage to excessive agency, and names three root causes: excessive functionality, excessive permissions and excessive autonomy. In other words, the agent had tools it did not need, access broader than its task, or the freedom to act without a check.

A simple example: a support agent that reads incoming email and can also send email to any address. A single email with hidden instructions can turn it into a way to send internal information outside the company. The fix is not a better prompt. It is removing the unrestricted send tool, limiting recipients, or holding outgoing messages for a person.

This is not theoretical. In 2025 Microsoft published CVE-2025-32711, describing AI command injection in Microsoft 365 Copilot that allowed an unauthorized attacker to disclose information over a network. Microsoft addressed it, and it shows the pattern: an assistant that reads untrusted content and can reach sensitive data needs controls beyond the model.

How to secure AI agents, step by step

Each step reduces how much damage a successful attack can do. None depends on the model behaving perfectly.

  1. 01List every agent with its owner, purpose, tools, data and the people it affects
  2. 02Mark every input that comes from outside: emails, web pages, uploaded files, tool results and other agents. Treat all of it as untrusted
  3. 03Give each agent its own identity and only the permissions its job needs. Never run it on a person's account
  4. 04Enforce those permissions at every tool call, in the platform the agent runs on, not in its instructions
  5. 05Separate reading from acting: an agent that reads untrusted content should not also hold unrestricted send, pay or delete tools
  6. 06Hold consequential and irreversible actions for an authorized person who sees the exact action
  7. 07Set hard limits on tool calls per run, run time, spending and allowed recipients or domains
  8. 08Run generated code in a sandbox and restrict where the agent can send network traffic
  9. 09Record every run, tool call and decision outside the agent
  10. 10Practice stopping: test cancelling a run, pausing an agent, revoking credentials and rolling back a change

Illustrative; adapt the order and depth to your agents and risks.

Controls in the prompt versus controls in the platform

Written in the agent's instructionsEnforced by the platform
"Never send customer data outside the company"The agent has no tool that can send to outside addresses without approval
"Ask before issuing large refunds"Refunds above a set amount wait in a queue for a named reviewer
"Only use the CRM for this task"The agent's permissions include the CRM and nothing else
"Stop if something looks wrong"An administrator can cancel the run or pause the agent at once
"Keep a log of what you did"The platform records every tool call, whatever the agent says

Attacks to test before an agent goes live

Keep these as repeatable tests and run them again whenever the agent's tools or instructions change.

  • An email with hidden text asking the agent to forward the inbox somewhere
  • A web page telling the agent to ignore its previous instructions
  • A tool whose description changes after it was approved
  • A request that would push the agent past a spending or volume limit
  • A request to act on another customer's or another team's records
  • A message that claims to come from an administrator or another agent
  • A false fact planted in the agent's memory or knowledge base
  • An approval request whose summary does not match the actual action

Guardrails help, but they are not the boundary9,7,6

Input and output filters catch many known attack patterns, harmful content and leaked personal data, and they are worth running. But they are classifiers, and classifiers miss things. Because models cannot reliably separate instructions from data, plan on some injections succeeding and design so that a hijacked agent still cannot do much harm.

Useful references for that design work: OWASP's AI Agent Security Cheat Sheet covers injection, tool abuse, memory, data exfiltration and multi-agent failures; NIST AI 100-2 E2025, published in March 2025, gives a shared vocabulary for attacks on AI systems; and the joint guidance on deploying AI systems securely, published by the NSA with CISA, the FBI and international partners in April 2024, covers operating AI systems your organization did not build.

Who owns what

Agent owner

Decides the agent's purpose, its tools and permissions, and which actions need approval. Answers for what it does.

Security team

Threat-models each agent, maintains the attack tests and reviews new tools before they are connected.

Reviewers

Approve, edit or reject held actions, with the authority to say no.

The platform

Enforces permissions and limits, holds actions, provides the stop button and writes the record.

Where Quaspar fits

Quaspar is the governance layer for AI agents: teams set what each agent may do, people approve the actions that matter, and everyone can see what happened. Each agent's permissions (which tools, which data, and whether it can only read or also change things) are set when it is created and enforced by Quaspar, never by the model. An automated check reviews each new agent's design, and risky capabilities default to requiring approval. Runs have hard limits on tool calls, run time and daily AI spending. Outgoing messages, submissions and changes to connected systems wait in Workspace for a person, and an administrator can cancel any run or pause any agent instantly. Every run, tool call, approval and rejection goes into an activity record written by Quaspar, not by the agent. Credentials for the tools agents connect to are write-only: nothing Quaspar returns ever includes a stored secret.

Quaspar does not make any agent immune to prompt injection, and no product can. It limits what a misled agent can do and shows you what it tried. Quaspar is in private preview and is not SOC 2 certified.

Next step

Quaspar is the governance layer for AI agents and is in private preview. Request access to set agent permissions, route important actions to people and keep a record of what every agent did.

Request Studio access

Sources

Authoritative references

Rules, standards, and guidance can change. The links below were reviewed on November 23, 2026.

  1. 1OWASP GenAI Security Project. OWASP Top 10 for Agentic Applications for 2026
  2. 2OWASP GenAI Security Project. OWASP Top 10 for Agentic Applications: The Benchmark for Agentic Security in the Age of Autonomous AI
  3. 3UK National Cyber Security Centre. Prompt injection is not SQL injection (it may be worse)
  4. 4OWASP GenAI Security Project. LLM01:2025 Prompt Injection
  5. 5OWASP GenAI Security Project. LLM06:2025 Excessive Agency
  6. 6Cybersecurity and Infrastructure Security Agency. Joint Guidance on Deploying AI Systems Securely
  7. 7National Institute of Standards and Technology. NIST AI 100-2 E2025: Adversarial Machine Learning, A Taxonomy and Terminology of Attacks and Mitigations
  8. 8Microsoft Security Response Center. CVE-2025-32711: Microsoft 365 Copilot information disclosure vulnerability
  9. 9OWASP Cheat Sheet Series. AI Agent Security Cheat Sheet
  10. 10OWASP GenAI Security Project. Agentic AI – Threats and Mitigations