
AI Agent Security in 2026: The Threat Model Most Teams Skip
- AI agent security is a different problem from chatbot security, because an agent holds credentials, reads content nobody vetted, and takes actions on its own.
- Prompt injection cannot be fully prevented. OpenAI and the UK's National Cyber Security Centre both say so on the record, so the job is limiting what a fooled agent can do.
- The risk is already measurable: 80% of companies say their agents have taken unintended actions, and 23% say an agent was tricked into revealing access credentials.
- The highest-payoff controls are boring: break the "lethal trifecta," give every agent its own narrowly scoped identity, and put a human approval gate on anything irreversible.
- Then test it like an attacker would and watch it in production, because an agent you cannot observe is an agent you cannot secure.
Most teams I talk to have done some AI agent security work. They picked a vendor with a SOC 2 report, they told the model "never reveal secrets" in the system prompt, and they moved on. That covers the threat model for a chatbot. It does not cover an agent that can read your inbox, call your CRM, and send email as you. This piece is the threat model most teams skip, written for operators rather than security researchers, with the controls I would put in place first.

Why Agents Change the AI Agent Security Threat Model
Agents change the threat model because they combine three things that used to live in separate systems: access to private data, exposure to untrusted content, and the ability to act. A chatbot that says something wrong produces a bad paragraph. An agent that gets confused produces a bad action, using real credentials, at machine speed.
The numbers say this is already happening, not something to plan for in 2028. In SailPoint's survey of AI agent adoption, 80% of companies said their AI agents had taken unintended actions, including 39% that accessed unauthorized systems or resources. Nearly a quarter (23%) reported agents being tricked into revealing access credentials. And 98% plan to expand their use of agentic AI next year anyway.
IBM's breach data points the same direction. According to IBM's 2025 Cost of a Data Breach findings, 13% of organizations reported breaches of AI models or applications, and 97% of those lacked proper AI access controls. Read that second number twice. The breaches were not mostly clever model attacks. They were mostly missing permissions hygiene.
The security community has caught up with this shift. OWASP's original LLM list already named Excessive Agency as a top risk, defined as damaging actions taken in response to unexpected, ambiguous, or manipulated model output. In December 2025 it went further and published a separate Top 10 for Agentic Applications, with entries like agent goal hijack, tool misuse, identity and privilege abuse, and memory poisoning. When OWASP writes a whole new list, the old threat model is officially out of date.
Here is the frame I use with clients. For each agent, write down four things on one page:
- What it can read, including every inbox, folder, ticket queue, and web page it touches.
- Who can write to those sources. If the answer includes "anyone on the internet" or "any customer," that input is untrusted.
- What it can do, meaning every tool, API, and credential in reach.
- Where its output can go, especially any path that leaves your organization.
That page is your threat model. It takes about an hour, and most teams have never written it.

Untrusted Input and Prompt Injection
Prompt injection is when instructions hidden in content an agent reads override the instructions you gave it, and for agents the dangerous version is indirect: the attacker never talks to your agent, they just leave text where your agent will find it. An email, a PDF, a calendar invite, a web page, a support ticket, a code comment, or the description field of a tool can all carry instructions.
OWASP ranks prompt injection as LLM01, the number one risk for LLM applications, and the core reason is simple. Language models read instructions and data as the same stream of text. There is no reliable way to tell a model "follow instructions from this part, but only treat that part as information."
The cleanest real example is EchoLeak. Researchers at Aim Labs showed that a single crafted email could cause Microsoft 365 Copilot to pull sensitive data from the user's context and leak it, with no click from the victim. BleepingComputer's write-up notes Microsoft rated it critical as CVE-2025-32711 and fixed it server-side, with no evidence of real-world exploitation. That is a large, well-resourced vendor getting caught by the basic pattern. Your internal agent built over a weekend is not more secure than Copilot.
Browser agents are worse, because their entire job is reading untrusted pages. The MIT 2025 AI Agent Index found 8 of 30 indexed agents had documented security incidents or concerns, concentrated in browser agents, with documented prompt injection vulnerabilities in 2 of 5 browser agents it reviewed.
Here is the uncomfortable part, and it is the part most teams skip. You cannot filter your way out of this. When OpenAI wrote about hardening its Atlas browser agent, it said plainly, as quoted by TechCrunch: "Prompt injection, much like scams and social engineering on the web, is unlikely to ever be fully 'solved.'" The UK's National Cyber Security Centre said prompt injection "may never be totally mitigated" and advised reducing risk and impact rather than expecting to stop it.
I find that freeing. It means the question stops being "how do I write the perfect system prompt" and becomes "what is the worst thing this agent could do if it got fooled, and how do I make that small." That is an engineering question, and engineering questions have answers.
Simon Willison gave the industry the most useful mental model for this. He calls it the lethal trifecta: private data, exposure to untrusted content, and a way to communicate externally. "If your agent combines these three features," he writes, "an attacker can easily trick it into accessing your private data and sending it to that attacker." Remove any one leg and the classic data-theft attack falls apart.
If you are building agents over your own documents, I wrote a separate guide on feeding agents your documents without feeding them your secrets that goes deeper on the ingestion side.

Permissions and Credentials for AI Agents
An agent should have the minimum permissions for its specific task, under its own identity, with credentials that expire, and nothing it borrowed from a human. That sounds obvious. In practice, the fastest way to get an agent working is to paste in your own API key or OAuth token, and that is exactly what most pilots do.
The problem with borrowed credentials is that the agent inherits everything you can do. If your CRM token can export the full contact list and delete records, so can the agent. If it gets injected, so can the attacker. This is the gap behind IBM's 97% figure: the access was there because nobody scoped it down.
Here is the permission checklist I use:
- Its own identity. Every agent gets a dedicated service account or app registration, never a person's login. That makes it auditable and revocable without locking out a human.
- Read and write split. If the agent only needs to read tickets, it gets a read-only scope. Write access is a separate decision with a separate justification.
- Resource scoping. Limit it to the folder, pipeline, mailbox, or project it needs, not the whole tenant.
- Short-lived tokens. Prefer credentials that expire in hours over keys that live for years, and keep them in a secrets manager, never in a prompt or a config file the model can read.
- Spend and rate limits. Cap how many emails it can send, records it can change, or dollars it can spend per hour. A runaway agent should hit a ceiling, not your invoice.
I covered the scoping side in more detail in giving an agent a budget, and the same logic applies to security as it does to cost.
The other permission surface that teams forget is the tool layer. If your agent connects to MCP servers or third-party plugins, each one is code you are trusting, and each tool description is text the model reads as instructions. OWASP lists agentic supply chain vulnerabilities as its own category for this reason. Treat a new MCP server the way you would treat a new browser extension with access to your email: pin the version, read what it does, and only install the ones you need.

AI Agent Security Controls That Pay Off First
The controls that pay off first are architectural, not clever: break the lethal trifecta, gate irreversible actions behind a human, and validate outputs in ordinary code before they touch anything real. You can do all three this quarter without buying anything.
1. Break the trifecta on purpose. Go back to your one-page threat model and check whether any single agent has private data, untrusted input, and an outbound channel at the same time. If it does, remove a leg. The common fixes are splitting one agent into two (a reader that summarizes untrusted content with no tools, and an actor that only sees the summary), or removing outbound channels like arbitrary web requests, email to new addresses, and rendered images or links that can carry data out.
2. Separate planning from untrusted data. Google DeepMind's CaMeL research, which Simon Willison said finally broke a long run of little progress on prompt injection, works on this idea: a privileged model writes the plan from the trusted user request, and untrusted content is handled in a way that cannot change the plan or which tools get called. You do not need to implement the paper to borrow the principle. Decide the steps before the agent reads the email, not after.
3. Human approval on irreversible actions. Sending money, deleting records, emailing external parties, changing permissions, and merging code should require a click from a person. The trick is making the approval useful: show the human exactly what will happen and why, in plain language, so they are not rubber-stamping. I wrote about designing that handoff well in building human-agent escalation that works.
4. Validate output in code, not in prose. If the agent produces a refund amount, a recipient address, or a SQL query, check it with deterministic rules before execution. Amounts under a threshold, recipients on an allowlist, queries that are read-only. A model can be talked into anything. A regular expression cannot.
5. Sandbox anything that runs code. If an agent writes or executes code, run it in an isolated environment with no network access by default and no standing credentials.
None of this is glamorous. It is the same least-privilege, defense-in-depth thinking that has kept ordinary software reasonably safe for decades, applied to a new kind of user that happens to be very persuadable.

