This blog will be about how to secure and harden your Office 365 Apps and maybe automate it with PowerShell.
Nowadays everyone should be securing their Microsoft 365 Tenant, their identity and the endpoints. Also, hardening your Office 365 apps is necessary because your devices are often targeted by malicious emails/websites.
I will divide this blog into 4 parts.
- Some background information
- Hardening Office365 Apps Manually
- Hardening Office365 Apps Automatically
- Application Guard for Office Apps
In one of my latest blogs, I pointed out the DIF and SYLK extensions but there is more, much more you could configure.
First, we need to take a look at what the Australian government has to say about hardening your Office 365 Apps
There are a lot of recommendations in it, but beware some of them can break stuff. As an example when you are configuring the AllowDDE setting you can end up with an error when your users want to open an existing excel file
“An error occurred when sending commands to the program” in Excel
So please make sure you take a real good look at each setting. When you need to do this for every customer you have, it could take up a lot of your time.
The Australian government is of course advising us to deploy ASR rules. Please visit my other blog about deploying the ASR Rules
2.Harden Office365 Manually
Of course, you can configure each setting manually:
Open Intune and create a new Administrative Template or configure it using the settings catalog.
You can configure each setting by looking at the website I mentioned earlier
There are about +60 settings you’ll be able to configure, that’s a lot! Do I really need to configure all of this manually? Luckily we’re able to automate most of these settings.
3.Harden Office365 Automatically
When you need to configure it automatically, please download the zip file in the link below.
It contains a script with an ADMX folder with all the policies. Just run the PowerShell script as I show below.
When you’ve run the script, you’ll notice a new administrative template has been created with all settings in the device configuration section.
If you want to make your own version for the hardening of Office365, you will need to download this zip file
When running the script it will only prompt you for the location where the ADMX files need to be stored. Now you can use these files with the import script I showed you earlier.
I recommend testing out all of these settings before you deploy them in your production environment. As mentioned earlier, some settings can break your way of working.
4. Application Guard for Office Apps
Now we have hardened Office365 with some Intune settings we need to take a look at how we could improve the security a little bit more.
And that’s where the application guard for Office apps comes into place. Application Guard for Office Apps prevents untrusted files from accessing trusted resources.
You can configure this with one PowerShell script or Intune administrative templates.
Please take a look at my blog on how to enable this nice feature
Hardening your office 365 apps is necessary but can be a lot of work when you have to configure it manually on all your Office365 tenants. Luckily, we’re able to automate most of it and it’s really easy as well. Now go serve and protect!