Before signing off Purview
- The usual blind spots: devices that were never onboarded, Teams files stored in SharePoint and OneDrive, badly tuned sensitive information types.
Microsoft Purview DLP in simulation mode logs what a policy would have matched and takes none of its actions, so it cannot tell you whether a block holds. To validate a policy, switch it on, push a synthetic file out through every location it covers (Exchange, SharePoint, OneDrive, Teams, endpoints) and look for the trace each attempt leaves.
Purview DLP also reaches on-premises repositories, Defender for Cloud Apps, Power BI and Microsoft 365 Copilot; the matrix below leaves those aside for the five locations most tenants rely on.
Purview simulation mode checks matches, not blocks
Run a policy in simulation before you switch it on: you see the volume of matches, spot the noisiest rules and avoid blocking payroll on a Monday morning. But simulation only judges activity that took place. If nobody sent an IBAN outside during the period, the rule had nothing to evaluate, and an empty match count says nothing about what could leave. Nor does simulation show what the policy will do once it is on, when a user exception, an override with a justification or a priority clash with another rule lets the file through.
The only way to know whether the file can leave is to send it with the policy on. That is a data exfiltration test (MITRE ATT&CK tactic TA0010), and it is how you catch one of the nastier DLP false negatives: a quiet rule that looks like a working one.
Blind spots specific to M365
Endpoint DLP: coverage depends on device onboarding
Purview endpoint DLP only protects onboarded devices (Windows 10, Windows 11 and the three latest major versions of macOS) that report their status. A laptop that is reimaged and never onboarded again drops out of coverage without a sound. Check three things before any test:
- Compare the onboarded device list (device onboarding settings in the Purview portal, or the Defender device inventory) with an export from your directory or CMDB. Any workstation missing from it goes in the out-of-scope row.
- Monitored activities (USB copy, printing, cloud upload, clipboard, network share, Bluetooth) are set to block where you think they are, not audit only.
- Restricted browsers are listed consistently. DLP applies natively in Edge, whereas Chrome and Firefox need the Microsoft Purview extension.
Teams: messages, files and guests
In Teams, your DLP acts on chat and channel messages, while shared files live in SharePoint (channels) and OneDrive (chats). Your policy may therefore block a card number pasted into a message and let the same content through in an attached document. Test your conversations with guests or federated users separately: that is where data leaves the organisation.
Sensitive information types and classifiers
Sensitive information types rely on patterns, proximity keywords and three confidence levels (65 for low, 75 for medium, 85 for high). An IBAN, a National Insurance number or an internal reference is only detected if the type matches your format and the threshold is right. Before a custom type goes into a rule, use the Test option on its page in the Purview portal with two sample files, with and without the proximity keyword, to see whether it matches and at what confidence level. A “Confidential” label triggers nothing until a rule uses it as a condition and your data classification has put it on the right files.
A validation matrix by location
One row per location (SharePoint and OneDrive together), one for whatever sits outside the policy, and for each the scenario, the expected result and the trace to keep.
| Location | Scenario to run | Expected result | Evidence to keep |
|---|---|---|---|
| Exchange | Email to a Gmail address with an attachment holding synthetic card numbers or IBANs | Block or quarantine, notification | Event in activity explorer, message trace (Get-MessageTraceV2) showing non-delivery |
| SharePoint / OneDrive | Sharing a synthetic document labelled “Confidential” through an anonymous link | External access blocked once the file is scanned | Rule match, link status |
| Teams | Message to a guest containing sensitive synthetic data | Message blocked, policy tip displayed | Teams event in activity explorer |
| Endpoint | Copy to USB (ATT&CK T1052.001) and upload to an unauthorised service such as Dropbox | Block, possibly with a justified override | Endpoint event, justification entered |
| Out of scope | Same file through a device that is not onboarded or an uncovered channel | Gap documented | Finding and corrective action |
For the evidence column, each match appears in activity explorer as “DLP rule matched”, and rules that raise alerts feed the DLP alerts queue, also visible in the Microsoft Defender portal. For SharePoint and OneDrive, the Test-DlpPolicies cmdlet (Security & Compliance PowerShell) tells you which rules match a given file without a real share. It checks the match, not the action. When you test the share itself, wait until the file has been indexed: SharePoint and OneDrive DLP only evaluates content after the crawl, so a link created straight after upload can open first. Set-SPOTenant -MarkNewFilesSensitiveByDefault BlockExternalSharing closes that window by blocking external sharing of new files until they are scanned.
A worked example: one payroll file, four locations
Illustrative example, made-up figures. An “HR data” policy has been on for several months. The dashboard shows a few dozen matches a month, all on Exchange Online, and the team takes that as proof it works.
They build a payroll export from synthetic data and make five attempts: an Outlook email to a Gmail address, an anonymous OneDrive link, a Teams message to a guest, and two USB copies, one from an onboarded laptop and one from a device that was never onboarded. Two get through. The OneDrive link opens from an outside account, because the rule targets one SharePoint site and not personal OneDrive accounts; the copy from the non-onboarded device opens on the stick. In activity explorer, the three stopped attempts (email, Teams message, USB from the onboarded laptop) each have a DLP event. The two that got through have none.
Diagram · one file, four locations
Two fixes come out of it: extend the rule to OneDrive accounts, and onboard the missing devices. Repeat the two attempts that got through before you close the ticket. With ten gaps you would need to decide what to fix first; see how to prioritise remediation.
Next step
Out-of-scope row, network side
Of the matrix above, Enforcis 1.0 helps only with the out-of-scope row, and only on the network side: it pushes decoys out over HTTP, HTTPS, FTP, DNS, ICMP, GitHub Gist, Google Drive and DPaste. A 30-minute guided demo shows a campaign across those eight channels on pre-built results, with nothing to install and no access to your environment. A quick POC, usually free, then runs one standard scenario with synthetic data from a machine on your network, through your real egress controls, and a paid pilot covers a limited part of your production.
Keeping evidence from a Purview DLP test
An ISO 27001 auditor looking at control 8.12, or a DPO documenting Article 32 of the GDPR, will want exported records, not a screenshot:
- the policy and rule, with their version and mode (simulation or switched on) on the test date;
- the scenario: location, type of synthetic data, attempted action, with a separate scenario for each exception or override;
- the observed result (blocked, audited, passed) and the matching Purview event, exported on the day, as activity explorer only keeps 30 days. For a longer trail, search the unified audit log for DLPRuleMatch events (Purview portal or Search-UnifiedAuditLog); how long they are kept depends on your audit licence and retention policies;
- how long the alert takes to reach the Defender portal, the SOC or the SIEM;
- each gap, with its owner and corrective action, and the date of the next test.
FAQ
Is Purview simulation mode enough to validate a DLP policy?
No. Watch out, too, for simulation with policy tips: users see the warning, yet nothing is blocked.
Should Teams be tested separately from SharePoint and OneDrive?
Yes. Check which locations each policy has ticked: Teams on its own leaves attachments to another rule, or to none.
Is a block that the user can override a real block?
Not for an auditor: the user gets past it by typing a justification. Check that the justification is logged and that someone reads it.
Does Purview endpoint DLP cover every device?
No: only onboarded devices, and only if your licences include it. Endpoint DLP comes with E5-level plans (Microsoft 365 E5 or the E5 Compliance add-on), so check before you count on it.

