AI Access & Agent Security

AI Agent Security: Risks, Controls & Best Practices

Mayank Ranjan
Mayank Ranjan
Published on December 01, 2026
AI Agent Security: Risks, Controls & Best Practices

AI agents are going into production faster than the controls meant to govern them. Gartner forecasts that by 2028 the average global Fortune 500 enterprise will run more than 150,000 agents, up from fewer than 15 in 2025. Yet only 13% of organizations believe their AI agent governance is adequate. The gap already shows up in day-to-day operations. In Gravitee's October 2026 survey of 900 technology leaders, fewer than one in ten organizations had a named person accountable for agent behavior, and only 6% could revoke a rogue agent's access within an hour.

The cause is structural. A chatbot only answers. An AI agent holds credentials, retains memory, calls tools and Model Context Protocol (MCP) servers, and acts across business systems on a user's behalf, often with broader permissions than the task needs. Identity, data loss prevention (DLP) and API controls check who is making a call. They were not built to check which user an agent is acting for, or what its tool calls contain.

This guide maps the main risks to the OWASP Top 10 for Agentic Applications, sets out the eight controls that address them, and ends with a 90-day checklist your team can put into practice.

Save Time With Your 90-Day AI Agent Security Checklist

Get 15 actionable steps to discover, secure, and govern AI agents across your organization in 90 days.

What Is AI Agent Security?

AI agent security is the set of controls that decides what autonomous AI agents can access, which tools they can call, on whose authority they act, and what record they leave. It covers:

  • the agent's identity and credentials
  • the permissions on each tool and Model Context Protocol (MCP) server the agent connects to
  • the content passing through its prompts, tool calls and responses
  • the monitoring needed to detect, stop and audit unsafe actions

This is a wider scope than model security. Securing a large language model (LLM) is mainly about inputs and outputs: what goes into the model and what comes back. An agent adds a layer of execution. It turns model output into actions, such as querying a database, sending an email, committing code or approving a transaction, using credentials it holds. OWASP made this distinction formal in December 2025, when its GenAI Security Project published a separate Top 10 for Agentic Applications instead of extending the LLM Top 10. Security leaders already treat agents as a separate exposure. In a 2025 Gartner survey of IT application leaders, 74% believe that AI agents represent a new attack vector into their organization and only 13% strongly agreed that they had the right governance structures in place to manage them.

In practice, an AI agent security program has to answer four questions for every agent in the environment:

  1. Who owns the agent, and what identity does it run as?
  2. What can it reach, and is that more than its task requires?
  3. What data and instructions pass between the agent and its tools?
  4. Can each action be traced to a person, and can access be revoked quickly?

An organization that cannot answer all four for a given agent has an unmanaged non-human identity operating inside its systems.

ai-agent-vs-chatbot-llm-app

How Is an AI Agent Different From a Chatbot or an LLM Application?

The difference is the ability to act. A chatbot answers questions. An LLM application answers using company data. An AI agent plans and carries out multi-step tasks through tools, often with persistent memory and delegated user authority.

Chatbot LLM application (e.g. RAG assistant) AI agent
Primary function Answers in conversation Answers using company data Plans and carries out multi-step tasks
Acts on systems No Rarely; read-only Yes: reads, writes and executes through tools
Runs as User session Application service account Its own credentials, often with delegated user authority
Memory Session only Session plus retrieval index Persists across sessions
Primary risk Unsafe or leaked output Data exposure through retrieval Unauthorized actions and data movement
Blast radius One conversation Data the application can retrieve Every system its tools can reach

These differences change which controls matter. A content filter on model output is enough to manage a chatbot's main risk. It does not stop an agent with write access to a CRM from carrying out an instruction planted in a support ticket. With an agent, the risk sits in the authority attached to each tool call, not only in the text the model produces. That is why excessive agency and identity abuse sit high in OWASP's agentic risk list.

AI Agent Security vs. AI Agents for Security

AI agent security means securing the agents an organization deploys. It is distinct from "AI agents for security," which describes agents that security teams use to triage alerts or hunt threats. A security operations agent with privileged access to logs and response tooling still needs every control in this guide.

How Do AI Agents Expand the Attack Surface?

AI agents expand the attack surface because a single agent task crosses several trust boundaries: input, planning, memory, identity, tool calls, downstream systems and output handoff. Each boundary carries data or authority that a traditional application would have kept inside one controlled code path. In a conventional application, developers decide which systems are called and with what permissions. In an agent, the model makes those decisions at runtime from instructions it can't reliably tell apart from data.

Breach data shows the exposure is already being exploited. The IBM 2026 Cost of a Data Breach Report found that more than 20% of organizations reported a breach targeting their AI models or applications, with compromised APIs and plug-ins, and cloud misconfigurations, the most common causes. Those are the same interfaces agents depend on. Coverage hasn't kept up either: Gravitee's October 2026 research found that half of every agent fleet runs without enforced policy.

