Trident: A New Framework to Secure AI Agents from Indirect Prompt Injection Attacks
Summarized by AI from reporting by ArXiv cs.AI, published under our editorial policy.
Researchers have developed Trident, a framework that secures AI agents from attacks that manipulate their behavior. It uses three specialized AI models to ensure that untrusted data cannot influence the agent's actions beyond a controlled limit.

Key takeaways
- Trident uses a tri-LLM architecture to secure AI agents from indirect prompt injection attacks.
- The framework ensures that untrusted data cannot influence the agent's actions beyond a controlled limit.
- Trident completed 54% to 74% of tasks under attack, more on average than any other defense evaluated.
- With a human in the loop, no tested attack on Trident succeeded.
Researchers from an unnamed institution released Trident, a new framework designed to secure AI agents from indirect prompt injection attacks. These attacks exploit the way AI agents process external data to manipulate their behavior. Trident uses a tri-LLM architecture to ensure that untrusted data cannot influence the agent's actions beyond a controlled limit.
How Trident Works
Trident splits the agent across three large language models (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.
The researchers also machine-checked the proofs in a Lean formalization of the security model, ensuring the theoretical guarantees of Trident's security properties. This rigorous approach sets Trident apart from existing system-level defenses that rely on planning restrictions, information-flow control, tool policies, and human approval, which are often less comprehensive and more prone to vulnerabilities.
Performance and Security
The researchers evaluated Trident with four models on AgentDojo, a popular platform for testing AI agents, and on ReplanInject, a new benchmark of tasks whose plans depend on the injected content. They also tested it against adaptive attacks, which are particularly challenging as they evolve in response to the defenses in place. On ReplanInject, Trident completed 54% to 74% of tasks under attack, outperforming any other defense evaluated. With a human in the loop, no tested attack succeeded, highlighting the robustness of Trident's security measures.
Why It Matters
AI agents are used in various systems, from software development to autonomous vehicles, and they often rely on external data to make decisions. This makes them vulnerable to attacks that manipulate this data to influence their behavior. Trident provides a robust solution to this problem, ensuring that AI agents can operate securely even when processing untrusted data. This could be particularly important for applications where security is critical, such as autonomous vehicles or financial systems.
The ubiquity of AI agents in modern systems underscores the need for robust security frameworks like Trident. As AI agents become more integrated into critical infrastructure, the risk of indirect prompt injection attacks grows. Trident's tri-LLM architecture offers a novel approach to mitigating these risks, ensuring that AI agents can function safely and effectively in dynamic environments.
What You Can Do Today
While Trident is not yet available for public use, you can stay informed about the latest developments in AI security by following research in the field. If you are a developer working with AI agents, consider implementing existing security measures and staying updated on new frameworks like Trident as they become available. Additionally, you can explore platforms like AgentDojo to test and evaluate the security of your AI agents against various attack scenarios. By staying proactive, you can help ensure the security and reliability of AI systems in your applications.
Frequently asked
- What is an indirect prompt injection attack?
- An indirect prompt injection attack is a type of attack where untrusted data is manipulated to influence the behavior of an AI agent, often leading to unintended actions or security breaches.
- How does Trident prevent these attacks?
- Trident uses a tri-LLM architecture that splits the agent's functions across three specialized models, ensuring that untrusted data cannot influence the agent's actions beyond a controlled limit.
- Is Trident available for public use?
- As of now, Trident is not available for public use. It is a research framework that has been evaluated in controlled environments.