AI agents are moving into daily enterprise work. They read web pages, files and emails, and then act on what they read. That creates a new security risk. One of the most important is indirect prompt injection. This is when an attacker hides instructions inside content that your AI agent reads, so the agent follows them.
What indirect prompt injection is
In a direct attack, someone types harmful commands into the AI system. In an indirect attack, the commands sit inside outside content. That content can be a web page, a document or a dataset. The agent picks it up while doing its normal work.
Here is an illustrative scenario. An HR agent reviews a job candidate by reading their online portfolio. The page contains hidden text that tells the agent to send internal data to an outside server. The agent cannot tell the hidden text from real content. It may simply do what the text says.
Why it is hard to catch in production
Standard security tools look for break-ins. Firewalls and antivirus software watch for unauthorised access. An AI agent that uses valid credentials and does ordinary-looking tasks does not trigger them.
Many AI monitoring tools also miss it. They track things like response time and usage. They rarely check whether the agent's decisions were shaped by hidden instructions. A hijacked agent can look healthy while it does the wrong thing. Security teams may not know for a long time.
A demo hides this problem. In a demo, the agent reads only content you chose. In production, it reads content from the open internet and from many other people.
Controls that reduce the risk
No single control solves this. Teams need several layers.
- A second, checking model. A separate model with no special permissions reads outside content first. It removes hidden text and passes a clean summary to the main agent. If the checker is fooled, it still cannot do real harm.
- Least access. Give each agent only the permissions its task needs. Teams often grant broad access to save time. That makes any hijack far more costly.
- Audit trails. Record what the agent read, what it decided and what it did. When an agent recommends a payment or rates a person, you must be able to trace that decision back to its sources.
- Human review. Send risky or unusual actions to a person before they run. This matters most for actions that move data or money.
How we approach it
We treat security as part of the build, not a step at the end. Our forward-deployed engineers work inside your team. We sit with your security and IT staff from the start. Together we agree what each agent may read, what it may do and who reviews it.
We build the controls into the workflow. That means separate data for each team, audit trails, human review for risky actions, and an on/off switch for each team. You can see how this fits our process. We also build AI agents so they can be reviewed and stopped when needed. Where data must stay in your own environment, we can use an on-premise LLM deployment.
At handover, your team owns these controls. They know how they work and how to change them. Security should not depend on us being in the room.
What to do first
- List every agent that reads outside content, such as web pages, email or uploaded files.
- Check what each agent is allowed to do. Remove any access it does not need.
- Confirm you can trace any agent decision back to its sources.
- Add human review before actions that move data or money.
The internet is full of content written by people you do not know. Agents that work with it need limits, records and review from day one.
Next step
If your team has agent security controls in pilot but not in production, book a discovery call.
Saksham Gupta
Founder & CEO, EduBildSaksham Gupta is the founder and CEO of EduBild, which embeds forward-deployed AI engineers with enterprise teams to ship production AI. Ex-Daimler AG; KIT Germany.



