Quantifying Return on Security Controls in LLM Systems
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Although large language models (LLMs) are increasingly used in security-critical workflows, practitioners lack quantitative guidance on which safeguards are worth deploying. This paper introduces a decision-oriented framework and reproducible methodology that together quantify residual risk, convert adversarial probe outcomes into financial risk estimates and return-on-control (RoC) metrics, and enable monetary comparison of layered defenses for LLM-based systems. A retrieval-augmented generation (RAG) service is instantiated using the DeepSeek-R1 model over a corpus containing synthetic personally identifiable information (PII), and subjected to automated attacks with Garak across five vulnerability classes: PII leakage, latent context injection, prompt injection, adversarial attack generation, and divergence. For each (vulnerability, control) pair, attack success probabilities are estimated via Laplace's Rule of Succession and combined with loss triangle distributions, calibrated from public breach-cost data, in 10,000-run Monte Carlo simulations to produce loss exceedance curves and expected losses. Three widely used mitigations, attribute-based access control (ABAC); named entity recognition (NER) redaction using Microsoft Presidio; and NeMo Guardrails, are then compared to a baseline RAG configuration. The baseline system exhibits very high attack success rates (>= 0.98 for PII, latent injection, and prompt injection), yielding a total simulated expected loss of 313k per attack scenario. ABAC collapses success probabilities for PII and prompt-related attacks to near zero and reduces the total expected loss by ~94%, achieving an RoC of 9.83. NER redaction likewise eliminates PII leakage and attains an RoC of 5.97, while NeMo Guardrails provides only marginal benefit (RoC of 0.05).
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 37 of its 50 references that are in the map. First posted on arXiv 17 Dec 2025.
Builds on
37 of 50 references.
Closest ancestors · 3
Same direction, newest first
- 2024garak: A Framework for Security Probing Large Language Models16 Jun
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal6 Feb
- 2024Red-Teaming for Generative AI: Silver Bullet or Security Theater?29 Jan
Other references · 34
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2016Deep Learning with Differential Privacycited by 2,728
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2023Extracting Training Data from Diffusion Modelscited by 732
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
22 more
- 2019CCNet: Extracting High Quality Monolingual Datasets from Web Crawl Datacited by 548
- 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
- 2023Can LLM-Generated Misinformation Be Detected?cited by 177
- 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 175
- 2024Robust Prompt Optimization for Defending Language Models Against Jailbreaking Attackscited by 156
- 2020Directions in Abusive Language Training Data: Garbage In, Garbage Outcited by 140
- 2024The Emerged Security and Privacy of LLM Agent: A Survey with Case Studiescited by 131
- 2023Large Language Models in Law: A Surveycited by 128
- 2023A Survey of Large Language Models in Medicine: Progress, Application, and Challengecited by 124
- 2024LLM Agents can Autonomously Hack Websitescited by 109
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 82
- 2024Safeguarding Large Language Models: A Surveycited by 78
- 2024Intention Analysis Makes LLMs A Good Jailbreak Defendercited by 74
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 71
- 2024JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Modelscited by 70
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systemscited by 66
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 51
- 2023PromptBench: A Unified Library for Evaluation of Large Language Modelscited by 44
- 2023A Security Risk Taxonomy for Prompt-Based Interaction With Large Language Modelscited by 12
- 2024As Firm As Their Foundations: Can open-sourced foundation models be used to create adversarial examples for downstream tasks?cited by 11
- 2024Insights and Current Gaps in Open-Source LLM Vulnerability Scanners: A Comparative Analysiscited by 10
- 2024Trustworthy AI: Securing Sensitive Data in Large Language Modelscited by 7
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025ControlNET: A Firewall for RAG-based LLM System
- 2025Data Security in Large Language Models: Risks, Defense, and Directions
- 2023Advancing TTP Analysis: Harnessing the Power of Large Language Models with Retrieval Augmented Generation
- 2024Recent Advances in Attack and Defense Approaches of Large Language Models
- 2026Security Assessment and Mitigation Strategies for Large Language Models: A Comprehensive Defensive Framework
- 2024Large Language Models as Robust Data Generators in Software Analytics: Are We There Yet?
- 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Models
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey