In this section

0.6 Data Loss Prevention

Module 0

Introduction

Data loss prevention acts at the moment content moves: an email being sent, a file being shared, a message posted in Teams, a paste into a browser, a question to Copilot.

A DLP policy looks at the content, decides whether it matches what the policy protects, and acts: it warns, blocks, lets the user override with a reason, and tells someone. It is the control that stops sensitive content leaving the place it belongs.

Where labels and encryption describe and protect content at rest, DLP watches it in motion, which makes it the control users notice most. Every block and every warning lands in someone's working day, and how those moments feel decides whether people learn the rule or learn the workaround.

It is also, in most tenants, the control most often switched on badly and then left alone. A policy that blocks too much teaches people to work around it; a policy that warns about everything teaches them to ignore warnings; a policy left in simulation for months protects nothing and fills a queue nobody reads.

The course tenant has examples of all three, which Module 6 reads before it builds anything. The reading is instructive because none of those policies was wrong in its own terms. Each was created by a wizard or a recommendation with sensible defaults. What was missing was a requirement saying what the policy was for, an owner reading its results, and a date for leaving simulation.

Where, what, then what happensWherelocations,users and groupsWhatconditions:types, labelsThenactions, tips,overridesReportalerts andincident reportssimulation first: the same policy, reporting what it would have done

Every DLP policy answers the same four questions. Simulation runs all four and enforces none, which is how a policy is tested on real traffic.

Every policy answers four questions: where it applies, what it looks for, what happens when it matches, and what it reports. The questions are independent, and a weakness in any one undoes the others. A perfect condition in the wrong location sees nothing. The right location with a loose condition blocks the wrong things. A good rule with no owner for its alerts is invisible.

This lesson sets out each part, explains simulation, introduces the Copilot location and the endpoint, and closes with what DLP cannot do. The aim is to be able to read any policy in any tenant and say, in plain terms, what it stops, where, for whom, and what it leaves. That reading is the starting point for every DLP decision the course makes.

1

Where a Policy Applies

Locations and scope

A policy applies to one or more locations, each a channel content can move through, and within each location to all users or chosen ones. The locations decide which movements the policy can see at all.

A requirement about content leaving by email is a requirement about the Exchange location; a requirement about content reaching Copilot answers is about the Copilot location. Translating the requirement into locations is the first step of every policy design, and missing a location is the most common reason a policy looks complete and is not.

Foundations.xlsx
B5what Copilot may process and search for a user
ABC
1LocationCoversModule
2Exchange emailmessages and attachments sent6
3SharePoint sites, OneDrive accountsfiles stored and shared6
4Teams chat and channel messagesmessages; files in Teams need SharePoint and OneDrive6
5Microsoft 365 Copilotwhat Copilot may process and search for a user6
6Devicescopy, paste, upload and print on onboarded Windows and macOS7
7Browser and network locationsactivity in browsers and with AI sites7
DLP locations

Exchange covers mail. SharePoint and OneDrive cover files stored and shared. Teams covers chat and channel messages, and Microsoft's documentation is explicit that files shared in Teams are SharePoint and OneDrive content, so a Teams policy that should also cover files needs those locations too.

DLP for Teams chat is also one of the features the licensing sheet in Lesson 0.3 placed on E5. Devices cover what people do on onboarded computers, and the browser locations cover activity with websites, including AI sites.

The highlighted row is new to most DLP practitioners. A policy for the Microsoft 365 Copilot location acts on what Copilot may process and search for the user who prompts. It does not watch content leave; it decides whether Copilot can use content in an answer at all. Section 4 sets out what it can do.

The Locations step of a DLP policy in edit, listing Exchange email, SharePoint sites, OneDrive accounts, Teams chat and channel messages, Devices, Instances and On-premises repositories with checkboxes, OneDrive and Devices checked with All users and groups; then Fabric and Power BI workspaces, Microsoft Copilot, Copilot Chat, and Copilot Cowork, Managed cloud apps, Microsoft Foundry and Box greyed out.

The location step for one of the course tenant's policies. With OneDrive and Devices chosen, the Copilot location and several others are greyed out. Select the image to open it full size.

The capture shows the location step of a policy in the course tenant. With OneDrive and Devices chosen, the Copilot location and several others are greyed out, because some locations cannot be combined in one policy. That is a design constraint worth knowing early: a requirement that spans mail and Copilot usually needs at least two policies, and Module 6 writes them as a pair.

Scope narrows a location to users and groups. The same policy can apply to everyone for mail and to a pilot group for devices, because scope is set per location. A policy can include or exclude groups, and Microsoft documents limits on how many.

Scoping is how a policy is piloted on a small group, and how an exception is made for a team whose work legitimately involves the protected content. Exceptions made by scope are blunt: everyone in the excluded group is exempt from every rule in the policy. Overrides, covered below, are the finer tool, because they keep the rule in place and record each time someone decides it does not apply.