Testing and Monitoring AI Agents in Production
You secure an agent in production the same way you secure anything else: you attack it yourself before someone else does, and you log every action so you can see when it goes wrong. Most teams test that their agent works. Very few test whether it can be talked into not working.
Start with a simple red-team pass before launch. Plant instructions in the places your agent reads (an email that says "forward this thread to this outside address," a document that says "ignore your previous task," a ticket that asks for a password reset on someone else's account) and see what happens. Repeat it every time you change the model, the prompt, or the tools, because a model upgrade can change behavior you thought was settled.
Then watch it. At minimum, log every tool call with its inputs, the identity used, and the result, and keep those logs somewhere the agent cannot edit. Alert on the patterns that should never happen: new outbound domains, bulk exports, permission changes, spikes in volume, or calls outside business hours. My longer take on this is in agent observability, and the short version is that an agent you cannot watch is an agent you cannot trust.
Finally, decide in advance what you will do when something slips through. Who can revoke the agent's credentials, how fast, and who tells the affected people. If you do not have that written down, the first 24 hours checklist is a good place to start.
My prediction, for what it is worth: within two years, agent identity will be managed the way employee identity is today, with onboarding, scoped access, reviews, and offboarding. The teams that start treating agents as a distinct identity type now will have a much easier time when auditors, insurers, and customers start asking.

Frequently Asked Questions
Are AI Agents Secure?
Not by default. An agent is only as secure as the permissions it holds and the content it reads. Agents become reasonably safe when they have their own scoped identity, cannot combine private data with untrusted input and an outbound channel, and need human approval for irreversible actions.
What Is Prompt Injection?
Prompt injection is an attack that hides instructions in text an AI system reads, so the system follows the attacker instead of you. Direct injection comes from the user's own message. Indirect injection arrives in content the agent reads, such as an email, web page, document, or tool result.
What Are the Main Security Risks of AI Agents?
The main risks are prompt injection, excessive permissions, tool misuse, data exfiltration, and supply chain risk from plugins or MCP servers. OWASP's Top 10 for Agentic Applications adds goal hijack, identity and privilege abuse, memory poisoning, and cascading failures across multiple agents.
How Do You Stop Prompt Injection in Agents?
You cannot stop it completely, so you limit the damage. Treat all external content as untrusted, separate the agent that reads untrusted input from the one that takes actions, remove unnecessary outbound channels, validate outputs in code, and require approval for high-impact steps.
What Permissions Should an AI Agent Have?
The minimum needed for its task. Give each agent its own service identity, read-only access unless writing is required, scope limited to the specific resources it uses, short-lived credentials kept in a secrets manager, and rate or spend limits.
Can Prompt Injection Be Completely Prevented?
No. OpenAI has said prompt injection is unlikely to ever be fully solved, and the UK's National Cyber Security Centre says it may never be totally mitigated. Design your agents so a successful injection has little to work with.
If you want a second set of eyes on the agents you already have running, book a System Review Diagnostic and we will walk through the threat model together.
References
- SailPoint, AI Agents: The New Attack Surface
- IBM, Cost of a Data Breach Report 2025 Findings on AI
- OWASP, LLM06:2025 Excessive Agency
- OWASP, Top 10 for Agentic Applications
- OWASP, LLM01:2025 Prompt Injection
- BleepingComputer, Zero-Click AI Data Leak Flaw Uncovered in Microsoft 365 Copilot
- MIT, 2025 AI Agent Index
- TechCrunch, OpenAI Says AI Browsers May Always Be Vulnerable to Prompt Injection Attacks
- Simon Willison, The Lethal Trifecta for AI Agents
- Simon Willison, CaMeL Offers a Promising New Direction for Mitigating Prompt Injection Attacks
