Abstract
As Large Language Models (LLMs) transition into autonomous agentic systems with access to personal data and external tools, they introduce significant new security vulnerabilities. This paper formalizes the "secret-key game" to evaluate the confidentiality of these systems. Our findings reveal that even state-of-the-art models are highly susceptible to data exfiltration through direct and indirect prompt injections, with success rates reaching 99% in unprotected environments. We demonstrate that current safeguards are easily bypassed, highlighting a critical "confidentiality gap" in agentic AI.
Introduction
The evolution of LLMs from simple text generators to "agentic systems"—such as Microsoft Copilot or Apple Intelligence—has expanded their utility by allowing them to interact with emails, calendars, and cloud storage. However, this integration creates a massive attack surface. The fundamental issue is the "confidentiality gap": LLMs often fail to distinguish between high-priority system instructions and the untrusted data they process. Because both are treated as plain text, attackers can use prompt injection to hijack the model's behavior.
Methodology
The researchers proposed a two-part evaluation framework to test these systems:
- The Secret-Key Game: A benchmark where a sensitive "secret key" is embedded in the system prompt. The model is then challenged to protect this key against various adversarial prompts.
- Tool-Robustness Framework: A realistic simulation where the secret is stored within integrated tools, such as a private file in Google Drive or a note.
The study evaluated six open-source models (including Llama 3.1/3.2 and Qwen 2.5) against 14 attack strategies. These included "jailbreaks," "ChatML abuse," and "translation attacks," where malicious instructions are masked in foreign languages. To ensure statistical significance, the authors generated 2,000 unique system prompts and populated simulated services with realistic synthetic data.
The Threat of Indirect Injection
A particularly dangerous scenario is the "Rogue Integration" or indirect prompt injection. In this case, an attacker does not need to interact with the LLM directly. Instead, they place malicious instructions in a data source the agent is likely to read, such as an incoming email.
When the user asks the agent to "summarize my email," the model processes the hidden instructions, which might command it to search for private files and send them to an external address. This "silent killer" attack happens without the user's knowledge, leveraging the agent's legitimate access to other tools.
Key Results and Analysis
The evaluation revealed startling vulnerabilities across all tested models. Without safeguards, attackers achieved a near-perfect 99% success rate in extracting secret keys. While system prompt safeguards (e.g., explicit instructions to keep data private) reduced the leak rate to 21–34%, these defenses proved brittle. Adaptive "bypass" attacks, such as translating the malicious prompt into another language, restored the success rate to over 94%.
The data suggests an "alignment fade": as models manage the complexity of tool outputs, they appear to lose track of their core security constraints. Furthermore, larger models like Llama 3.1 70b, while generally more instruction-compliant, were also more capable of following complex, malicious instructions, making them paradoxically more vulnerable in certain adversarial contexts. Integration of even a single tool was found to increase data extraction risks by up to 73%.
Conclusion
Current defenses for agentic LLMs are insufficient. The study demonstrates that simple prompt-based "wrappers" are not enough to secure sensitive data in integrated environments. Future research must focus on fundamental architectural changes, such as "Reflection-Tuning"—where models are trained to verify actions against security policies—and more robust adversarial training to close the confidentiality gap in the next generation of AI agents.
Summary updated