Jump to content
  • entry
    1
  • comments
    8
  • views
    157

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'.

 

1.thumb.png.6a519cb6d65bacec7ec206649795ac20.png

 

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'.

 

2.thumb.png.ddc56e2356a968c600da7b06c6d67a20.png

 

Click to 'activate' rights management.

 

3.png.00e3892621d340ad76bcc265cd767b2a.png

 

Confirm

 

4.png.106bfb8c929131e5d070ab0f112000fb.png

 

Rights management is activated.

 

5.png.7047d2e000de55ff65b7a0bf3a4ee917.png

 

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

 

6.png.150dd0f301725aaa35be67a8ea4dfe1d.png

 

Then click more options near the bottom to allow us to see the extra features.

 

7.PNG.9d29d03861f8a4c892882e887f7350fd.PNG

 

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

 

8.PNG.ab59e18f1f64df4995f4b38dc40ba1be.PNG

 

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

 

9.PNG.e93f0938c2dc1e5a053b9043156a6b12.PNG

 

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

 

10.PNG.1684dd9df74f06c328c21bb3cf2de385.PNG

 

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.

 

11.thumb.png.485aedba08a59a6a2d39b7c32afa5a5d.png

 

Double click or open the 'message.html' attachment in a browser – preferably Internet Explorer.

 

12.png.32079aefd5d4a6fc98ea2c510a3fc480.png

 

Click on 'View your encrypted message'.

 

13.png.e6bba7c8b0a1cc3f6f4fa47b4208d385.png

 

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.

 

14.thumb.png.371e1564b67726213315e55957430d0c.png

 

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.

 

15.thumb.png.135275ab71f530dd8ca65609f1e9ec8a.png

 

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

 

16.PNG.ca774e312f3ef8d838da9526d9b178f9.PNG

 

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:

technet blog

technet IRM

msdn

Edited by Marshall_IT

8 Comments


Recommended Comments

FN-GM

Posted

Hi,

 

Do you use the Encrypt message option in Outlook or OWA? Or do you find your users forget to use this?

 

Thanks

Marshall_IT

Posted

Hi FN-GM,

 

my users do sometimes use the encrypt feature in outlook out OWA but that is mainly myself or the data Manager. Most users find it easier if they can just prefix the subject with encrypt.

 

Thanks for reading.

FN-GM

Posted

Thanks for posting :)

 

Looking at something like this for some of the admin staff, it looks something fairly simple for the end users :)

FN-GM

Posted

Finally got around to doing this. Followed this guide and it worked a treat!

 

In OWA you can set a message as confidential. How can you make a rule to automatically encrypt the message when this is selected?

 

Also is it possible to remove the Encrypt part of the subject once it is sent? Just so its more clean for the recipient.

 

Thanks

Marshall_IT

Posted (edited)

Finally got around to doing this. Followed this guide and it worked a treat!

 

In OWA you can set a message as confidential. How can you make a rule to automatically encrypt the message when this is selected?

 

Also is it possible to remove the Encrypt part of the subject once it is sent? Just so its more clean for the recipient.

 

Thanks

 

You can encrypt messages marked as confidential which might be a better way of doing things if your users use OWA, i'm not sure it's an option in all versions of Outlook.

 

Apply the following rule:

 

Name: Encrypt confidential emails

If the message...

Is sent to 'Outside the organization'

and 'Sensitivity' header contains ''company-confidential''

Do the following...

Encrypt the message with Office 365 Message Encryption

 

 

I can't see a way of removing Encrypt from the start of the subject.

 

Chris.

Edited by Marshall_IT
FN-GM

Posted

Thanks very much.

 

Hmm i can't see the sensitivity settings, you don't happen to have a screenshot do you please?

Marshall_IT

Posted

Thanks very much.

 

Hmm i can't see the sensitivity settings, you don't happen to have a screenshot do you please?

 

I'll add a screenshot later but the song you want is

 

Message header includes...

'sensitivity' header includes 'company-confidential'

Marshall_IT

Posted

Edited to update the section on Licensing as Microsoft now provide this for free.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...