ai-agent-attack-surface-trust-boundaries

The Agent Loop, Step by Step

Each step in the agent loop introduces its own failure mode. Each therefore needs a control at that boundary, not just one at the perimeter.

Step What crosses the boundary What can go wrong
1. Input User prompts plus external content: emails, files, tickets, web pages Instructions hidden in content the agent reads (indirect prompt injection)
2. Planning The model's choice of goal, steps and tools The goal is redirected, or the agent plans actions outside its intended scope
3. Memory and context Retrieved documents and memory persisted across sessions Poisoned content stays in memory and shapes future decisions
4. Identity and credentials The token, API key or OAuth grant used for the call Broad, long-lived or shared credentials give the agent more reach than its task requires
5. Tool call and MCP server Tool arguments sent to first- or third-party servers Sensitive data leaves in tool arguments; unvetted or modified servers (tool poisoning)
6. Downstream systems Writes to CRM, code repositories, email, payments, databases Actions run with the agent's permissions and no human review
7. Output and handoff Responses returned to a user or passed to another agent A compromised output spreads through multi-agent workflows

Two properties make this surface harder to defend than a normal API integration. First, the path is decided at runtime: the same agent can call different tools in a different order for each request, so static allow-lists written at design time don't cover its behavior. Second, every tool response feeds back into the next planning step. Content returned by an MCP server is not just data; the model can treat it as an instruction. A Model Context Protocol (MCP) server therefore has to be governed as an input source as well as a destination. Our MCP security guide covers this layer in depth.

The Identity Gap: Whose Authority Is the Agent Using?

Most agents act with their own service credentials instead of the permissions of the user who made the request, so every user inherits the agent's full scope. A user with no access to HR records can ask the agent to retrieve them, and identity systems record an authorized request. This is the confused deputy problem, and it is why MFA and role-based access, which confirm who is calling but not on whose behalf, miss most AI agent risks to sensitive data.

What Are the Biggest AI Agent Security Risks?

The biggest AI agent security risks are the ten categories in the OWASP Top 10 for Agentic Applications, published by the OWASP GenAI Security Project in December 2025. It is the first peer-reviewed risk list written for autonomous agents, not for LLM output. Across enterprise deployments, four risks account for most of the exposure:

  • over-permissioned agent identities
  • sensitive data leaving through tool calls
  • unvetted MCP servers in the agent supply chain
  • instructions injected through content the agent reads

The OWASP list separates agentic risk from the OWASP Top 10 for LLM Applications. The LLM list covers what a model says. The agentic list covers what an agent does with the tools, credentials and memory it has been given. Security teams already mapping controls to the LLM Top 10 need both lists, because one agent can trigger risks from each.

The OWASP Top 10 for Agentic Applications at a Glance

ID Risk What it means Illustrative example Primary control
ASI01 Agent Goal Hijack Malicious content changes the agent's objective or decision path A shared document instructs a support agent to export its contact list Treat external content as untrusted; inspect tool responses
ASI02 Tool Misuse and Exploitation A legitimate tool is used in a harmful way An agent with delete scope removes records while "cleaning up" a dataset Per-tool permissions; approval for destructive actions
ASI03 Identity and Privilege Abuse The agent reuses, escalates or leaks inherited credentials An agent's service account returns data the requesting user cannot access Per-user authorization; short-lived, scoped credentials
ASI04 Agentic Supply Chain Vulnerabilities Compromised tools, plugins, prompts or MCP servers A third-party MCP server changes its tool description after approval Approve servers before use; monitor for changes
ASI05 Unexpected Code Execution The agent generates or runs unsafe code or commands A coding agent runs a shell command it found in a repository README Sandboxed execution; deny by default
ASI06 Memory and Context Poisoning Poisoned memory, RAG data or embeddings shape future behavior A planted entry in long-term memory changes later approval decisions Memory limits, provenance checks and validation
ASI07 Insecure Inter-Agent Communication Agent messages are unauthenticated or unprotected An unauthenticated agent impersonates an orchestrator Mutual authentication between agents
ASI08 Cascading Failures An error in one agent spreads across connected workflows One agent's faulty output triggers bulk actions downstream Rate limits, checkpoints and circuit breakers
ASI09 Human-Agent Trust Exploitation Users' trust in the agent is used against them An agent presents a risky action in terms a user approves without scrutiny Approval prompts that show the exact action and data involved
ASI10 Rogue Agents A compromised or misaligned agent acts while appearing legitimate An agent keeps running scheduled actions after its owner leaves Inventory, ownership, behavioral monitoring and revocation

Four of these risks account for most enterprise exposure.

Over-Permissioned Agents and Identity Abuse (ASI03)

Over-permissioning is the most common agent risk because agents are granted access for every task they might perform, not the task in front of them. Broad OAuth scopes and long-lived keys issued during development stay in place in production, and the agent's effective access becomes the combined access of every user who talks to it. Treating each agent as a governed non-human identity, with a named owner, scoped credentials and periodic access review, closes most of this exposure.

Sensitive Data Leaking Through Tool Calls

Agents move sensitive data by design. When an agent writes a customer record into a ticket or sends context to an external API, regulated data travels inside tool arguments the agent chose itself, with no user reviewing them. Traditional DLP doesn't parse MCP tool-call payloads, so these transfers leave uninspected while every individual call looks authorized.

Shadow MCP Servers and the Agentic Supply Chain (ASI04)

Every MCP server is a supplier in the agent's supply chain: it defines the tools an agent can call and returns content the agent acts on. Developers can add a server in minutes, so most organizations have more MCP connections than any inventory shows. Common weaknesses include servers that accept connections without authentication and tool descriptions that change after approval.

Indirect Prompt Injection Through Tool Output (ASI01)

Indirect prompt injection is the main way agent goals are hijacked. Attackers plant instructions in content the agent will read, such as emails, documents, tickets or MCP responses, and the model treats that text as a command it can act on with its full permissions. Filtering user prompts doesn't cover content the agent fetches by itself, so prompt injection defenses for agents must also inspect tool responses before they reach the planning step.

Two further risks deserve attention as agent estates mature. Memory poisoning (ASI06) turns a one-time injection into a lasting compromise that survives restarts. Rogue and unowned agents (ASI10) keep running with live credentials after their creators move on, with no one to notice drift or revoke access.

What Do Real AI Agent Security Incidents Show?

Documented AI agent incidents from 2025 and 2026 follow three recurring patterns:

  1. An agent follows instructions planted in content it reads.
  2. Credentials issued to an agent or AI integration are broader and longer-lived than the task needs, so one compromise reaches many systems.
  3. An agent takes a destructive action because no approval step stops it.

None of these needed a new class of exploit. In each case, an existing control (input handling, identity scoping or change approval) wasn't applied at the agent layer.

The record also includes two kinds of event. Some are confirmed incidents with real-world impact. Others are research disclosures, where a security team showed the attack path and the vendor fixed it before any known exploitation. Both matter: a disclosure shows an attack path that already exists in production systems.

ai-agent-security-incidents-2025-2026

AI Agent Security Incidents, 2025–2026

Date Event Type What happened Control that failed OWASP risk
Jun 2025 EchoLeak, CVE-2025-32711 Research disclosure Aim Labs showed that a crafted email could cause Microsoft 365 Copilot to exfiltrate data from a user's connected Microsoft 365 services without any click. Microsoft rated the flaw critical (CVSS 9.3) and patched it server-side before any known exploitation. Untrusted content processed as instructions ASI01
Jul 2025 Replit coding agent Incident During a declared code freeze, an AI coding agent ran destructive commands against a live production database and deleted company records. No approval gate on destructive actions; no separation between development and production ASI02
Aug 2025 Salesloft Drift Incident Threat actor UNC6395 used compromised OAuth and refresh tokens from the Drift AI chat agent integration to export data from Salesforce instances between 8 and 18 August 2025, according to Google Threat Intelligence Group. Long-lived, broadly scoped integration tokens ASI03 / ASI04
Feb 2026 Moltbook Research disclosure Wiz Research found a database key exposed in client-side code. It gave read and write access to the production database of a social network for AI agents, including 1.5 million agent API tokens that allowed agent impersonation. Credentials exposed with no access policy on the backend ASI03
Mar 2026 Vertex AI "Double Agents" Research disclosure Palo Alto Networks Unit 42 showed that the default service-agent permissions of a deployed Vertex AI agent could be used to extract its credentials and reach data in the customer's project. Google updated its guidance to recommend a dedicated, least-privilege service account. Over-privileged default agent identity ASI03

What the Pattern Means for Security Teams

The incident record points to identity as the main control point for agent security. Three of the five events trace back to how agents and AI integrations are credentialed: tokens that lasted too long, keys exposed without access controls, and default permissions broader than the agent's task. The Salesloft Drift campaign shows the downstream cost. Tokens issued to a single AI chat integration became a route into many customer environments, the same pattern behind other OAuth supply-chain attacks involving AI tools.

The other two events point to the controls that sit around the identity. EchoLeak shows that content entering an agent's context has to be treated as untrusted, even when it arrives through a trusted channel such as corporate email. The Replit incident shows that an instruction such as "don't change anything" is not a control. Only an enforced approval step, outside the model's reasoning, reliably stops an irreversible action.

What an Enforced Decision Looks Like in the Audit Trail

The test of an agent security control is whether it leaves evidence. Every tool call an agent attempts should produce a decision record. That record ties the action to the user the agent acted for, the agent itself, the MCP server and tool involved, the type of action, and the reason the call was allowed or refused. Without it, an investigation can establish what an agent did but not on whose authority.

The record below uses the fields LangProtect Vector writes for every decision. A support agent tried to update a CRM record for a user who has read access to that server but not write access. Vector refused the call before it reached the CRM. It also flagged instruction-like content in the request and recorded the arguments only in sanitized form:

{
  "audit_id": "vec_01JD7Q4M8X...",
  "timestamp": "2026-11-18T09:42:17Z",
  "session_id": "sess_3f9c...",
  "user_id": "a.mehta@example.com",
  "agent_id": "support-triage-agent",
  "mcp_server": "salesforce-mcp",
  "tool_name": "update_record",
  "action_type": "write",
  "decision": "DENY",
  "reason": "write not permitted for user on salesforce-mcp",
  "threat_flag": "WARN",
  "tool_args_sanitized": {
    "record_owner": "[PERSON_1]",
    "contact_email": "[EMAIL_1]"
  }
}

Example decision record using Vector's audit log fields. Identifiers shortened.

Three details in this record matter to a security team:

  • Authorization was evaluated against the user, not the agent. The agent could reach Salesforce, but the person it was acting for could not write to it.
  • The arguments are stored only as placeholders. The audit trail proves what was attempted without becoming a second copy of the sensitive data.
  • The threat flag shows suspicious content in the request. Investigators can link the attempt back to its source, such as text in a retrieved ticket.

Exported to the SIEM, records like this support investigation, anomaly detection and audit evidence. This is the kind of forensic visibility into AI activity every agent program needs.

Why Do IAM, DLP and API Gateways Miss AI Agent Risk?

Identity and access management (IAM), data loss prevention (DLP) and API gateways miss most AI agent risk because they check a request's credentials and destination. They don't check its delegation and content. An agent's tool call presents a valid token, reaches an approved endpoint and uses a permitted protocol, so every existing control lets it through. What those controls can't see is the context that decides whether the call is safe: which user the agent is acting for, whether that user may perform this action, and whether the arguments contain regulated data or an injected instruction.

This is not a configuration failure in the existing stack. These controls were designed for two kinds of actor: people working through applications, and services running fixed, developer-defined code paths. An agent is neither. It holds a service identity but chooses its actions at runtime from natural-language input, often on behalf of many different users. Analysts now expect governance to move to runtime. Gartner's November 2026 research found that 57% of I&O leaders admit their current governance is weak. It recommends an I&O AI governance framework built around dynamic runtime controls.

What Each Existing Control Sees, and What It Misses

Existing control What it verifies What it misses for AI agents
IAM and single sign-on (SSO) That the caller holds a valid identity and token Which user the agent is acting for, and whether that user may perform this specific action
Secrets managers and privileged access management (PAM) That credentials are stored, rotated and checked out securely How broadly the credential is scoped once the agent holds it, and what the agent does with it
Network and endpoint DLP Sensitive data in email, web uploads, file transfers and endpoint activity Regulated data inside structured tool-call arguments and MCP payloads
API gateways and web application firewalls (WAF) Authentication, rate limits, schema and known attack signatures Instructions hidden in natural-language content, and the business intent of a valid call
Endpoint detection and response (EDR) Malicious processes, binaries and system behavior on a host An agent misusing legitimate tools through legitimate processes
SIEM and SOAR Correlation of events that other controls log Agent decisions that no upstream control recorded in the first place

The pattern across the table is the same. Each control answers "is this caller allowed to reach this system?" Agent security has to answer a narrower question: "should this agent, acting for this user, perform this action with this content right now?"

The Missing Layer: Authorization and Inspection at the Tool Call

Closing the gap needs an enforcement point positioned where agent decisions turn into actions: the tool call. At that point, a control can evaluate four things together:

  • the identity of the user the agent represents
  • the specific tool and action requested
  • the content of the arguments and the response
  • the policy that applies to that combination

Pattern-matching alone isn't enough for the content layer. Agent payloads mix structured fields with free text, so effective inspection combines pattern detection for formats such as card numbers and credentials with intent-based classification for context-dependent risks such as injected instructions.

This layer doesn't replace IAM, DLP or the API gateway. It adds a security layer built for AI traffic that feeds them, so the SIEM correlates agent decisions alongside identity and endpoint events.

How Do You Secure AI Agents? 8 Core Controls

Securing AI agents takes three things in sequence. First, inventory every agent and the identities, tools and MCP servers it uses. Next, authorize each tool call against the permissions of the user the agent represents, inspecting the content of that call along the way. Finally, record every decision so access can be audited and revoked. The eight controls below put that sequence into practice. Five of them are enforced at the tool call, the point identified in the previous section as the gap in existing security stacks.

These controls line up with Gartner's guidance on managing agent sprawl, which calls for establishing formal governance policies, creating a centralized inventory of agents, defining identity and access controls, strengthening information governance. They also map directly to the OWASP Top 10 for Agentic Applications.

