TRIDENT Uses Three LLMs and Information Budgets to Constrain Indirect Prompt Injection
Summary:TRIDENT is a research framework that splits an agent into a Planner-LLM that never sees raw untrusted text, a Data-LLM with no execution permissions, and a Policy-LLM that produces policies only from trusted inputs. A deterministic reference monitor validates every model output. By exposing the planner only to finite-range answers and feedback under an influence budget β and a feedback budget σ, the framework bounds the attacker's observable traces to at most 2^(β+σ) for fixed trusted inputs and
TRIDENT separates an agent's monolithic read-plan-act pipeline into a Planner-LLM, a Data-LLM, and a Policy-LLM, then establishes the security boundary with a runtime reference monitor rather than prompt-based isolation. It does not claim to make indirect prompt injection disappear. Instead, it confines untrusted data's influence on replanning to budget-limited channels and ensures that every executed call must pass root-policy authorization.
Threat Model and Role Separation
Indirect prompt injection is difficult because an agent must allow external data—web pages, email, documents, or tool results—to influence its next action. Attackers exploit that legitimate dependency by embedding hostile instructions in otherwise useful content. TRIDENT does not assume that every malicious string can be detected. It instead isolates untrusted content in a permissionless data channel and separates information flow, policy generation, and tool execution.
| Component | Visible inputs | Permissions and constraints | | --- | --- | --- | | Planner-LLM | Trusted task context, finite-range answers, budgeted feedback | Never sees raw untrusted text; planned actions still pass through the monitor | | Data-LLM | Raw untrusted text | Holds no tool-calling, credential, or execution permissions; returns restricted information | | Policy-LLM | Trusted policy context | Produces policies from trusted inputs; its output is validated by the monitor | | Reference Monitor | Structured outputs from each LLM | Deterministically checks output ranges, policies, and budgets, then blocks invalid calls |
The critical boundary is a permission boundary, not merely three different prompts. Even if the Data-LLM is injected, its output can influence the Planner only through discrete answers and bounded feedback. Even if the Planner proposes a dangerous action, the tool executor must still pass the root policy.
How Influence Budgets Constrain Attacks
TRIDENT does not pass an arbitrary natural-language passage to the Planner. It exposes finite-range answers and controlled feedback. In an implementation, those answers could be encoded as enum labels, discrete values, or fixed patterns, while the feedback path is constrained by a separate budget.
The paper quantifies these two channels with an influence budget β and a feedback budget σ. For fixed trusted inputs and randomness, an attacker can choose among at most 2^(β+σ) observable traces. This is an upper bound on the number of attack-induced branches, not an attack-success probability and not a limit on the number of submitted prompts. Every additional bit doubles the theoretical trace bound, making β and σ tunable security-versus-utility controls.
The reference monitor makes the bound operational: the Data-LLM cannot bypass its budget to send raw text to the Planner, the Planner cannot bypass the monitor to invoke tools, and the root policy restricts executable actions. The result is a capability-security boundary rather than a probabilistic defense based on detecting malicious prompts.
What the Formal Proof Covers
The authors machine-check the formalization of the security model in Lean, reducing the risk of logical omissions in handwritten proofs. The guarantees cover two central properties: untrusted content can influence planning only through budgeted channels, and every executed call satisfies the root policy.
Those guarantees rely on explicit assumptions: trusted inputs remain untainted, context and permission isolation between roles is not bypassed, budget accounting is complete, the monitor and root policy are trusted, and randomness is fixed as assumed. Lean verifies theorems in the model; it does not automatically prove that production code implements that model, that an LLM interprets finite-range answers without semantic error, or that tool side effects are harmless. Tool-side failures, output-parser errors, misclassified trusted inputs, and monitor bypass paths remain implementation risks.
Evaluation Results and the Cost of Security
The paper evaluates TRIDENT with four models on AgentDojo and ReplanInject, a new benchmark designed for tasks whose plans depend on injected content. It also tests adaptive attacks.
On ReplanInject, TRIDENT completes 54%–74% of tasks under attack and performs better on average than the other defenses evaluated in the paper. With a human in the loop, none of the tested attacks succeeds. These results suggest that role isolation and budget constraints do not entirely prevent legitimate data-dependent behavior, but they also expose the utility cost: the lower end of the range still leaves roughly one quarter of tasks incomplete.
Several boundaries remain. The available material does not enumerate the four models, attack sample counts, statistical significance, detailed AgentDojo results, or end-to-end latency and cost. ReplanInject and the defense are introduced by the same paper, so third-party replication is important. The zero-success result under human review applies only to the tested attacks and configuration; it is not a proof against unknown attacks or every tool semantics.
Engineering Trade-offs
- Security versus task capability: Tighter budgets reduce the observable trace space but make discrete answers more likely to discard useful detail. Looser budgets expand the attack branch space and the policy-bypass surface.
- Latency and cost: Three-role coordination, output validation, and optional human approval add model calls, parsing delays, and operating cost. The paper does not disclose whether one base model can be reused. Reusing weights may lower cost, but runtime isolation is still required to prevent context and permission crossover.
- Deterministic enforcement: A deterministic monitor is easier to audit than another LLM judge, but it demands structured outputs, strict parsing, and fail-closed behavior on malformed responses.
- Availability versus assurance: Human approval blocks all tested attacks in the reported setup, while adding waiting time, approval fatigue, and the risk of inattentive confirmation.
- Proof-to-code gap: Machine-checked proofs improve theoretical confidence, but deployment still requires verification that policy parsing, budget accounting, concurrent state, and the tool executor faithfully implement the model.
Deployment Guidance
- Label trusted and untrusted inputs before designing prompts. Keep raw external content in the Data-LLM or an equivalent permissionless component, and prevent it from reaching the Planner or policy-generation path.
- Enforce least privilege in the tool executor rather than asking the model in a system prompt not to call dangerous tools. Keep the root policy in an independent, versioned trusted control plane.
- Represent finite answers with enums or fixed schemas. Define whether budgets apply per turn, per task, or per trace, and fail closed on exceeded budgets, malformed outputs, and parser errors.
- Log constrained data-channel answers, feedback consumption, policy decisions, and final tool calls to create replayable attack traces. Avoid storing complete untrusted text without sanitization.
- Retain human approval for high-impact actions, but add timeouts, escalation paths, and post-approval parameter validation so that review does not degrade into mechanical approval.
- Measure clean-task success, under-attack success, false blocking, p95 latency, cost per task, and tool-call count on your own workflows. Include adaptive attackers that can revise their strategy from observed feedback.
- Before adoption, verify that any released code, Lean model, and production monitor are consistent. If key artifacts are not available, treat TRIDENT as a research architecture rather than a deployable security product.
— END —Source: ArXiv AI (cs.AI) (2026-11-30)
Tags: #TRIDENT #Indirect Prompt Injection #Agent Security #Information-Flow Control #Formal Verification
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments