Multi-Stage Prompt Inference Attacks on Enterprise LLM Systems
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) deployed in enterprise settings (e.g., as Microsoft 365 Copilot) face novel security challenges. One critical threat is prompt inference attacks: adversaries chain together seemingly benign prompts to gradually extract confidential data. In this paper, we present a comprehensive study of multi-stage prompt inference attacks in an enterprise LLM context. We simulate realistic attack scenarios where an attacker uses mild-mannered queries and indirect prompt injections to exploit an LLM integrated with private corporate data. We develop a formal threat model for these multi-turn inference attacks and analyze them using probability theory, optimization frameworks, and information-theoretic leakage bounds. The attacks are shown to reliably exfiltrate sensitive information from the LLM's context (e.g., internal SharePoint documents or emails), even when standard safety measures are in place. We propose and evaluate defenses to counter such attacks, including statistical anomaly detection, fine-grained access control, prompt sanitization techniques, and architectural modifications to LLM deployment. Each defense is supported by mathematical analysis or experimental simulation. For example, we derive bounds on information leakage under differential privacy-based training and demonstrate an anomaly detection method that flags multi-turn attacks with high AUC. We also introduce an approach called "spotlighting" that uses input transformations to isolate untrusted prompt content, reducing attack success by an order of magnitude. Finally, we provide a formal proof of concept and empirical validation for a combined defense-in-depth strategy. Our work highlights that securing LLMs in enterprise settings requires moving beyond single-turn prompt filtering toward a holistic, multi-stage perspective on both attacks and defenses.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 27 of its 42 references that are in the map. First posted on arXiv 21 Jul 2025.
Builds on
27 of 42 references.
References · 27
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2016Deep Learning with Differential Privacycited by 2,682
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2016Concrete Problems in AI Safetycited by 1,582
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,219
- 2022Red Teaming Language Models with Language Modelscited by 983
15 more
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2023A Watermark for Large Language Modelscited by 667
- 2016Stealing Machine Learning Models via Prediction APIscited by 602
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 434
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 405
- 2021Differentially Private Fine-tuning of Language Modelscited by 392
- 2021Membership Inference Attacks on Machine Learning: A Surveycited by 306
- 2023Challenges and Applications of Large Language Modelscited by 251
- 2023Undetectable Watermarks for Language Modelscited by 208
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 82
- 2023Cognitive Overload: Jailbreaking Large Language Models with Overloaded Logical Thinkingcited by 78
- 2024Signed-Prompt: A New Approach to Prevent Prompt Injection Attacks Against LLM-Integrated Applicationscited by 42
- 2025Lessons from Defending Gemini Against Indirect Prompt Injectionscited by 40
- 2024InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Modelscited by 36
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.