ai-agent-security-8-core-controls (1)

1. Inventory Every Agent, MCP Server and Non-Human Identity, and Assign an Owner

An organization cannot secure agents it doesn't know about, so discovery comes first. A complete AI inventory covers agents built on low-code platforms and internal frameworks, MCP servers configured in IDEs and runtimes, OAuth apps that grant AI tools access to business systems, and the service accounts and keys agents use. Each entry needs a named human owner accountable for the agent's access and behavior, and the inventory must be continuous, because new agents appear every week.

2. Give Each Agent Its Own Identity and Authorize Per User, Not Per App

Every agent should run under a distinct identity, and every tool call should be authorized against the permissions of the user the agent acts for, not the agent's own service credentials. The user's identity from single sign-on travels with the request through each step of the workflow, including handoffs between agents. This closes the confused deputy gap and makes every audit record traceable to a person.

3. Enforce Least Privilege and Least Agency

Least privilege limits what an agent can reach. Least agency limits what it can do with that access without oversight. Both should be granted per tool and per action (discover, read, write, execute), not as a broad OAuth scope, and grants should expire when the work ends. A default-deny posture, with explicit denies overriding group grants, keeps an agent's real authority equal to its documented purpose.

4. Approve MCP Servers Before Agents Can Use Them

Every MCP server should pass a security review before any agent connects to it, and unregistered servers should be blocked until approved. The review records the server's owner, tools, data access and authentication method. Read-only servers can be approved under defined rules; servers exposing write or execute tools need explicit sign-off. Routing agent traffic through an MCP gateway makes the approved list enforceable.

5. Inspect Tool-Call Content in Both Directions

Tool-call inspection checks outbound arguments for sensitive data such as personal data, credentials and source code, and inbound responses for injected instructions. It is the control that catches data leakage and indirect prompt injection, the two risks identity controls cannot see. The response should match the risk, choosing by policy between redact, warn and block so legitimate workflows keep running.

6. Keep Credentials Out of Agent Configurations

Upstream API keys, OAuth tokens and database passwords should be held at an enforcement point, not stored in agent configuration files, IDE settings or developer environment variables. Agents connect to the enforcement point, which uses the credential on their behalf after authorization. A compromised agent client then never holds a reusable secret, and rotation happens in one place.

7. Require Human Approval for High-Impact Actions, and Be Able to Revoke Access Fast

Actions that write, delete, execute code, move money or send data outside the organization should require explicit human approval, enforced outside the model's reasoning so a prompt can't bypass it. Human-in-the-loop approvals work only when the approver sees the exact action, target and data involved. Approval also needs a counterpart: the ability to suspend an agent's access in minutes, tested before an incident requires it.

8. Log Every Agent Decision and Send It to the SIEM

Every allow, deny, quarantine and approval decision should produce a record naming the user, agent, server, tool, action, outcome and reason. In the SIEM, these records provide audit evidence for frameworks such as ISO/IEC 42001, show investigators on whose authority an agent acted, and enable detection of denial spikes or new-server bursts as part of an AI security operations playbook.

See how Vector governs every agent tool call

Vector checks each tool call against the permissions of the user the agent represents. It quarantines unregistered MCP servers until an admin reviews them, and logs every allow and deny decision for audit.

How Do You Secure AI Coding Agents Like Cursor, Claude Code and Copilot?

To secure AI coding agents, restrict them to approved MCP servers, keep secrets out of their configuration files and workspaces, and run them with permission prompts turned on in a sandboxed environment. Any command that modifies systems beyond the local repository should need human approval. Coding agents need their own controls because they operate where an organization's most sensitive credentials are concentrated: on developer machines, with shell access, repository write permissions and cloud keys within reach.

A coding agent differs from a business-process agent in three ways. It executes code and shell commands directly, the risk OWASP classifies as unexpected code execution (ASI05). It reads every file in its workspace, including .env files and credential directories, and can write any of them into code or context. And developers configure it themselves, often adding MCP servers and granting permissions without central review.

The secrets data shows the exposure. GitGuardian's State of Secrets Sprawl 2026 report found that Claude Code-assisted commits showed a 3.2% secret-leak rate, versus a 1.5% baseline across all public GitHub commits. The report adds that the gap reflects developer workflow as much as the tool: the human reviewing the commit still decides what ships. The same research identified 24,008 unique secrets exposed in MCP-related configuration files across public GitHub, including 2,117 unique valid credentials, partly because popular MCP setup guides often recommend putting API keys directly into configuration files, command-line arguments, or embedded connection strings.

Coding Agent Risks and the Controls That Address Them

