跳到主内容
@wquguru
精选88Microsoft Copilot 博客(RSS)产品发布/更新

微软 Copilot 引入确定性信任控制层防御提示注入

Building Trust-Aware Controls for AI: Differentiated handling of untrusted content

原文
发到 X
推荐理由

Copilot 从架构层面解决提示注入这一核心安全痛点,给出了具体的隔离与转换工程方案,对做企业级 Agent 的同学极具参考价值。

As organizations adopt generative AI into daily workflows, they face a new class of security challenges that do not fit traditional models of access control, identity, or data protection. One of the most important is indirect prompt injection: malicious instructions embedded in otherwise legitimate content such as emails, documents, or messages that an AI system may process as part of a task.

随着组织将生成式 AI 融入日常工作流程,它们面临着无法适应传统访问控制、身份或数据保护模型的新兴安全挑战。其中最重要的一点是间接提示注入:即在电子邮件、文档或消息等看似合法的内容中嵌入恶意指令,AI 系统在处理任务时可能会将其作为指令进行处理。

When that content is passed to the model alongside trusted prompts, the system may treat embedded instructions as commands rather than data. This can influence model behavior and contribute to outcomes such as unintended data disclosure, inaccurate information in responses, and other harms.

当该内容与可信提示词一同传递给模型时,系统可能会将嵌入的指令视为命令而非数据。这会影响模型行为,并导致意外数据泄露、回复中包含不准确信息以及其他危害。

These attacks can occur entirely within existing permissions. The system is authorized to access the content, and traditional controls such as authentication, access governance, and data loss prevention may still function as designed while leaving inference-time risk unaddressed.

这些攻击完全可以在现有权限范围内发生。系统被授权访问该内容,而传统的控制措施(如身份验证、访问治理和数据防泄漏)可能仍按设计正常运行,但推理阶段的风险仍未得到解决。

The Structural Gap in AI Systems

AI 系统中的结构性差距

Traditional computing systems use layered structural controls such as hardware isolation, privileged instruction sets, and access control models to reduce exposure to specific classes of attack vectors.

传统计算系统使用分层结构控制措施,例如硬件隔离、特权指令集和访问控制模型,以减少暴露于特定攻击向量的风险。

In many generative AI architectures, instructions and data are represented as tokens within a single representational input stream. Unlike traditional computing systems, neural networks do not independently provide equivalent structural separation between instructions and data. This architecture difference fundamentally changes the security model: malicious instructions embedded in untrusted grounding content will be processed alongside the original instructions.

在许多生成式 AI 架构中,指令和数据在单一表示输入流中以标记形式存在。与传统计算系统不同,神经网络并未独立提供指令与数据之间的等效结构分离。这种架构差异从根本上改变了安全模型:嵌入在未受信任基础内容中的恶意指令将与原始指令一起被处理。

Industry guidance reflects the severity of this issue: the OWASP Top 10 for LLM Applications 2026 ranks prompt injection as the number one application-level security risk for LLM applications. Existing mitigations such as classifier-based filtering, input sanitization, and hardened system prompts can reduce exposure to indirect prompt injection. Many prompt injection-related security vulnerabilities are difficult to mitigate with point fixes and may regress under variations of attack patterns, presenting an ongoing security risk. These techniques reduce risk but no single mitigation prevents every indirect prompt injection attempt. As part of our defense in depth strategy, our new approach complements these mitigations by adding a deterministic enforcement layer at inference time.

行业指南反映了这一问题的严重性:《2026 年 LLM 应用 OWASP Top 10》将提示注入列为 LLM 应用的首要应用级安全风险。现有的缓解措施,如基于分类器的过滤、输入清理和加固的系统提示,可以减少间接提示注入的暴露面。许多与提示注入相关的安全漏洞难以通过点状修复来解决,并且可能在攻击模式变化时出现回退,从而构成持续的安全风险。这些技术降低了风险,但没有单一的缓解措施能阻止每一次间接提示注入尝试。作为纵深防御策略的一部分,我们的新方法通过在推理时添加确定性执行层来补充这些缓解措施。

A New Direction: Deterministic Trust-Aware Controls

新方向:确定性的信任感知控制

Recent research has explored architectural approaches that apply pre-defined constraints to content based on its origin. Instead of relying solely on probabilistic detection, these approaches introduce deterministic controls that preserve clear trust boundaries. Read the research.

近期研究探索了基于内容来源应用预定义约束的架构方法。这些方法不单纯依赖概率性检测,而是引入确定性控制措施以保留清晰的信任边界。阅读相关研究。

This approach is designed to introduce a deterministic enforcement layer in M365 Copilot between retrieved content (tool outputs) and the primary large language model. This layer establishes a trust boundary designed to specifically handle content from an untrusted source before it enters the model context.

该方法旨在在 M365 Copilot 中,在检索到的内容(工具输出)与主大型语言模型之间引入一个确定性执行层。该层建立了一个信任边界,专门用于在主模型上下文之前处理来自不受信任源的内容。

How Trust-Aware Processing Works

信任感知处理的工作原理

Trust-Aware Content Handling

信任感知内容处理

When M365 Copilot retrieves grounding data, the system uses deterministic signals to categorize content as trusted or untrusted.

当 M365 Copilot 检索基础数据时,系统使用确定性信号将内容分类为可信或不可信。

For example, external content such as emails from outside the organization can be classified by policy as untrusted when crossing the organizational trust boundary. This classification provides a practical, scalable signal that can help reduce prompt injection risk.

例如,来自组织外部的电子邮件等外部内容,在跨越组织信任边界时可根据策略被归类为不可信。这种分类提供了一种实用且可扩展的信号,有助于降低提示注入风险。

