Skip to content
Yitz Jordan
Research

Trident: Three-LLM Architecture Against Prompt Injection

Trident, a security-focused architecture, is the subject of a new arXiv paper - one agent, three LLMs, to minimize blast radius and protect against prompt injection. Agent Roundtable and Agent Union implement this easily.

Yitz Jordan2 min read


Using Trident architecture to box in prompt injection

A new paper just released on arXiv details a security-focused way of approaching model collaboration: instead of focusing on efficiency, code resiliency or - like many of us - saving money, shifting expensive Fable tasks onto cheaper models. Trident is a three-LLM architecture focused solely on minimizing blast radius from and protecting against prompt injection. By isolating data ingestion from tool usage and from prompt processing, Trident achieved 0% prompt injection success with a human-in-the-loop across four models.

How Trident Works

In a Trident-based architecture, an agent is split across three distinct models. First, the agent's prompt, the "trusted prompt", is transformed into a policy by a Policy LLM, which delineates the rules for the agent's task. This model sees none of the subsequent data, and is not impacted by any of its processing. Second, the data being ingested is handled by a Data LLM, with zero tool permissions. Data is handled completely inside it - its output is only schema-compliant JSON. Third, this JSON is ingested by the Planner LLM, which generates a plan of action based on the original policy, informed by the JSON output of the Data LLM.

Prompt injection blast radius is contained to the Data LLM, and the context of the injected prompt is never passed to the Planner LLM. In unprotected architectures, GPT 4.1, per the paper, failed 68% of the time, as did GPT-OSS-120B 62% of the time. With Trident, researchers achieved zero prompt injection success with a human in the loop, and only 5% with auto-approval.

Why one LLM Breaks potentially


My packages agent-roundtable and agent-union lend themselves very well to the Trident architecture, enabling users to set up Trident architected agentic tasks in a matter of a few lines - with one difference: agent-roundtable and agent-union are set up for different agent personas, whereas the Trident paper demonstrates how one agent can itself be split across models. Nevertheless, the ultimate outcome - separation of spheres by agent based on security risk, is still achievable quickly:

Build a Trident architecture with the agent roundtable and unionOne prompt to set up Trident architecture with Roundtable and Agent Union


Agent Roundtable 2.1.1 is currently up on Github and npm, and Agent Union is up on Github.

A security-focused architecture protecting against prompt injection. Trident was a new way of looking at agentic collaboration to me, and I envision these architectural patterns will be adopted at more and more organizations as agentic cybersecurity becomes more and more front-of-mind among business leaders.

Yitz Jordan is an AI technical lead, a full-stack engineer and the founder of Vouch Networks. More about him, or reach him on LinkedIn.