AI glossary · Safety and regulation
Prompt injection
In one sentence
Prompt injection is an attack in which someone slips instructions into text an AI model reads, such as a message, an email or a web page, to make it do something other than what whoever set it up intended.
Also known as: prompt injection attack · indirect prompt injection · instruction injection
What is prompt injection?
A language model can’t reliably tell “my company’s instructions” apart from “the text I’ve been asked to read”. To the model, it’s all text. If something in that text looks like an order, it may end up following it.
Put it to work
AI agents that look after your customers
From €49/mo + VAT
Voice, WhatsApp and email with the phone line included: agent, numbers and CRM in one fee.
See plans and pricingThat’s prompt injection. It comes in two forms:
- Direct: the user types instructions into the chat to change how the assistant behaves.
- Indirect: the instructions are hidden in content the agent reads on its own, such as an email, a PDF or a web page. This is the more dangerous kind, because the attacker never even talks to the agent.
The name echoes SQL injection, a classic attack on databases. The difference is that here there’s no watertight way to separate data from instructions.
Related to this term
UTIO agents
- Available 24/7 in 26 languages
- Set it up yourself for €0: built from your website
- 14-day free trial, no card needed
From €49/mo + VAT
See plans and pricingHow it works
The risk depends on what the agent can do. An assistant that only answers questions can, at worst, say something inappropriate. An AI agent that reads email and can also send messages, look things up in the CRM or change records is another matter: a planted instruction could make it act on your behalf.
The defences that work are about the system, not the wording:
- Least privilege. The agent has only the permissions it really needs.
- Human confirmation for sensitive actions: payments, bulk sends, deletions, other people’s data.
- Keep data apart from instructions. Outside content is marked as reference material, never as orders.
- Filter inputs and outputs. Flag suspicious content and check what comes out before acting on it.
- Nothing secret in the system prompt: no keys, no passwords.
- Logging of what the agent does, so problems can be spotted and fixed.
All of these are part of the system’s guardrails.
Example
An accountancy practice in Belfast trials an agent that reads incoming email, summarises it and drafts replies. One day an email arrives from an unknown sender with hidden text addressed “to the assistant”, asking it to forward client documents to another address.
The agent has no permission to forward documents or send anything without review: it only prepares drafts. The email ends up as a summary, which the accountant reads and flags as suspicious. The attack goes nowhere, because the agent couldn’t do what it was being asked.
What it means for your business
Before giving an agent access to your email, your CRM or your documents, ask what it can do without anyone checking. That’s the real measure of the risk.
At UTIO, autonomy is gradual: no AI, ask first, draft or automatic, and the agent starts in draft. The email agent quarantines anything suspicious or irrelevant and leaves its replies as drafts in the CRM. Moving up a level is your decision, one task at a time.
Frequently asked questions
What's the difference between prompt injection and jailbreaking?
A jailbreak tries to make the model break its own safety rules. Prompt injection tries to hijack a specific application, so the agent follows someone else's instructions instead of yours. The two are often combined.
Can prompt injection be eliminated completely?
Not today. Models read instructions and data as the same kind of text, so the risk can be reduced but not removed. That's why the main defence is limiting what the agent can do, not just what it can read.
Is a chatbot that only answers questions at risk?
Less than an agent with access to tools. The worst outcome is usually an off-key reply or the bot revealing its instructions. The risk grows when the agent reads outside content and can act: send, pay or change data.
Related terms
- Jailbreak
An AI jailbreak is an attempt to get a language model to bypass its safety rules or the instructions of whoever set it up, using messages designed to trick it or pull its attention elsewhere.
- Guardrails
Guardrails are the safeguards placed around an AI model to keep it within agreed limits: checks on what goes in and comes out, limits on topics and actions, and rules for handing a case to a person when needed.
- System prompt
A system prompt is the set of fixed instructions an AI model receives before any conversation starts. It sets the model's role, its tone, what it knows about the business and what it isn't allowed to do.
- Function calling
Function calling is a language model's ability to reply, instead of with text, with a structured request to use a specific function, giving its name and arguments. Your system runs that function and hands the result back to the model.
- AI agent
An AI agent is a system that uses a language model to understand a request, decide which steps to take and carry them out with real tools, such as your calendar or CRM, until the task is done rather than just replying.
Updated on