Daily AI Roundupby Bles Software
Guides / ai agent security

AI Agent Security: Threats, Controls, and a Practical Plan

A vendor-neutral guide to AI agent security: the real attack surface, the controls that matter first, how to test them, and what current frameworks still miss.

Direct answer

AI agent security is authorization around an untrusted planner

AI agent security protects the system that turns a model's suggestions into actions. The safest design treats the model as an untrusted planner inside a deterministic control plane. Give every agent a unique identity, short-lived credentials, narrowly scoped tools, independent authorization on every consequential call, isolated execution and memory, hard limits on time and spend, and human approval for irreversible actions. Then log the full action chain and test it with hostile inputs. Prompt-injection filters help, but they cannot decide what an agent is allowed to do. That decision must remain outside the model. Sources: Google Research; OWASP; NIST.

Published by Bles Software14 primary sourcesEditorial method

What AI agent security actually protects

A chatbot produces text. An agent can read files, search private systems, call APIs, execute code, send messages, change records, and hand work to another agent. That changes the security question. You are no longer asking only whether a model can be manipulated. You are asking whether manipulated reasoning can cross a boundary and become an authorized action.

OWASP's AI Agent Security Cheat Sheet names the resulting failure modes: direct and indirect prompt injection, tool abuse, privilege escalation, data exfiltration, memory poisoning, goal hijacking, excessive autonomy, approval manipulation, cascading failures, and unbounded resource consumption. These are not ten separate product categories. They are different ways that untrusted input, probabilistic planning, and real authority can combine. Sources: OWASP.

The practical unit of security is therefore the entire action path: user, external content, model context, memory, planner, tool router, credential, target system, response, and audit record. A safe model connected to an overpowered tool is not a safe agent. A strict tool behind a shared administrator token is not safe either.

The attack surface is larger than the prompt

Prompt injection gets most of the attention because it is easy to demonstrate. It is only the entry point. An attacker does not need the model to reveal its hidden instructions. The useful outcome is to make the agent spend money, disclose data, alter a record, or call a trusted tool with an attacker-chosen argument.

OpenAI describes modern prompt injection as closer to social engineering than a simple prompt override. An agent encounters hostile instructions inside a webpage, email, document, or tool result, then mistakes that content for part of its task. A classifier placed in front of the input may catch obvious strings, but a sufficiently contextual attack can look like ordinary business content. Sources: OpenAI.

SurfaceTypical failureControl that matters
External contentA document or page redirects the agent's goalTreat retrieved content as data, constrain downstream actions
MemoryA poisoned fact changes later runsSeparate trust zones, provenance, expiry, and write approval
Tools and MCP serversA tool description lies or changes after approvalAllowlist, pin, inspect, isolate, and reauthorize
IdentityThe agent inherits broad user or service privilegesUnique identity, short-lived tokens, least privilege
ExecutionGenerated code reaches secrets or production systemsSandbox, egress rules, resource and time limits
Multi-agent handoffTrust expands as tasks cross agentsAuthenticate each hop and preserve the original authority

Start with identity and authority, not a smarter filter

NIST's zero trust architecture gives the right baseline: do not grant implicit trust because a request originates on a particular network or from a familiar component. Authenticate and authorize access before a resource session. Applied to agents, that means the tool gateway checks the acting agent, the represented user, the requested resource, the action, and the current context. The model's own statement that an action is permitted is not evidence. Sources: NIST.

Use a distinct identity for each deployed agent or workload, then issue short-lived tokens for the smallest useful scope. OAuth's current security best practice emphasizes replay resistance, sender-constrained or otherwise protected tokens, and restrictions that reduce token privilege. Do not give one long-lived integration key to every agent in an environment. It destroys attribution and turns one compromise into a shared blast radius. Sources: IETF.

For machine-to-machine environments, SPIFFE is one portable implementation option. Its Workload API supplies cryptographically verifiable workload identities without requiring application code to carry static authentication secrets. The product choice is secondary. The durable requirement is that the control plane can answer which agent acted, for whom, under which grant, and with which exact scope. Sources: SPIFFE.

Keep user delegation separate from agent identity. If an employee asks an agent to update a customer record, the log should preserve both principals. The agent should not quietly become the user, and the user's access should not become a blanket grant for every tool the model can discover.

Put deterministic policy on every consequential tool call

Google's published secure-agent approach separates reasoning defenses from deterministic runtime policy. The model can plan and explain. A policy layer outside the model decides whether an action is allowed. That split is the central architecture choice because probabilistic reasoning should not be the final authority for a deterministic business rule. Sources: Google Research; Google Cloud.

