system: OPERATIONAL
← back to all hacks
DEFENSE MEDIUM NEW

Microsoft 365 Copilot Quarantines External Email Before the Model Sees It

Microsoft added a deterministic layer to M365 Copilot that labels external email as untrusted and transforms it before synthesis. It only works if one Outlook tenant setting is on.

2026-11-14 // 6 min affects: microsoft-365-copilot, outlook-copilot

What is this?

On October 13, 2026, Microsoft described a new enforcement layer in Microsoft 365 Copilot aimed at indirect prompt injection: instructions hidden in an email or document that the assistant reads while doing a legitimate task. The post, “Building Trust-Aware Controls for AI”, explains that Copilot now labels some grounding content as untrusted using deterministic, policy-based signals, and routes it through a separate, capability-constrained path before the main model sees it. Five days earlier, on October 8, 2026, a Microsoft Security blog post documented a stricter, complementary option: a Purview DLP rule that keeps external email out of Copilot entirely.

The first coverage target is the riskiest input for an enterprise assistant: email from outside the organization. The change also ties back to a July 14, 2026 Microsoft advisory on a command injection (tampering) flaw in Outlook Copilot, rated 6.3 (Medium), for which Microsoft asks administrators to take action rather than simply install a patch.

This article is about the defense, not an attack. It explains what Microsoft has said publicly, what it has not, and what an administrator should actually change.

How it works

Microsoft’s post names four components:

  • Trust-aware content handling. Retrieved content (tool output) is intercepted at a fixed point in the orchestration pipeline and labeled trusted or untrusted by policy. The example given: an email is untrusted when it crosses the organizational boundary.
  • Quarantine and constrained processing. Untrusted content goes through a “quarantined, capability-constrained processing path” that turns it into a structured representation tailored to the user’s request, meant to keep task-relevant facts and drop embedded instructions.
  • Provenance markers. The transformed content carries explicit markers of its untrusted origin, so later steps can weigh it accordingly.
  • Safer synthesis. The primary model receives trusted content unchanged, plus only the transformed version of untrusted content.

The design idea is old in security and newer in LLM systems: instead of trying to detect malicious text in a shared token stream, constrain how untrusted data can flow. Microsoft links the approach to its own research on information-flow control for agents (Costa et al., arXiv, May 2025). It resembles the “dual LLM” or quarantine patterns discussed in the research community, though Microsoft does not name them and does not describe the transformation method itself.

The key operational detail is how “external” is decided. Microsoft’s post tells administrators to “enable the applicable Outlook sender setting that identifies untrusted content” and to review the guidance for the July Outlook Copilot advisory. Partner write-ups published on October 14 and 15, 2026 (Access Business Technologies, 24uNet) identify this as Outlook’s external sender identification, managed in Exchange Online PowerShell:

# Check the current state (Exchange Online PowerShell)
Get-ExternalInOutlook

# Turn on external sender identification for the whole tenant
Set-ExternalInOutlook -Enabled $true

Microsoft’s cmdlet documentation notes that the External label can take 24 to 48 hours to appear, that existing mail flow rules adding “[EXTERNAL]” to subjects should be disabled first to avoid duplicates, and that an allow list (up to 200 entries) exempts listed senders from the label.

Why it matters

Indirect prompt injection is a structural problem: a language model receives instructions and data as the same kind of tokens. Detection-only defenses (classifiers, hardened system prompts) reduce risk but are probabilistic. A deterministic trust boundary is a different kind of control: it does not depend on recognizing a particular payload. That is why this move by a major vendor is worth noting.

The limits are just as important:

  • It depends on tenant configuration. If external sender identification is off, the advisory guidance indicates the protection may not apply. Many tenants rely on subject-line mail flow rules instead, which are a different mechanism.
  • Coverage is narrow for now. Microsoft says the first scope is high-risk content, mainly external communications. Web results, shared files and internal email are not described as covered.
  • “Internal” is not the same as “safe.” Microsoft’s own DLP post notes that classification relies on sender metadata and accepted domains, not content. A compromised internal mailbox, or an external message forwarded internally, can carry the same payload in through a trusted channel.
  • Allow-listed senders. Microsoft does not document whether senders exempted from the External label are also treated as trusted by Copilot. Administrators should assume they might be and keep the list short.
  • No single fix. Microsoft says plainly that no single mitigation prevents every indirect prompt injection attempt.

Defenses

For Microsoft 365 administrators:

  1. Enable external sender identification with Set-ExternalInOutlook -Enabled $true, after retiring any duplicate subject-tagging transport rules. Allow 24 to 48 hours before testing.
  2. Review the allow list. Every exemption may widen what Copilot treats as trusted. Remove anything not justified.
  3. Consider the stricter Purview option for high-risk groups (finance, executives, support desks): a custom DLP policy on the “Microsoft 365 Copilot and Copilot Chat” location, condition “Email is received from: External users”, action “Prevent Copilot from processing content”. Run it in simulation mode first. Users still read the emails; Copilot simply stops using them for grounding.
  4. Check accepted domains, since they define what counts as internal for both controls.
  5. Test with harmless canaries. Send an external test message containing a benign, unique instruction (for example, a request to add a specific code word to any summary) and confirm Copilot does not follow it once the controls are active.
  6. Keep the other layers. Least-privilege connectors, confirmation for actions that send or share data, and audit logging of Copilot interactions remain necessary.

For teams building their own assistants, the pattern is reusable: label sources by provenance using deterministic rules, process untrusted content in a path with no tool access, pass on only a structured summary with origin markers, and never let untrusted text trigger actions directly. Related coverage: masking untrusted content in web agents and June 2026 Copilot injection disclosures.

Status

ItemDetail
Outlook Copilot advisoryPublished 2026-07-14; CVSS 3.1 score 6.3 (Medium); CWE-77; customer action via tenant setting (CVE-2026-55145)
Purview DLP control for external emailDocumented 2026-10-08 (Microsoft Security blog)
Trust-aware handling in M365 CopilotAnnounced 2026-10-13; initial scope: external communications
Required tenant settingOutlook external sender identification (Set-ExternalInOutlook -Enabled $true)
Transformation methodNot publicly documented
Known exploitationNone reported for the advisory

Sources