Menu
Modern Workplace Blog
  • Home
  • About: Kenneth van Surksum
  • Cookie Policy
Modern Workplace Blog
October 25, 2019October 25, 2019

Extending Conditional Access to Microsoft Cloud App Security using Conditional Access App Control

In my blog article series on Conditional Access Demystied I mentioned that Conditional Access can be used to route sessions toward Microsoft Cloud App Security (MCAS). In this article I will go into more detail on what MCAS is, and how to setup Conditional Access App Control.

Disclaimer: This article discusses the full option MCAS product, there are some other flavors providing partial functionality like Office 365 Cloud App Security and Cloud App Discovery (CAD). For information about licensing, see the Microsoft Cloud App Security licensing datasheet.

What is Microsoft Cloud App Security (MCAS)?

MCAS is Microsoft’s implementation of a Cloud App Security Broker (CASB). So what’s a CASB then you might ask yourself – WikiPedia states the following:

“A cloud access security broker (CASB) (sometimes pronounced cas-bee) is on-premises or cloud based software that sits between cloud service users and cloud applications, and monitors all activity and enforces security policies. A CASB can offer a variety of services, including but not limited to monitoring user activity, warning administrators about potentially hazardous actions, enforcing security policy compliance, and automatically preventing malware.”

Microsoft’s CASB implementation MCAS provides the following functionality:

Log Collection also known as Cloud Discovery

By either manual uploading firewall logs (click here to see which FW logs are supported) or setting up an automatic way of doing so, the logfiles are analyzed giving insights in the data concerning cloud applications being accessed from behind the firewall. The main usecase is to gain insights in the so called “Shadow IT” usage, meaning IT services being used within your network out of sight of you (the IT Department).

If you are using Microsoft Defender Advanced Threat Protection (MDATP), you can also enable the connection from MDATP to MCAS allowing for information coming from MDATP to allow machine based investigation, even when machines aren’t on the corporate network and their network traffic doesn’t go through your corporate firewall.

For most applications being discovered, Microsoft provides additional information about Legal, Security and Compliance and based on that calculates a so called Risk Score between 0 and 10. Below is an example of LinkedIn, which has a risk score of 7.

LinkedIn Information within MCAS

API Connectors also known as App Connectors

By using API Connectors, the information being gathered by MCAS can be extended towards the application services which support this kind of API connection. It’s almost obvious that most Microsoft’s SaaS based apps are supported in this scenario. On the website the following applications supporting API connections are mentioned:

  • Office 365
  • Box
  • Okta
  • Gsuite
  • ServiceNow
  • SalesForce
  • Dropbox
  • AWS
  • Webex
  • Workday

What can be discovered is depending on the functionality being provided by the manufacturer of the App. Check this page for more information about what is supported when using the App connector for each product.

Reverse Proxy also known as Proxy Access + Session

By integrating MCAS into your Conditional Access policies, you can redirect user sessions to Cloud Applications through MCAS. MCAS in this case acts a reverse proxy and gives the MCAS administrator the option to govern that session. It’s important to remark that in order to reverse proxy Cloud Application through MCAS, the App must be accessed via Azure Active Directory (Azure AD). If a cloud application is available by other means, like for example with a user account and password coming from another identity provider than Azure AD. (internal mechanism, twitter, google, facebook and so fort). More about this functionality later in this article.

Integration with other and 3rd party products

MCAS provides several integration with other Microsoft products and products from 3rd party vendors. Some examples are that you can use Microsoft Flow when creating policies (more on that later), or integrate with SIEM products or Data Loss Prevention (DLP) solutions.

It’s also possible to integrate MCAS with so called Cloud Proxy solutions, like Zscaler and iBoss. By doing so you are able to block connections for certain cloud services even if clients are not on the corporate network.

MCAS in the Gartner Magic Quadrant for CASB

While writing this article, I noticed some tweets mentioning that research firm Gartner has placed Microsoft in the leader quadrant for CASB solutions, while the report is for paying users only – https://www.gartner.com/en/documents/3892270/magic-quadrant-for-cloud-access-security-brokers. I expect that Microsoft or maybe another mentioned company might make the report available free for download in the near future. If so I will update this article with a link to the report.

What are the use cases voor Conditional Access App Control

The main goal of what we want to accomplish by implementing security products is to keep your users safe and make sure that company data confirms to the Confidentiality, Integrity, and Availability (CIA) triad.