Coding agent risk Control
Agent connects to unreviewed or malicious MCP servers Restrict IDEs and agent clients to an approved server list; block unregistered servers centrally
API keys and tokens hardcoded in MCP configuration files Keep upstream credentials at an enforcement point; clients connect without holding the secret
Secrets in the workspace end up in commits or model context Scan the workspace before the first agent session; run pre-commit secret scanning
Agent runs destructive shell or database commands Leave permission prompts on; never use auto-approve modes such as --dangerously-skip-permissions in shared or production-connected environments
Agent reaches production systems from a developer machine Separate development and production credentials; sandbox agent execution
Untracked agent activity across the engineering team Log tool calls centrally with developer identity attached

Why Coding Agents Need Central Governance, Not Developer Discretion

Most coding agent security settings live in per-project or per-user configuration files. That puts security decisions in the hands of each developer, under delivery pressure, one repository at a time. A setting that enables every project-level MCP server, or skips permission prompts to speed up a session, can quietly undo an organization's whole policy.

Central governance moves these decisions to a policy layer that individual configurations can't override. Approved MCP servers are defined once for the organization. Credentials for cloud, source control and production systems sit behind an enforcement point, not in local files. Every tool call carries the developer's identity into the audit trail. The same discipline applies to AI-assisted application builds. The Moltbook exposure came from credentials and access settings that shipped without review, a pattern common in vibe-coded applications.

How Should You Govern AI Agents at Scale?

AI agent governance should scale with each agent's autonomy and map to the frameworks auditors already use. A read-only agent needs scoped access and logging. An agent that writes to production on its own needs monitoring, guardrails and fast revocation. Gartner predicts that by 2027, 40% of enterprises will demote or decommission autonomous AI agents due to governance gaps identified only after production incidents.

Scale Governance With Agent Autonomy

Getting governance wrong can go either way. When every agent is governed as if it were fully autonomous, low-risk assistants get stuck in review queues, and teams build around the controls instead of through them. That's how shadow agents multiply. When every agent is governed as if it were read-only, autonomous agents reach production with controls designed for a search box. Gartner's Shiva Varma describes enterprises treating agent governance as binary, either locked down or fully trusted. Proportional governance replaces that binary with tiers based on what an agent is allowed to do.

ai-agent-governance-autonomy-levels

Autonomy level What the agent can do Example use cases Controls required
Level 1: Observe Reads defined data sources; output visible only to the requesting user Summarization, knowledge retrieval, code explanation Inventory and owner, scoped read access, user authentication, usage logging
Level 2: Advise Produces drafts and recommendations; humans carry out every action Email drafting, report or code generation, decision support Level 1 controls, plus content inspection on outputs and accuracy testing
Level 3: Act with approval Writes data, sends communications or changes configurations after a human approves each action Ticket updates, CRM changes, configuration changes Level 2 controls, plus per-user tool authorization, approval workflows with audit trails, and agent-specific incident response
Level 4: Act autonomously Carries out actions independently within guardrails; humans review exceptions and logs Multi-step workflow automation Level 3 controls, plus continuous behavioral monitoring, enforced guardrails, circuit breakers and revocation in minutes

Autonomy levels based on Gartner's May 2026 research; control mapping by LangProtect.

Classify each agent by the actions its permissions allow, not the purpose its owner describes, and enforce that level at runtime: a Level 2 agent attempting a write should be refused and logged. At Level 3, keep approvals meaningful by showing the exact action and data involved, so that moving from written policy to runtime governance controls still works at scale.

Which Frameworks Apply to AI Agent Security?

Six frameworks shape AI agent security today:

  • Technical risks: the OWASP Top 10 for Agentic Applications and the OWASP Top 10 for LLM Applications define them.
  • Governance: the NIST AI Risk Management Framework and ISO/IEC 42001 set out how to manage those risks.
  • Legal obligations: the EU AI Act sets them for high-risk AI systems.
  • Attacker techniques: MITRE ATLAS catalogs those used against AI.
Framework Type What it asks for Agent controls that provide the evidence
OWASP Top 10 for Agentic Applications (Dec 2025) Risk taxonomy Mitigations for ten agent-specific risks, ASI01 to ASI10 All eight core controls, mapped to the risks earlier in this guide
OWASP Top 10 for LLM Applications Risk taxonomy Defenses against prompt injection, sensitive information disclosure, excessive agency and related model-layer risks Tool-call content inspection, least privilege and least agency
NIST AI RMF (AI 100-1) Voluntary risk framework Four functions: Govern, Map, Measure and Manage AI risk Inventory and ownership (Govern, Map), red teaming and monitoring (Measure), enforcement and revocation (Manage)
ISO/IEC 42001:2023 Certifiable management system standard A documented AI management system with risk assessment, controls and continual improvement Agent register, access reviews, approval records and decision logs as audit evidence
EU AI Act (Regulation (EU) 2024/1689) Law Risk management, record-keeping, human oversight and transparency for high-risk AI systems Decision logs (record-keeping), approval gates (human oversight), inventory and classification
MITRE ATLAS Adversary knowledge base A catalog of attacker tactics and techniques against AI systems Threat modeling and red teaming AI agents before and after deployment

