An accounts team gives an AI agent access to its shared inbox. The agent reads supplier emails, matches invoices to orders and updates the payment details on file when a supplier writes to say its bank has changed. One morning an email arrives that looks like any other remittance note. Somewhere in its text, in a line a person would skim past, it tells the agent that the supplier’s account has moved and that the outstanding invoices should be paid to the new one. The agent reads the email, as it was built to do. Whether it then acts on that line depends far less on how capable the model is than on what the agent was allowed to do after reading it.

This is prompt injection: text inside the content an agent processes that the agent treats as an instruction. It is not an exotic attack. Any agent that reads email, documents, web pages, tickets or records written by someone outside the business can be addressed by that someone. The more useful the agent, the more it reads, and the more people can write to it.

The model cannot tell data from instructions

The UK National Cyber Security Centre set out the core of the problem in December 2025. Prompt injection is often compared to SQL injection, a familiar attack in which data typed into a form is run as a database command. SQL injection has a lasting fix, because a database can be told which parts of a query are commands and which are data, and it enforces the separation. A language model has no such boundary. Inside the model there is no distinction between data and instructions, only the prediction of the next token [1].

The conclusion follows directly. Because there is no inherent distinction between the two, the NCSC judges it very possible that prompt injection attacks may never be totally mitigated in the way that SQL injection attacks can be [1]. The OWASP Gen AI Security Project, whose list of the top risks for applications built on language models puts prompt injection first, reaches a similar position: given the way models work, it is unclear whether there are fool-proof methods of prevention [2].

Filters lose to an attacker who adapts

The natural response is to filter. Detect suspicious instructions in incoming content, train the model to prefer its operator’s instructions over anything in the data that looks like one, or mark the data so the model treats it differently. The NCSC describes approaches of this kind as an active area of research, and observes that all of them try to overlay a concept of instruction and data on a technology that does not distinguish between them [1].

The strongest evidence on how such defenses hold up comes from a 2025 study of defenses against jailbreaks and prompt injections. Its authors argue that defenses are usually tested against a fixed set of known attack strings or against weak automated methods, when they should be tested against an attacker who studies the defense and adapts to it. Doing exactly that, with gradient descent, reinforcement learning, random search and human-guided exploration, they bypassed 12 recent defenses with attack success rates above 90 percent for most. The majority of those defenses had originally reported near-zero attack success rates [3].

That gap is the part that matters to a business. A defense that reports near-zero success against known attacks says little about the attacker who reads the defense first. As the study’s title puts it, the attacker moves second, and a filter that works today is a filter someone is already working around.

Ask what the agent can do, not what it will believe

If an agent cannot be made reliably immune to what it reads, the useful question changes. It is no longer whether the agent will be fooled, but what happens when it is. The NCSC describes a language model as an inherently confusable deputy: a component with privileges that can be talked into using them on behalf of someone who has fewer. It recommends managing prompt injection by reducing both the risk and the impact, and is direct about the limit. If a system’s security cannot tolerate the remaining risk, it may not be a good use case for language models [1].

Its practical advice is short: do not let a model that processes email from random external people have access to privileged tools [1]. OWASP’s recommended mitigations point the same way. Restrict the model’s access privileges to the minimum necessary for its intended operations, handle extensible functions in code rather than handing them to the model, and require human approval for high-risk actions [2].

Design that holds when the model is fooled

Research on secure agent design has started to turn that principle into architecture. A 2025 paper by fourteen authors proposes a set of design patterns for building agents with provable resistance to prompt injection. Their common guiding principle is stated plainly: once an agent has ingested untrusted input, it must be constrained so that it is impossible for that input to trigger any consequential action, meaning any action with negative side effects on the system or its environment [4].

The patterns give up flexibility for that guarantee in different ways. In one, the agent only selects from a fixed set of actions and receives nothing back from them, so there is no channel through which injected text can reach it. In another, the agent fixes its plan before it handles any untrusted data, so the data can shape what comes back but cannot make the agent deviate from the plan, although the authors note this does not stop every injection. In a third, a privileged model plans and uses tools while a quarantined model with no tools processes the untrusted text, and what it hands back must meet strict constraints. The authors weigh the cost of each pattern in utility against what it gains in security [4].

A related design called CaMeL makes the separation precise. It extracts the control and data flows from the trusted request, so the untrusted data retrieved along the way can never change the program flow, and it uses capabilities to stop private data leaving through unauthorized paths. On the AgentDojo benchmark it solved 77 percent of tasks with provable security, compared with 84 percent for an undefended system [5].

Those seven points are the price of the guarantee, and they deserve a careful reading. A secure agent does slightly less than an unprotected one. What it does, it does without the risk that a line in a supplier’s email rewrites the task. For most business work that is the right trade. A step that cannot be completed safely goes to a person, and a step that can is completed the same way every time.

Questions to ask before an agent reads anything

None of this requires a business to follow the research on adversarial attacks. It requires a few design questions to be answered before an agent is connected to anything. What will this agent read that someone outside the business wrote? What could it do after reading it? And could anything it reads change which of those actions it takes?

Where the answers are uncomfortable, the remedies are structural. Keep reading and acting apart, so the part of a workflow that reads an inbound email cannot also change a payment record. Fix the steps of a workflow before it touches untrusted content, so the content fills in details rather than choosing actions. Give each step only the access its task needs. And send consequential actions, such as releasing a payment, changing bank details or sending data outside the business, to a person who approves them with the evidence in front of them.

The accounts team at the start of this article does not need an agent that recognizes every fraudulent email. It needs one that cannot change where money goes, however convincing the email is.

How CLAXOS approaches it

Our deterministic agent runtime is the part of CLAXOS that runs each workflow. Every run follows the same steps under your policy, so results are reproducible and every step can be reconstructed and audited. Each workflow starts with an agreed result, a responsible owner, clear authority and an acceptance standard, and consequential decisions, scope changes and changes in authority stay with the responsible person. In our invoice review example, the workflow collects the authorized evidence, matches it to the relevant records, identifies exceptions and presents the packet to the responsible person. Payment approval and the movement of funds remain outside its authority.

How CLAXOS works