Privilege Separation via Quarantine & Constrained Processing

通过隔离和受限处理实现权限分离

Untrusted content is routed through a quarantined, capability-constrained processing path rather than being provided directly to the primary model. There, it is processed in the context of the user’s query into a transformed representation. The transformation seeks to retain useful information while dropping malicious content, reducing the surface area by limiting the information that can be presented to the primary model.

不可信内容会被路由至经过隔离且能力受限的处理路径,而不是直接提供给主模型。在该路径中,它会在用户查询的上下文中被处理并转换为一种表示形式。转换过程旨在保留有用信息的同时丢弃恶意内容,通过限制可呈现给主模型的信息量来缩小攻击面。

This reduces the surface area available to adversarial instructions and limits the information that can be carried into downstream reasoning.

这减少了可供对抗性指令利用的攻击面,并限制了可带入下游推理过程的信息。

Provenance-Aware Processing

溯源感知处理

The system can add explicit provenance markers to indicate when content originates from an untrusted source. Maintaining this origin information allows downstream processing to account for content provenance and helps responses reflect the trust characteristics of their inputs.

系统可以添加明确的溯源标记,以指示内容是否源自不受信任的来源。保留此来源信息允许下游处理过程考虑内容的溯源情况,并有助于使响应反映其输入的信任特征。

Safer Synthesis

更安全的合成

The primary model generates responses using:

主模型使用以下内容生成响应:

  • Trusted content (passed through unchanged)
  • Transformed, structured representations of untrusted content
  • 未经修改传递的可信内容
  • 不可信内容的转换后结构化表示

This reduces exposure of the primary model to untrusted inputs, reducing the likelihood that adversarial instructions can influence outcomes while preserving task-relevant information to maintain utility.

这降低了主模型暴露于不可信输入的风险,减少了对抗性指令影响结果的可能性,同时保留了任务相关信息以维持实用性。

Example: Email-Borne Prompt Injection

示例:通过邮件传播的提示注入

Consider a routine business email that contains hidden or embedded instructions. When a user asks their AI assistant to summarize their inbox, the system retrieves the email and passes the email content into the model alongside system prompts. Embedded malicious instructions may then influence model output.

考虑一封包含隐藏或嵌入指令的常规商务电子邮件。当用户要求 AI 助手总结收件箱时,系统会检索该邮件,并将邮件内容与系统提示词一同传入模型。嵌入的恶意指令随后可能影响模型的输出。

In these cases there is no violation of access policy or mishandling of data; the system is functioning as designed, but it can fail to distinguish data to be summarized from instructions to be executed at inference time.

在这些情况下,并未违反访问策略或不当处理数据;系统按设计正常运行,但在推理时无法区分需要摘要的数据与需要执行的指令。

How Deterministic Controls Help Reduce Indirect Prompt Injection Risk

确定性控制如何帮助降低间接提示注入风险

This architecture applies consistent controls at defined points in the orchestration pipeline. While traditional approaches attempt to identify malicious behavior within a shared input space, this approach constrains how information flows through that space.

该架构在编排管道的定义点上应用一致的管控措施。传统方法试图在共享输入空间内识别恶意行为,而这种方法则限制了信息在该空间中的流动方式。

The enforcement layer provides:

执行层提供:

  • Deterministic signals: Untrusted content is intercepted at a fixed point in the orchestration pipeline using deterministic signals.
  • Structured hand-off: Untrusted content is transformed, removing malicious content while retaining benign content based on the user's prompt.
  • 确定性信号:不可信内容在编排管道的固定点使用确定性信号进行拦截。
  • 结构化交接:对不可信内容进行转换,移除恶意内容,同时基于用户的提示保留良性内容。

By reducing both the fidelity and control surface of untrusted inputs, this approach lowers the probability that indirect prompt injection attacks can succeed, even when the system is authorized to access the underlying data.

通过降低不可信输入的保真度和控制面,这种方法降低了间接提示注入攻击成功的可能性,即使系统被授权访问底层数据也是如此。

Looking Ahead

展望未来

Microsoft 365 Copilot is introducing a new enforcement layer. Initial investments focus on high-risk content, including external communications. We are exploring expanded coverage for additional content types and sources, along with deeper integration with enterprise signals and policy systems to support more granular trust models.

Microsoft 365 Copilot 正在引入一个新的执行层。初始投资侧重于高风险内容,包括外部通信。我们正在探索扩大对其他内容类型和来源的覆盖范围,并深化与企业信号和政策系统的集成,以支持更细粒度的信任模型。

To configure this protection in your tenant, enable the applicable Outlook sender setting used to identify untrusted content and review the configuration guidance for CVE-2026-55145. Availability and behavior may vary by release status and tenant environment.

要在您的租户中配置此保护功能,请启用用于标识不可信内容的相应 Outlook 发件人设置,并查看 CVE-2026-55145 的配置指南。可用性和行为可能因发布状态和租户环境而异。

The rise of indirect prompt injection attacks highlights a broader shift in AI security. This work brings foundational security principles – explicit trust boundaries, constrained processing, and deterministic enforcement – into the AI inference layer.

间接提示注入攻击的兴起凸显了 AI 安全领域的更广泛转变。这项工作将基础安全原则——明确的信任边界、受限处理和确定性执行——带入 AI 推理层。

As generative AI continues to evolve, these architectural advances can help enterprise AI systems become more secure, reliable, and trustworthy by design.

随着生成式 AI 的不断演进,这些架构进步可以通过设计使企业 AI 系统变得更加安全、可靠和可信。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件