Dormant Accounts, Live Agents: How Account Sprawl Turns Indirect Prompt Injection Into a Breach An AI security engineer and red teamer argues that account sprawl—dormant, privileged, or shared identities behind AI agents—turns indirect prompt injection into a full breach, since an agent can only do what its underlying token or OAuth grant permits. The writeup cites Invariant Labs' May 2025 demonstration that a malicious public GitHub issue could hijack an agent via GitHub's official MCP server and leak private repository data, and notes OWASP's 2026 LLM Top 10 keeps prompt injection at number one while excessive agency rises to third. The core claim: "the injection decides what the agent tries; the identity decides how much damage it can do. 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 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. 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. Most teams quietly assume the model will refuse the obvious attacks. The public data says it won't, at least not every time. 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. 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." A forgotten account doesn't cause prompt injection. It decides what a successful injection is worth. Across agent deployments, I see five amplifiers. 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. 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: 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. If you red-team your own agents, a few habits separate real findings from noise: This is what I'd hand any team giving agents access to its email, code, tickets or money. Know your identities Scope the agents Make provenance visible Watch it 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.