A useful authorization request includes the agent identity, represented user, tool, operation, resource, data classification, amount or consequence, environment, prior approvals, and a hash or version of the tool schema. The decision can then allow, deny, reduce scope, or require a human. Enforce it at execution time, not once when the agent session begins.

The policy should also express negative space. A research agent may read public web pages but cannot sign in, upload files, or follow instructions found in those pages. A support agent may draft a refund but cannot issue one above a threshold. A coding agent may run tests in an isolated workspace but cannot read production credentials or open arbitrary network connections.

This is why an AI firewall is a supporting control, not the control plane. OpenAI notes that fully developed attacks are often missed by systems that try to classify content as malicious or benign. A missed detection should still hit an authorization boundary before it becomes an irreversible action. Sources: OpenAI.

Secure MCP and other tool supply chains

Model Context Protocol makes tool integration easier, but ease of discovery is also a supply-chain problem. OWASP's MCP Security Cheat Sheet covers tool poisoning, tool shadowing, confused-deputy behavior, over-scoped OAuth, token replay, data exfiltration, supply-chain compromise, and sandbox escape. The server name is not a trust decision, and a readable tool description is not a verified contract. Sources: OWASP.

Inventory every tool server, pin the version or integrity signal where possible, inspect schemas before enabling them, and alert when descriptions or permissions change. Google Cloud's current MCP guidance recommends unique identities, least privilege, separation of data from instructions, isolated memory, tool allowlists, and recovery plans. It also advises against giving an agent simultaneous read and write access to production when the workflow can be split. Sources: Google Cloud.

Treat tool output as untrusted input on the return path. Validate types, size, destinations, and data classification before putting a result into model context. A trusted calendar service can still contain an attacker-controlled meeting description. Trust in the transport does not make the content an instruction.

Contain execution, memory, data, and cost

Containment assumes another defense will fail. Run generated code and high-risk tools in an isolated environment with no ambient credentials, a read-only base where possible, explicit filesystem mounts, restricted network egress, and limits on CPU, memory, time, recursion, tokens, and spend. OWASP explicitly connects excessive autonomy with denial-of-wallet and cascading failures, which makes budget enforcement a security control, not just finance hygiene. Sources: OWASP.

Separate memory by user, tenant, purpose, and trust level. Store provenance with every durable memory item, expire it when the source is no longer current, and do not let arbitrary retrieved content write itself into long-term memory. High-impact facts, such as payment instructions or security policy, need a trusted source or approval before persistence.

Network and data perimeters remain useful even in an agent architecture. Google Cloud's 2026 perimeter guidance combines identity, network, and resource controls to constrain which services and data an agent can reach. The general lesson is vendor-neutral: an authorization mistake should still meet an egress rule, environment boundary, or data policy before sensitive information leaves. Sources: Google Cloud.

Match human approval to consequence

Human approval should be tied to risk, not added to every step. Microsoft's current risk guidance for agents calls for stronger ownership, decision rights, security review, incident response, and recurring review as consequence increases. That is more useful than a generic human-in-the-loop checkbox because a reviewer who cannot see the action, destination, data, and consequence is not providing meaningful control. Sources: Microsoft.

Use three practical tiers. Low-consequence actions, such as summarizing a public page, can run automatically inside hard limits. Reversible business actions, such as creating a draft ticket, can run with notification and a rollback path. Irreversible, externally visible, privileged, or financial actions should require a fresh approval that shows the exact effect. Approval should expire when the target, amount, payload, or tool changes.

Do not allow the model to approve its own exception or to rewrite the approval screen. The control plane should render the review from structured action data. For repeated workflows, approve a narrow policy, such as refunds under a fixed amount to the original payment method, rather than repeatedly asking a person to click through an opaque request.

Log the action chain, then test the controls

Security does not end at prevention. NIST CSF 2.0 organizes cybersecurity outcomes across Govern, Identify, Protect, Detect, Respond, and Recover. An agent program needs all six. Keep an inventory and owner, protect identities and tools, detect abnormal actions, stop active runs, revoke credentials, restore changed data, and learn from the event. Sources: NIST.

A useful audit record keeps the user's request, untrusted inputs encountered, model and prompt versions, retrieved sources, memory reads and writes, plan revisions, tool schemas, authorization decisions, approvals, arguments, results, token and cost counters, and final state. Redact secrets at collection time and restrict access to the trace store. The log should reconstruct what happened without becoming a second copy of every sensitive dataset.

Test before release and continuously after it. NIST's Generative AI Profile applies the AI RMF functions Govern, Map, Measure, and Manage to generative systems. For agents, measurement should include hostile documents, poisoned memory, tool-description changes, privilege escalation attempts, replayed approvals, oversized outputs, recursive loops, and downstream service failure. Score whether the control stopped the action, not whether the model politely refused. Sources: NIST.

