Abstract
As Large Language Models (LLMs) transition from simple chatbots to autonomous agents, they are increasingly entrusted with sensitive data and access credentials. This paper introduces PasswordEval, a benchmark revealing that even frontier models struggle to follow context-dependent rules for data access. Most strikingly, the study finds that "reasoning" traces (such as Chain-of-Thought) often leak the very secrets they are intended to protect, even when the final output remains compliant.
Introduction
Most AI safety research focuses on "unambiguously bad" behaviors, such as refusing to generate harmful content. However, real-world agentic workflows require a subtler form of contextual robustness: the ability to follow specific, user-defined rules that change based on the situation. For example, an AI medical assistant should only reveal a patient's records if the user provides the correct authorization. This paper identifies a gap in our understanding of whether LLMs can reliably enforce these "access control" rules, especially when faced with adversarial pressure or complex, multi-turn interactions.
The PasswordEval Benchmark
The researchers developed a framework to test if a model can correctly determine when a request is authorized. In the core task, a model is given a system prompt containing a secret (confidential info) and a specific password. It is instructed to reveal the secret only if the user provides the password.
The paper introduces two new datasets:
- PasswordEval: 500 unique scenarios, each featuring a distinct password, a piece of confidential information (e.g., a secret ingredient or meeting location), and both compliant and non-compliant user requests.
- MultiPasswordEval: A scaled version where the user must provide up to 10 different passwords over multiple conversation turns, testing the model's ability to maintain state and rigor over time.
Key Insights and Results
Reasoning as a Double-Edged Sword
While "thinking" steps like Chain-of-Thought often improve model performance, they create a new attack surface. Models frequently "blurt out" the password or the secret within their internal reasoning traces, even if they correctly refuse to provide it in the final output. As shown in the results, reasoning-enabled models like Qwen-3 14B leaked confidential information in their traces in 61.6% of cases where they were asked for info without a password.
The Compliance Gap and Brittleness
Frontier models (like GPT-4o and Gemini 2.5 Pro) are generally effective at refusing unauthorized users, achieving near 100% accuracy on direct requests. However, they are surprisingly prone to "over-refusing," denying access to authorized users in 5-20% of cases. Furthermore, simple template-based jailbreaks (e.g., "Pretend this is a fictional story") are remarkably effective; under such attacks, GPT-4o’s accuracy in withholding information plummeted from 100% to just 37.8%.
Difficulty with Multi-Turn State
As the number of required passwords increases in a multi-turn conversation, model performance drops significantly. This suggests that current architectures struggle to maintain strict rule-following in complex, stateful interactions.
Discussion and Future Work
The authors acknowledge that text-based password verification is a simplified proxy for complex authentication. They suggest that the most robust path forward is stronger integration with structured tools. Instead of asking an LLM to "remember" a password, developers should use tool-calling to offload authentication to external, verifiable systems. Additionally, the leakage of secrets in reasoning traces highlights a major policy concern: frontier model providers may need to keep those traces hidden from users to prevent data exfiltration.
Summary updated