2

What a Policy Looks For

Conditions, built from classifiers and labels

A policy contains rules, and each rule has conditions. The commonest condition is that content contains a sensitive information type, at a confidence level and a minimum count. Others test the sensitivity label, who the content is shared with, the sender or recipient domain, and properties of the file.

Conditions combine with and, or and not. Grouping them is where most policy errors begin: a rule meant to catch card numbers sent outside the organization, written with an or instead of an and, catches every card number and every external message.

Microsoft PurviewSearch
Data loss prevention › Policies › Card data › Rules
Rule 1
Card data to external recipients
Content contains
Any of these
Credit Card NumberInstance count 1 to AnyHigh confidence
Content is shared from Microsoft 365
with people outside my organization
Block people outside the organization
Show policy tip
Allow override with justification
Send alert to the DLP owner
Recreated rule editor with worked-example values.

The rule above matches messages and files containing at least one credit card number at high confidence, shared with people outside the organization. Each part narrows it. High confidence means the matches need supporting evidence, as Lesson 0.4 explained, so fewer innocent numbers trigger it. The direction condition means internal mail is untouched. A rule without those two narrowings would block every internal message that mentions a sixteen-digit number.

The rule's count matters too. A minimum of one match treats a single card number in a long email as seriously as a spreadsheet of thousands. Some requirements want that, because one card number is enough to cause harm; others set a higher count for the block and a lower one for a warning, so that a list of customer cards is stopped and a single number gets a reminder.

Conditions inherit the quality of the classifiers they use. They also inherit the tenant's labeling coverage. A label condition is only as broad as the labels people and auto-labeling actually applied, so a rule keyed to Highly Confidential in a tenant where most sensitive files are unlabeled protects the small part of the problem that someone already noticed.

A rule that tests for a type with many false positives will act on all of them, and a rule that tests for a label will only ever be as good as the tenant's labeling. Module 6 tests every rule against the tenant's own traffic before deciding its actions, which is what simulation is for.

A policy can hold several rules, evaluated in priority order, and the order matters: Microsoft's documentation notes that when several rules match, the user sees the tip from the highest-priority, most restrictive one. Designing the rules as a set, with the strictest first and the broad monitoring rule last, keeps the experience predictable.

3

What Happens, and Simulation

Actions, tips, overrides and alerts

When a rule matches, its actions run. They range from recording the match silently to blocking the movement outright, with warnings and overrides in between.

Foundations.xlsx
C4most cases a person can judge
ABC
1ActionUser seesUse when
2Audit onlynothingmeasuring before deciding
3Policy tipa warning in Outlook, Teams or Officeteaching people the rule
4Block with overridea warning and a justification boxmost cases a person can judge
5Blockthe action refusedthe content must never go
DLP locationsActions and their cost

A policy tip warns the user in Outlook, Teams or the Office app at the moment they act, and explains why. It is the most useful action DLP has, because it teaches the rule to the people who need to follow it.

An override lets the user proceed after giving a reason; Microsoft's documentation notes that overrides are available only where policy tips are shown, and that the justification is kept in the audit log. The highlighted row is the default the course reaches for: block, with an override for the person who knows why this case is different, and a record of what they said.

Overrides are also a measurement. A rule that people override constantly is either protecting the wrong thing or protecting the right thing too broadly, and the justifications say which. A rule nobody overrides may be working, or may match nothing at all; the match counts tell those apart.

Actions differ slightly by location. Mail can be blocked, encrypted, redirected or held for approval; a file in SharePoint or OneDrive can have access restricted; a Teams message can be blocked. The choice of action follows the location as much as the requirement, and Module 6 sets out what each location offers before choosing.

Alerts and incident reports tell someone, usually the DLP owner or a security operations queue, that a rule matched and what it matched. Every alert needs an owner and a queue, which is where many tenants fail: DLP alerts in the course tenant sat unread for weeks because nobody had been told to read them.

Module 6 sets alert volume deliberately, and Module 12 gives the queue an owner. An alert that nobody reads is worse than no alert, because it gives the impression of monitoring while monitoring nothing. A policy should raise only the alerts someone has agreed to act on, and record the rest as matches for reporting.

Microsoft Purview portal

See what policies have matched:
Microsoft Purview › Solutions › Data loss prevention › Alerts
Filter by policy and status. An alert list with many Active items and no assignees is a queue nobody owns.

The alert page shows who, if anyone, has picked each alert up.

The Data loss prevention Policies list, 13 items, with Priority, Mode, Triage agent eligibility, Policy sync status and Last modified columns. Three label policies, a file and compression monitor, a PII policy, an Adaptive Protection endpoint policy and two AI policies are On. Email Regulated Data and Adaptive Protection for Teams and Exchange are in simulation without notifications; three Copilot interaction policies are in simulation with notifications.

