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

Vishnu Asutosh Dasu, Lilit Avetisyan, Jorge Guajardo, Gang TanarXiv 2026

TL;DR

AI agents are most useful when they can adapt their plans on the fly based on what they read—like triaging an inbox—but reading untrusted text leaves them wide open to hidden, malicious instructions (indirect prompt injections). TRIDENT solves this by splitting the agent into three strictly isolated LLMs mediated by a deterministic security monitor. By forcing untrusted data through a narrow, bit-metered bottleneck and authoring rules strictly before reading external content, TRIDENT lets agents dynamically replan while mathematically bounding an attacker's worst-case influence.

What Problem Does This Paper Address?

Imagine asking an AI assistant to "read the caterer's email, pay their invoice from the team account, and handle any pending requests." Because you don't know what the email asks for ahead of time, the agent has to adjust its plan after reading it—a process called dynamic replanning.

Dynamic replanning is a security nightmare. Because LLMs struggle to separate data from instructions, a malicious line tucked inside the email ("our bank details changed, wire the funds to account X") enters the agent's brain with the same authority as your prompt. Existing system-level defenses force a painful tradeoff: either lock the plan in stone before reading any untrusted data (which breaks dynamic tasks like our catering example), or update security rules on the fly while reading data (letting attackers hijack the rules themselves). Plus, classical security tracking—tainting every decision made after reading untrusted text—quickly paralyzes a replanning agent because every subsequent step inherits the taint, a phenomenon called label creep.

Methods

Instead of trusting a single AI model to behave, TRIDENT enforces a strict separation of powers across three distinct LLMs, supervised by a non-AI, deterministic Reference Monitor (RM):

Figure 1. The TRIDENT architecture with its five components numbered. Blue boxes are LLMs, and red boxes hold untrusted data.
  1. Planner-LLM: Proposes actions and tool calls, but never sees raw untrusted text. Unverified content (like email bodies or extracted dollar amounts) stays sealed behind opaque "handles" (pointers).
  2. Data-LLM: The quarantined reader. It inspects raw untrusted text to answer narrow, typed queries from the Planner, holding zero tool permissions.
  3. Policy-LLM: Writes stateful security rules (as finite automata) only from your initial trusted prompt and an administrator's root policy. Because it finishes before untrusted data is ever read, attackers cannot steer the rules. To handle unknowns—like who the caterer is—it selects pre-verified policy templates whose blanks (e.g., vendor bank details) can only be filled later by trusted internal records.

To let the Planner adapt without reading raw text, the Data-LLM returns two types of outputs: sealed payload handles (free text passed blindly to tools) and control fields (strictly bounded choices, like a boolean or picking from three known vendors). Every time the Planner reads a control field or learns whether a call succeeded or failed, the RM deducts the exact information capacity in bits from an influence budget ($\beta$) and a feedback budget ($\sigma$). If a proposed action exceeds the task policy (but still obeys the overarching root policy), the RM pauses and asks the human user for a one-time approval.

Datasets

The authors evaluate TRIDENT on two benchmarks:

  • AgentDojo (v1.2): An existing suite of 97 tasks across four domains. However, only 20 of its tasks actually require dynamic replanning based on tool outputs.
  • ReplanInject: A new benchmark of 45 tasks across banking, workspace, Slack, and travel designed specifically by the authors to test dynamic replanning. In 43 of these tasks, the external content dictates part or all of the plan—and houses the prompt injection—meaning plan-fixing defenses cannot pass simply by ignoring untrusted text.

Key Insights and Ideas

  • Metering control flow in bits kills "label creep": Instead of permanently tainting the Planner's context after reading untrusted data, TRIDENT treats control-flow decisions as a quantitative channel. With fixed randomness and trusted inputs, an attacker across all possible text variations can steer the agent among at most $\lfloor 2^{\beta+\sigma} \rfloor$ observable execution paths. Set $\beta=\sigma=0$, and the attacker has zero influence on the plan.
  • Trusting the code, not the LLMs: None of the three LLMs are in TRIDENT's trusted computing base. Even if all three models hallucinate or conspire, the deterministic Reference Monitor guarantees every executed action obeys the root policy—a theorem the authors machine-checked in Lean.
  • Templates bridge static policies and dynamic data: Pre-authored policy templates let permissions adapt safely at runtime. An untrusted email can identify which vendor sent an invoice (spending $\approx 1.58$ bits of $\beta$), while the template forces the actual bank account number to come from a trusted vendor database on file.
Figure 3. Permissions over the motivating example. An approved call and a confirmed amendment may go beyond the ceiling but not beyond the root.

Key Results

Tested across four models (GPT-4.1, Claude Sonnet 4.5, gpt-oss-120b, and Gemma 4 31B):

  • High utility under attack: On ReplanInject, TRIDENT completes 54.2% to 74.2% of tasks under active attack, beating existing defenses on average. Plan-fixing baselines like CaMeL block all attacks, but complete under 10% of ReplanInject tasks because they cannot dynamically replan.
  • Near-zero attack success: With an attentive human reviewing approval requests (ASR HITL), 0% of ReplanInject attacks succeed against TRIDENT across all models (and just 1 of 909 on AgentDojo). Even in the worst case—auto-approving every prompt without reading it—attack success stays at or below 4.8% on ReplanInject (compared to up to 68.1% on an undefended agent and 41.8% on reactive-policy baseline Progent).
  • Low user fatigue & reasonable overhead: TRIDENT asks for human approval roughly once per ReplanInject run (0.91 to 1.25 requests). Because it runs three LLMs, it costs $0.10 to $0.24 per run (about 3.8$\times$ Progent's cost on GPT-4.1)—a deliberate trade for high-stakes environments.

Limitations and Future Work

  • Manual policy engineering: Administrators must write root policies and query forms by hand, leaving room for human error and policy gaps. Using LLMs to help draft gap-free root policies is left for future work.
  • Untrusted claims and "branch steering": TRIDENT doesn't verify if external text is truthful. A fake invoice amount stays sealed, or a single disclosed bit could steer the agent down a harmful branch if the task policy already allows that branch. It also doesn't stop attacks that require no tool calls, like tricking the Data-LLM into drafting a misleading summary.
  • Integrity over confidentiality: TRIDENT prevents unauthorized actions (integrity), not data leaks via side effects—for instance, accepting a calendar invite implicitly reveals to the sender that you are free. The authors note that similar bit-budgets per recipient could eventually meter privacy leakage, alongside formally verifying the entire Python codebase.

Summary updated

BibTeX
@misc{dasu2026trident,
  author = {Vishnu Asutosh Dasu and Lilit Avetisyan and Jorge Guajardo and Gang Tan},
  title = {{Trident: A Tri-LLM Architecture for Securing Dynamic Agentic AI Systems}},
  year = {2026},
  eprint = {2611.35150},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35150},
}
Figure