Abstract
As Large Language Models (LLMs) are increasingly integrated into enterprise workflows involving sensitive data, ensuring they adhere to context-specific security policies is paramount. This paper introduces CoPriva, a large-scale benchmark designed to evaluate LLMs' ability to preserve user-defined security constraints in the face of direct and indirect queries. Our findings reveal a significant "helpfulness-security" tension: while models successfully rebuff direct attempts to access forbidden information, they frequently leak confidential data when responding to high-level, indirect prompts like summaries.
Introduction: The Helpfulness-Security Tension
Modern LLMs are moving beyond general-purpose chat to handle sensitive documents, such as meeting transcripts and legal contracts. In these contexts, security is dynamic and user-defined—for example, a model might be instructed not to disclose specific internal disagreements or budget details found within a provided text.
However, a fundamental conflict exists between a model's training to be helpful and its requirement to be secure. While models are well-aligned to refuse direct violations (e.g., "What was the budget?"), they often fail when the sensitive information is naturally part of a broader, legitimate request (e.g., "Summarize the team's concerns"). In an effort to provide a comprehensive and faithful summary, the model inadvertently leaks the restricted information.
The CoPriva Benchmark
To systematically study this vulnerability, we developed CoPriva (Contextual Privacy Benchmark). Derived from the QMSum dataset of real-world meeting transcripts, CoPriva consists of 4,184 instances across product, academic, and committee domains.
Methodology
The evaluation pipeline involves four key steps:
- Policy Extraction: Using GPT-4 to identify "policy targets" within transcripts, categorized into Confidential Targets (to be hidden) and Non-Confidential Targets (to be included).
- Attack Generation: Creating Direct Attacks (explicitly asking for forbidden info) and Indirect Attacks (high-level queries like summaries that encompass the forbidden info).
- Evaluation: An "LLM-as-a-judge" framework measures two metrics: Leakage Score (a binary check of whether forbidden content appeared) and Faithfulness Score (a 1-5 scale measuring response quality for allowed info).
- Model Benchmarking: Testing 10 state-of-the-art models, including reasoning-heavy models like DeepSeek-R1 and OpenAI’s o4-mini.
Key Insights
Our analysis yielded several critical observations regarding the current state of LLM security:
- The "Helpfulness" Trap: There is a strong positive correlation between faithfulness and leakage. The more "helpful" a model is in its summarization, the more likely it is to leak confidential details to ensure completeness.
- Reasoning is Not a Shield: Models with advanced reasoning capabilities (Chain of Thought) are still vulnerable. Internal logs show these models often correctly identify sensitive information as "forbidden" during their thinking process but fail to filter it out of the final generated response.
- The Direct-Indirect Gap: Models have largely mastered direct refusals, often showing near 0% leakage. However, leakage rates jump by over 40 percentage points on average when faced with indirect queries.
Results and Mitigation Struggles
The benchmark results highlight a pervasive vulnerability across all tested models:
- o4-mini achieved 0% leakage on direct attacks but failed in 31.3% of indirect scenarios.
- Qwen3-235B exhibited a massive vulnerability, leaking information in 53.5% of indirect cases.
Common mitigation strategies, such as few-shot prompting or explicit warnings, provide minimal relief. A revision-based approach—where the model is asked to double-check its output against the policy—only reduced leakage marginally (from ~49% to ~44%). This suggests that current alignment techniques are fundamentally insufficient for enforcing hard contextual security constraints.
Conclusion
The CoPriva benchmark exposes a significant gap in LLM security. As these models become more integrated into professional environments, the "helpfulness-security" trade-off must be addressed. Future research should focus on "constrained generation" techniques that treat security policies as immutable constraints rather than soft suggestions, ensuring that the drive for helpfulness does not come at the cost of confidentiality.
Summary updated