mlsanityData to 14 Oct 2026

Keep Security! Benchmarking Security Policy Preservation in Large Language Model Contexts Against Indirect Attacks in Question Answering

arXiv 2505.15805 ↗First posted 21 May 2025cs.CLcited by 5

Not on the map. Why?

Abstract (arXiv)

As Large Language Models (LLMs) are increasingly deployed in sensitive domains such as enterprise and government, ensuring that they adhere to user-defined security policies within context is critical-especially with respect to information non-disclosure. While prior LLM studies have focused on general safety and socially sensitive data, large-scale benchmarks for contextual security preservation against attacks remain lacking. To address this, we introduce a novel large-scale benchmark dataset, CoPriva, evaluating LLM adherence to contextual non-disclosure policies in question answering. Derived from realistic contexts, our dataset includes explicit policies and queries designed as direct and challenging indirect attacks seeking prohibited information. We evaluate 10 LLMs on our benchmark and reveal a significant vulnerability: many models violate user-defined policies and leak sensitive information. This failure is particularly severe against indirect attacks, highlighting a critical gap in current LLM safety alignment for sensitive applications. Our analysis reveals that while models can often identify the correct answer to a query, they struggle to incorporate policy constraints during generation. In contrast, they exhibit a partial ability to revise outputs when explicitly prompted. Our findings underscore the urgent need for more robust methods to guarantee contextual security.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 12 of its 24 references that are in the map. First posted on arXiv 21 May 2025.

Builds on

12 of 24 references.

References · 12

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2025Qwen3 Technical Reportcited by 8,820
  3. 2023Prometheus: Inducing Fine-grained Evaluation Capability in Language Modelscited by 575
  4. 2024Prometheus 2: An Open Source Language Model Specialized in Evaluating Other Language Modelscited by 446
  5. 2021QMSum: A New Benchmark for Query-based Multi-domain Meeting Summarizationcited by 365
  6. 2023Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theorycited by 230
  7. 2023FLASK: Fine-grained Language Model Evaluation based on Alignment Skill Setscited by 201
  8. 2023Beyond Memorization: Violating Privacy Via Inference with Large Language Modelscited by 175
  9. 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 171
  10. 2025AgentDAM: Privacy Leakage Evaluation for Autonomous Web Agentscited by 82
  11. 2024GoldCoin: Grounding Large Language Models in Privacy Laws via Contextual Integrity Theorycited by 37
  12. 2024Exploring Safety-Utility Trade-Offs in Personalized Language Modelscited by 27

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 4.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Revisiting Backdoor Attacks on LLMs: A Stealthy and Practical Poisoning Framework via Harmless Inputs
  2. 2024Leveraging the Context through Multi-Round Interactions for Jailbreaking Attacks
  3. 2025CASE-Bench: Context-Aware SafEty Benchmark for Large Language Models
  4. 2025QGuard:Question-based Zero-shot Guard for Multi-modal LLM Safety
  5. 2025QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Language
  6. 2025A Survey on Privacy Risks and Protection in Large Language Models
  7. 2025Prompt Injection as an Emerging Threat: Evaluating the Resilience of Large Language Models
  8. 2024SALAD-Bench: A Hierarchical and Comprehensive Safety Benchmark for Large Language Models