Skip to content

Trident: A Tri-LLM Architecture for Securing Dynamic Agentic AI Systems

Vishnu Asutosh Dasu, Lilit Avetisyan, Jorge Guajardo, Gang Tan

cs.AI

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β+σ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.

Create a lesson