Securing Microsoft 365 Copilot for PII and Regulated Data

A document passes through six gates into a locked vault

Transit-line map: six checkpoints between a Copilot question and the answer: Access, Discover, Label, Protect, Agents and Watch.

Six checkpoints between Copilot and regulated data.

Copilot is only as safe as the data it can reach.

This is not just for regulated firms. It is for anyone who is security conscious first. Regulated organizations are a prime example, because the data they hold is personal information, health information and client material a contract says only a few people may see. We are doing this work now for an organization like that. This is what we put in place, and why.

The short version

1. Copilot only sees what the user can already open. Fixing oversharing comes first.

2. We find and label the regulated data, then let DLP and label rights do the enforcing.

3. Prompt injection is real. Microsoft checks a prompt at five points, and we add our own controls around them.

4. Regulated data stays out of agents and MCP servers unless a data policy says otherwise.

 

1. What we are protecting, and from what

Take a regulated organization. It holds three kinds of data Copilot can reach:

  1. PII: names, addresses, Social Security numbers, account numbers.
  2. PHI: anything covered by HIPAA, such as diagnoses, claims and member IDs.
  3. Restricted client data: material a contract says only named people may see.

Copilot reaches it through many surfaces: Copilot Chat, the Office apps, Teams, Outlook, SharePoint, Cowork, agents, Copilot Studio and connectors. Each one is a different door into the same content.

The main risk: oversharing

The main risk is not a new kind of attack. It is oversharing.

Copilot works with what the user is already allowed to open. A file shared too widely years ago becomes an answer today. Microsoft’s own guidance treats this as the first problem to solve: find the overshared, ownerless, inactive or sensitive sites, then shield them while they are fixed.

Three doors. Client files are locked, an old project site shared with Everyone is open and becomes the leak, and a sensitive site is hidden from Copilot.

Copilot answers from whatever the user can open. An overshared site becomes the leak.

The second risk: prompt injection

Prompt injection tries to make Copilot do something it should not. Microsoft describes two kinds.

In a direct attack, the user types a prompt built to push Copilot off its rules. In an indirect attack, the user’s prompt points at content that holds the instructions: a text file, an image, code or encoded text. The prompt itself looks normal.

Direct injection is typed by the user and stopped by prompt checks. Indirect injection hides in a file and the file carries the attack.

Direct injection is typed by the user. Indirect injection hides in the content Copilot reads.

The indirect kind matters most for a regulated firm, because the user did nothing wrong. A vendor email or a shared document can carry the attack.

Microsoft checks a prompt at five points and adds detection around them:

  1. Input. Endpoint DLP can control pasting into the prompt box.
  2. Prompt in. A list of known malicious prompts, classifiers, cleanup of hidden Unicode text and DLP on the prompt.
  3. Grounding. Copilot uses only content the user can access. DLP can keep labeled files and emails from being processed. A tool-use check looks for injection risk.
  4. Web search. DLP can block sensitive data in a web query, and web grounding can be controlled.
  5. Answer out. Citations, output classifiers, Safe Links on returned URLs and the user reviewing the answer.
  6. Detection. A flagged jailbreak attempt raises a flag in the audit log and a signal in the Defender portal. Defender for Office 365 Plan 2 can also detect injection in inbound email.

Five gates a prompt passes through: input, prompt in, grounding, web search and answer out. A poisoned file arrives at the grounding gate.

The five points where a prompt is checked, and where a poisoned file or email gets in.

A poisoned file arrives at the grounding stage. That is why the permission and label controls below matter. They limit what an injected instruction can reach.

2. Identity and access

  1. Least privilege on content. We make sure sensitive content meets one threshold: only the named group can open it, so Copilot can only use it for them. Restricted Access Control limits a site to a named security group, and it is included with Copilot licenses.
  2. Conditional Access. We require managed, compliant devices and MFA for Copilot sign-in, and block risky sessions.
  3. Standing access reviews. We review group membership and site owners on a schedule and record the result.

3. Discovery and classification

What we control in the environment:

  1. Sensitive information types. Purview has built-in types for identifiers such as Social Security numbers and health IDs, and we add custom ones for account numbers.
  2. DSPM for AI. Data Security Posture Management for AI runs data risk assessments and shows what Copilot is touching. A weekly assessment runs by default for the 100 most-used SharePoint sites.
  3. SharePoint Advanced Management. The content management assessment finds overshared, ownerless and inactive sites. Site access reviews let owners remove excess links.
  4. Restricted Content Discovery. It keeps chosen sites out of Copilot and organization-wide search without changing permissions. We use it as a stopgap while we fix the sharing.

