AegisAI Perspectives · 182

How do you protect Microsoft Copilot from prompt injection in email?

Map each Microsoft control to the stage it guards, find the gap on your tenant, and screen the mail Copilot reads.

TL;DR
Answer
Screen each message, hidden text included, before Copilot reads it.
Watch out for
Defender's email check focuses on injections that try to exfiltrate data through a URL, reveal the system prompt, or list the assistant's tools.
What AegisAI does
AegisAI inspects incoming mail for concealed payloads written to manipulate an inbox assistant.
Book a demo

AegisAI reads mail through the Microsoft 365 API after delivery, with no change to MX records.

Or get the Q3 2026 State of the AI Attack report (free, instant download)

How do you protect Microsoft Copilot from prompt injection in email?

Screen each message, hidden text included, before Copilot reads it, because Copilot treats email text as input and can follow an instruction hidden in it. AegisAI keeps hidden regions of the body in scope, so an instruction written for Copilot is judged with the message6.

The attack, hidden text that Copilot reads and a person never sees, is described in the inbox has a second reader.

The short answer

Three Microsoft layers protect Microsoft Copilot from prompt injection, and each leaves something to the next.

LayerWhere it actsWhat it leaves
Defender for Office 365 Plan 2 prompt injection protectionMail flow, before delivery1Injections outside its three focus areas, and some test injections from known senders1
Copilot jailbreak and cross-prompt injection (XPIA) classifiersBefore the model runs2Scenarios where the classifiers are not available2
Purview DLP and grounding limitsWhile Copilot grounds its answer3The DLP block applies to emails that carry sensitivity labels3

How does an email carry an injected instruction to Copilot?

Copilot accesses content through Microsoft Graph and anchors answers in emails, chats and documents the user has permission to see2. When a user asks it to summarize, classify or reply to a message, the assistant reads the full message as input1.

The industry term is indirect prompt injection. OWASP defines it as an LLM taking input from outside sources, and notes the input works even when people cannot see it4. Microsoft names white text on a white background, zero-size text, off-screen content, quoted replies, attachments, and Base64 or Unicode tricks as places an attacker hides the instruction1.

CVE-2025-32711, an AI command injection in Microsoft 365 Copilot that lets an unauthorized attacker disclose information over a network, is scored CVSS 3.1 9.3, Critical, by Microsoft, the CVE Numbering Authority (CNA) for the record, and 7.5, High, by NIST5.

Illustrative, fictional. An order confirmation reaches a finance clerk. A span styled display:none asks the assistant to list every tool it can use with write access. The clerk sees a normal receipt. Copilot, asked for a summary, reads the hidden line too.

Which Microsoft controls protect Microsoft Copilot from prompt injection?

Defender for Office 365 Plan 2 detects prompt injection content in inbound email before it reaches a user or an AI assistant1. It reads the body, hidden text, quoted content and decoded segments. A detection lands under the High confidence phishing verdict, with the detection technology value Prompt injection protection, and no extra configuration is needed1.

Inside Copilot, jailbreak and cross-prompt injection attack (XPIA) classifiers analyze inputs and help block high-risk prompts before the model runs2. Copilot does not ground answers in spam mail or chats, and tool chain analysis assesses prompt injection risk and decides whether to block or allow a request3. Admins can set Purview DLP to stop Copilot from processing emails that carry sensitivity labels3.

When the jailbreak classifiers fire, the signal shows in the Defender portal and in Purview audit logs3.

What is left after Microsoft's controls?

Defender's email check focuses on injections that try to exfiltrate data through a URL, reveal the system prompt, or list the assistant's tools1. Microsoft keeps the scope narrow to hold false positives down, and adds that a basic test injection from a known sender may not trigger a detection1.

A check at mail flow cannot see Copilot's instructions, permissions, grounded data or tools, so Microsoft says Copilot's runtime safeguards remain important1. Microsoft operates the jailbreak classifiers on behalf of customers3, so a mail product sits beside them as one more layer to protect Microsoft Copilot from prompt injection.

What is the best email security to protect Microsoft Copilot from prompt injection?

Judge any product on four tests, run on your own tenant.

  1. Send a test message with a hidden span that asks for a forward to an outside address, which sits outside Defender's three focus areas. Check whether the product flags it and names the hidden text in its evidence.

  2. Send the same message from a known partner domain. Microsoft notes that sender reputation can change the outcome1.

  3. Read the vendor's deployment guide to see whether the product reads mail through the Microsoft 365 API or needs an MX record change. Then, in the trial, let a test message deliver to three mailboxes and check each mailbox in Outlook to see whether the product removed every copy.

  4. Ask the vendor, during the trial, for one verdict on your own mail with its written evidence, and check that evidence against the message source in Outlook.

How AegisAI handles this

AegisAI inspects incoming mail for concealed payloads written to manipulate an inbox assistant6.

AegisAI reads mail through the Microsoft 365 API after delivery, with no change to MX records, and runs alongside Defender9.

AegisAI removes nothing until an admin grants write access, and starts read-only in monitoring mode8.

How to measure it in 30 days

  • Count Prompt injection protection detections in Defender Threat Explorer, filtered on detection technology, and note which of the three focus areas each one hit1.
  • Search Purview audit logs for Copilot records with JailbreakDetected set to true, and trace each one back to the email that Copilot grounded on3.
  • Log every AegisAI verdict that names hidden text as an injected instruction in a shared spreadsheet, one row per email, with a column for whether Defender also caught it.
  • Send the two test messages from the list above in week one and again in week four, and record which layer flagged each.

To fill that spreadsheet with your own mail, connect a tenant in monitoring mode.

Questions people ask

Best email security to protect Microsoft Copilot from prompt injection?

Pick the product that flags hidden instructions beyond Defender's three focus areas, explains each verdict in writing, and removes delivered copies. Prove it with the four tenant tests above, not a datasheet.

How does AegisAI explain a prompt injection verdict?

AegisAI checks reputation, intent, policy and headers in parallel, and gives every verdict a confidence score and plain-language evidence.

How to protect AI email assistants from prompt injection?

Screen the mail before the assistant reads it, and limit what the assistant can do with what it reads. The eight steps for any assistant are in how to protect AI email assistants from prompt injection.

Does Defender for Office 365 stop prompt injection in email?

Plan 2 detects it at mail flow, within the three focus areas set out above. Other injections rely on Copilot's runtime classifiers.

Sources

  1. (Microsoft Learn: Prompt injection protection in Microsoft Defender for Office 365, 2 September 2026)
  2. (Microsoft Learn: Data, Privacy, and Security for Microsoft Copilot, 9 July 2026)
  3. (Microsoft Learn: Microsoft Copilot prompt defense in depth, 10 September 2026)
  4. (OWASP GenAI Security Project: LLM01:2025 Prompt Injection)
  5. (NIST National Vulnerability Database: CVE-2025-32711, published 11 June 2025)
  6. (AegisAI: How to protect AI email assistants from prompt injection)
  7. (AegisAI: The Inbox Has a Second Reader)
  8. (AegisAI: Platform, read 30 November 2026)
  9. (AegisAI: Inbound email security, read 30 November 2026)

Recent posts

Every email, investigated.