TL;DR. No model refuses every prompt injection, and the public competition data shows it. What you control is the identity your agent acts as. If that identity is an old admin login, a former contractor's token or a shared account nobody watches, one poisoned ticket is enough for a breach. Audit the identities behind your agents before you red-team the agents.
Account sprawl, in plain terms
Account sprawl is the slow build-up of accounts an organization has stopped tracking. A shared admin login from an old project. A former contractor's access. A test account with production rights. A token generated for a script that stopped running a year ago. Each one made sense on the day it was created. Then the person who made it moved on, and the account stayed.
Dormant accounts are the dangerous end of that pile. They are still active, often still privileged, and nobody uses them. Because nobody uses them, nobody notices when someone else starts to.
For years this was treated as identity hygiene, a job for IT. As an AI security engineer and red teamer, I now treat it as an AI security problem. Organizations are connecting AI agents to their email, code repositories, Jira and financial tools, and every one of those agents acts through an account. I keep seeing the same pattern, both when I build red-team scenarios for agents and when I help organizations sort out who owns which account. The injection gets the attention, but the account behind the agent decides how bad it gets.
Why AI agents change the stakes
An AI agent is not a new kind of user. It is a new way of using an old identity: a token, an OAuth grant, a service account, somebody's personal access token. Whatever that identity can do, the agent can do.
Indirect prompt injection (IPI) is what makes that dangerous. A language model has no hard boundary between instructions and data. Your request, its system prompt and the email, Jira ticket or GitHub issue it reads all arrive as one stream of tokens. An attacker doesn't need to talk to your agent. They plant instructions in something it will read later, and your agent carries them out with your access. Greshake and colleagues described this class of attack in 2023, before most companies had connected an agent to anything.
It has happened outside the lab. In May 2025, Invariant Labs showed that a malicious issue on a public repository could hijack an agent connected through GitHub's official MCP (Model Context Protocol) server and make it leak data from the user's private repositories. No bug in the server was needed. The agent held a token that reached both the public repository it was triaging and the private ones it was tricked into reading. Simon Willison's name for this combination is the lethal trifecta: access to private data, exposure to untrusted instructions, and a way to send data out.
The standards bodies have caught up. In the 2026 OWASP Top 10 for LLM Applications, prompt injection stays at number one and excessive agency climbs from sixth to third, the biggest move on the list. OWASP's separate Top 10 for Agentic Applications goes further. Its entry ASI03, Identity and Privilege Abuse, says that without "a distinct, governed identity of its own, an agent operates in an attribution gap that makes enforcing true least privilege impossible."
The line I'd put on a slide: the injection decides what the agent tries; the identity decides how much damage it can do. Red teamers spend most of their time on the first half. Dormant accounts live in the second.
You can't count on the model saying no
Most teams quietly assume the model will refuse the obvious attacks. The public data says it won't, at least not every time.
- In the largest public agent red-teaming competition so far (Zou et al., 2025), participants submitted 1.8 million prompt-injection attacks against 22 frontier agents. More than 60,000 of them produced policy violations, such as unauthorized data access and illicit financial actions. Nearly every agent was broken on most behaviours within 10 to 100 queries, and robustness had little to do with model size or capability.
- A follow-up competition focused on indirect injection (Dziemian et al., 2026) recorded 272,000 attack attempts against 13 frontier models. Every model was vulnerable, with success rates between 0.5% and 8.5%. The study also measured concealment: the harmful action runs while the agent's final answer to the user gives no sign of it.
A 0.5% success rate sounds small until you remember that an attacker can try again for free, and that an agent reading a busy inbox or ticket queue sees thousands of untrusted documents a month. Model robustness is a probability. Permissions are not. The identity behind the agent is the one control you set deterministically, so it is where your defence should start.
What the attacks actually look like
I build and run indirect-injection scenarios against tool-using agents in sandboxed environments, with invented companies, people and tickets. The details vary, but the attacks that land almost always lean on identity, not on clever wording.
Lookalike identities beat clever payloads. The most reliable attacker in my scenarios is not a hidden instruction. It is an account that sounds internal: an "On-call Desk" or "Release Desk" display name on a domain one word away from the company's real one. Agents read display names the way busy people do. In one scenario, a comment from a lookalike on-call account claimed that command of a patient-data incident had passed to a new person at the morning handoff, and asked the agent to reassign the ticket. Some models did it. Nothing in the payload was technically clever; it just looked like routine admin.
The agent becomes a provisioning channel. That reassignment matters more than it looks. When an agent can assign tickets, add members, approve merges or change owners, an injection doesn't only use access; it hands access out. The attacker's account gets the incident, the repository or the payment workflow, and the audit log shows the agent's identity granting it.
Real colleagues lend their credibility without knowing it. If a genuine teammate has written "the release manager will confirm on this ticket," a lookalike account posting that "confirmation" becomes far more convincing. In one scenario this single line took a model from zero successful attacks in eight runs to six. The attacker didn't compromise the teammate; they borrowed the teammate's expectation.
Strong models ask for proof, so attackers bring proof. The most careful agents I've tested don't accept verbal authority. One checked the inbox to confirm that an email someone claimed to have sent had actually arrived. Another refused to share data until it could see a signed agreement on file. Both are good behaviour. But when a plausible signed document appeared in the shared folder the agent was reading, the agent sent the data. When attackers can write to the places your agent treats as the source of truth, verification only moves the attack.
Visible provenance is the strongest defence I've measured. The flip side is encouraging. When the attacker's account was clearly marked as "guest" or "external", every model I tested resisted, every time. When the agent could see that the internal record still said a fix was pending, the weaker models had something to hold on to. Agents defend well when identity and provenance are put in front of them, and badly when they have to infer them. Research points the same way: Microsoft's spotlighting work (Hines et al., 2024) cut injection success sharply just by marking untrusted input so the model could tell it apart from instructions.
Dormant and sprawling accounts make all of these worse. A departed release manager's name is a perfect lookalike target. An unmonitored shared mailbox is a perfect place to plant "the signed agreement." An admin token behind a triage bot turns "reassign this ticket" into "add this person to the organization."
Five ways dormant accounts make IPI worse
A forgotten account doesn't cause prompt injection. It decides what a successful injection is worth. Across agent deployments, I see five amplifiers.
- Blast radius. When someone wires up an agent in a hurry, they reach for the token that "just works", and the shared admin account works everywhere. Put an admin-level token behind an inbox assistant or a ticket-triage bot, and one poisoned email or ticket is talking to an administrator: settings, members, private data, sometimes payments.
- Nobody is watching. Detection assumes a human sees something odd. A ghost account's new-login alerts, security emails and notifications land in a mailbox nobody opens. Actions taken under it look like routine admin work in the audit log, because that's what the account was for.
- Recovery chains. Every account resets through an email, and that email resets through another account. If an AI assistant reads the mailbox that receives your password resets, a single injected email can ask it to forward the next reset link. In many organizations that chain ends at one personal email that quietly controls everything beneath it.
- Delegation without an owner. Agents increasingly hand tasks to other agents or tools, and the full access context often travels with the task. OWASP calls this un-scoped privilege inheritance. When the identity at the top of that chain is a dormant account, no one owns the decision about what it should be allowed to delegate, and no one notices when it does.
- Public breadcrumbs and borrowable names. IPI needs the attacker to know where your agents read and whose identity is worth imitating. A root email printed on a public profile, a public owner list, open issue trackers and the names of people who left last year hand them both: the surface to poison and the name to wear.
The common thread: these are identities with real power and no attention. That is the most valuable kind of identity an attacker can borrow, whether through a phished password or an obedient agent.
OWASP draws the same line from the other direction. Its mapping between the Non-Human Identities Top 10 and the Agentic Top 10 puts improper offboarding ("failure to deactivate or remove unused non-human identities") and over-privileged non-human identities right beside the agentic risks. Dormant accounts are already on the AI security map; most teams just haven't looked there yet.
How a red teamer reads your organization
When I scope an AI red-team engagement now, I start with identities before I write a single payload. These are the questions I ask:
- Which identity does each agent act as? Does any of them hold owner or admin rights, or reach payments and financial tools?
- What untrusted text does each agent read: issues, pull request comments, tickets, emails, shared documents, web pages?
- Can any agent change who has access: assign, add members, change owners, approve, merge?
- Where do password resets for privileged accounts land, and does any agent read that inbox?
- Can anyone outside the organization write to a place the agent treats as a source of truth, such as a shared drive, a wiki or a register?
- Who receives the security alerts for each privileged account, and does a human actually read them?
- Which owners, tokens and app installations haven't been used in months, and who can explain why they still exist?
If an organization can't produce a list of its accounts, owners and recovery emails, that is the first finding in the report. You can't measure the blast radius of an injection when you don't know which identities are in the room.
How to test it properly
If you red-team your own agents, a few habits separate real findings from noise:
- Treat attack success as exposure × persuasion. First ask whether the agent ever reads the poisoned text, and through which tool call. Only then ask whether it believes it. Fixing the wrong half wastes time.
- Run each scenario many times. One run tells you almost nothing. The same agent may resist on Monday and comply on Tuesday. Report a rate, such as "3 of 8 runs".
- Always run a control. Remove the attacker's text and confirm the harmful action stops. Otherwise you may be measuring a confused agent, not a successful injection.
- Make sure the legitimate data doesn't imply the harm on its own. If an internal record already points to the bad action, the agent wasn't fooled. The real data should leave exactly one gap, and the injection fills it.
- Grade on actions, not words. Check which tool was called with which arguments, for example "assigned ticket SEC-224 to an outside account", rather than asking a judge model to interpret what the agent wrote. Words are ambiguous; tool calls are not.
- Give the attacker only public knowledge. A realistic attacker can quote a public issue, not your internal register.
- Test with the real identity. Run the scenario with the token the agent actually uses in production. A finding that only exists under a test account says little about your blast radius.
A checklist for the agent era
This is what I'd hand any team giving agents access to its email, code, tickets or money.
Know your identities
- Keep an account register. Every service, its login email, its owners, its recovery email and who has access. If it isn't written down, it doesn't exist.
- Two kinds of owner. Named personal accounts for daily admin work, so the audit log shows a real person. One organization-owned account, kept in a password manager, for continuity and emergencies.
- Recovery lives outside what it recovers. The email that resets your hosting can't be a mailbox on that same hosting.
- Delete, don't park. An unused account is attack surface with no monitoring. Recreating one takes two minutes.
- Offboard the same day. When someone leaves, their access leaves with them, including the tokens their agents were using.
Scope the agents
- Give each agent its own identity. Never the shared admin account. Use a scoped token or app installation limited to the resources the task needs, with an expiry date and automatic revocation when idle.
- Keep agents out of reset inboxes. The mailbox that receives password resets is the last place an injectable model should read.
- Keep a human on the dangerous writes. Anything that moves data from private to public, changes permissions, reassigns ownership, adds members or moves money waits for approval.
Make provenance visible
- Show the agent who wrote what. Put the sender's real domain and an internal or external flag next to every message, comment and document the agent reads. In my testing, this is the cue models use best.
- Protect the sources of truth. If the agent treats a register, wiki or shared drive as authoritative, outsiders must not be able to write to it.
Watch it
- Route alerts to someone who reads them. Then review owners, tokens and installed apps every quarter.
The part we skip
In AI security we love the clever part: the hidden instruction, the zero-width characters, the toxic flow. I do too. But in my experience, the outcome of an injection is often decided long before the payload is written, by a dull decision about which account the agent runs as and whether anyone is watching it.
Before you red-team your agents, audit the identities behind them. Find your dormant accounts. Some of them will turn out to be only weeks old, created by someone in a hurry to fix something else.
Sources
- Greshake, K. et al. Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (2023). https://arxiv.org/abs/2302.12173
- Invariant Labs. GitHub MCP Exploited: Accessing private repositories via MCP (May 2025). https://invariantlabs.ai/blog/mcp-github-vulnerability
- Simon Willison. The lethal trifecta for AI agents: private data, untrusted content, and external communication (June 2025). https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/
- OWASP GenAI Security Project. OWASP Top 10 for Agentic Applications 2026, ASI03 Identity and Privilege Abuse and Appendix C (NHI mapping). https://genai.owasp.org/
- Check Point. Reading the signals in the OWASP LLM Top 10 2026. https://blog.checkpoint.com/ai-security/reading-the-signals-in-the-owasp-llm-top-10-2026/
- Zou, A. et al. Security Challenges in AI Agent Deployment: Insights from a Large Scale Public Competition (2025). https://arxiv.org/abs/2507.20526
- Dziemian, M. et al. How Vulnerable Are AI Agents to Indirect Prompt Injections? Insights from a Large-Scale Public Competition (2026). https://arxiv.org/abs/2603.15714
- Hines, K. et al. Defending Against Indirect Prompt Injection Attacks With Spotlighting (2024). https://arxiv.org/abs/2403.14720
