Security--Fidelity Tradeoffs: The Hidden Cost of Prompt Injection Defense
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
We identify a security-fidelity tradeoff in defending LLMs against indirect prompt injection: defenses resist injected instructions largely by suppressing untrusted text, which corrupts tasks that must preserve it, such as translation and document editing. Attack-success metrics cannot see this, because a model that ignores an injection and one that faithfully processes it as data score identically. We introduce SecFid, a benchmark built so that executing an injection, processing it as data, and ignoring it produce distinguishable outputs. This makes fidelity measurable and exposes a frontier: across 1,168 examples and 48 configurations, no model or defense achieves both objectives. The highest-fidelity model reaches 96.5% fidelity at 47.8% security, while the most secure defenses invert this, at 99.3% security but only 71.0%-73.9% fidelity. Even defenses with identical security differ in how they earn it: some repair hijacks into faithful processing, others simply suppress benign content. A decision-theoretic analysis shows why no fixed choice can be right everywhere: the correct behavior is not a property of the defense but of the deployment, set by its relative cost of a hijack versus a dropped span. Security alone therefore measures only half of robustness, and reporting it without fidelity hides the price at which it was bought.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 28 of its 44 references that are in the map. First posted on arXiv 29 Jun 2026.
Builds on
28 of 44 references.
Closest ancestors · 15
Same direction, newest first
- 2025Mitigating Indirect Prompt Injection via Instruction-Following Intent Analysis30 Nov
- 2025BrowseSafe: Understanding and Preventing Prompt Injection Within AI Browser Agents25 Nov
- 2025CommandSans: Securing AI Agents with Surgical Precision Prompt Sanitization9 Oct
- 2025Defending Against Prompt Injection With a Few DefensiveTokens10 Jul
- 2025Sentinel: SOTA model to protect against prompt injections5 Jun
- 2025WASP: Benchmarking Web Agent Security Against Prompt Injection Attacks22 Apr
- 2025ASIDE: Architectural Separation of Instructions and Data in Language Models13 Mar
- 2025A Closer Look at System Prompt Robustness15 Feb
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMs1 Nov
- 2024Get my drift? Catching LLM Task Drift with Activation Deltas2 Jun
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
- 2024Defending Against Indirect Prompt Injection Attacks With Spotlighting20 Mar
3 more
- 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models21 Dec
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb
Other references · 13
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,143
- 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,134
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 494
- 2023Poisoning Web-Scale Training Datasets is Practicalcited by 276
- 2024Follow My Instruction and Spill the Beans: Scalable Data Extraction from Retrieval-Augmented Generation Systemscited by 76
- 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 70
- 2025The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Textcited by 25
- 2025Bridging the Editing Gap in LLMs: FineEdit for Precise and Targeted Text Modificationscited by 20
Built on by
Citing papers per year: 2026: 2.
2 papers.