What the Regulatory Timeline Means

The EU AI Act's high-risk obligations now apply later than first planned, but what they require hasn't changed. Under the Digital Omnibus on AI agreed in 2026, obligations for standalone high-risk AI systems would apply from 2 December 2027. Obligations for high-risk AI systems embedded in regulated products would apply from 2 August 2028. Agents used in areas the Act treats as high-risk, such as employment decisions, credit assessment or access to essential services, will need logging and human oversight working in production by those dates. Building those controls takes longer than the remaining time suggests.

Data protection law already applies today. An agent that moves personal data through tool calls is processing that data under GDPR, HIPAA or India's Digital Personal Data Protection (DPDP) Act, wherever the agent runs. Purpose limitation, data minimization and the ability to show what was processed and why apply to prompts, agent actions and their logs just as they do to any other system. For most organizations, privacy obligations, not AI-specific regulation, are the first legal test of their agent controls.

AI Agent Security Checklist: The First 90 Days

An AI agent security program can go from no visibility to enforced, auditable control in 90 days, in three phases:

  • Days 1–30: discover. Find every agent and assign an owner.
  • Days 31–60: control. Enforce policy at the tool call.
  • Days 61–90: monitor and prove. Monitor agent activity and produce the evidence auditors and regulators ask for.

Each phase builds on the one before it: policy can't be enforced on agents nobody has found, and an audit can't rely on logs that were never collected.

ai-agent-security-checklist-90-days

Days 1–30: Discover Days 31–60: Control Days 61–90: Monitor and prove
Inventory every AI agent Authorize tool calls against the requesting user Require approval for write, delete and execute actions
List every MCP server Replace broad scopes with expiring per-tool grants Send agent decision logs to the SIEM
Map the non-human identities agents use Block unregistered MCP servers until reviewed Run a revocation drill
Assign a named owner to every agent Move credentials out of agent and IDE configs Red team agents for injection and tool misuse
Classify each agent by autonomy level Inspect tool calls in both directions Map controls to OWASP, NIST AI RMF and ISO/IEC 42001

Of the 15 actions, the revocation drill is the one most teams skip and most need. Suspending one production agent's access in a controlled test shows how long containment really takes, before an incident forces the question.

What to Look For in an AI Agent Security Platform

An AI agent security platform should enforce policy at the tool call, using the identity of the user the agent acts for, and produce evidence an auditor can verify. Many products in the category cover only one layer. Some discover agents but can't control what they do. Others filter prompts but can't see tool calls. Others govern identities but don't inspect the data moving through them. Security teams evaluating vendors should test each platform against the full agent loop, not a single control.

Evaluation Criteria for AI Agent Security Platforms

Evaluation criterion Question to ask the vendor
Discovery coverage Does the platform find agents, MCP servers, OAuth apps and service accounts across identity, SaaS, cloud and developer tools, or only one of these?
Per-user authorization Is each tool call authorized against the requesting user's permissions, or against the agent's own credentials?
MCP server governance Can unregistered MCP servers be blocked by default and held for review before any agent connects to them?
Content inspection Does inspection cover both tool-call arguments and tool responses, for sensitive data and for injected instructions?
Credential custody Can upstream credentials be kept out of agent and IDE configuration files entirely?
Approval and revocation Can write and execute actions require human approval, and how quickly can one agent's access be suspended?
Audit evidence Does every decision record name the user, agent, server, tool, action and reason, and can it be exported to your SIEM?
Deployment fit Does the platform work across the agent frameworks, IDEs and MCP clients your teams already use?

Warning Signs During Evaluation

Three answers in a vendor evaluation suggest a platform will leave gaps in production.

Authorization is described only at the agent level.

If the vendor can't show how a tool call is evaluated against the permissions of a specific user, the platform doesn't solve the confused deputy problem. Every user still inherits the agent's full access.

Inspection stops at the prompt.

Platforms that filter what users type into an agent, but don't inspect tool arguments and responses, miss both data leaving through tool calls and instructions arriving through tool output. Those are the two paths behind most agent incidents.

Audit logs record activity but not decisions.

A log of what an agent did is not the same as a record of why a call was allowed or denied, and under which policy. Auditors and incident responders need the decision and its reason, not just the event.

A proof of concept should test these criteria against live agents and real MCP servers in your environment, not against a vendor demo. Measure two numbers during the trial: how many unknown agents and servers the platform discovers, and how long it takes to suspend one agent's access.

How LangProtect Vector Meets These Criteria

