# 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.

- Category: Agents
- Readiness level: III (Open source) on Science Underway's four-step scale, as proposed
- Published: 2026-11-30
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/prompt-injection-defence-splits-ai-agents-into-three-separate-llms

## The study

Trident: A Tri-LLM Architecture for Securing Dynamic Agentic AI Systems (preprint, not peer reviewed). arXiv 2611.35150. https://arxiv.org/abs/2611.35150

## At a glance

- What it shows: AI assistants that read emails or web pages can be tricked by instructions hidden in that content. The researchers split the assistant into three AI models so the one that decides what to do never reads the untrusted text. In tests, it got more jobs done under attack than other defences on average, and very few attacks succeeded.
- What it does not show: It has not been tried with real users, real attackers or a real company. It also cannot stop a person from being talked into approving a harmful action, and it costs several times more to run.
- Why it matters: Assistants are most useful when an email or document decides what they do next, and that is exactly where attacks are hardest to stop. This design shows one way to allow that kind of work while putting a hard limit on what an attacker can make the assistant do.

## 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 the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/prompt-injection-defence-splits-ai-agents-into-three-separate-llms

## 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.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
