Prompt injection defence splits AI agents into three separate LLMs
A preprint from Penn State and Bosch keeps the model that chooses actions away from untrusted text. On a new test, it finished more tasks under attack than rival defences such as Progent and CaMeL.
scienceunderway.com/articles/prompt-injection-defence-splits-ai-agents-into-three-separate-llms


What the study shows
AI agents are language models that act on their own: they read files, send emails and make payments through tools. Indirect prompt injection is an attack in which someone hides instructions inside content the agent reads, such as an email. The agent may then follow them, for example by paying a fake account. The problem is worst on what the authors call data-dependent tasks. These are requests such as "take care of what the caterer's email asks for", where the email itself decides the next steps.
The authors, from Pennsylvania State University and Robert Bosch LLC, built a system they call Trident. It splits the agent into three language models. A planner chooses actions but never sees untrusted text. A data reader sees that text but has no permission to do anything. A policy writer drafts the security rules from the user's request alone, before any email is opened. A conventional program, not an AI, checks every output of all three before it takes effect.
The planner learns about untrusted content only through short, fixed-choice answers, such as yes or no, or a pick from a list of vendors on file. Free text like an account number stays sealed. It can be passed into a tool, but the planner never reads it. Each answer is counted in bits against a preset budget. The authors prove that this caps how many different behaviours an attacker can steer the agent into. They also prove that every action stays within rules set by an administrator. Both proofs are checked by Lean, software that verifies mathematical proofs mechanically.
The team tested Trident with four models, including GPT-4.1 and Claude Sonnet 4.5. They used the public AgentDojo benchmark and a new 45-task benchmark of their own, ReplanInject, where the injected content decides part of the plan. The authors report that Trident completed between about half and three quarters of ReplanInject tasks under attack. On average this was more than CaMeL, Progent or FIDES. With GPT-4.1 it finished 54% of attacked tasks against Progent's 35%. With Sonnet 4.5, FIDES with user approvals did better than Trident.
Attacks rarely got through. Even if every approval request was granted, attacks succeeded in at most about 5% of attacked ReplanInject runs. An undefended agent using GPT-4.1 was fooled in about two thirds of runs. When a simulated user rejected any request that showed the attacker's action, no attack succeeded on ReplanInject with any model.
Trident asked the user for approval about once per attacked task, generally less often than Progent. It costs more: roughly 10 to 24 US cents per ReplanInject task, several times the price of the alternatives. This is a preprint and has not been peer reviewed. On our readiness scale it sits at level III, open source available: it has public benchmark results and released code, but no documented use in production.
Our reading
In our reading, the useful idea here is not the three models. It is the narrow pipe between them. Earlier designs such as CaMeL keep the planner clean by fixing the plan before any email is read. That is safe, but it fails on the tasks people most want to hand over. On ReplanInject, CaMeL finished fewer than one in ten tasks even without an attack. Trident lets the email shape the plan, but only through answers small enough to count.
The proofs are a real strength, because they do not rely on any model behaving well. They are statements about the rule checker, which is ordinary code. But they hold only under stated assumptions, such as accurate tool descriptions and a correct root policy. They also cover a formal model of the checker, not the whole Python implementation.
A practical example: a finance assistant asked to settle a supplier's invoice. An injected line says the bank details have changed. Under Trident, the payment can only go to an account on the supplier's trusted record, capped at an amount set in advance. The fake account is blocked without anyone being asked.
The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/prompt-injection-defence-splits-ai-agents-into-three-separate-llms
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | A working prototype in Python was built and evaluated in controlled experiments. |
| II Benchmarked | Met | Results are reported on the public AgentDojo v1.2 benchmark with four models and compared against CaMeL, Progent and FIDES. Results are also given on the new ReplanInject benchmark. |
| III Open source | Met | The paper states the implementation is open source at https://github.com/vdasu/trident. We have not checked the repository contents. |
| IV In production | Not yet | There is no documented use by a named organisation in production. Two co-authors are affiliated with Bosch, and the first author did the work as a Bosch research intern, but the paper reports no deployment. |
What would move it up
Documented production use by a named organisation, with real users approving requests, would move it up. Reported attack and approval rates from that use would also be needed.
The study
Vishnu Asutosh Dasu, Lilit Avetisyan, Jorge Guajardo et al.. Trident: A Tri-LLM Architecture for Securing Dynamic Agentic AI Systems. arXiv, 25 November 2026. Read the paper
Notes
- Dasu, Avetisyan, Guajardo and Tan, "Trident: A Tri-LLM Architecture for Securing Dynamic Agentic AI Systems", arXiv preprint, November 2026. Not peer reviewed. Source
- Code released by the authors. We have not checked its contents. Source
- Exact ReplanInject utility under attack for Trident: 54.2% (GPT-4.1), 64.4% (Sonnet 4.5), 55.2% (gpt-oss-120b), 74.2% (Gemma 4 31B). Progent: 35.4%, 55.7%, 33.9%, 68.7%. FIDES with approvals, Sonnet 4.5: 75.2%.
- Attack success with every request granted: at most 4.8% on ReplanInject and 0.1% on AgentDojo for Trident; 68.1% for an undefended GPT-4.1 agent on ReplanInject. Strongest adaptive attack raised it to 10.0% with GPT-4.1.
- Readiness: level III, open source available. Public benchmark results on AgentDojo v1.2 and released code; no documented production use by a named organisation.
Edited and signed by
Stefan PerdalFounder. Twenty-five years of building digital products.194 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
How we workNo corrections


