Enterprise implementation of Microsoft Purview Data Loss Prevention (DLP) covering built-in Sensitive Information Types (SIT), Custom Sensitive Information Types, Endpoint DLP, Microsoft Defender for Endpoint integration, Activity Explorer, DLP Alerts, DLP Reports and Generative AI website protection.
Data Loss Prevention (DLP) is one of the most critical capabilities in Microsoft Purview for preventing accidental or intentional exposure of sensitive organizational data.
This project demonstrates an end-to-end enterprise implementation of Microsoft Purview Data Loss Prevention within a Microsoft 365 lab environment. The implementation progresses through six practical phases, starting with built-in Sensitive Information Types and extending to custom organizational data detection, endpoint protection, monitoring, Generative AI website controls, and policy enforcement.
Unlike theoretical demonstrations, every configuration, screenshot, policy, alert, and validation included in this repository was implemented inside a Microsoft 365 lab tenant and validated using real testing scenarios.
The project follows Microsoft's Zero Trust principle that sensitive data must always be protected regardless of where it resides—cloud services, endpoints, browsers, or AI applications.
| Component | Value |
|---|---|
| Tenant | securem365lsb.onmicrosoft.com |
| Platform | Microsoft Purview Compliance Portal |
| Test Device | testing_machine (Windows 11 25H2) |
| Test User | testuser1@securem365lsb.onmicrosoft.com |
| License | Microsoft 365 E5 Compliance |
| Lab Period | June 28 – July 3, 2026 |
Organizations store payment information, customer records, contracts, internal documents, and proprietary business data across Microsoft 365. Without Data Loss Prevention, this information can easily leave the organization through email, cloud storage, browser uploads, USB devices, or AI applications.
Traditional security controls focus on protecting identities and devices, but they cannot determine whether sensitive business data is leaving the organization.
This implementation addresses those challenges by protecting sensitive information regardless of where the data travels while maintaining visibility through centralized monitoring and reporting.
Detect and protect financial information using Microsoft's built-in Sensitive Information Types.
Implement a custom Sensitive Information Type (GSM) for proprietary organizational data.
Extend Microsoft Purview protection to Windows devices using Endpoint DLP and Defender for Endpoint.
Prevent sensitive documents from being uploaded to Generative AI websites using Microsoft's built-in Sensitive Service Domain Groups.
Created a Microsoft Purview DLP policy using Microsoft's built-in Credit Card Sensitive Information Type and validated policy behavior in Simulation mode.
Built a custom GSM Sensitive Information Type using keyword matching and integrated it into the DLP policy.
Configured Activity Explorer, DLP Alerts, Incident Reports and DLP Reports for continuous monitoring.
Integrated Microsoft Defender for Endpoint, onboarded Windows devices, validated policy synchronization and browser restrictions.
Blocked uploads to Microsoft Generative AI Website groups and validated ChatGPT upload blocking.
Switched the policy from Simulation Mode to Enforcement Mode after successful validation.
The first phase focused on creating an enterprise Data Loss Prevention policy using Microsoft's built-in Credit Card Number Sensitive Information Type. This policy protects sensitive financial information across supported Microsoft 365 workloads while allowing administrators to validate policy behavior in Simulation Mode before enabling enforcement.
Started from the Microsoft Purview portal and selected Data Loss Prevention.
Reviewed existing DLP policies and monitoring dashboard before creating a new enterprise policy.
Configured protection scope across Microsoft 365 workloads including Exchange, SharePoint, OneDrive and Endpoint devices.
Created a custom enterprise DLP policy instead of using predefined templates.
Configured the enterprise DLP policy name and business description.
Applied the policy across the Microsoft 365 tenant.
Configured Exchange Online, SharePoint Online, OneDrive, Microsoft Teams and Endpoint Devices.
Used advanced policy configuration for granular rule creation.
Started with an empty rule set for complete customization.
Configured Microsoft's built-in Credit Card Number detection.
Configured policy actions to restrict unauthorized sharing.
Enabled policy tips to educate users before policy enforcement.
Validated the policy in Simulation Mode before production enforcement.
Verified all DLP settings before deployment.
Confirmed successful deployment and synchronization.
Verified policy deployment across Microsoft 365 workloads.
Most organizations possess proprietary identifiers that Microsoft's built-in Sensitive Information Types cannot detect. To solve this limitation, a custom Sensitive Information Type (SIT) named GSM was created using keyword-based detection and integrated into the Finance Credit Card Protection policy.
Reviewed Microsoft's 327 built-in Sensitive Information Types before creating a custom enterprise SIT.
Created a new custom Sensitive Information Type named GSM.
Configured keyword matching logic for proprietary organizational data.
Validated detection logic before publishing the custom SIT.
Added the GSM Sensitive Information Type to the enterprise DLP rule conditions.
After deploying the Data Loss Prevention policy, Microsoft Purview provides centralized monitoring capabilities through Activity Explorer, DLP Alerts, Incident Reports, and Reporting dashboards. These monitoring capabilities allow security teams to investigate policy matches, review user activities, validate policy effectiveness, and perform incident triage without requiring endpoint access.
Reviewed Activity Explorer filters to investigate DLP events generated across Microsoft 365 workloads.
Opened the deployed DLP policy to review monitoring and reporting configuration.
Configured incident reporting and email notifications for DLP policy matches.
Validated alert settings to ensure administrators receive notifications for policy violations.
Verified administrator email notifications generated from Microsoft Purview DLP.
Reviewed the complete event timeline generated from Endpoint DLP activities.
Investigated DLP alerts and validated policy detections from the Microsoft Purview portal.
Reviewed reporting dashboards to identify the most frequently triggered DLP rules and policy effectiveness.
Endpoint Data Loss Prevention extends Microsoft Purview protection from Microsoft 365 cloud services to Windows devices managed through Microsoft Defender for Endpoint. Unlike traditional DLP that focuses only on Exchange Online, SharePoint, OneDrive, and Teams, Endpoint DLP monitors local file activities, removable media, clipboard operations, browser uploads, network shares, and cloud application interactions. Before Endpoint DLP policies can be enforced, Microsoft Defender for Endpoint onboarding must be enabled within Microsoft Purview settings so that protected devices synchronize automatically.
Initially no devices were available because Microsoft Defender for Endpoint onboarding had not yet completed.
Verified that Endpoint DLP requires synchronization with Defender for Endpoint before managed devices appear.
After synchronization completed, the managed Windows endpoint became available for Endpoint DLP enforcement.
Configured Endpoint DLP browser protection and added Mozilla Firefox as a protected browser to prevent unauthorized uploads of sensitive data.
One of the most valuable capabilities introduced in Microsoft Purview Endpoint DLP is the ability to prevent users from uploading sensitive enterprise information to Generative AI platforms. Microsoft maintains a built-in Sensitive Service Domain Group called Generative AI, which includes hundreds of AI services such as ChatGPT, Copilot, Claude, Gemini and many other public AI platforms. By combining Endpoint DLP with this domain group, organizations can prevent confidential files from being uploaded while still allowing normal web browsing.
Verified Microsoft's built-in Sensitive Service Domain Group containing hundreds of AI websites supported by Endpoint DLP.
Updated the Endpoint DLP rule to block uploads to Microsoft's Generative AI domain group.
Configured browser restrictions that automatically apply to supported Generative AI services.
Validated that uploading a sensitive document containing the configured Sensitive Information Type was successfully blocked.
Repeated testing confirmed consistent policy enforcement across browser sessions.
Verified that Microsoft Purview displayed policy tips informing users why file sharing was blocked.
Microsoft recommends deploying Data Loss Prevention policies in Simulation Mode before enabling enforcement. Simulation mode allows administrators to validate policy behavior, review alerts, and fine-tune conditions without affecting end users. After validating all policy matches, the policy was switched to Enforcement Mode.
Successfully transitioned the DLP policy from Simulation Mode to Enforcement Mode after completing validation testing.
| Security Control | Status |
|---|---|
| Standard Sensitive Information Types | Implemented |
| Custom Sensitive Information Types | Implemented |
| Endpoint Data Loss Prevention | Implemented |
| Microsoft Defender for Endpoint Integration | Implemented |
| Browser Restrictions | Implemented |
| Generative AI Domain Protection | Implemented |
| Activity Explorer Monitoring | Implemented |
| DLP Alerts & Incident Reports | Implemented |
| Simulation Mode Validation | Completed |
| Enforcement Mode | Enabled |
Implemented Microsoft Purview Data Loss Prevention across Microsoft 365 and Windows endpoints.
Extended DLP beyond Exchange, SharePoint, OneDrive and Teams by protecting Windows endpoints.
Prevented sensitive enterprise information from being uploaded to Generative AI services.
Validated DLP events through Activity Explorer, Alerts and Reporting Dashboards.
View the complete implementation guide, architecture diagrams, PowerShell scripts, documentation and all screenshots in the GitHub repository.
View Project on GitHub →