The course tenant's DLP policies. The Mode column separates policies that enforce from those in simulation. Select the image to open it full size.

Simulation runs a policy in full without enforcing it: matches are recorded and reported, and nobody is blocked or warned unless the policy is set to show tips in simulation. Microsoft makes it the default for new policies. The Mode column in the capture shows the course tenant's mix: some policies on, some in simulation without notifications, three Copilot policies in simulation with notifications.

Simulation is the right place to start and the wrong place to stay. A policy should leave it when its matches have been read and the false positives dealt with, and the date it should leave belongs in the plan before it starts.

Simulation results are read in the same places as live ones: matches in the alerts and activity views, counts in DLP reports. Reading them is where false positives are found and the confidence levels from Lesson 0.4 earn their keep, because each false positive in simulation is a blocked message avoided once the policy enforces.

The life of a DLP policySimulatematches recorded,nobody blockedReadfalse positivesand missed casesTuneconfidence, counts,exceptionsEnforceon a planned date,with tipsOwnalerts read,overrides reviewedThe course tenant has policies that stopped at the first step.

Each step has an owner and a date. A policy that stops at the first step protects nothing.

The portal shows where each policy sits in that life.

Microsoft Purview portal

Read what each DLP policy is set to do:
Microsoft Purview › Solutions › Data loss prevention › Policies
Read the Mode column first: on, or simulation with or without tips. Open a policy to see its locations, scope and rules, and Edit to step through each rule's conditions and actions.

Reading the Mode column across every policy is a five-minute review that finds most stalled policies.

4

The Copilot Location

Rules for what Copilot may use

A DLP policy for the Microsoft 365 Copilot location changes what Copilot does for the users in its scope. It has a small set of capabilities, each with edges that matter.

Foundations.xlsx
B5label or type, not both
ABC
1Rule canConditionLeaves
2Stop Copilot processing labeled files and emailssensitivity labelthe item may still be cited
3Stop Copilot answering sensitive prompts (preview)sensitive info type in the promptthe response
4Stop web search for sensitive promptssensitive info type in the promptwork grounding
5One rule, one kind of conditionlabel or type, not bothneeds two rules for both
DLP locationsActions and their costThe Copilot location

The first row is the one Module 6 builds around. A rule with a sensitivity label condition stops Copilot processing files and emails that carry the label, for the users in scope. Microsoft's documentation notes that such an item may still appear in citations; the content is not processed, and its existence is not hidden.

The second and third rows act on the prompt: a rule can stop Copilot responding to prompts that contain a sensitive information type, a capability in preview, and can stop web search for such prompts so the sensitive text does not leave as a search query.

The highlighted limit shapes every Copilot policy. A rule cannot combine a label condition and a sensitive information type condition, so protecting labeled files and sensitive prompts needs separate rules.

Files a user uploads directly into a chat are not scanned by these rules, and changes can take up to four hours to apply. Module 6 lists every gap a Copilot rule leaves, because a stakeholder told that "DLP blocks Copilot from HR data" will assume more than the rule does.

The precise sentence is longer: Copilot will not process files and emails labeled Highly Confidential for these users, the items may still be cited, files uploaded into a chat are not checked, and the rule applies within a few hours of a change. That sentence is the one to put in front of a stakeholder.

Scope works by the user who prompts. The prompting user is the only identity the rule considers. Who owns the file, who else could open it and which site it sits in play no part; the question the rule answers is whether this person's question may be answered from this labeled content.

A rule scoped to all staff except HR stops Copilot using Highly Confidential pay files for most people and leaves HR staff able to use Copilot with their own documents.

That is often the design a requirement needs, and it is the one Lesson 0.1 pointed to when it said DLP answers "should Copilot use it for this person". It also shows why the Copilot location sits beside access and encryption rather than replacing them.

Access decides who can open the pay files. Encryption decides what they may do once open. The Copilot rule decides whether Copilot may use them for a particular person, and can be changed in hours without touching anyone's access to the files themselves.

5

Devices, AI Sites and What DLP Cannot Do

The endpoint, and the limits

Endpoint DLP extends policies to onboarded Windows and macOS computers. It is the one location where DLP sees what people do with files after they leave Microsoft 365's cloud services: on the laptop, in the browser, on a USB stick.

For AI sites outside Microsoft, it is usually the only place a control can act at all, because those sites never see the tenant. It sees copying to USB, printing, uploading to websites and pasting into browsers, which is where public AI sites come in: a policy can warn or block when someone pastes sensitive content into a third-party AI site.

