What a customer can make your AI agent do: a 5-question check
Prompt injection means that text the AI reads can change what the AI does. If your WhatsApp or email agent reads customer messages, a customer can type something that tries to steer it. The UK National Cyber Security Centre (NCSC) says this problem may never be totally fixed the way SQL injection can be, so the sensible approach is to assume your agent can be confused and to limit the damage when it is. That makes it a permissions question you can answer without being technical. This guide gives you five questions and a short action list. We only cover what the two sources below say.
Two kinds of injection
OWASP defines two forms.
| Type | What it means | Business example |
|---|---|---|
| Direct | A user's own input changes the model's behaviour in unintended ways. | A customer types a message in WhatsApp that tries to make the agent act outside its job. |
| Indirect | The model accepts input from external sources, such as websites or files, and that content changes its behaviour. | Text hidden in an email, an attached file or a web page the agent is asked to read. |
OWASP adds that the change can be deliberate or accidental. The example column is our illustration of each type, not a case from either source.
Why it may never be fully fixed
The NCSC explains the difference from SQL injection. With SQL injection, you can keep data separate from instructions, so the database never treats input as a command. A language model has no equivalent separation: internally it predicts the next token, with no built-in line between data and instructions. The NCSC describes language models as "inherently confusable deputies" and says the realistic goal is to reduce the likelihood and impact. It also says that if a system's security cannot tolerate the leftover risk, a language model may not be a suitable choice for that use.
The 5-question permission check
The NCSC suggests designing as if the model is confusable and using deterministic safeguards that limit what the system can do. These questions turn that into something you can ask a vendor or your own team.
- What can it read? List every data source: customer records, price lists, past chats, documents, inboxes. This list is your starting point for deciding what the agent needs at all.
- What can it send or change? List every action: reply, forward, update a record, create a booking, issue a refund. Actions are where a confused agent causes real harm, because the NCSC notes that tool and API use amplifies the impact.
- Does it have the same access when handling outsiders' messages? The NCSC cites a principle that an AI processing content from a party should have no more privilege than that party. Its example is that an AI reading email from external senders should not have access to privileged tools.
- Which actions need a human to approve? OWASP recommends human approval for high-risk, privileged operations. Decide in advance which ones those are for your business.
- Are inputs, outputs and tool calls logged? The NCSC advises logging enough to spot suspicious activity, potentially including full model inputs and outputs, tool use and API calls. It says failed tool or API calls can reveal someone probing before a successful attack.
Defences that are weaker than they sound
- A blocklist of phrases such as "ignore previous instructions". The NCSC says to avoid relying on deny-lists of known attack phrases, since attackers can rephrase endlessly.
- A vendor claim that they "stop" prompt injection. The NCSC advises being wary of products that claim to stop it, and preferring ones that reduce it.
- A strongly worded system prompt alone. OWASP does list constraining the model's role in its prompt as a mitigation, but alongside least privilege, output validation in code, human approval and adversarial testing. Treat it as one layer.
Marking outside content clearly as data, for example by wrapping it in tags, can make injection less likely to succeed, according to the NCSC. It makes attacks harder; it does not make them impossible.
Three common mistakes
- Giving the agent your admin access because it is easier to set up. OWASP recommends least privilege: the minimum access the job needs, with privileged functions handled in code rather than through the model.
- Trusting the prompt to enforce the rules. The NCSC says deterministic safeguards that constrain what the system can do matter more than filtering content, and OWASP says fool-proof prevention is unclear, so do not rely on instructions alone.
- Skipping logs and testing. Without logs you will not see probing. OWASP also recommends regular adversarial testing that treats the model as an untrusted user.
A checklist for today
- Write down every tool the agent can use (send, edit, book, refund, forward)
- Write down every data source it can read
- Mark each item that is triggered by or exposed to messages from outsiders
- For each marked item, cut it to read-only, or add a human approval step
- Check that the agent's access is no wider than what the sender of the message could do or see
- Decide which high-risk actions always need a person to approve
- Confirm that inputs, outputs and tool calls are logged, and who reads the logs
- Ask your vendor how they test with hostile messages, and treat "we stop prompt injection" as a warning sign
- Send your own agent a few odd and hostile messages and see what it will and will not do
How an AI agent fits
An agent that answers customers is useful, and the risk above does not mean you should avoid one. It means the agent should be given only the access its job needs, with a person approving anything sensitive. At MirayaAI we build WhatsApp, voice and ops agents on n8n and the Claude API, scoped to the job and red-teamed before go-live. Whoever builds yours, ask the five questions above and expect clear answers.
Quick answers
What is prompt injection in plain English?
It is when the text an AI reads changes what the AI does, in a way you did not intend. OWASP describes direct injection, where a user's own input alters the model's behaviour, and indirect injection, where content from external sources such as websites or files does it.
Can prompt injection be fully fixed?
The UK NCSC says it may never be totally mitigated the way SQL injection can be, because a language model has no built-in separation between data and instructions. Its advice is to reduce the likelihood and the impact, and to assume the model can be confused.
Is telling the AI to ignore malicious instructions enough?
No. The NCSC warns against relying on deny-lists of known attack phrases, because attackers can rephrase endlessly. OWASP lists constraining the model in its prompt as one mitigation among several, alongside least privilege and human approval.
What is the most useful thing a business owner can do?
Limit what the agent can do. List every tool and data source it can use, and for each one that touches messages from outsiders, cut it to read-only or add a human approval step.
Sources (checked 5 December 2026)
Tell us how it works today. We scope one agent around it and quote a fixed price. No pitch deck.
Book a free 30-minute call