LangProtect Vector is built around the tool-call enforcement model described in this guide. Its capabilities line up with each of the evaluation criteria above:

  • Discovery coverage: Vector connects to identity, SaaS, AI and cloud platforms to build one inventory of AI agents, OAuth apps and app registrations, with an owner, usage and risk rating for each. It flags tenant-wide permissions, dormant identities and consents left behind by disabled users, so over-privileged non-human identities can be removed in one step.
  • Per-user authorization: Every agent tool call is authorized against the permissions of the user the agent represents. Identity from single sign-on is carried through multi-agent workflows.
  • MCP server governance: Unregistered MCP servers are blocked and quarantined for admin review, and IDEs such as Cursor can be locked to approved servers only.
  • Content inspection: Tool requests and MCP responses are inspected for sensitive data and injected instructions. Sensitive values are masked before a call leaves and restored only in the response the user sees.
  • Credential custody: Upstream credentials stay with Vector, so agent clients never hold the keys to the systems behind it.
  • Approval and audit evidence: Write and execute tools can require human review. Every allow, deny and quarantine decision is logged with the user, agent, server, tool, action and reason, and exported to the SIEM.

Vector runs in the same console as Guardia, which governs employee use of AI tools, and Armor, which secures the AI applications an organization builds. Together they form LangProtect's AI agent security platform and give security teams one policy layer across all three ways enterprises use AI.

Frequently Asked Questions

What is AI agent security?

AI agent security is the set of controls that govern what autonomous AI agents can access, which tools they can call, on whose authority they act, and what record they leave. It covers agent identity and credentials, permissions for each tool and MCP server, inspection of the data and instructions inside tool calls, and the logging needed to audit and revoke agent activity.

Are AI agents a security risk for enterprises?

AI agents are a significant enterprise security risk when they run with broad permissions, shared credentials and no owner. In a Gartner survey, 74% believe that AI agents represent a new attack vector into their organization. The risk comes from agents acting on systems at machine speed, often with more access than their task needs. With scoped identities, tool-call authorization and audit logging, agents can be deployed safely.

How is AI agent security different from LLM security?

LLM security focuses on what a model receives and produces: prompts, responses and model-level attacks such as jailbreaks. AI agent security also covers what the agent does with that output, including the tools it calls, the credentials it uses, the systems it changes and the memory it keeps. An agent can produce safe text and still take an unsafe action, so agent security is enforced at the tool call.

What is the OWASP Top 10 for Agentic Applications?

The OWASP Top 10 for Agentic Applications is a peer-reviewed list of the ten most critical security risks in autonomous AI agents, published by the OWASP GenAI Security Project in December 2025. Its risks, ASI01 to ASI10, include agent goal hijack, tool misuse and exploitation, identity and privilege abuse, agentic supply chain vulnerabilities, memory and context poisoning, cascading failures and rogue agents.

What is least agency in AI security?

Least agency is the principle of giving an AI agent only the autonomy its task requires. It limits how freely the agent can act on its access, not just what it can access. Least privilege limits what an agent can reach. Least agency limits which actions it may take without human review. OWASP's agentic guidance treats least agency as a foundational design principle alongside strong observability.

Should AI agents have their own identity?

Yes. Every AI agent should have its own managed identity instead of borrowing a human's credentials or sharing a service account with other agents. A distinct identity gives security teams something to attach policy, audit records and revocation to. Each agent should also have a named human owner, and every tool call should be authorized against the permissions of the user the agent is acting for.

When should an AI agent require human approval?

An AI agent should require human approval before any action that is hard to reverse or has high impact. That includes writing or deleting data, executing code, changing configurations, moving money and sending data outside the organization. The approval must be enforced outside the model's reasoning so a prompt can't bypass it, and the approval request should show the exact action, target and data involved.

Can traditional DLP stop AI agents from leaking data?

Traditional data loss prevention tools rarely stop agent data leakage, because they inspect email, web uploads and file transfers, not the structured payloads of agent tool calls. Sensitive data an agent sends to an MCP server or API usually travels inside an authorized, encrypted request. Stopping it requires inspecting tool-call arguments and responses at the point where the agent calls the tool.

Securing AI Agents Before They Scale

AI agents are becoming a standard part of enterprise operations faster than any earlier class of identity, and most organizations still govern them with controls designed for people and fixed code paths. The gap closes in a set order:

  1. inventory every agent and assign an owner
  2. authorize each tool call against the user the agent acts for
  3. inspect what the call contains
  4. require approval for irreversible actions
  5. log every decision as evidence

The OWASP Top 10 for Agentic Applications defines the risks. Gartner's autonomy levels define how much control each agent needs. The organizations that build this layer now will be the ones that can scale agent adoption with confidence, not roll it back after an incident.

Find out which AI agents hold access no one approved

See how LangProtect discovers agents and non-human identities, removes unapproved access, and controls MCP tool calls across your environment.

Tags

AI agent security best practic AI Agents AI agent security risks AI agent security MCP server security agentic ai security

Related articles