Run incident drills with the same seriousness as production tests. Can operators identify every active agent, stop one without stopping the business system, revoke its grants, find what it changed, and restore that state? If the answer depends on reading model transcripts by hand, the response plan is not ready.

  • Trace the represented user and the distinct agent identity.
  • Record every authorization decision and the policy version behind it.
  • Keep tool arguments and effects as structured events, with sensitive fields redacted.
  • Alert on new tools, changed schemas, privilege changes, repeated denials, loops, and unusual spend.
  • Test recovery, credential revocation, rollback, and kill controls before production.

Use frameworks as a map, not as a product checklist

The current frameworks overlap, and that is useful. OWASP gives teams a concrete agent and MCP threat catalogue. NIST AI RMF provides the lifecycle risk process. NIST CSF supplies the cybersecurity operating cycle. Zero trust supplies the authorization model. OAuth and workload-identity standards provide implementation building blocks. Google and Microsoft show how large platforms are translating those ideas into agent control planes.

Regulation adds context, not a universal agent label. Under the EU AI Act, obligations depend on the system, provider or deployer role, and risk classification. Article 15 requires high-risk AI systems to achieve appropriate accuracy, robustness, and cybersecurity throughout their lifecycle and to resist attempts to alter their use, outputs, or performance. That supports controls for poisoning, confidentiality, and resilience, but it does not turn a framework checklist into legal compliance. Sources: European Union.

Build one control matrix that maps each real threat to an owner, preventive control, detective signal, response step, test, and evidence artifact. Map the frameworks into that matrix. Do not create separate programs for every acronym. The same unique identity can satisfy an architecture need, an audit need, and an incident-response need if the evidence is preserved.

A practical rollout order

First, inventory agents, owners, environments, data, tools, and actions. Disable anything nobody owns. Second, give each remaining agent a unique identity and replace broad or static credentials with narrow, short-lived grants. Third, put the highest-consequence tools behind an independent policy check and a structured approval flow. Fourth, isolate execution, memory, and network access. Fifth, add action-level traces, budgets, alerts, and kill controls. Sixth, build adversarial tests from the actual content and tools in the workflow. Only then evaluate whether another filtering product closes a measured gap.

The order matters. A team can spend months improving prompt-injection detection while the agent still holds a shared administrator credential. Identity and runtime authorization reduce the consequence of both known and unknown attacks. Filters reduce how often a particular attack reaches that boundary.

The public Roundup signal map has moved in the same direction across consecutive editions: open defense ecosystems, model control, rogue-agent containment, then full-stack enterprise distribution. Our editorial inference is that the durable security layer is becoming the independent control plane around the model. Model quality will improve. The need to prove who acted, under which authority, against which resource will not.

The shortest acceptable production test is simple: place a hostile instruction in content the agent is expected to read and ask it to perform a nearby legitimate task. Confirm that the content can influence reasoning but cannot expand authority, reach a forbidden tool, disclose protected data, persist an untrusted fact, exceed the budget, or bypass approval. Then confirm the entire attempt is visible in the audit trail. If any one of those checks fails, the agent is not ready for that level of access.

Limits and uncertainty

There is no single control stack that makes an agent safe in every environment. The right boundary depends on the actions, data, users, and legal context involved. OWASP's agent and MCP cheat sheets are continuously updated guidance, not certification standards. NIST AI RMF and CSF are voluntary frameworks, while the EU AI Act applies legal duties according to role and risk classification, not simply because software is called an agent. Vendor architectures cited here are useful primary evidence of current engineering practice, but they are not independent proof that a product is secure. Finally, identity, policy, sandboxing, and observability reduce blast radius. They do not make a probabilistic planner reliable enough for an action whose failure cannot be reversed.

Evidence

Primary sources

AI Agent Security Cheat SheetOWASP · continuously updated, retrieved 2026-07-30
MCP Security Cheat SheetOWASP · continuously updated, retrieved 2026-07-30
An Introduction to Google's Approach for Secure AI AgentsGoogle Research · 2025, retrieved 2026-07-30
How Google secures AI agentsGoogle Cloud · 2025-06-12
AI security and safety for MCPGoogle Cloud · updated 2026-07-27
Govern agents by riskMicrosoft · updated 2026-07-14
SPIFFE Workload APISPIFFE · version 1.15.2, retrieved 2026-07-30
Daily AI Roundup tracks the model, agent, infrastructure, security, and policy changes that matter. The public site shows the source map. Subscribers get the complete analysis by email.Get the full intelligence free