企业大模型易遭多阶段提示攻击,可悄悄泄露机密数据。
Multi-Stage Prompt Inference Attacks on Enterprise LLM Systems
- 设计多轮诱导攻击框架,用温和提问逐步窃取敏感信息。
- 实测可绕过安全防护,从SharePoint等内部系统提取数据。
- 提出
部署于企业环境的大语言模型(如 Microsoft 365 Copilot)面临新型安全威胁。本文研究多阶段提示推理攻击:攻击者通过一系列看似无害的提问,逐步提取机密信息。我们构建了针对多轮推理攻击的形式化威胁模型,结合概率论、优化框架与信息论泄漏边界进行分析。实验表明,即使启用常规安全措施,攻击仍能可靠地从模型上下文(如内部 SharePoint 文档或邮件)中窃取敏感内容。我们提出并评估多种防御方案,包括统计异常检测、细粒度访问控制、提示净化及架构改进。例如,基于差分隐私训练推导出信息泄漏上限,并验证一种高 AUC 的异常检测方法;提出“聚光”技术,通过输入变换隔离不可信提示内容,使攻击成功率降低一个数量级。最终提供组合防御策略的形式化验证与实证支持。研究表明,企业级 LLM 安全需超越单轮提示过滤,转向多阶段攻防协同的整体视角。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。