4. Sensitivity labels

  1. Encryption and usage rights. When content is encrypted, by a label or by Azure Rights Management, a user needs both VIEW and EXTRACT for Copilot to summarize or return it. With VIEW only, Copilot does not summarize the file. It can return a link.
  2. Responses show a label. When an answer draws on several labeled items, Copilot Chat shows the highest-priority label among them.
  3. New content inherits a label. When Copilot creates Word, PowerPoint or Outlook content from labeled sources, the highest-priority label carries over. The user can change it.
  4. What does not work. Inheritance does not apply to content protected with user-defined permissions. Copilot cannot open Double Key Encryption content. Labels that protect Teams meetings and chats are not recognized.

With VIEW and EXTRACT rights Copilot can summarize an encrypted file and the answer carries the label. With VIEW only it returns a link.

With VIEW and EXTRACT Copilot can summarize an encrypted file. With VIEW only it returns a link.

5. Data loss prevention

  1. Prompt blocking. A DLP policy on the Copilot location can match sensitive information in the text of a prompt and stop Copilot from responding. A second action blocks only external web search for that prompt. Copilot then answers from internal data.
  2. Labeled content. A DLP rule can also stop Copilot from processing items that carry chosen labels. A labeled item can still show up as a citation.
  3. Simulation first. The default Copilot DLP policy starts in simulation mode, which only logs. We switch it to enforce.
  4. Separate rules. Sensitive information types and labels cannot be conditions in the same rule, so we write separate rules.
  5. Endpoint paste controls. Endpoint DLP on onboarded devices can block pasting sensitive text into AI sites. It checks sensitive information types only, not labels.
  6. Preview features. Prompt blocking and some Cowork controls are still in preview, so we treat them as controls to watch.

A prompt containing a Social Security number meets a DLP policy: simulation only logs it, enforce blocks the response or blocks only the web search.

A DLP policy on the Copilot location: simulation only logs, enforce blocks the prompt or only the web search.

6. Output

  1. Labels and encryption follow the Word, PowerPoint and Outlook content Copilot generates.
  2. Sharing a generated file follows the normal SharePoint and Outlook rules.

7. Agents and extensions

  1. Data policies. Power Platform data policies sort connectors into Business, Non-business and Blocked. Copilot Studio enforces them in real time.
  2. Blocking a connector blocks the MCP tools that depend on it.
  3. Our rule. Regulated data does not go into MCP servers. An MCP server is code someone else runs, with its own logging and retention. We keep PII and PHI out of every tool that is not under our data policy, our logging and our contract.
  4. Agent inventory. We review who can create agents and which connectors they may add. Microsoft Purview can monitor agent activity.

A blocked connector blocks the MCP server tools behind it. Our rule: regulated data never goes into an MCP server.

A data policy sorts every connector. Blocking a connector also blocks the MCP tools behind it.

8. Prompts, responses and retention

  1. Storage. Prompts and responses are stored in a hidden folder in each user’s mailbox. They are encrypted at rest and are not used to train foundation models.
  2. Retention. Purview retention policies can keep or delete Copilot prompts and responses. Users can delete their own history. Deleted items are purged within days unless a hold applies.
  3. Our choice. Microsoft does not document a fixed default retention period for prompts, so we set an explicit policy. We decide how long they live, because they can contain the PII a user typed.
  4. eDiscovery. Prompts and responses are searchable with eDiscovery.

9. Monitoring

  1. Audit. Purview Audit logs who used Copilot, when, where and which files or sites it touched. The records do not hold the prompt or response text.
  2. Content review. The text is reviewed through eDiscovery, DSPM for AI and Communication Compliance. The Copilot template includes prompt injection detection.
  3. Insider Risk. The Risky AI usage template scores risk from sensitive data in prompts and from visits to generative AI sites. It needs the browser extension on user devices.

Audit shows who, eDiscovery and Communication Compliance show what, and Insider Risk shows why.

Four monitoring tools, and what each one shows.

What we put in place

  1. Run the oversharing assessment and fix the top sites.
  2. Label and encrypt the most sensitive data first.
  3. Switch the Copilot DLP policy from simulation to enforce.
  4. Write the agent and MCP rule down and enforce it with data policies.

Where does your firm stand on the first one?

Sources

All Microsoft Learn, accessed 2026-11-25.

  1. Get ready for Microsoft Copilot with SharePoint Advanced Management
  2. SharePoint Advanced Management features in Microsoft Copilot licenses
  3. Microsoft Copilot prompt defense in depth
  4. Data protection and auditing for Microsoft Copilot
  5. Data, privacy and security for Microsoft Copilot
  6. Microsoft Purview DLP for Microsoft 365 Copilot
  7. Default DLP policy for the Copilot location
  8. Block sensitive data going to sanctioned AI apps
  9. Configure data policies for agents, Copilot Studio
  10. Monitoring agents with Insider Risk Management
  11. Insider Risk Management policy templates
  12. Learn about retention for Copilot and AI apps
  13. Audit logs for Copilot and AI applications
  14. Communication Compliance for generative AI interactions

Leave a Reply

© Copyright 2021 Distributed Logic Corp.

contact via web form  |  info@distributedlogic.com   |    (866) 229-8621