ZICQ
中 Log in / Sign up
Newsroom Agentic #TRIDENT #Agent Security #Indirect Prompt Injection #Information-Flow Control #Formal Verification

TRIDENT Uses Three LLMs to Bound Indirect Prompt Injection in AI Agents

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:The TRIDENT research team presents a three-model security framework for dynamic AI agents. The Planner-LLM never reads raw untrusted text, the Data-LLM can inspect it but has no tool permissions, and the Policy-LLM derives policies only from trusted inputs. A deterministic reference monitor validates every LLM output and meters the finite-range channel through influence budget β and feedback budget σ. For fixed trusted inputs and randomness, the attacker can choose among at most 2^(β+σ) observab


TRIDENT splits a high-privilege agent into three role-isolated LLMs and compresses the influence of untrusted data into a finite, measurable, and formally bounded channel. Rather than adding another prompt asking the agent to ignore malicious text, it separates data access, task planning, and security authorization at the architectural level.

Core mechanism: separate reading, planning, and authority

A typical TRIDENT execution loop can be abstracted into six stages:

  1. The Policy-LLM reads only trusted inputs and produces a root policy defining which tools, parameters, and operations may execute.
  2. The Planner-LLM never receives raw untrusted text. It plans or replans using trusted context, a restricted data channel, and tool feedback.
  3. The Data-LLM can inspect untrusted webpages, documents, emails, and similar content, but it has no tool-calling or execution permissions.
  4. The Data-LLM can communicate with the planner only through finite-range answers and feedback.
  5. A deterministic reference monitor inspects every LLM output, validates its structure, value range, and policy compliance, and charges the influence budget β and feedback budget σ separately.
  6. Every tool invocation must still pass the root policy. Operations that lack authorization are rejected by the system rather than being left to a model's judgment.

This turns prompt injection into an information-flow-control problem. Even if an attacker succeeds in manipulating the Data-LLM, that model cannot directly execute tools. It can influence later planning only through the finite channel enforced by the monitor.

What the formal guarantee covers

With trusted inputs and randomness fixed, the paper proves that an attacker can choose among at most 2^(β+σ) observable traces. This bounds the number of externally observable behavioral branches; it does not directly establish that the attack success rate is always zero, nor does it imply that every policy-authorized action is safe in the application domain. The root-policy guarantee concerns whether an invocation complies with policy, not whether the policy itself is sufficiently restrictive.

The authors also machine-check both guarantees in Lean. This reduces the risk of omissions in manual proofs, but it validates the specified security model and theorems. A production deployment must still show that the reference monitor, budget counters, tool sandbox, and model invocation chain conform to the assumptions used in the formalization.

Measured performance and evaluation limits

The team evaluates TRIDENT with four models on AgentDojo and on the newly proposed ReplanInject benchmark. ReplanInject specifically covers tasks whose plans must depend on injected content, and the evaluation includes adaptive attacks. The paper reports a 54% to 74% task-completion range under attack, with better average performance than the other defenses evaluated. With a human in the loop, none of the tested attacks succeeds.

The results indicate that the budgeted channel does not reduce data-dependent agents to static planners. However, the absence of successful tested attacks under human review is an empirical result, not a formal guarantee against every adaptive attacker. The supplied material also omits complete AgentDojo results, sample counts, variance, attack-budget parity, baseline configurations, and model versions. It is therefore not possible to determine whether the reported range reflects model capability, task difficulty, or the overhead imposed by the defense.

Engineering trade-offs

  • Cost and latency: Three LLM roles require additional model calls, context transfers, and orchestration. A deterministic monitor is generally cheaper than invoking another LLM judge, but output parsing, budget validation, and policy checks still increase end-to-end latency.
  • Information bandwidth: Small β and σ values may remove information required for data-dependent tasks, causing frequent replanning or refusal. Larger budgets increase the number of observable traces and weaken the constraint on injected content.
  • Trust boundaries: The root policy, trusted inputs, and tool implementations must themselves be trustworthy. If trusted inputs are compromised, or an authorized tool can exfiltrate data through return values, file writes, or network channels, role separation alone does not eliminate side channels.
  • Formal-to-implementation gap: Lean can validate the security model, but it does not automatically detect production defects such as counter overflow, concurrency races, parser discrepancies, or incorrect policy updates.
  • Cost of human intervention: Human review blocks all tested attacks in the reported setting, but it also adds response time, operating expense, and availability pressure and cannot be treated as an infinitely scalable production component.

Deployment guidance for developers

  1. Implement the root policy as deterministic code: Use tool allowlists, parameter schemas, scoped capabilities, and default-deny rules instead of expressing authorization boundaries solely in natural-language prompts.
  2. Enforce strict channel isolation: Ensure that the Data-LLM has no file, network, shell, or business-tool permissions and that the Planner-LLM can never directly read raw untrusted text.
  3. Maintain budgets inside the reference monitor: Use an external state machine to update β and σ atomically. Require finite, verifiable output types and route budget exhaustion into a defined degradation or human-approval path.
  4. Map the security–utility frontier: Sweep β, σ, and human-review thresholds while measuring task completion, false refusals, attack success, model calls, token consumption, and P50/P95 latency.
  5. Run adaptive attacks and business regressions: Test indirect payloads, cross-tool compositions, encoding obfuscation, memory poisoning, and policy-update scenarios in addition to public benchmarks. Preserve complete traces for offline replay.
  6. Verify the mapping from formal assumptions to code: Add differential tests and invariant checks for the monitor, policy executor, and tool sandbox to confirm that runtime behavior matches the trust assumptions in the Lean model.

TRIDENT's main contribution is to turn indirect prompt injection from a prompt-level defense problem into an auditable information-flow and authorization architecture. Its formal guarantees and 54% to 74% completion rate under attack are strong research signals. However, missing code, cost data, and complete benchmark results make it more appropriate as a security-agent design paradigm and reproduction target than as a universally production-validated protection product.


Source: ArXiv AI (cs.AI) (2026-12-01)

— END —

Tags: #TRIDENT #Agent Security #Indirect Prompt Injection #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.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…