Microsoft has made available a downloadable whitepaper detailing 20 use cases for using a Cloud App Security Broker, which can be downloaded here.

The use cases mentioned are:

  1. Discover all cloud apps and services used in your organization
  2. Assess the risk and compliance of your cloud apps
  3. Goven discovered cloud apps and explore enterprise-ready alternatives
  4. Enable continuous monitoring to automatically detect new and risky cloud apps
  5. Detect when data is being exfiltrated from your corporate apps
  6. Discovery Oauth apps that have access to your environment
  7. Gain visibility into corporate data stored in the cloud
  8. Enforce DLP and compliance policies for sensitive data stored in your cloud apps
  9. Ensure safe collaboration and data sharing practises in the cloud
  10. Protect your data when it’s downloaded to unmanaged devices
  11. Enfore adaptive session controls to manage user actions in real-time
  12. Record an audit trail for all user activities across hybrid environments
  13. Identify compromised user accounts
  14. Detect threats from users inside your organization
  15. Detect threats from privlileged accounts
  16. Identify and revoke access to risky OAuth apps
  17. Detect and remediate malware in your cloud apps
  18. Audit and configuration of your IaaS environments
  19. Monitor user activities to protect against threats in your IaaS environments.
  20. Capture user activities within custom cloud on-premis apps

So, how do you configure Conditional Access App Control?

In order to be able to use Conditional Access App Control you must meet the following license requirements:

  • Azure Active Directory Premium P1 or higher
  • Microsoft Cloud App Security
  • Apps must be configured with single sign-on in Azure AD
  • Apps must use SAML or Open ID Connect 2.0 protocols

With Conditional Access App Control you can redirect the user’s session to the Cloud App through MCAS. You can start doing this by creating a Conditional Access policy which uses the “Use Conditional Access App Control” session control.

Conditional Access, session control

There are featured apps, and apps which must be onboarded first before you can use them with MCAS. Featured apps are:

AWS, Azure DevOps (Visual Studio Team Services),Azure portal (preview), Box, Concur, CornerStone on Demand, DocuSign, Dropbox, Dynamics 365 CRM (preview), Egnyte, Exchange Online, G Suite, GitHub, HighQ, JIRA/Confluence, OneDrive for Business, LinkedIn Learning, Power BI, Salesforce, ServiceNow, SharePoint Online, Slack, Tableau, Microsoft Teams (preview), Workday, Workiva, Workplace by Facebook, Yammer (preview)

Example

In this simple example we are going to configure the following scenario: “We want access to Microsoft teams via the webbrowser from unmanaged Azure AD joined devices to be sent to MCAS so that we can monitoring those sessions and apply policies to them. For this example we are going to Block Downloads from within the session”

Create Conditional Access Policy

  1. Go to the Azure AD administration portal via: https://aad.portal.azure.com
  2. Select Azure Active Directory and select Conditional Access
  3. Click on +New policy to create a new Conditional Access policy
  4. Provide a name for the new policy, for example “I24 – Route Cloud Services through MCAS”
  5. Under Users and Group define for which users you want to make the policy applicable. At first it’s advised to do this to a small subset of users. Make also sure to exclude your break glass accounts in order to make sure that no Conditional Access policy hits these account in case something is wrong.
  6. Under Cloud apps or actions , click on Select apps and select Microsoft Teams
  7. Under Conditions, select Client Apps (Preview) and select Browser.
  8. Under Conditions, select Device State (Preview) and under the tab Exclude select “Device marked as compliant”
  9. Under Access controls, Session select “Use Conditional Access App Control” and select “Block Downloads”
  10. Save the Conditional Access Policy

Behaviour

If a user to whom the CA policy is applicable goes to https://teams.microsoft.com on an unmanaged device (or not compliant device), the session is redirected to MCAS. This can be seen by the URL being referenced, in my case: https://insight24-nl.eu001.access-control.cas.ms/aad_login

The first page a user sees, is a custom page (company branded) is diplayed telling the user that Access to Microsoft Teams is monitored.  The user has the option to suppress this page for one week, but is reminded again after that.

Access to Microsoft Teams is monitored

After clicking “Continue to Microsoft Teams” the user is redirected to Microsoft Teams, note though that the URL still points to MCAS

Teams via the Browser, but proxied through MCAS

When the user wants to download a file the following screen appears.

Download Blocked

Instead a .txt file is downloaded containing information about the file which was supposed to be downloaded:

The file was blocked since it contained data that is not allowed to be downloaded.

file name: BSN Test.docx
Original file size in bytes: 19373
Original file sha256 checksum: fbfdb872507cd117f6dcc8d208e730979a2158707a36ac05cf06f25b9dfd3aee

Conclusion:

Microsoft Cloud App Security (MCAS) has several usefull security features allowing companies to gain more control about what users are doing with company data. By exending Conditional Access with the Reverse Proxy functionality of MCAS we get even more controls for our Conditional Access policies. While the example above was only a tip of the iceberg about what is possible I hope it gave you an idea of what can be done.

I, myself are also still exploring the numerous features of MCAS, and I hope to describe some more advanced features in a follow up blogposting in the future.

Tweet
Follow me
Tweet #WPNinjasNL

Continue Reading

← Conditional Access demystified, part 8: Resources and further references
Report-only mode, and some more handy reporting functionality for Conditional Access and Azure AD →

14 thoughts on “Extending Conditional Access to Microsoft Cloud App Security using Conditional Access App Control”

  1. Karolina says:
    February 13, 2020 at 2:57 pm

    Hi,
    Is it possible to implement Conditional Access App Control policy, for example to “block downloads” but for Teams desktop client version?

    Reply
    1. Kenneth says:
      February 24, 2020 at 1:41 pm

      Hi Karolina,

      No I don’t think that will work with an Conditional Access App Control policy, since in this case all the web traffic is reverse proxied through MCAS. We cannot do that with the Teams desktop client version.

      Interesting question though, never considered the scenario. If I find something useful I will add that as a comment to this thread.

      /Kenneth

      Reply
    2. Bob says:
      October 18, 2020 at 3:26 am

      You can. It will be an Access policy instead of Session policy.

      Session control applies to browser-based apps. To block access from mobile and desktop apps, create an Access policy.

      A good write up…

      https://janbakker.tech/control-access-from-unmanaged-devices-with-cloud-app-security/

      Reply
  2. Gino says:
    June 17, 2020 at 9:47 pm

    Hi Do you have or can you share any examples of Policies commonly used for Salesforce

    Reply
    1. Kenneth says:
      June 19, 2020 at 6:47 pm

      Hi Gino,

      Unfortunately not, sorry about that!

      /Kenneth

      Reply
    2. Sami Lamppu says:
      June 21, 2021 at 12:02 pm

      Hello, Christopher Brumm wrote blog series about protecting Salesforce with MCAS. Take a look from here:
      https://chris-brumm.medium.com/learn-how-to-enable-safer-selling-in-salesforce-with-microsoft-cloud-app-security-part-1-98082b1604d6

      Reply
  3. Callum Golding says:
    August 23, 2020 at 10:37 am

    Hi Kenneth,
    Did you ever find more information on Karolina’s question? I’m curious.
    Thanks

    Reply
    1. Bob says:
      October 18, 2020 at 3:26 am

      You can. It will be an Access policy instead of Session policy.

      Session control applies to browser-based apps. To block access from mobile and desktop apps, create an Access policy.

      A good write up…

      https://janbakker.tech/control-access-from-unmanaged-devices-with-cloud-app-security/

      Reply
      1. Jan Bakker says:
        October 20, 2020 at 2:30 pm

        Just to be clear: yes, you can block access TO desktop apps with Cloud App Security. No, you cannot block downloads IN desktop apps with Cloud App Security 😉 That is a heavily requested feature, but I don’t see it happen anytime soon to be honest. All traffic have to be proxied, so unless that desktop app is acting like a browser, the session cannot be controlled (yet).

        Reply
  4. Pingback: Browser restrictions and configuration when using Conditional Access on your modern workplace | Modern Workplace Blog
  5. Adrian says:
    January 2, 2024 at 3:55 pm

    Would you be able to use this to say block android and iOS devices from accessing an SSO SaaS app like AWS or Mongo Atlas?

    Reply
    1. Kenneth says:
      January 10, 2024 at 9:30 am

      Hi Adrian,

      Yes, that would be a possible scenario, the device should be MDM managed if you really want to enforce this though – since when using MAM and enforcing Microsoft Defender enrollment, the user can still turn off the VPN which is necessary to enforce blocking access to cloud services.

      Reply
  6. Mark Mullet says:
    March 18, 2024 at 9:27 pm

    Could you implement this to enforce an MFA push when elevating permissions, ie Azure PIM

    Reply
    1. Kenneth says:
      March 24, 2024 at 2:05 pm

      Mark,

      I would just use Authentication Context for this.. so define the authentication context in PIM, and create a CA policy using that auth context to enforce (preferably strong) MFA

      /Kenneth

      Reply

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Founding member of:

