Chatbots that only answer questions are fairly low risk. Agents that can read your documents, query your systems and take actions on your behalf are a different thing. They’re useful precisely because they can reach things, and that’s also what makes them risky.
The main ways it goes wrong
- Prompt injection. Text the model reads can contain instructions, and the model may follow them. That text might be an email, a web page or a document someone else controls.
- Too many permissions. An agent that can do everything will eventually do something you didn’t intend.
- Data exposure. Context windows, logs and tool outputs can leak information to places it shouldn’t go.
- Unsafe execution. If the agent can run code or commands, a bad instruction can have real consequences.
- No human in the loop. Sensitive actions that happen automatically, with no approval, can’t be undone.
A hypothetical
Say you build an assistant that summarises your inbox and can also send emails. Someone sends you a message with hidden text telling the assistant to forward your latest invoices to an outside address. If the assistant treats that text as an instruction rather than as content, it may do exactly that. No hacking required.
Hypothetical. This is a scenario to show the pattern, not a description of a real incident.
What helps
- Give each tool the minimum permissions it needs, and nothing else
- Treat everything the model reads, and everything it outputs, as untrusted input
- Require human approval for anything sensitive or hard to reverse
- Log what the agent did, so you can see what happened afterwards
- Test it with hostile inputs before you rely on it
Should you use agents at all?
Often yes, they save real time. The point isn’t to avoid them. It’s to design them knowing they can be tricked, and to limit the damage when they are.
If you’re planning an AI project and want security in the design from day one, get in touch.