Multi-Stage Prompt Inference Attacks on Enterprise LLM Systems
Andrii Balashov, Ponomarova, Olena, Xiaohua Zhai · 2025 · 13 citationsRead the paper
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.
What the full text shows
Working prototype- Integrated defense-in-depth strategy prevented complete exfiltration of secrets in the majority of attack dialogues. — > 95% (Compared to an unprotected system which was fully compromised in most cases)
- FocusTrack anomaly detection achieved higher True Positive Rates (TPR) than baseline heuristics. — 0.90 TPR at 90% TNR (vs 0.60 baseline) (Detection of indirect prompt injections)
- Spotlighting (input transformations to isolate untrusted content) reduced attack success. — by an order of magnitude (Indirect injections mixing external data)
- FocusTrack anomaly detection achieved a specific TPR at a higher True Negative Rate. — 0.75 TPR at 95% TNR (Detection of indirect prompt injections)
- Setup
- Simulated enterprise LLM environment integrated with private corporate data (e.g., SharePoint documents, emails).
- How
- The researchers simulated multi-stage prompt inference attacks using mild-mannered queries and indirect injections against an LLM integrated with corporate data. They evaluated a defense-in-depth strategy combining statistical anomaly detection (FocusTrack), spotlighting, fine-grained access control, and differential privacy.
- Limitations
- Anomaly detection can be bypassed by stealthy attacks and may produce false alarms. · Spotlighting relies on the model's ability to follow formatting and may slightly reduce accuracy. · Prompt sanitization can be circumvented by obfuscated instructions. · Defenses are subject to a continual arms race with evolving adversarial prompts.
Summarized by Gemma 4 from the open-access full text · 28 Nov 2026. Read it