TLDR: Meta has introduced a new security protocol, the ‘Agents Rule of Two,’ designed to enhance the security of AI agents and mitigate risks like prompt injection. This framework limits AI agents to possessing no more than two out of three critical capabilities—processing untrustworthy inputs, accessing sensitive data, or making external changes—within a single session, requiring human oversight if all three are necessary.
Meta has announced a significant advancement in artificial intelligence security with the introduction of its ‘Agents Rule of Two’ framework. Unveiled on October 31, 2025, this protocol aims to bolster the security of AI agents and address growing vulnerabilities, particularly prompt injection, which poses a fundamental challenge to Large Language Models (LLMs) and AI agent systems.
The core principle of the ‘Agents Rule of Two’ dictates that AI agents should not simultaneously satisfy more than two of the following three properties within a single operational session to prevent high-impact security breaches:
1. Processing untrustworthy inputs (A): This includes data from unverified sources, such as random emails or unvalidated websites.
2. Accessing sensitive systems or private data (B): This refers to gaining access to confidential files, private emails, or other sensitive user information.
3. Changing state or communicating externally (C): This involves the ability to take actions like sending emails, making purchases, or modifying system states.
According to Meta AI, if an agent requires all three capabilities to fulfill a request without initiating a new session, it must not operate autonomously. Instead, it requires supervision, such as human-in-the-loop approval or another reliable validation mechanism, to prevent unauthorized actions that could lead to security compromises.
This framework is inspired by existing robust security policies, including those from Chromium, and concepts like Simon Willison’s ‘lethal trifecta,’ which highlights the dangers of combining these three capabilities without proper controls. By adopting the ‘Agents Rule of Two,’ Meta aims to provide developers with a practical approach to navigate the trade-offs between AI agent functionality and security, fostering the creation of more secure AI applications and enhancing user trust.
Also Read:
- New AI Personhood Framework Proposed for Governing Agentic Artificial Intelligence
- Meta Leverages Advanced AI to Streamline Operations and Drastically Reduce Carbon Emissions
The initiative underscores Meta’s commitment to advancing AI technology responsibly while safeguarding user data and system integrity in an increasingly complex digital landscape. The company’s official blog post on Meta AI provides further detailed information on this practical approach to AI agent security.


