Office 365 E-mail Encryption
With the recent blog from the ICO about the thing to consider when sending E-mails parents i thought this would be an opportune time to post a quick HOW-TO-GUIDE on setting up E-mail encryption in Office 365.
I don't want to get into the specifics of why or why not to encrypt here but i'll show you what you need and how to achieve it.
First thing to consider is licensing. Microsoft recently changed this so that you can now get Azure Rights Management for free as an Education customer. If it doesn't appear for you, you will need to contact Microsoft about it, i think they are rolling it out gradually.
The next thing to bare in mind is that the recipient will need a Microsoft account. Now this doesn't have to be a Microsoft E-mail account, you can attach a gmail, yahoo or any other type of address to a Microsoft account, but the recipient will need a way of signing in to Microsoft with their E-mail address. The sign up process is pretty quick and can be completed in under 5 minutes.
Now we've got past the money bit we can get to the set up.
The first thing you'll need to do is activate Azure Rights Management on Office 365.
In the Office 365 Admin Center, go to 'Service Settings'.
In 'Service Settings', click on the 'Rights Management' tab. When clicked-on for the first time, the portal might take a few moments to set up rights management, before displaying any content.
When it does, click on 'Manage'.
Click to 'activate' rights management.
Confirm
Rights management is activated.
Next we need to set up Azure Rights Management. This bit, as with so much in Office 365, requires some PowerShell commands.
I'm going to assume you already know how to connect to Office 365 & Exchange Online already. If not there are some good guides already on here.
Before we can run the PowerShell commands we need to make sure we have the correct permissions.
You can do this by adding your administrator to be a part of the following role groups under Office 365 portal \ Exchange admin center \ permissions \ admin roles
Compliance Management
Organization Management
Records Management
Then we need to download the Azure Rights Management administration module.
Go to the Microsoft Download Centre and download the Azure Rights Management Administration Tool which contains the Azure Rights Management administration module for Windows PowerShell.
We now need to connection to Exchange Online,
Once you have done that we need to set the RMS key sharing location. I'll post the commands for the EU location but the other locations are as follow:
North America: https://sp-rms.na.aadrm.com/TenantManagement/ServicePartner.svc European Union: https://sp-rms.eu.aadrm.com/TenantManagement/ServicePartner.svc Asia: https://sp-rms.ap.aadrm.com/TenantManagement/ServicePartner.svc South America: https://sp-rms.sa.aadrm.com/TenantManagement/ServicePartner.svc
So the code you will need to execute in PowerShell if you are connection to the EU RMS key is:
Set-IRMConfiguration -RMSOnlineKeySharingLocation "https://sp-rms.eu.aadrm.com/TenantManagement/ServicePartner.svc"
Run the following command to import the Trusted Publishing Domain (TPD) from RMS Online:
Import-RMSTrustedPublishingDomain -RMSOnline -name "RMS Online"
To keep things simple you can remove the IRM templates for users from Outlook and OWA and just leave them for admins to set up.
To disable IRM templates in OWA and Outlook:
Set-IRMConfiguration - ClientAccessServerEnabled $false
To enable IRM for Office 365 Message Encryption:
Set-IRMConfiguration -InternalLicensingEnabled $true
Now Office 365 is all set up to use E-mail encryption you just need to assign the A3 licenses to your users.
Next is to set up some policies to encrypt the E-mails.
The first thing i did was to give users an option to encrypt any E-mail they want to by prefixing their E-mail subject with "Encrypt:"
To set this up we need to go into the Exchange Admin Centre, then Mail Flow and then Rules.
We create a new rule
Then click more options near the bottom to allow us to see the extra features.
Then we set the following options
*Apply this rule if...
The subject or body... > subject includes any of these words
Then type in "Encrypt:" without the quotes.
*Do the following...
Modify the message security... > Apply Office 365 Message Encryption
This will now encrypt any e-mail the contains the text 'Encrypt:'
Next we get to a slightly more complex rule. To automatically detect any E-mail that contains a UPN number and encrypt it.
The same method as above but a slightly different setting for detecting the text, we'll use a regex statement that @Arthur helped me out by providing.
We go through the same process as before but now we want the following:
* Apply this rule if...
The Recipient is located... Outside the Organisation.
and
The subject or Body... The subject or body matches these text patterns
the bit of regex code we enter is
[a-hA-Hj-nJ-Np-rP-Rt-zT-Z]{1}\d{12}
*Do the following...
Modify the message security... > Apply Office 365 Message Encryption
Lastly if we also want to detect the UPN in attachments we need another policy for that.
* Apply this rule if...
The Recipient is located... Outside the Organisation.
and
Any attachment... content matches these text patterns
add this code again
[a-hA-Hj-nJ-Np-rP-Rt-zT-Z]{1}\d{12}
*Do the following...
Modify the message security... > Apply Office 365 Message Encryption
Lastly there are some built in Data Loss Prevention policies but i have found these to be not very applicable to education.
However i will show you one quickly.
Go to Exchange Admin Centre \ Compliance Management \ data loss prevention
click the + and select 'new DLP policy from template'
You can select from pre-built templates and there are a few specific to the U.K. and lots of other related to other countries too.
Some of these will encrypt your E-mails or give the user a warning that they are about the send confidential data with the option to override.
U.K. Access to Medical Reports Act
U.K. Data Protection Act
U.K. Financial Data
U.K. Personal Information Online Code of Practice (PIOCP)
U.K. Personally Identifiable Information (PII) Data
U.K. Privacy and Electronic Communications Regulations
We are not fully set up to send encrypted E-mails, but what does it look like to receive an encrypted email?
The recipient will receive an email with a 'message.html' attachment. This email will have the same subject line as the originally sent email.
Double click or open the 'message.html' attachment in a browser – preferably Internet Explorer.
Click on 'View your encrypted message'.
Use one of the sign in options.
If the recipient has never received an email from Office 365 Message Encryption service, then an initial sign up process is required to verify the account. Once signed up, the recipient can use the created credentials for any future messages encrypted by Office 365 Message Encryption Service.
If the recipient's email address belongs to one of Microsoft's services like Office 365, then the same can be used directly to sign in and view the encrypted message.
If however, the recipient address belongs to a third-party or unsupported service, an associated Microsoft account is created for the recipient as part of the sign up process.
Note that the recipient does not need an Office 365 Message Encryption license to view or reply to the encrypted message. And all subsequent replies to an encrypted message, including attachments, are also encrypted.
The message opens in a captive portal.
The recipient will be able to 'reply', 'reply all' or 'forward' the email.
The recipient can insert an attachment to the reply and it goes out as part of the encrypted message.
Also, the recipient automatically receives a copy of the reply, as an encrypted email, for reference.
When the reply is sent, it is delivered as an encrypted message to the first sender.
This is because there is no decryption rule in place.
All subsequent communications are thus encrypted.
We can now make or staff's lives that little bit easier and create a rule to decrypt all incoming E-mails.
We go back to Exchange Admin Centre \ mail flow \ rules
Create new Rule and add the following options
* Apply this rule if...
The Recipient is located... Inside the Organisation.
*Do the following...
Modify the message security... > Remove Office 365 Message Encryption
You can also encrypt messages that have been marked as confidential using the privacy settings in OWA.
To do so apply the following rule.
Name: Encrypt confidential emails
* Apply this rule if...
Is sent to 'Outside the organization'
and 'Sensitivity' header contains ''company-confidential''
*Do the following...
Encrypt the message with Office 365 Message Encryption
We are not finished!
This is my first post like this so i welcome any criticisms (please don't be too harsh!)
If you have any other questions please feel free to ask.
I'd like to discuss any ideas for other data types that would be worth detecting and encrypting.
Chris.
Source Materials:
Edited by Marshall_IT








8 Comments
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now