AI Agent Security Risks: Threats and How to Contain Them

Your team shipped an accounts-payable agent eight months ago. It reads supplier invoices, matches them against purchase orders, flags mismatches, and posts the clean ones into the ledger. Last quarter it cleared thousands of documents without a complaint from finance, and the team that built it moved on to the next workflow.

Then a supplier's bank details change in the master record. Someone asks who approved the change, which agent touched it, and which source document it read. The room goes quiet. The logs show a tool call but not which human sponsor authorized it, which prompt version was running, or whether the change came from a legitimate invoice or a line of text buried in a PDF.

That silence is the security problem. Not the model's benchmark scores, and not the jailbreak someone demoed on social media. An agent you can't trace is unsafe even when the underlying model is excellent, because you have no way to bound the damage or prove what happened after the fact.

Six AI Agent Security Risks at a Glance

The agent in that story did nothing exotic. It read a vendor email, matched an amount to a purchase order, and used its payment credentials to release a transfer. Every step was a capability someone configured. The failure was that nobody asked, before go-live, which capabilities the task required and who could prove later what the agent did with them.

Here are the six risks that produce failures like this one, ordered roughly the way a team meets them during deployment.

RiskWhat goes wrongTypical damageFirst controlExcessive permissionsAgent holds broader credentials than its task needsUnauthorized transactions or system changesScope each tool to one taskIndirect prompt injectionInstructions hidden in emails, documents or web pages redirect the agentData exfiltration and unauthorized writesTreat all external content as untrustedData exposureSensitive records enter prompts, logs, memory or third-party toolsPrivacy breaches and compliance failuresMask or tokenize data before the agent sees itPoisoned memory and retrievalFalse facts persist in long-term memory or vector storesRepeated bad decisions across sessionsValidate and expire stored contextUnattributed actionsNo record shows who authorized an agent stepFailed audits and unclear incident ownershipLog every tool call against a named human sponsorCascading tool chainsOne agent calls another agent or API, spreading a bad step downstreamHarm through normal workflow with no attacker involvedEnforce per-hop authorization and a kill switch

The permission row is usually the cheapest to fix, which is why teams start there: you can tighten a scope this afternoon. The attribution row is the one teams often skip, because it fails without notice until an auditor or an incident forces the question.

Read the table as a checklist rather than a taxonomy. If your team can answer every cell in the first-control column for every agent in production, the basics are covered. Any row where nobody can name the control in place today is where the review should begin.

Why Agents Widen the Attack Surface Beyond Chatbots

The difference is the difference between a reference librarian and a new hire with a key card, a payment login and a to-do list. The librarian answers questions. The new hire answers questions and then acts on the answer.

A robot working on a laptop with a digital security shield icon indicating AI agent attack surfaces.

A chatbot's worst outcome is a wrong sentence. An agent interprets multi-step instructions, chooses tools, reads privileged data and writes into external systems, so a single bad interpretation becomes an action with a timestamp and a receipt.

Four changes that widen the surface

  • Multi-step reasoning. The agent decomposes a goal and decides its own sequence, so an error at step two propagates through steps three to six before anyone reviews it.
  • Tool invocation. Each connector, API and code execution path is an access vector with its own permissions, and the agent picks among them at runtime.
  • Privileged data access. Agents reach warehouses, CRMs and document stores that hold records the requester may not be entitled to see.
  • Interaction with external systems. Email, tickets, web pages and partner APIs all become inputs, and inputs are where adversarial content lives.

Adoption has outrun controls. A 2025 global survey of 353 security, IT, and technology professionals found that 82% of organizations were already using AI agents and 98% planned to increase that use over the following year, while only 44% reported having policies designed to secure agents (ITBrief Asia's report on the survey). The same survey found that 80% said their agents had performed unintended actions, including reaching unauthorized systems and downloading sensitive content.

Watch how one misread instruction travels. A procurement agent asked to reconcile a supplier's invoice reads an email that says the remittance address has changed. It updates the supplier record, which is a legitimate capability, and releases payment to the new account. Nothing crashed. No alarm fired. A summary that would have been merely wrong in a chatbot became a changed bank record with money attached.

Security therefore has to govern what the agent does, not only what it says. The model can be capable and still be steered; the controls that hold are the ones around the action.

Excessive Permissions and How Far One Mistake Spreads

Say a finance team builds an invoice agent to read purchase orders and draft payment entries. To make it work, someone attaches a service account that can also edit vendor bank details, because the agent occasionally needs to correct a mismatched remittance address. That single scope decision determines how bad the worst day gets.

The mechanics of how a hijack reaches a tool are worth watching once, because they turn an abstraction into something concrete.

OWASP's threat guidance for agentic applications describes autonomous API calls and code execution as vulnerabilities at the interface between agent autonomy and external systems, and recommends reducing the privileges available to agents operating on a user's behalf. It names the failure modes plainly: tool misuse, identity spoofing or impersonation, privilege escalation, data leakage and unsafe operations. A finance or logistics agent with broad credentials can be induced to call a fully approved API for an unapproved purpose.

Three permission problems to check

  • Standing credentials. Tokens and service accounts that never expire mean yesterday's mistake still works next quarter.
  • Tool scopes wider than the function. A read-only reporting job does not need write access, and a drafting agent does not need release authority.
  • Shared service accounts. When four agents act as the same principal, the audit trail stops at the account, not the agent.
Blast radius is the maximum damage a hijacked agent can do with the access it holds right now, not the damage it was designed to do.

Two scoping habits pay off fast. Before you connect an agent to a shared inbox, check mailbox privacy before connecting AI, because an agent that reads every message inherits every secret inside it. And when agents touch operational systems rather than databases, the stakes change: our work on AI in smart building optimization puts models in the path of HVAC controls, where a wrong write is a hot floor, not a bad paragraph.

For each agent, list four things and make someone sign them off: every tool it can call, the scope each tool grants, which actions require human approval, and the worst outcome if the agent is hijacked with today's access. If the answer to the last question makes the room uncomfortable, the scope is the problem.

How Prompt Injection Hijacks an Agent Through Ordinary Content

A support agent reads inbound email, opens tickets, summarizes shared documents and writes dispositions back to the CRM. Nobody hands it anything hostile. One ticket arrives from a customer whose signature block contains a line addressed to the assistant, instructing it to attach the last five account notes to a reply and send that reply to an outside address.

A diagram illustrating how prompt injection attacks allow malicious actors to compromise AI agent systems and data.

The agent treats that line as part of its task context. It has no reliable way to separate an instruction from data, which is the technical weakness underneath every variant of this attack. The result isn't a wrong answer, it's a redirected tool: unauthorized writes, data exfiltration, destructive operations or a hijacked workflow, as NIST's analysis of agentic AI threats and mitigations lays out.

The success rates are not marginal. In a NIST evaluation of AI-agent hijacking, attackers placed malicious instructions inside data the agent would ingest rather than addressing the model directly. The strongest newly developed attack raised success from 11% for the strongest baseline to 81%. Across five injection tasks the average success rate was 57%, and repeated attempts lifted that average to 80%.

Ordinary business content is an attack channel. A vendor email, a support ticket and a shared document arrive through the same door as a hostile web page.

Controls that belong outside the prompt

  • Classify every external input as untrusted. Emails, tickets, documents and retrieved records are data, never instructions.
  • Keep that content out of the instruction channel. Isolate retrieval context from the system prompt and from tool-selection reasoning.
  • Validate every tool argument against the task. Check the amount, recipient and record ID before a write, payment or deletion runs.
  • Treat each injected instruction you find as a failed test case. Add it to the pre-deployment review so the next agent inherits the lesson.

Assume a determined attacker gets through eventually. Design so that when they do, the agent reaches nothing worth taking.

Data Exposure Through Prompts, Memory and Retrieval

A customer-service agent answering billing questions can leak data through three separate paths, and each path needs a different fix. Records get copied into prompts, model outputs or application logs, where they persist long after the conversation ends. Memory stores keep personal details beyond the purpose they were collected for, so the agent recalls a card ending months later in an unrelated session. Retrieval returns documents the requesting user was never entitled to see, because the search runs with the agent's permissions rather than the customer's.

Three paths, three different failure modes. A single "data leak" fix will miss at least two of them.

Concern about the human path runs high. In the 2025 SANS AI Survey, 71% of respondents worried that employees might pass sensitive information to generative-AI platforms, where it could be exposed to other users or services (SANS Institute's 2025 AI survey). Confidence trails that concern: many security leaders doubt they could deploy AI agents with appropriate guardrails in place.

Memory deserves separate treatment because it makes exposure durable. It works like a notebook the agent carries between conversations: anything written down once can surface later, in a session that has nothing to do with the original task. OWASP's agentic security project identifies persistent memory and external vector stores as distinct attack surfaces, since long-term memory can preserve an adversarial strategy across sessions and content poisoned once can keep steering later reasoning.

Five controls, five different leaks

  1. Classify what the agent can see. Tag fields as public, internal, confidential or regulated, and decide which classes each agent may touch.
  2. Mask or tokenize sensitive fields before they reach the model. A name and a last-four usually carry enough context for the task; sending the full record only widens what can leak.
  3. Scope retrieval to the requesting user's permissions. The agent should never see more than the person on whose behalf it acts.
  4. Set retention and expiry on memory. Write down why each memory type exists and delete it when that reason expires.
  5. Review logs for stored personal data. Prompts and outputs end up in log pipelines that were never designed for them.

Each control closes a different leak, so skipping one leaves a gap the other four cannot cover. An exposure you cannot trace back to a specific agent and data store is also one you cannot close, which is why log reviews belong on the list rather than as an afterthought. Before routing customer data through an agent platform, read the vendor's commitments on retention and third-party exposure; SupportGPT-1 privacy commitments show the level of detail worth expecting.

Why Unattributed Agent Actions Are a Governance Gap

Prompt injection gets the attention, yet an agent that behaves perfectly and leaves no traceable record fails a different test: accountability. When nobody can reconstruct who authorized an action, a strong model has still produced an unsafe system.

A returns agent approves a refund above the policy limit. The customer gets the money, the queue clears, and three weeks later a controller asks who authorized it. The system shows a tool call to the payments API. It does not show which agent made the call, which human sponsor owned that agent, which policy check passed, or which prompt version was live at the time.

A professional woman and a futuristic robot reviewing security logs on a computer monitor in an office.

This is the gap most security programs haven't closed. Recent enterprise research found that only 17% of surveyed organizations assign each agent its own identity, fewer than 10% name a person formally accountable for agent behavior, and only 1 in 8 can fully reconstruct an agent's actions from the prior 30 days (Fidelity's report on the enterprise agent governance survey). Beyond identity, formal inventory and continuous oversight lag behind as well: many organizations run agents that were never formally approved, and round-the-clock monitoring of agent behavior remains the exception rather than the norm.

A stronger model does not close this gap

Upgrading to a better model may reduce how often an agent misreads intent. It does nothing for attribution. Hiring a more careful employee changes the error rate; it does not change the fact that nobody signs the paperwork. The organization still can't prove who authorized an action, what data the agent used, or whether the action violated policy, and those are the questions an auditor, a regulator or a customer's legal team will ask.

For healthcare, finance, telecom, logistics and government teams, the useful question isn't whether an agent can be hacked. It's whether the organization can produce evidence of authorization after the fact.

The test that matters. Pick any consequential action your agents took last month and try to reconstruct it end to end. If that takes more than an hour, you have a governance problem before you have a security incident.

What to require before the next deployment

  • A unique identity per agent, not a borrowed human account or a shared service principal, so the refund call above resolves to one agent, not a credential five agents share.
  • Durable audit trails that link each action to a tool call, a data source and an authorization decision, which is what lets the controller answer in minutes instead of weeks.
  • A named human owner for every agent, recorded in the inventory alongside its tools and scopes.
  • Escalation paths that pause high-impact actions, like an over-limit refund, until a person approves.
  • Evidence retention long enough to survive an audit cycle, not just a debugging window.
  • Incident ownership defined across multi-agent workflows, so a failure in a chain has one accountable responder.

For the policy layer that sits around those controls, a practical AI governance strategy roadmap helps teams sequence identity, inventory and evidence work instead of treating them as one large project.

Tool Chains and How Layered Defenses Cut Injection Success

Plenty of agent incidents need no attacker at all. A triage agent classifies a ticket and hands it to a fulfilment agent, which calls a shipping API with broader rights than the first agent ever had. The fulfilment agent reads a cached customer record that is three days stale, so it updates an address that was already corrected and ships to the wrong place. Every component behaved as configured. The harm came from the chain.

Chains are the norm, and visibility into them is rare. In a survey of more than 380 organizations, 76.8% said their agents invoke other agents or tools that call APIs, but only 12.5% could consistently trace the complete path from instruction through decisions, tools, APIs and outcome, and only 17.5% could automatically stop unexpected behavior in production (Salt Security's analysis of agent control gaps). 32.9% had already found at least one unauthorized, shadow or misconfigured MCP server.

Layered defenses move these numbers, and the trade-off is smaller than expected. A benchmark of 847 adversarial cases across five attack categories and seven language models measured what stacking controls deliver (arXiv study of prompt-injection defenses for retrieval-augmented agents).

ConfigurationAttacks that succeededTask performance retainedUnprotected baseline73.2%BaselineEmbedding anomaly detection, hierarchical guardrails, multi-stage response verification8.7%94.3%

Giving up roughly five points of task performance to cut successful manipulation from 73.2% to 8.7% is a trade most security teams would take without hesitation. The failure mode to avoid is treating any single layer as sufficient; the benchmark's result came from combining three.

Three controls to add at every hop

  • Per-hop authorization. Each agent-to-agent call carries its own scoped credential, so a compromised first agent can't borrow the second agent's rights.
  • Constrained tool outputs. Cap response size, validate schema and reject unexpected fields, so a downstream agent never inherits a surprise instruction.
  • Fast revocation with a kill switch. You need to stop one agent mid-workflow without halting the business process around it.

Static approval can't govern a dynamic graph. Assume the graph changes at runtime and put the controls where the calls happen.

Run a Pre-Deployment Security Review of Your Agents

An agent can score well on every model evaluation and still fail the questions that decide whether it ships: what can it reach, and who answers for what it did. No agent should receive production access until it clears a gate, and each step below scores pass or fail. Start with an initial assessment and risk analysis, then develop the full security assessment from what you find, which is how our own cybersecurity engagements begin.

  1. Inventory the agent. Record every tool, data source and the scope each tool grants. No inventory, no approval.
  2. Assign identity and ownership. A unique agent identity plus one named human sponsor, both written down.
  3. Confirm task-level scopes. One task per tool, with human approval required for high-impact actions.
  4. Test injection directly and indirectly. Classify external content as untrusted, then attempt attacks through email, tickets and retrieved documents.
  5. Verify masking and memory expiry. Sensitive fields must be masked or tokenized before the model sees them, and stored context must expire.
  6. Prove reconstruction. Logs must rebuild every action for at least 30 days, which is the same discipline we apply when managing technical debt in risk control.
  7. Test the cascading failure. Trigger a bad hop and confirm the kill switch stops one agent without stopping the workflow.

Step 6 is where reviews most often fail, and it fails closed. An agent whose actions you cannot reconstruct is unsafe even when nothing has gone wrong yet, because you will have no way to notice when it does.

Testing works best as two passes: automated scanning catches the known patterns, and manual review catches the chains that look normal until the third hop. Access controls, network security reviews and encryption of data at rest and in transit belong in the same gate, not in a later phase.

The rule to apply this week is simple: no agent goes live until each of the seven steps has a named owner.

If you're about to give an agent production credentials and nobody can answer the attribution question, start there. The Faberwork team works on agent identities, role-based access controls, data masking and encryption, and runs both automated and manual testing for vulnerabilities before go-live.

NOVEMBER 15, 2026
Faberwork
Content Team
SHARE
LinkedIn Logo X Logo Facebook Logo