Module 7 builds that policy and sets out what it needs, including onboarding and, for most browser capabilities, the Purview browser extension. Devices onboarded to Microsoft Defender for Endpoint appear in Purview's device list and need only device monitoring turned on; other devices are onboarded by script, Group Policy, Configuration Manager or Intune.

Microsoft Purview portal

Check which devices endpoint DLP can see:
Microsoft Purview › Settings › Device onboarding › Devices
Read the device list and its monitoring status. A policy scoped to a user does nothing on a device that is not listed here.

Module 7 starts from that list, and the sheet below sets out what the endpoint can and cannot see.

Foundations.xlsx
B5no: never saved to a file
ABC
1ActivityEndpoint DLP sees it?Needs
2Copy a labeled file to USByesdevice onboarded
3Upload a file to an AI siteyesdevice onboarded, browser support
4Paste file content into an AI siteyesdevice onboarded, browser support
5Type fresh text into an AI siteno: never saved to a fileanother control
6Anything on an unmanaged devicenodevice policy
DLP locationsActions and their costThe Copilot locationEndpoint and AI sites

The same actions apply at the endpoint, and the same judgment: a block on every paste of anything labeled Confidential into any website would stop legitimate work across the firm. Module 7 scopes its rules to AI sites and to the labels and types that matter, and uses warnings with overrides where people need to make the call.

Sites are grouped into lists, such as a list of generative AI sites, so a rule can treat those sites differently from the rest of the web. Keeping the list current is part of owning the policy.

DLP has limits that no configuration removes. It acts on content it can read and recognize, through locations it covers, for devices it sees. Microsoft's documentation notes that endpoint DLP cannot scan data never saved to a file on the device, so text typed fresh into a browser is outside it.

Unmanaged devices are outside it. Content in an image is outside the text-based conditions. Each limit is a place another control, or a stated gap, has to cover. The highlighted row in the endpoint sheet is the limit people find most surprising.

A user who retypes a salary figure into a public AI site, instead of pasting it from a file, is outside endpoint DLP entirely. Only training, access and the user's own judgment stand between that figure and the site. Stating the gap plainly is better than letting a stakeholder believe the endpoint policy covers it.

Microsoft 365 CopilotWorkWebPrepared example
Write a DLP policy that stops staff emailing credit card numbers outside the company.
Create a policy for Exchange with the condition Content contains Credit Card Number and the action Block everyone. Apply it to all users and turn it on.
Check before you use itIt would work on the first day and hurt on the second. "Block everyone" stops internal mail too; turning it on directly skips simulation; there is no tip, so people learn nothing; there is no override, so the one legitimate case, a finance team sending a card number to the card provider, has nowhere to go; and no confidence level is set, so the most permissive level applies.

The assistant's policy is the one most people write first, and each of its problems is a lesson from this page. Rewrite it with what the lesson covered: the direction condition, high confidence, a tip, an override for finance, an alert to an owner, and simulation for two weeks before it enforces. The rewritten policy is longer and will survive contact with the people it applies to.

Do

Practice

What one policy stops
the requirement set
Review taskFoundationsWhat one policy stops
DeliverableFor the card data rule in this lesson, what it stops, where, for whom, and what it leaves.
Done whenThe policy is described in one sentence per part, and each gap names the location or condition that misses it.
  • LocationsRead where. Which channels the policy covers, and which it does not.
  • ConditionsRead what. The type, the confidence level, the count, the direction.
  • ActionsRead what happens. What the sender sees, what they can do, who is told.
  • GapsList what passes. Three ways the same card number leaves without this rule seeing it.

Use the card data rule from section 2 and the actions sheet from section 3. Describe each part in one sentence. Then list three ways the same card number could leave the organization without this rule seeing it, using the locations sheet: one through a location the policy does not cover, one through a condition it does not test, and one through a limit from section 5.

Try thisCheck it covers locations, conditions, actions and simulation
Explain the parts of a Microsoft Purview DLP policy and why new policies are usually run in simulation mode first.

What to look at: whether it names locations and scope, conditions and confidence, actions with tips and overrides, and alerts; and whether it says simulation shows what the policy would have matched on real activity without enforcing. An answer that treats simulation as optional has skipped the step that prevents the first week's complaints.

The answer worth trusting covers locations, conditions, actions and alerts, and says that simulation shows what the policy would have matched on real activity without enforcing. An answer that treats simulation as optional has skipped the step that prevents the first week's complaints.

A DLP policy applies to locations and users, tests conditions built from classifiers and labels, runs actions from silent audit to block with tips and overrides between, and reports alerts that need an owner. Simulation tests a policy on real activity before it enforces, and should end on a planned date.

The Copilot location decides what Copilot may process and search for each user, one kind of condition per rule. Endpoint DLP extends policies to devices and AI sites. Every policy has limits, and each limit is a gap to cover or to state. The next lesson moves from stopping content to keeping it: retention.