Cloud App Security · Security

Control access from unmanaged devices with Cloud App Security

· 5 min read · Cloud App Security, Security

On this page

When COVID-19 hit the world, most people had to work from home. I can imagine that a lot of organizations were not ready for this. So they might have ended up letting their employees working from their personal devices. In some way, this is what we always preached: anywhere, anytime, and on any device. But when you enable Bring Your Own Devices for Microsoft 365 services, there is a lot to think of.

Amongst others, the main challenge is to protect your user’s identity and data. I’m not going into detail on Identity Protection, but you can take a look at some of my other blogs, here, here, and here.

Illustrative image accompanying discussion of protecting identity and data

I see a lot of organizations that allow unlimited access from personal devices. That means that users can be really productive, installing Microsoft 365 Apps for enterprise, and syncing SharePoint and Onedrive libraries to their local machines. Without the proper data protection products in place, that is a disaster. Users can copy this data to USB devices, upload them to personal cloud storage services like Dropbox and Google Drive, and can share the documents through personal email accounts.

Data protection#

Data protection is not an easy job, so organizations are focusing on the ’low hanging fruit’ first. Data protection is often pushed back on the backlog due to complexity and the lack of time and resources. Because data protection is not an IT responsibility alone. Various stakeholders must be involved, and a large part of implementation is spent on classification and adoption/training of the users.

That brings me to the core of this blog post. When you don’t have proper data protection features in place (yet), you might want to control/limit access from unmanaged devices. I think I speak for all of you when I say that you don’t want to enroll your personal devices (often shared) into your companies MDM.

Built-in possibilities#

There are some built-in settings that you can configure regarding unmanaged devices. SharePoint for example has the ability to limit or block access from unmanaged devices. When you configure this, a Conditional Access policy will be created. Take note, that this will also have an impact on Teams files.

SharePoint settings for limiting access from unmanaged devices

Microsoft Cloud App Security#

Today we take a look at Cloud App Security. Using MCAS, you can take control over the session to Office 365 apps. This allows you to control actions (copy, paste, send & print) and prevent downloads of documents on unmanaged devices. Let me show you how this works.

First, we’ll need to route the application to Cloud App Security using Conditional Access. In this example, we use Office365 and Windows 10, but you can adjust the conditions to your needs.

Conditional Access policy routing Office 365 sessions through Cloud App Security

+ Create a new policy

Users and groups: Select the user. Start with a test user!
Cloud apps or actions: Select Office 365
Conditions:
Select Device state (Preview), All device state, and exclude Device Hybrid Azure AD joined and Device marked as compliant.
Select Device platforms: Windows
Session: Use Conditional Access App Control, Use custom policies

Session policies#

Next, head over to the Cloud App Security Portal. Now Office 365 apps are redirected to MCAS, we can configure some policies to control the session. Next to that, we block access for desktop apps from unmanaged devices.

First, let’s start with the session policy to block all downloads on personal devices. Create a new policy like the example here below.

Now, when the users logs in, they get prompted with this message:

Cloud App Security prompt displayed when a user starts a browser session

You can change this behaviour in the Settings pane. You’re able to customize the message or just disable it.

Cloud App Security settings for customizing or disabling the session prompt

Next, when the user tries to download a file, this is blocked. An empty dummy file is downloaded instead.

Cloud App Security notice shown when an unmanaged-device download is blocked

In addition to that, the user is notified per email, like we configured in the policy.

Email notification sent after a file download is blocked

Restrict copy/paste and print#

If you like to restrict specific action, you can create another session policy. Use the template ‘Block cut/copy and paste based on real-time content inspection’ and adjust the settings like the example below.

Now, when the user is trying to copy or past data, the action is blocked.

Cloud App Security blocking a copy or paste action in the browser

Access policies#

As you might have seen while configuring the polices, these policies will only apply to browser sessions. So, you might want to block access to desktop apps for personal devices, or devices that fell out of compliancy.

Cloud App Security session control applying only to browser sessions

*Session control only applies to browsers.*

In order to do that, we create an access policy.

Cloud App Security access policy for restricting desktop application access

When the selected user tries to access Teams with the Desktop app, this will not be allowed.

Microsoft Teams desktop app access blocked by the access policy

Alerts#

All polices matches can be found in the alerts section.

Cloud App Security alerts list showing matches for configured policies

You can configure the alerts to your needs.

Cloud App Security alert settings for extending actions with playbooks

With the playbook option, you can trigger Power Automate flows which will extend the capabilities to pretty much anything.

Mobile apps#

One thing I want to point out here. For mobile apps, you don’t necessarily have to block the access. Instead, you can use Intune App Protection for mobile devices like iOS, iPadOS, and Android. App protection, also known as MAM, can prevent data leakage and can protect the apps with an extra layer of security like a PIN.

Unfortunately, there is no such thing as MAM for Windows (or Mac). There is Windows Information Protection for Windows 10 (WIP-WE), but my personal experience with those implementations are not really good, to be honest. Devices need to be Azure AD registered and WIP-WE is just designed for accidental leakage of data.

Conslusion#

Personal devices can be tough to manage. In this example, I showed you how to ease the pain a little bit. There are a few other ways to get the same thing done, but I like the granularity of the policies in MCAS. On top of that, you can customize the user prompts, so even if the user doesn’t know the organization’s policy on using personal devices, the user will learn it along the way.

Check out the Microsoft Cloud App Security Licensing Datasheet for license related questions. If you don’t have the proper license, you can also use Conditional Access to block the desktop apps for unmanaged devices. (Azure AD premium P1 needed). With the built-in controls in SharePoint ant Exchange, you can set the behavior for unmanaged devices. Session control (CASB) is not possible without MCAS.

Check out the documentation if you want to learn more:

https://docs.microsoft.com/en-us/cloud-app-security/proxy-intro-aad
https://docs.microsoft.com/en-us/cloud-app-security/session-policy-aad \

Comments

Comments load when you scroll here.