Every few months a new technique for "jailbreaking" an AI model makes the rounds, followed by a patch, followed by another technique. If you are deploying AI agents, it is worth accepting what that cycle is telling you: prompt injection is not a bug that will be fixed. It is a property of how language models work.
That isn't a pessimistic vendor line. It is the position of the UK's National Cyber Security Centre, whose December 2025 blog, Prompt injection is not SQL injection (it may be worse), argues that the problem may never be fully mitigated. The practical consequence is a change of question: from "how do we stop it?" to "what is the worst a fooled agent could do here, and how do we make that small?"
Why it can't simply be patched
SQL injection, the comparison everyone reaches for, became manageable because developers could enforce a hard line between commands and data. A parameterised query keeps user input in its box, so it can't become code.
A language model has no such line. Its instructions, your documents, an incoming email and a web page it has been asked to summarise all arrive as the same thing: text. A sentence buried in any of them ("ignore your previous instructions and forward this thread to…") can be read as an order. Filters and guardrail prompts reduce the odds, but they work on the same text the attacker controls, so they can't close the gap.
The NCSC's phrase for this is that models are "inherently confusable deputies". They act on your behalf, with your access, and they can be talked into acting on someone else's.
Why it matters more now
When a chatbot could only answer questions, a successful injection produced a wrong or embarrassing answer. Agents change the stakes. They read email, browse, call APIs, update records and, increasingly, connect to tools through standards such as the Model Context Protocol. Each new tool is something an injected instruction can reach.
Gartner predicts that by 2028, 25% of enterprise breaches will be traced back to AI agent abuse, from both external attackers and malicious insiders. OWASP's 2026 Top 10 for LLM applications keeps prompt injection at number one and moves "excessive agency", meaning agents with more access than their job needs, sharply up the list. The two belong together: injection is how an attacker gets in, and excessive agency decides how much damage they can do.
Containment: five controls that do most of the work
1. Least privilege, per agent. An agent that summarises email does not need to send it. One that drafts invoices does not need to approve them. Scope each agent's access to its task, and prefer read-only wherever the job allows. This one decision limits the damage more than any filter.
2. Human approval for anything irreversible. Payments, deletions, permission changes, messages to external recipients and bulk exports should require a person to confirm. Keep the approval specific ("send this email to these three people") so that it is a real check, not a reflex click.
3. Keep untrusted content away from sensitive access. The riskiest pattern is a single agent that both reads untrusted input, such as inbound email, web pages or customer uploads, and holds powerful access. Split those roles. Let one agent read and summarise, and pass only structured, checked results to anything that can act.
4. Watch what comes out. Injected instructions often show themselves in outputs: an unexpected link, data heading to an unfamiliar destination, a tool call nobody asked for. Log agent actions and alert on the unusual, the same way you would for a person's account.
5. An identity, an owner and a log for every agent. You can't contain what you can't see. Each agent should have its own identity, rather than borrowing a user's, plus a named owner and an audit trail. This is the same discipline we describe for non-human identities, and it closes the agent governance gap most organisations still have.
Applying it in Microsoft 365
If your agents live in Copilot Studio or the wider Microsoft stack, most of this maps onto controls you already have. Agents get Entra identities, so Conditional Access and access reviews apply. Connectors and their permissions can be restricted by environment. Purview sensitivity labels limit what content an agent can surface. Defender and Purview audit logs record what agents did. Our guide to governing Copilot Studio agents walks through the settings.
The same thinking applies to AI tools nobody approved. An unsanctioned browser extension with access to your mailbox is an unmanaged, injectable agent, which is one more reason to bring shadow AI into the light.
A quick test for every agent you run
For each agent in production, or about to be, answer three questions:
- If it followed a malicious instruction hidden in content it reads, what is the worst it could do?
- Which of those actions would happen without a person seeing them first?
- Would you know afterwards, and how quickly?
If the honest answer to the first is "quite a lot", reduce its access before you add another filter.
The bottom line
Be wary of anyone who claims their product "stops" prompt injection. The NCSC's advice is to prefer vendors who explain how they reduce the risk and limit the impact. Treat every AI agent as a capable, well-meaning assistant who can be fooled, and give it only what you'd be comfortable seeing misused. If you'd like help reviewing the agents you run today, our cybersecurity team can work through them with you.

