SentinelOS

Resources · Agent security

Securing Microsoft 365 Copilot and its agents.

Microsoft 365 Copilot has no right the user does not have: it reads everything that user can read, and that is where the risk lies. A company's overly broad permissions become answers, and a message received can dictate what the assistant does with them, as EchoLeak (CVE-2025-32711) showed. Microsoft supplies the controls, but they have to be configured, and several have limits that Microsoft's own documentation spells out.

What can Microsoft 365 Copilot reach, and who decides?

It reaches what the user who invokes it can reach, and nothing else. Microsoft writes this in its documentation:

"Microsoft Copilot only surfaces organizational data to which individual users have at least view permissions." The same page describes the mechanism: Copilot accesses content and context through Microsoft Graph, that is, the user's emails, chats, documents, calendar, meetings and contacts, and the semantic index "honors the user identity-based access boundary".

Two consequences for a security lead.

  • Copilot elevates no privilege. It does not bypass SharePoint, it queries it. An attack that goes through it stays, in principle, bounded by the victim's rights.
  • Copilot makes excessive rights visible. A document shared with the whole company "for convenience" stayed barely visible as long as nobody looked for it. An assistant that answers an open question looks for it on the user's behalf.

Microsoft says so bluntly in its security guide: "Overshared or poorly governed content can affect Copilot results and increase risk." The rights you grant to users outside the organization, for example through shared channels in Teams, also fall within the perimeter Copilot can read.

Copilot's security model is your permissions model. Your permissions are therefore your first attack surface.

The product has been renamed: Microsoft's documentation now calls "Microsoft Copilot" the application that used to be called Microsoft 365 Copilot. This article keeps the old name, the one used in the security advisories cited below.

Copilot Studio, connectors and agents: the perimeter widens

Copilot does not work alone. It calls agents and reads external sources.

  • Graph connectors. Third-party data ingested by a connector can appear in answers if the user has access to it.
  • Agents. When an agent is enabled, Copilot decides whether to use it and sends it a search query on the user's behalf. That query is based on the prompt, the Copilot activity history and the data the user can access. Microsoft recommends reading each agent's privacy statement to know what it does with the data.
  • Copilot Studio agents. Business teams build them with low-code tools, connect them to knowledge sources, connectors and HTTP requests, and can launch them through triggers, so without a person typing a prompt.

The administration controls are documented. In the Microsoft 365 admin center, the "Integrated apps" section shows the permissions and data access an agent requests, and the administrator chooses the allowed agents. In the Power Platform admin center, data policies govern author and user authentication, knowledge sources, actions and connectors, HTTP requests, publication to channels, triggers and Application Insights. The administrator can also disable, tenant-wide, the publication of agents that use generative AI.

On identity, the Entra Agent ID documentation states that every agent created in Copilot Studio receives an agent identity in the Entra tenant, that the person who created it is recorded as its sponsor, and that its authentications are logged like those of an AI agent. The Copilot Studio governance page is more nuanced: for organizations that have adopted Microsoft Agent 365, agents can be represented by Entra identities and governed by conditional access. Entra Agent ID is available to all Entra customers; extending Entra's security features to agents requires Agent 365. Check in your tenant which of the two descriptions applies before building a policy on it.

The point of method is the one in the article on agent identities and least privilege: an agent that acts with the user's credentials, an option Copilot Studio lets you set as the default behavior of tools, inherits all of that user's rights, including those that no business process ever asked it to use.

Which public flaws, and what do they say?

The seven CVE records cited below are all of the same type: information disclosure. The facts that follow come from the CVE records Microsoft published, from the researchers themselves and from an academic paper.

  1. January 2025Aim Labs builds a proof of concept and reports the flaw to Microsoft. Microsoft deploys a server-side fix in May 2025.
  2. February 21, 2025Zenity Labs reports to Microsoft a prompt injection through triggers in Copilot Studio. Microsoft confirms the behavior on March 13 and fixes it on April 24, 2025.
  3. June 11, 2025Publication of CVE-2025-32711, "M365 Copilot Information Disclosure Vulnerability", nicknamed EchoLeak, CVSS score 9.3 (critical).
  4. July 7, 2025Zenity Labs publishes its analysis of the Copilot Studio flaw.
  5. January 22, 2026CVE-2026-21520 (Copilot Studio, score 7.5) and CVE-2026-24307 (Microsoft 365 Copilot, score 9.3).
  6. March 12, 2026CVE-2026-26133, mobile applications including Microsoft 365 Copilot for Android and iOS, score 7.1.
  7. May 7, 2026CVE-2026-26129 (Business Chat, 7.5), CVE-2026-26164 (Business Chat, 7.5) and CVE-2026-33111 (Copilot Chat in Edge, 7.5).

EchoLeak. According to the academic paper by Pavan Reddy and Aditya Sanjay Gujral, EchoLeak is a zero-click flaw: an outside attacker could extract data from a victim's Copilot session with no action on their part, from a single email. Aim Labs calls it an "LLM Scope Violation": the assistant is led across its own trust boundary to leak internal data. The paper states that the chain bypassed Microsoft's XPIA classifier and the link redaction mechanisms, and that it abused a Microsoft domain allowed by the content security policy. Microsoft writes in the CVE-2025-32711 advisory: "This vulnerability has already been fully mitigated by Microsoft. There is no action for users of this service to take." The same record indicates that no customer action is required and that the flaw is not marked as exploited. This article reproduces no detail of the chain.

Copilot Studio, according to Zenity Labs. On a replica of a demonstration agent, the researchers showed that a Copilot Studio agent could be manipulated by prompt injection to leak the data in its knowledge sources and in a connected CRM, with no user interaction. Microsoft fixed it in under two months, rated the flaw "critical" with an information disclosure impact, and paid an $8,000 bounty. Zenity writes that, according to its tests, the fix amounts to a prompt protection mechanism, that is, classifiers (prompt shielding mechanism). Then the sentence that matters for a defender:

"To be clear, prompt injection is still possible." Zenity adds that blocking these attacks with classifiers or blocklists is not enough.

The 2026 CVEs. The records published by Microsoft describe information disclosures: "AI command injection" or "command injection" in Microsoft 365 Copilot, input validation in CVE-2026-24307, exposure of sensitive information to an unauthorized actor in Copilot Studio for CVE-2026-21520. The records give no technical detail beyond that one-sentence description, and this article adds none.

For EchoLeak, the fix was applied server-side: the customer could neither apply it nor defer it. All that remains for them is what they control, that is, the permissions they granted and the data an assistant can reach. The nature of the attack, indirect prompt injection followed by data exfiltration, does not disappear with a patch.

Microsoft's controls and their limits

The Learn documentation describes six families of controls. The table gives, for each, what Microsoft says it does and the limit it states or that follows from it.

ControlWhat the documentation saysLimit
Purview sensitivity labelsCopilot respects the usage rights granted to the user on data encrypted by Purview Information Protection; for agents, encryption can exclude programmatic access.The control applies to data encrypted by Purview Information Protection, whether the encryption comes from labels or from restricted permissions (IRM).
Purview DLP for CopilotFour uses: prevent web search when the prompt contains sensitive information, block processing of sensitive prompts (preview), exclude labeled files and emails, exclude external emails (preview).DLP cannot scan the content of files uploaded into a prompt. In Word, Excel and PowerPoint, the policy is evaluated when the file is opened. A policy update can take up to four hours. Items excluded by label still appear in the answer's citations.
Restricted Content Discovery (SharePoint Advanced Management)Removes chosen sites from organizational search and from Copilot's answers.Microsoft describes it as "a temporary governance control". It does not change permissions, and direct access stays open. On a site of more than 500,000 items, taking effect can take more than a week.
Injection protections in CopilotJailbreak and cross-prompt injection (XPIA) classifiers that block risky prompts before the model runs.Microsoft states that these classifiers "may not be available in all Microsoft Copilot scenarios".
Prompt Shields (Azure AI Content Safety, Foundry)Detects user prompt attacks and document attacks, including instructions hidden in emails and web pages.For the applications and agents you build with Azure AI Content Safety and Foundry. In Foundry, document attack detection is off by default. The models are mainly trained and evaluated in English. The service does not verify the provenance of content.
Entra Agent ID and Agent 365An identity of its own for each agent, a sponsor, authentication logs, conditional access and governance.Extending Entra's security features to agents requires a Microsoft Agent 365 license.

Two of these limits deserve attention. The first: DLP does not see the files the user drops into a prompt, yet that is one of the paths through which untrusted content reaches the assistant. The second: the control against external content, excluding emails from outside senders, evaluates only the sender's domain and does not inspect the body of the message. Microsoft presents this control as a reduction of the prompt injection risk.

Microsoft also provides visibility. The Copilot security dashboard in the admin center brings together DLP alerts, oversharing and compliance. The Security Dashboard for AI, in preview at the date of the page consulted, aggregates signals from Defender, Entra and Purview and inventories agents, including unmanaged agents and third-party MCP servers. Agent creators' audit logs are in Purview, and Microsoft Sentinel can alert on agent activity.

What none of these controls settles

All rest on one idea: the user has the right to see the data, so the assistant has the right to use it. EchoLeak shows the flaw in that idea. The stolen data belonged to the victim, whose permissions allowed them to read it. The problem was not access. It was the order: an outside message told the assistant what to do with what it had read.

A permissions model decides what the assistant can read. It does not decide what it can do with it, or where it sends the result. Classifiers reduce the probability that a hidden instruction gets through, and Zenity points out that they do not bring it to zero. For actions, the question to ask is therefore the one in agent security in general: who judges the action at the moment it leaves, and what remains as evidence?

The agents in a Copilot estate do not live alone either. The tool servers they call are the subject of the article on MCP security. The content the assistant retrieves from knowledge bases is that of the article on knowledge base poisoning.

What a company configures and monitors

  1. Reduce oversharing before deploying. Microsoft structures its deployment plan in three pillars: fix oversharing, put guardrails in place, comply with regulations. Start with that pillar. Identify the at-risk sites (HR, finance, executive), review their permissions, and use Restricted Content Discovery as a stopgap, not a solution.
  2. Label, then exclude. Deploy a taxonomy of sensitivity labels and create a DLP rule that excludes the most sensitive content from Copilot's processing. Without a label, the rule has nothing to see.
  3. Treat external mail as untrusted. Evaluate excluding external emails from Copilot's context (preview). It narrows the path EchoLeak took.
  4. Govern agents as identities. Choose the allowed agents in "Integrated apps", set data policies for Copilot Studio (connectors, triggers, HTTP), limit publication to the intended environments, require a sponsor and inventory the agents. Agents created outside the official channel add to the inventory.
  5. Forbid default rights inheritance. For each agent tool, decide whether the action runs with the user's rights or with the agent's, and justify the choice in writing.
  6. Monitor three flows. DLP alerts and Copilot activity in Purview, the audit of agent creators, agent authentication in Entra. Follow Microsoft's security advisories for Copilot: for EchoLeak, the fix was applied server-side and the publication of the CVE was the signal the customer received.
  7. Add an action control independent of the vendor. SentinelOS sits between your AI agents and everything they touch: it judges every action before it leaves, including when the order comes from a document the agent read. Every decision is written in a chained log, never rewritten.
  8. Start in listening mode. A listening mode observes and records everything without blocking anything, before moving to enforcement. It shows what your agents actually do before you decide what they are allowed to do.

The logging and human oversight requirements that apply to these agents are read in the article on the AI Act, and the management framework that makes them auditable in the article on ISO/IEC 42001. Microsoft cites 42001 among Copilot's certifications: it covers the provider, not your configuration.

Sources

  1. Microsoft Learn, "Data, Privacy, and Security for Microsoft Copilot" (updated November 3, 2026). learn.microsoft.com
  2. Microsoft Learn, "Security for Microsoft Copilot" (updated November 3, 2026). learn.microsoft.com
  3. Microsoft Learn, "Secure & Governed Data Foundation for Microsoft Copilot". learn.microsoft.com
  4. Microsoft Learn, "Microsoft Purview DLP for Microsoft 365 Copilot and Cowork" (updated October 27, 2026). learn.microsoft.com
  5. Microsoft Learn, "Restrict discovery of SharePoint sites and content". learn.microsoft.com
  6. Microsoft Learn, "Security and governance" (Microsoft Copilot Studio, updated November 5, 2026). learn.microsoft.com
  7. Microsoft Learn, "What are agent identities?", Microsoft Entra Agent ID. learn.microsoft.com
  8. Microsoft Learn, "Prompt Shields in Azure AI Content Safety". learn.microsoft.com
  9. CVE Program and Microsoft Security Response Center (API api.msrc.microsoft.com, advisory for CVE-2025-32711), records published by Microsoft: CVE-2025-32711, CVE-2026-21520, CVE-2026-24307, CVE-2026-26133, CVE-2026-26129, CVE-2026-26164, CVE-2026-33111. cveawg.mitre.org
  10. Reddy and Gujral, "EchoLeak: The First Real-World Zero-Click Prompt Injection Exploit in a Production LLM System", arXiv:2509.10540, September 6, 2025. arxiv.org
  11. Zenity Labs, "AgentFlayer: When AIjacking Leads to Full Data Exfiltration in Copilot Studio", July 7, 2025. labs.zenity.io
  12. Infosecurity Magazine, "Microsoft 365 Copilot: New Zero-Click AI Vulnerability Allows Corporate Data Theft", June 13, 2025. infosecurity-magazine.com