In mid-2025, an attacker sent an email to a company using Microsoft 365 Copilot. The employee never opened it, never clicked anything, never even knew it arrived. Copilot processed the mailbox during a routine summarization, and about forty seconds later, files from OneDrive, SharePoint, and Teams were silently sent to an attacker’s server. No stolen password. No malware. Just a carefully written email, and an AI agent doing exactly what it was designed to do.
That exploit — named EchoLeak — is the clearest window into a new category of security risk: the AI agent. As organizations rush to deploy autonomous AI that can read data, take actions, and make decisions on its own, they’re introducing something their defenses were never built for. This guide explains, in plain English, why AI agents are a genuinely new kind of security risk, how attacks against them actually work, and what it takes to use them safely. No prior AI knowledge required.
2. Why an agent is a new kind of risk
3. Prompt injection: the core attack
4. Memory poisoning and the quiet threats
5. Why it slips past your defenses
6. How to use agents safely
7. Frequently asked questions
1. What an AI agent actually is
An AI agent is not a chatbot, and that distinction is the whole story. A chatbot answers questions — you ask, it responds, nothing happens in the world. An agent takes actions. It reads your data, calls your software and APIs, moves files, sends messages, and makes decisions on its own to accomplish a goal you handed it. Give a chatbot a question and you get words back. Give an agent a task and it goes and does things.
To do that job, an agent needs two things that make it powerful and dangerous in equal measure: real access and real autonomy. It holds genuine credentials to your systems, and it operates without a human approving each individual step — it plans, executes, and adapts on its own. That autonomy is exactly why organizations are racing to adopt agents; it’s also exactly what creates the risk. Adoption is moving fast: surveys show around 83% of organizations plan to deploy agentic AI, yet only 29% feel ready to do so securely. That gap — between how eagerly we’re deploying agents and how little we’ve prepared to secure them — is where this entire problem lives.
2. Why an agent is a new kind of risk
Traditional security is built around a simple boundary: keep outsiders out, and watch insiders for signs of bad intent. An AI agent breaks that model, because it doesn’t fit either category. It’s not an outsider — you gave it credentials and invited it in. It’s not a malicious insider — it has no intent at all. It’s a third thing: an autonomous entity with real access that does exactly what it’s told, including when what it’s “told” was secretly planted by an attacker.
An AI agent is dangerous through obedience, not malice. It doesn’t need to be angry, bribed, or compromised in the traditional sense. It only needs to receive one bad instruction — and it will carry that instruction out flawlessly, at machine speed, using the legitimate access you gave it.
Think about what that means. A human insider who turned malicious would still be limited by conscience, by attention, by the hours in a day, and by the small hesitation of knowing they were doing something wrong. An agent has none of those brakes. It will execute a harmful action as calmly as a helpful one, because to the agent they are the same kind of thing: a task to complete. And it does so at a speed no human could match — reading, transforming, and moving data across every system it touches in seconds. The right way to think about an agent isn’t as a tool. It’s closer to a brand-new employee with sweeping access, perfect obedience, no judgment, and no sense that any instruction might be a bad one.
3. Prompt injection: the core attack
The main way an agent “goes rogue” isn’t on its own — it gets pointed, through an attack called prompt injection. It’s now ranked as the number one security vulnerability for large language models, and for good reason: it’s a working, unsolved attack against AI systems already in production, appearing in over 73% of production AI deployments that security teams have assessed.
Here’s the root of it. An AI agent doesn’t cleanly separate “data it’s processing” from “commands it should follow.” To the model, it’s all just text. So a malicious instruction hidden inside content the agent reads — an email, a document, a web page, a support ticket, a calendar invite — can quietly become an order the agent obeys. The agent was doing its job, reading the content you told it to read. The content told it to do something else, and it complied. This is called indirect prompt injection, and it’s the dangerous variant because it needs no mistake from the user at all.
EchoLeak is the landmark real-world case (formally CVE-2025-32711, rated critical at CVSS 9.3). A single crafted email triggered Microsoft 365 Copilot to exfiltrate sensitive data with zero clicks — the first zero-click data-theft exploit demonstrated against a production enterprise AI assistant. And it wasn’t a one-off: researchers have since found prompt-injection flaws enabling remote code execution through AI coding assistants like GitHub Copilot, and demonstrated agents being driven to harvest personal data and automate attacks. The pattern is always the same — the agent’s legitimate access, aimed by someone else.
4. Memory poisoning and the quiet threats
Prompt injection is the loud attack. There’s a quieter, more unsettling one: memory poisoning. Many agents keep a persistent memory so they improve over time and remember context between interactions. That memory is an attack surface. An adversary who plants a false “fact” into an agent’s long-term memory has done something a one-off attack never could — created persistence.
Imagine an attacker plants, through a normal-looking interaction, the “fact” that invoices from a certain vendor should always be routed to a new payment account. Unlike a standard prompt injection that ends when the conversation ends, the poisoned memory persists. The agent recalls it days or weeks later and acts on it as established truth, long after the original interaction is forgotten and long after anyone would think to look. Beyond memory poisoning, agents introduce other new risks: tool misuse and privilege escalation, where an agent is manipulated into abusing the systems it can access; and credential exposure, where one compromised agent — especially one that holds keys for several others — hands an attacker the access of everything it can reach. Each of these flows from the same source: an autonomous entity with real access and no judgment about how that access should be used.
5. Why it slips past your defenses
The reason the alarms stay silentEverything a compromised agent does happens under valid credentials and looks like normal, authorized activity. There’s no outsider breaking in to detect, no stolen password to flag, no malware signature to catch. The call is coming from inside the house — and the house issued the keys itself.
This is what makes agent attacks so hard to catch with traditional tools. Perimeter defenses look for outsiders getting in; the agent is already inside, invited. Malware detection looks for malicious code; there’s no malware, just an AI doing its job with a poisoned instruction. Credential-theft alarms look for stolen logins; nothing was stolen — the agent is using the exact access it was legitimately given. And because agents act at machine speed, a single bad instruction can cascade into large-scale data exfiltration before any human is even aware a decision was made. The window in which you’d normally notice and intervene simply isn’t there.
The scale of unpreparedness makes it worse. Only about a third of organizations have deployed any dedicated defenses against prompt injection, even as adoption of agents accelerates. Most companies have wired autonomous AI into their systems without updating a single one of the assumptions their security was built on.
6. How to use agents safely
The answer isn’t to avoid agents — they’re genuinely useful and they’re not going away. The answer is to govern them like the powerful, credentialed insiders they are. There’s no single fix; safe use comes from layering a few principles that each close a different part of the gap.
Start with least privilege — the oldest idea in security, and the one most often abandoned with agents. Give an agent only the access its actual task requires, never the sweeping permissions that make it convenient, so that a compromise can only reach so far. Next, treat everything an agent reads as potentially hostile input, not trusted data, because that reading channel is exactly how attackers steer it — the trust boundary of an AI must be treated as a security boundary. Then monitor an agent’s actions the way you’d watch a privileged human account, because that is precisely what it is; unusual behavior from an agent deserves the same scrutiny as unusual behavior from an admin. And for high-impact actions — moving money, changing configurations, deleting data — require human confirmation rather than letting the agent act unsupervised, so a poisoned instruction hits a checkpoint before it causes harm.
The mental model that ties it together: stop filing AI agents under “software” and start filing them under “identity.” We spent decades learning to give humans the least access they need and to watch privileged accounts closely. Then agents arrived, and because applying those lessons felt inconvenient, we handed them broad access and no supervision. The organizations that stay safe won’t be the ones that avoided agents — they’ll be the ones that recognized, early, that they’d hired a new kind of worker: one that never sleeps, never questions, and never means any harm, which is exactly what makes it so dangerous when someone else gets to give the orders.
7. Frequently asked questions
What is an AI agent, and how is it different from a chatbot?
A chatbot answers questions — it produces text. An AI agent takes actions: it reads data, calls software and APIs, moves files, and makes decisions on its own to complete a task. That ability to act, using real credentials and real autonomy, is what makes agents both useful and a new security risk.
What is prompt injection?
It’s an attack where hidden instructions are planted in content an AI agent reads — an email, document, or web page. Because the agent can’t cleanly separate data from commands, it may follow the hidden instruction as if you gave it. It’s currently ranked the number one security vulnerability for large language models.
What was the EchoLeak attack?
EchoLeak (CVE-2025-32711) was a 2025 exploit where a single crafted email caused Microsoft 365 Copilot to exfiltrate sensitive data with zero clicks — no user interaction at all. It was the first zero-click data-theft attack demonstrated against a production enterprise AI assistant, and it showed that an AI’s trust boundary has to be treated as a security boundary.
Why don’t normal security tools catch agent attacks?
Because everything a compromised agent does happens under valid credentials and looks authorized. There’s no outsider to block, no stolen password to flag, and no malware to detect — just an AI using its legitimate access on a poisoned instruction, often at machine speed before anyone notices.
How can organizations use AI agents safely?
Treat the agent as a privileged identity, not a tool. Give it least-privilege access, treat everything it reads as potentially hostile, monitor its actions like an admin account, and require human confirmation for high-impact actions. No single control is enough — safety comes from layering them.
Security, Decoded.
If this made agentic AI risk click, you’ll like the newsletter. One security idea, decoded clearly, every week — free.
Subscribe to SKB Decoded →




