Microsoft Purview Data Protection – Creating a Safelist with Data Loss Prevention

I recently encountered an interesting use case. A client wanted to control the sharing of their highly sensitive information via a whitelist or safelist. That is, for every document emailed out that was flagged as restricted or contained a restricted attachment, they wanted to block it outright unless it was going to an approved external partner. So, I set about creating a safelist with data loss prevention within Microsoft Purview.

Disclaimer: Any procedures or screenshots demonstrated in this post were tested at the time of writing.  I will do my best to update the steps as Microsoft implements updates but be aware that while the overall concept may not change, the actual steps may change as Microsoft makes changes.

The Requirements

The client had their most sensitive information configured as a user-defined permission (UDP) label but needed to share the contact externally in some special cases.  If all of the following criteria were met, the email had to be blocked from being sent:

  1. Only affect email
  2. The email had to be sent externally
  3. The email had to have a restricted label applied or have an attachment with a restricted label applied
  4. One or more recipients must not be part of the approved safelist

Overview of the solution

First, you may wonder why we did this via Exchange only. It’s because we don’t have the necessary controls available in OneDrive and SharePoint. What I mean by this, is the ability to control a safelist requires you to be able to add users or email addresses to the condition of the policy.  SharePoint and OneDrive lack the ability to do this.  To ensure email was the only way to share the content, a blocking DLP policy for all restricted content being shared from SharePoint and OneDrive was created as part of the overall solution.  I’ll post how that was accomplished next.  So this brings us back to Exchange.  The solution is going to have the following attributes:

  1. DLP policy is scoped to Exchange only
  2. The policy contains a single rule
  3. The rule activates when:
    1. Email is sent externally
    2. Email contains a restricted attachment, or the email is restricted itself
    3. Email contains a recipient that does not fall under the approved list.
  4. If activated the rule will block the email from being sent, but will allow the user to override with a justification.

As the business couldn’t always determine who the actual recipient was, it was agreed that the recipient check would be for a domain rather than an individual user.

Creating a Safelist with Data Loss Prevention

Note: as Microsoft is removing the classic Purview soon, the following steps and screenshots are done in the new Microsoft Purview portal:

  1. Navigate to Purview (https://purview.microsoft.com)
  2. Click on Data Loss Prevention

  1. Click on Policies –> + Create policy
  2. Select a custom template for the policy and click Next.

Creating a Whitelist with Data Loss Prevention - Select Custom Policy

  1. Provide the policy with a meaningful name and description (optional)
  2. Click Next at Admin units
  3. At the Locations page, select only Exchange (you can assign this to specific groups here as well if necessary)

Creating a Whitelist with Data Loss Prevention - Select Location

  1. If not already selected, ensure “Create or customize advanced DLP rules” is selected and click next
  2. Click on + Create rule to create a new rule.
  3. Provide the rule with a meaningful name (usually the details of your search)
  4. Click on + Add condition.
  5. Select “Content contains”

Creating a Safelist with Data Loss Prevention - Add Content Contains

 

  1. This will create a new Condition Group.  The default name is Default, but I suggest renaming to something that makes sense like “Restricted Content Shared Externally”
  2. Click on Add.  Select Content is shared from Microsoft 365.  Within this condition, select “with people outside my organization”.

Creating a Safelist with Data Loss Prevention - Content Shared from Microsoft 365

 

  1. Next click on Add.  Select Sensitivity Label. Note: the operator AND is automatically added between the conditions.  This can be changed to OR is required.

Creating a Safelist with Data Loss Prevention - Add Sensitivity Label Check

 

  1. In the blade that pops out, select the required label.
  2. Under “Evaluate predicate for (available for Exchange workload only)” select Message or attachment.
  3. Click “Add Group”
  4. Click on the “NOT” operator option to activate.  In this section, we will add the list of safe domains.  If the recipient is not on that list, they will activate the rule (hence the need for NOT to be active).
  5. Click on + Add Condition.
  6. Select “Recipient domain is”
  7. Add the list of domains.  Can use a comma to separate without having to click + Add each time.
  8. Once all domains are in the text box, click + Add

Creating a Safelist with Data Loss Prevention - Add Safe Domains

 

  1. Scroll down a little and click on + Add an action.
  2. Click on “Restrict access or encrypt the content in Microsoft 365 locations”

Creating a Safelist with Data Loss Prevention - Add Restrict Action

 

  1. Select the option “Block only people outside your organization”

Creating a Safelist with Data Loss Prevention - Block External

 

  1. If you wish to allow users to override this, you have to enable notifications.  Do this and select the notifications you wish the users and administrators to receive.
    • Click on the checkbox “Allow users to override policy restrictions in Fabric (including Power BI), Exchange, SharePoint, OneDrive, and Teams.​” to allow users to override the block and provide a justification if required.

Creating a Safelist with Data Loss Prevention - Rule notification settings

  1. Continue to configure the rule as your organization requires.
  2. Click Save.
  3. You will be brought back to the rule list page and you can see a summary of the settings you just configured.

Creating a Safelist with Data Loss Prevention - Rule Summary

 

  1. Click Next.
  2. You can then choose to run the policy, disable the policy, or run it in simulation mode.  Make your selection and click Next.
  3. Review the settings and click Submit.

The User Experience

Now, when users send an email containing a restricted attachment or the email itself is restricted, they will need to justify sending the document if there is a recipient not within the safelist.

Creating a Safelist with Data Loss Prevention - Email Blocked by Policy

 

If they use a mix of allowed and disallowed recipient lists they will also receive a block:

Creating a Safelist with Data Loss Prevention - Email with safe and unsafe recipients

And if only safe recipients are added:

Creating a Safelist with Data Loss Prevention - Only Safe email recipients

Thanks for reading!


I’d love to share regularly with you!

Subscribe to get the latest posts sent to your email.

Comments

2 responses to “ Microsoft Purview Data Protection – Creating a Safelist with Data Loss Prevention”

  1. Sorry for the odd comment, but it is visible on the page. I recently ran into this, but did not have full control. “It’s because we don’t have the necessary controls available in OneDrive and SharePoint. To ensure email was the only way to share the content, a blocking DLP policy for all restricted content being shared from SharePoint and OneDrive was created as part of the overall solution. ‘

    1. Thank you for the comment Tom. I assume you mean you didn’t understand what I meant by that comment. Thanks for bringing this to my attention. I have updated that paragraph to be more descriptive.

Leave a Reply

Your email address will not be published. Required fields are marked *