mlsanityData to 14 Oct 2026

CAPTURE: Context-Aware Prompt Injection Testing and Robustness Enhancement

arXiv 2505.12368 ↗First posted 18 May 2025cs.CL cs.AIcited by 4

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

Prompt injection remains a major security risk for large language models. However, the efficacy of existing guardrail models in context-aware settings remains underexplored, as they often rely on static attack benchmarks. Additionally, they have over-defense tendencies. We introduce CAPTURE, a novel context-aware benchmark assessing both attack detection and over-defense tendencies with minimal in-domain examples. Our experiments reveal that current prompt injection guardrail models suffer from high false negatives in adversarial cases and excessive false positives in benign scenarios, highlighting critical limitations. To demonstrate our framework's utility, we train CaptureGuard on our generated data. This new model drastically reduces both false negative and false positive rates on our context-aware datasets while also generalizing effectively to external benchmarks, establishing a path toward more robust and practical prompt injection defenses.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 9 of its 26 references that are in the map. First posted on arXiv 18 May 2025.

Builds on

9 of 26 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025PromptShield: Deployable Detection for Prompt Injection Attacks25 Jan
  2. 2024InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Models30 Oct
  3. 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuning29 Dec
  4. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb

Other references · 5

  1. 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,254
  2. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  3. 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 496
  4. 2016Key-Value Memory Networks for Directly Reading Documentscited by 223
  5. 2024Llama Guard 3 Vision: Safeguarding Human-AI Image Understanding Conversationscited by 129

Built on by

Cited by year (2026 to 14 Oct)

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

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Prompt Overflow: What the Guardrail Inspects Is Not What the Model Infers
  2. 2025Adversarial Prompt Evaluation: Systematic Benchmarking of Guardrails Against Prompt Input Attacks on LLMs
  3. 2025OET: Optimization-based prompt injection Evaluation Toolkit
  4. 2026BASIS: Breach-Aware Selective Prompt Injection Shielding with Prefill Attention Probes
  5. 2026Decoding Guardrails: XAI-Guided Perturbation Analysis of Prompt Injection Detection
  6. 2026AttackEval: A Systematic Empirical Study of Prompt Injection Attack Effectiveness Against Large Language Models
  7. 2025Bypassing LLM Guardrails: An Empirical Analysis of Evasion Attacks against Prompt Injection and Jailbreak Detection Systems
  8. 2026ADVERSA: Measuring Multi-Turn Guardrail Degradation and Judge Reliability in Large Language Models