Recent Posts

  • MAM vs. MDM: Choosing the Right Mobile Management Approach
  • Comparing Web Filtering and Security: Microsoft Entra Internet Access (Global Secure Access) vs. Microsoft Defender for Endpoint (MDE)
  • Navigating New Authentication Methods: SMS for Password Reset, Not for MFA
  • From SPF to DANE: Securing Microsoft 365 Email Communications
  • Protecting your Break Glass accounts in Entra now that MFA gets enforced on more and more Admin portals

Books

System Center 2012 Service Manager Unleashed
Amazon
System Center 2012 R2 Configuration Manager Unleashed: Supplement to System Center 2012 Configuration Manager
Amazon
System Center Configuration Manager Current Branch Unleashed
Amazon
Mastering Windows 7 Deployment
Amazon
System Center 2012 Configuration Manager (SCCM) Unleashed
Amazon

Archives

  • February 2025
  • January 2025
  • September 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • September 2023
  • August 2023
  • February 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • May 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • November 2016
  • November 2015
  • June 2015
  • May 2015
  • November 2014
  • July 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • November 2013
  • August 2013
  • April 2013
  • March 2013
  • January 2013
  • December 2012
  • November 2012
  • August 2012
  • July 2012
  • June 2012

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Categories

  • ABM (4)
  • Advanced Threat Protection (4)
  • Announcement (44)
  • Azure (3)
  • AzureAD (73)
  • Certification (2)
  • Cloud App Security (5)
  • Conditional Access (58)
  • Configuration Manager (24)
  • Entra (2)
  • Entra Id (8)
  • Events (14)
  • Exchange Online (9)
  • Identity Protection (5)
  • Intune (27)
  • Licensing (2)
  • Microsoft Defender (1)
  • Microsoft Defender for Endpoint (1)
  • Microsoft Endpoint Manager (35)
  • Mobile Application Management (4)
  • Modern Workplace (74)
  • Office 365 (10)
  • Overview (11)
  • Power Platform (1)
  • PowerShell (2)
  • Presentations (9)
  • Privileged Identity Management (5)
  • Role Based Access Control (2)
  • Security (63)
  • Service Manager (4)
  • Speaking (30)
  • Troubleshooting (4)
  • Uncategorized (11)
  • Windows 10 (15)
  • Windows 11 (5)
  • Windows Update for Business (4)
  • WMUG.nl (16)
  • WPNinjasNL (32)

Tags

#ABM #AzureAD #community #conditionalaccess #ConfigMgr #IAM #Intune #m365 #MEM #MEMCM #microsoft365 #modernworkplace #office365 #security #webinar #wmug_nl ATP authentication strength AzureAD Branding Community Conditional Access ConfigMgr ConfigMgr 2012 Email EXO Identity Intune Licensing M365 MCAS MFA Modern Workplace Office 365 OSD PIM Policy Sets Presentation RBAC roles Security System Center Task Sequence troubleshooting webinar

Recent Comments

  • brc on Protecting your Break Glass accounts in Entra now that MFA gets enforced on more and more Admin portals
  • [m365weekly] #186 – M365 Weekly Newsletter on MAM vs. MDM: Choosing the Right Mobile Management Approach
  • Dean Gross on Comparing Web Filtering and Security: Microsoft Entra Internet Access (Global Secure Access) vs. Microsoft Defender for Endpoint (MDE)
  • nikhil tech on Protecting your Break Glass accounts in Entra now that MFA gets enforced on more and more Admin portals
  • Kenneth on Comparing Web Filtering and Security: Microsoft Entra Internet Access (Global Secure Access) vs. Microsoft Defender for Endpoint (MDE)

This information is provided “AS IS” with no warranties, confers no rights and is not supported by the author.

Copyright © 2021 by Kenneth van Surksum. All rights reserved. No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

Shorthand: Don’t pass off my work as yours, it’s not nice.

©2025 Modern Workplace Blog | Powered by WordPress and Superb Themes!
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT