What is inside
Cited
Diagram
Judgement
One word to know. A planted instruction is text hidden in an email, web page or document, written to make an AI agent do something its owner did not intend.
Assume an attacker will sometimes get through, because to an AI agent the text it reads can act as an instruction. Give each agent only the actions it needs, require a person to approve anything that cannot be undone, and test like an attacker before launch and after every change.
When AI can read, decide and act, content becomes a way in. How security leaders protect a company that runs on agents.
One word to know. A planted instruction is text hidden in an email, web page or document, written to make an AI agent do something its owner did not intend.
To an AI agent, text inside an email or a web page can act as an instruction, not only as data [3].
What it reads, what it can do, what it remembers and whose access it carries. Each needs its own control.
In one benchmark, agents followed planted instructions in 24% of test cases, and 47% under a reinforced attack [1].
In another benchmark, a detector added as a defence still left an 8% attack success rate [2].
Give each agent only the actions it needs, and require a person to approve anything that cannot be undone.
AI can write attacks on AI [4]. Run them before launch and again after every change.
Assume an attacker will sometimes get through. Design every agent so that when one does, the harm is small, visible and quickly stopped.
A traditional application treats what it receives as data. Its instructions are written in its code. An AI agent is different. It reads emails, web pages and documents, and text inside them can steer what it does next [3]. Researchers have shown this blurs the line between data and instructions [3].
| Before agents | With agents |
|---|---|
| Inputs are checked for format and size | Inputs are also checked for hidden instructions |
| A program does only what its code allows | An agent may do anything its access allows |
| Access belongs to people and systems | Agents need access, and an identity, of their own |
| Logs record what users did | Logs must also record each step an agent took |
Add agents to the threat model as a new kind of user, one that can be persuaded by anything it reads.
Everything an agent reads, does, remembers and is allowed to touch is part of the attack surface. Naming the four makes it possible to give each one an owner and a control.
| What it reads | Treat outside content as untrusted, and test agents against planted instructions |
| What it can do | Give each agent only the actions it needs, and require approval for anything that cannot be undone |
| What it remembers | Review and expire what agents store, so bad content does not persist |
| Who it acts as | Give every agent its own identity and the narrowest access that works |
Ask for these four answers before any agent goes live. An agent that cannot answer all four is not ready.
Not all content is equally risky. Instructions written by the company's own team can be trusted. A message from a stranger cannot. Sorting content into zones tells the agent, and the people who build it, how carefully each kind must be handled.
| Trusted | Change only through review, like code |
| Checked | Limit to what the task needs, and keep access logged |
| Untrusted | Label it, screen it, and never let it unlock new actions |
| 1 | Which of its sources come from outside the company? |
| 2 | Is outside content labelled as untrusted when the agent reads it? |
| 3 | Can anything in that content widen what the agent is allowed to do? |
| 4 | Has it been tested with planted instructions hidden in that content? |
Make untrusted content the default. Anything from outside the company is treated as possibly hostile until a person says otherwise.
The more harm an action could cause, the less freedom an agent should have to take it alone. Setting that level for each agent, before it goes live, is a direct way to limit the damage of a successful attack.
| Its own identity | Never a person's account, so every action traces to the agent |
| Narrowest access | Only the systems and records the task needs |
| Short-lived access | Permissions that expire and are renewed, not standing keys |
| Review | Someone checks what agents keep between tasks |
| Expire | Stored notes are deleted on a schedule |
| Separate | One customer's details never carry into another's task |
Set each agent's level of freedom, identity and memory rules in writing before it goes live, and review them whenever its tools change.
Two research benchmarks measured how often AI agents follow instructions hidden in what they read. Both found the problem is real, and that today's defences reduce it without removing it [1, 2].
The same research found that agents also fail many ordinary tasks even when no one is attacking them [2]. Reliability and security have to be tested together.
Plan on the basis that a determined attacker will sometimes succeed. Design every agent so that when it does, the harm is small and visible.
Writing attacks by hand is slow, and attackers will not stop at the obvious ones. Researchers have shown that one language model can generate test cases that uncover harmful behaviour in another [4]. Security teams can use the same idea to test agents at a scale people alone could not reach.
| Test | What a pass looks like |
|---|---|
| Planted instructions in each outside source | The agent ignores them, or stops and asks |
| Requests to widen its own access | Refused every time |
| Actions above its level of freedom | Sent to a person for approval |
| Leaks of one customer's details into another's task | None found |
| Switching it off mid-task | It stops cleanly, and the log shows where |
Make a passed test set a condition of launch, and re-run it after every change to the agent's model, tools or instructions.
Because some attacks will get through, each layer should catch what the one before it missed. The three layers below follow the agent's work, from what it reads to what it has done.
| Layer | Its job | If it fails |
|---|---|---|
| Before it reads | Stop hidden instructions reaching the agent | The next layer limits what they can make it do |
| While it acts | Keep every action within the agent's level of freedom | The last layer spots it and stops it |
| After it acts | See every step, flag what is unusual and stop it fast | The step log shows what to undo |
Ask which layer would have caught each incident and each failed test. A layer that never catches anything may not be working.
A model the company runs on its own hardware has no outside service to send data to, and it does not change unless the company changes it. Both are real security gains. In return, the company takes on work a supplier used to do.
| 1 | Control who can reach the model and its training data |
| 2 | Keep a record of which model version is running, and why |
| 3 | Test each new version before it replaces the old one |
| 4 | Watch the hardware and software it runs on, like any other system |
One open example. The Zorp project publishes an owned AI stack as open source, including private memory kept on the user's own machine [10]. The author works on the project. The case for owning, its costs and how to build it are covered in Own Your Intelligence and the CEO, CFO and Chief AI Officer guides [5, 7, 8, 9].
Support owning sensitive work, and agree up front which team secures the owned stack, before the first model goes live.
Any AI the company rents puts a supplier inside its security boundary for the work that supplier does. These questions cover what a security team needs to know before any data is sent.
| The question | A good answer |
|---|---|
| Do you keep what we send you, and for how long? | Not beyond the task, in writing |
| Do you train your models on our data? | No, in writing |
| Where is our data processed? | Named locations we have approved |
| Will you tell us before you change the model? | Yes, with time to re-test |
| How fast will you tell us about an incident? | A stated time, in the contract |
| Who on your side can see our data? | A named, limited group, with access logged |
| Can we test your service against planted instructions? | Yes, and you will share the results |
Make the seven answers part of every AI contract, and re-ask them at each renewal.
An AI incident moves at the speed of the agent. The most important step is the second one, stopping the agent's actions, and it only works if it has been built and rehearsed in advance.
| A switch | Every agent can have its actions stopped in minutes, by more than one person |
| A step log | Every step an agent took, with what it read, kept long enough to investigate |
| A rehearsal | The switch and the log are tested at least twice a year |
| A rule for restart | No agent restarts until the attack that caught it has been added to its tests |
Ask how long it would take to stop each agent's actions today. If no one knows, that is the first thing to fix.
AI risk crosses the whole leadership team. Writing down who owns each risk, and what the security team adds, avoids gaps and arguments when something goes wrong.
| Risk | Owner | What security adds |
|---|---|---|
| An agent is tricked into a harmful action | Security | Tests, controls and the switch |
| An agent leaks data | Security, with legal | Access rules and data zones |
| A model gives wrong answers | Chief AI Officer | Tests for misuse alongside quality tests |
| AI costs run away | CFO | Spending alerts on each AI account |
| A supplier fails or changes | CFO and Chief AI Officer | The seven supplier questions |
| AI changes jobs badly | CEO and people team | Training on safe use of AI |
Take this table to the leadership team in the first quarter, and get each owner to agree to their row. Then agree with the board which actions agents may never take alone, which AI incidents reach it, and how often agents are tested [6].
These figures show whether agents are fenced, tested and ready to stop. Reported each quarter, they show the trend as the number of agents grows.
Report these six each quarter, and add an agent count so the board sees the program grow with them.
This plan brings a company's agents under control in a quarter. The first job is finding them, because agents are easy to start and easy to forget.
| 1 | Every agent is listed, with an owner, what it reads and what it can touch |
| 2 | Every agent has its own identity and the narrowest access that works |
| 3 | Every agent has a written level of freedom |
| 4 | The first round of planted-instruction tests is done and fixed |
| 5 | Switching an agent off has been rehearsed at least once |
Start with the list. An agent no one knows about cannot be fenced, tested or switched off.
Tick the controls that work today across all of your agents.
| The control | In place | |
|---|---|---|
| 1 | We have a list of every AI agent and who owns it. | |
| 2 | Every agent has its own identity, not a person's account. | |
| 3 | Each agent can reach only what its task needs. | |
| 4 | Each agent has a written level of freedom. | |
| 5 | Outside content is treated as untrusted by default. | |
| 6 | Agents are tested against planted instructions before launch. | |
| 7 | Tests are re-run after every change. | |
| 8 | Every step an agent takes is logged. | |
| 9 | We can switch any agent off in minutes, and have rehearsed it. | |
| 10 | Every AI supplier has answered the seven questions. |
| 0 to 4 | Exposed | Find and fence first. Sections 02 and 11. |
| 5 to 7 | Fenced | Test like an attacker and build the layers. Sections 04 and 05. |
| 8 to 10 | Ready | Rehearse incidents and report the trend. Sections 08 and 10. |
| Agent | An AI system that carries out a task in several steps, such as planning, using tools and checking its work. |
| Attack success rate | The share of test attacks that made an agent do what the attacker wanted. |
| Level of freedom | What an agent may do alone, what needs a person to approve, and what it may never do. |
| Owned model | A model the company runs on its own hardware, rather than renting from a service. |
| Planted instruction | Text hidden in content an agent reads, written to make it act against its owner's intent. |
| Step log | A record of every step an agent took, with what it read and what it did. |
| Untrusted content | Anything an agent reads that comes from outside the company. |
Evidence and judgement. Every figure comes from a study listed below. Frameworks, controls, tests, tables and plans are the author's recommendations, and are labelled as such. Benchmarks. Studies [1] and [2] test particular agents and attacks in controlled settings. Their rates show that the risk is real, not how often it will occur in any one company. Disclosure. The author wrote sources 5 to 9, and works on the Zorp project [10].
| [1] | Q. Zhan, Z. Liang, Z. Ying and D. Kang, InjecAgent. Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents, Findings of ACL 2024. arXiv 2403.02691 |
| [2] | E. Debenedetti and others, AgentDojo. A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents, NeurIPS 2024 Datasets and Benchmarks Track. arXiv 2406.13352 |
| [3] | K. Greshake, S. Abdelnabi, S. Mishra, C. Endres, T. Holz and M. Fritz, Not what you've signed up for. Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection, 2023. arXiv 2302.12173 |
| [4] | E. Perez and others, Red Teaming Language Models with Language Models, 2022. arXiv 2202.03286 |
| [5] | A. Jaggi, Own Your Intelligence, The Executive Guide, 2026. arjunjaggi.com/guides/own-your-intelligence |
| [6] | A. Jaggi, The Board AI Calendar 2027, 2026. arjunjaggi.com/guides/board-ai-calendar-2027 |
| [7] | A. Jaggi, The CFO's Guide to AI in 2027, 2026. arjunjaggi.com/guides/cfo-guide-ai-2027 |
| [8] | A. Jaggi, The Chief AI Officer's Roadmap for 2027, 2026. arjunjaggi.com/guides/chief-ai-officer-roadmap-2027 |
| [9] | A. Jaggi, The CEO's Playbook for 2027, 2026. arjunjaggi.com/guides/ceo-playbook-2027 |
| [10] | Aviskaar, Zorp, Own Your Intelligence, version 0.8.1, 2026. Open source under the MIT licence. zorp.dev |
About the author. Arjun Jaggi is an applied AI researcher based in Santa Monica, California. His research covers small language models, memory evaluation and owned AI stacks.
Agents will read, decide and act across the company in 2027. Security is how the company keeps the power to say no, to see what happened and to switch it off.
© 2026 Arjun Jaggi. Original framework. Academic citation permitted with attribution; commercial use requires written permission. arjunjaggi.com