Trident: A Tri-LLM Architecture for Securing Dynamic Agentic AI Systems
Vishnu Asutosh Dasu, Lilit Avetisyan, Jorge Guajardo, Gang Tan
cs.AI
Nov 25, 2026 · v1
TL;DR
Formalizes the Trident reference monitor's security model in Lean and machine-checks the influence-bound and policy-compliance guarantees.
Abstract
AI agents are ubiquitous and form a central part of many systems, from software development to autonomous vehicles. They are most useful for data-dependent tasks, where external untrusted data can legitimately determine their next action. However, indirect prompt injection attacks exploit this dependency. Existing system-level defenses limit these attacks with planning restrictions, information-flow control, tool policies, and human approval. In this paper, we present TRIDENT, a secure agentic AI framework that supports data-dependent replanning, while provably bounding how much untrusted data can influence planning and ensuring that its security policies come only from trusted inputs. TRIDENT splits the agent across three LLMs: a Planner-LLM that never reads raw untrusted text, a Data-LLM that reads it but holds no permissions, and a Policy-LLM that writes the policies. A reference monitor checks every LLM output deterministically. The monitor lets the planner learn from untrusted data only through finite-range answers and feedback, and meters them against an influence budget $β$ and a feedback budget $σ$. For fixed trusted inputs and randomness, the attacker can select among at most $2^{β+σ}$ observable traces, and every executed call passes the root policy. We prove both guarantees and machine-check the proofs in a Lean formalization of the security model. We also evaluate TRIDENT with four models on AgentDojo and on ReplanInject, a new benchmark of tasks whose plans depend on the injected content, and we test it against adaptive attacks. On ReplanInject, TRIDENT completes 54% to 74% of tasks under attack, more on average than any other defense we evaluate, and with a human in the loop, no tested attack succeeds.
Problem
AI agents on data-dependent tasks must let untrusted content shape their plans, which exposes them to indirect prompt injection. Existing system-level defenses either fix the plan before the agent reads any data, so they cannot finish such tasks, or offer no bound on how much the attacker can steer the plan.
Approach
TRIDENT splits the agent across three LLMs: a Planner-LLM that never reads raw untrusted text, a Data-LLM that reads it but holds no permissions, and a Policy-LLM that writes policies from trusted inputs only. A deterministic reference monitor checks every LLM output. The planner learns from untrusted data only through finite-range answers and feedback, metered against an influence budget β and a feedback budget σ. Two guarantees, a bound of at most 2^(β+σ) observable traces and root-policy compliance of every executed call, are proved and machine-checked in Lean; selected Python monitor routines are also verified with Nagini.
Results
On ReplanInject, a new benchmark of tasks whose plans depend on the injected content, TRIDENT completes 54% to 74% of tasks under attack across four models. This is more on average than the other defenses evaluated, and with a human in the loop no tested attack succeeds.