CAPTURE: Context-Aware Prompt Injection Testing and Robustness Enhancement
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
- 2025PromptShield: Deployable Detection for Prompt Injection Attacks25 Jan
- 2024InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Models30 Oct
- 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuning29 Dec
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb
Other references · 5
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,254
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 496
- 2016Key-Value Memory Networks for Directly Reading Documentscited by 223
- 2024Llama Guard 3 Vision: Safeguarding Human-AI Image Understanding Conversationscited by 129
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2025Policy-as-Prompt: Turning AI Governance Rules into Guardrails for AI Agentscited by 14
- 2026LongPIBench: A Long-Context Benchmark for Prompt Injectioncited by 1
- 2026PIDS-Bench: Evaluating Prompt-Injection Detectors Under Over-Defense, Obfuscation, and Distribution Shiftcited by 1
- 2026CrackedPDFs: A Controlled Benchmark for Hidden Prompt Injection in PDFscited by 0
- 2026PIDS-Bench: Evaluating Prompt-Injection Detectors Under Over-Defense, Obfuscation, and Distribution Shift14 Sep 2026
- 2026LongPIBench: A Long-Context Benchmark for Prompt Injection28 Aug 2026
- 2026CrackedPDFs: A Controlled Benchmark for Hidden Prompt Injection in PDFs3 Jul 2026
- 2025Policy-as-Prompt: Turning AI Governance Rules into Guardrails for AI Agents28 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2026Prompt Overflow: What the Guardrail Inspects Is Not What the Model Infers
- 2025Adversarial Prompt Evaluation: Systematic Benchmarking of Guardrails Against Prompt Input Attacks on LLMs
- 2025OET: Optimization-based prompt injection Evaluation Toolkit
- 2026BASIS: Breach-Aware Selective Prompt Injection Shielding with Prefill Attention Probes
- 2026Decoding Guardrails: XAI-Guided Perturbation Analysis of Prompt Injection Detection
- 2026AttackEval: A Systematic Empirical Study of Prompt Injection Attack Effectiveness Against Large Language Models
- 2025Bypassing LLM Guardrails: An Empirical Analysis of Evasion Attacks against Prompt Injection and Jailbreak Detection Systems
- 2026ADVERSA: Measuring Multi-Turn Guardrail Degradation and Judge Reliability in Large Language Models