Latest / Blue Security / Conditional Access
Transcript
- 0:06Welcome to the Blue Security Podcast, a weekly podcast for
- 0:10Information Security defenders where we bring you discussions
- 0:13on best practices, tools and implementation for enterprise
- 0:16security. Now here are your house for
- 0:19today's show, Andy Jaw and Adam Brewer.
- 0:22Welcome to this week's episode of the Blue Security Podcast.
- 0:26I'm your host, Andy, and I have Adam here as my cohost.
- 0:29Andy It's been a heck of a week, but let's do a podcast.
- 0:32All right. I hear you.
- 0:34So we are finally going to do our conditional access episode
- 0:38that we've been talking about. So getting right into it, what
- 0:41is conditional access? I think the term conditional
- 0:44access is something that Microsoft uses a lot in their
- 0:48product marketing. But basically it's when you're
- 0:51trying to access any type of system or data, certain
- 0:55conditions have to be met in order for that access to be
- 0:58granted. And Microsoft has different
- 1:01conditions that they laid out and other identity providers
- 1:04also have different conditions. We've talked about Octa and IBM
- 1:07previously on this podcast where they have certain conditions
- 1:11that are built into theirs and. Additional access builds upon
- 1:15the other technologies that we've mentioned on our podcast
- 1:18like Multifactor authentication and Single sign on.
- 1:21So when it comes to conditional access, most Idp's will check if
- 1:26the credentials are valid. That's the first condition that
- 1:29has to be met generally to see if a user is granted access to a
- 1:33particular system or data. And then a lot of Idp's will
- 1:37have another condition that they could scope certain access
- 1:40around, which is usually a static.
- 1:43Network, subnet or IP address. So for example, if I had valid
- 1:48credentials and I'm on a certain IP address or coming from a
- 1:51certain zone, I will get granted access.
- 1:54Or maybe I can apply the condition to multifactor?
- 1:57And that, for the most part, is the basic building blocks of
- 2:01conditional access and what most identity providers have built
- 2:05into their solutions. Everything you've talked about
- 2:08so far you could do in ADFS with a claim rule or claims rules,
- 2:13plural. And that's also an entry point
- 2:16for a lot of organizations is that's where they started.
- 2:20They had ADFS stood up for federating access to something
- 2:22like Azure AD or Office 365 and they had a condition that you
- 2:27must come from this IP block in order to be allowed access and
- 2:31of course have valid credentials.
- 2:33And I think that was kind of the the original conditional access
- 2:36back in the day. Claim rules in ADFS.
- 2:38Yep. And then another thing that you
- 2:40could do is simply just block say Exchange from being used on
- 2:45non managed machines. Right now if you're say an O365
- 2:49customer they have this method where you can download it onto
- 2:53your personal device and sign in.
- 2:54You can block that and only allow it for managed devices,
- 2:58and that's another condition that could be met.
- 3:01But when it comes to Microsoft, I think they really have the
- 3:03best solution around this whole idea of conditional access
- 3:07because they have a whole bunch of different ways.
- 3:09If you're using a Windows computer or you're using Azure
- 3:13AD identity, they have different risk based type conditional
- 3:16access, device based conditional access.
- 3:19And you can get certain checks that will build upon the first
- 3:23conditions that we talked about, where you're just verifying
- 3:26their identity, if they have valid credentials or if they're
- 3:29coming from a certain network. Customers often cite conditional
- 3:32access is the number one reason they purchase Azure AD, so they
- 3:36purchase Azure AD Premium. There's two flavors of it,
- 3:39There's a P1 and AP2. The P1 gets you almost all the
- 3:42conditional access stuff except for the sign in risk and user
- 3:46risk controls which are in P2. And we'll talk about this more
- 3:49as we go along today. So if you're using a SASS
- 3:53application and you're using an identity provider, a lot of
- 3:56times you can't control the data once you've granted access to
- 4:00that user. So for example, if you're using
- 4:03Octa as an identity provider, and you use Dropbox as a cloud
- 4:08storage, and you're putting enterprise data within an
- 4:11enterprise tenant for Dropbox, if the user's credentials are
- 4:15valid and you haven't put any other network conditional access
- 4:19in place, that user can go ahead.
- 4:20Then install and connect to Dropbox on any device that has
- 4:24Internet and pull down company data without any other checks in
- 4:28place. So most third party Idps just
- 4:31check those first couple conditions and obviously if the
- 4:34user has. Disabled credentials.
- 4:36They're not gonna be able to gain access, but that check
- 4:39initially. As long as they have valid
- 4:40credentials, the app and its data are wide open to be put on
- 4:44any device, and then you don't have any controls on top of that
- 4:47to secure the data from exfiltration or download or
- 4:51anything else like that. If you think about it as well,
- 4:53not only does the identity provider allow you to have
- 4:57consistency across all your different SAS applications, so
- 5:01you have the same identity, but it also allows you to have a
- 5:04consistent security control plane, and that's what you'll
- 5:07hear all the time. You'll hear comanies like
- 5:09Microsoft say identity is the new control plane.
- 5:12This is what they're talking about, because when you have
- 5:14cloud applications that will accept valid credentials, you
- 5:18need a tool that allows you to layer in more controls on top of
- 5:21it, and that's what your identity.
- 5:22Rovider can really do, and this also makes it so that those ass
- 5:26Roviders aren't required to do it themselves.
- 5:28Can you imagine how much of A Barrett would be if you had to
- 5:32have different conditional access controls in Drobox and
- 5:36Alesforce and ServiceNow and Work Day, and you had to manage
- 5:40all of those separately? Having all of those fronted by a
- 5:44single identity provider and having a consistent control
- 5:47plane is super valuable. And that's what we're talking
- 5:50about here is the ability to set.
- 5:52Consistent controls across all of those applications, while at
- 5:55the same time being able to apply stronger controls to
- 5:59applications that are more sensitive.
- 6:01One of the things that some identity providers will have is
- 6:04a threat intelligence feed on the back end to look at
- 6:08something called sign in risk. So I'll use Octa as an example
- 6:12here. They have threat intelligence
- 6:13built in on the back end. If you turn it on where they're
- 6:17checking where an IP is coming from and they'll see if that IP
- 6:22has had. Any type of malicious behavior
- 6:24or if the IP is associated with a known malware or ransomware
- 6:28threat feed. And if it is, they'll go ahead
- 6:31and block that sign in. They'll also look at different
- 6:33behaviors where if from a specific IP they're getting a
- 6:36bunch of denied requests consistent with like a password
- 6:40spraying or credential stuffing attempt, they'll also go ahead
- 6:43and block those sign ins. I believe Microsoft also has a
- 6:47fairly good sign in risk conditional access feature right
- 6:50Adam? Yeah.
- 6:51And before we get into what's specific to Microsoft, I just
- 6:54want to zoom out a second and and make the broader point with
- 6:57you talking about all these capabilities in Octa that This
- 7:00is why you start to hear people say that the cloud is a security
- 7:05imperative. It's no longer just a thing that
- 7:08you have to wrap your head around or become comfortable
- 7:10with or accept. It's the opposite.
- 7:13If you want to secure your organization in the best
- 7:15possible way. It is actually incumbent upon
- 7:18you to use the cloud now because that threat intelligence.
- 7:21And all of those detections built into Octa, you are
- 7:24essentially offloading that from your own security team to have
- 7:27to do. That's duplicative work that
- 7:29they're already doing and they're already really good at.
- 7:30And at Microsoft it's the same way.
- 7:32So a lot of the same things Andy talked about, there's two
- 7:35different kinds of risk detections in Azure Active
- 7:38Directory. One of them is signin risk, and
- 7:40that's determined in real time at the time of every single
- 7:42signin, where every signin is assigned to risk score low,
- 7:45medium or high or no risk. And that's based on looking for
- 7:49any changes from what is normal. Accepted as a signin for that
- 7:53user. So is it a change in what
- 7:56operating system they're using or what country they're coming
- 7:58from or what IP range they're signing in from or time of day
- 8:02they're signing in. If any of those become anomalous
- 8:05that threat level starts to tick upward and that can also be
- 8:07kicked off by things like signing in from an anonymous IP
- 8:10like through a Tor exit node. Then separately, there's also a
- 8:13concept of user risk. And user risk is a running risk
- 8:16score overtime where all of those different risk events
- 8:20accumulate and. Change that score.
- 8:22Also, not every detection is real time, so there are some
- 8:25detections that happen offline. So for example, one nice thing
- 8:28Microsoft will do if you're using password hash
- 8:30synchronization, which just means you're syncing your on
- 8:33premises password hashes to the cloud, Microsoft will compare
- 8:36them against password dumps as they become available.
- 8:39So let's use a theoretical example.
- 8:41Let's say Andy had an Azure AD account and Andy reused his
- 8:45password from Yahoo. So he has his Yahoo password,
- 8:47his Azure AD password. They're one and the same when
- 8:50Yahoo inevitably gets. Is cracked and their database
- 8:52gets dumped and all their passwords are available on the
- 8:55dark web. Microsoft will acquire it,
- 8:57whether that's working with the FBI or other three letter
- 9:00government agencies, whether that's through their own threat
- 9:02intelligence or third party thread Intel.
- 9:04They'll get that password dump. They will run all of those
- 9:07passwords through the same hashing algorithm as all the
- 9:10other credentials in Azure AD and they will do a comparison.
- 9:12And if anybody lights up on that, like say Andy's hashes
- 9:15match, Andy's user risk score will be immediately flagged as
- 9:18high and an alert will be generated.
- 9:20Now you can. And remediate that in an
- 9:22automated fashion. You can set a user risk policy
- 9:25to say if user risk score equals high, then enforce an automatic
- 9:29self-service password reset. And so now the next time Andy
- 9:32signs in, the service will detect, hey Andy, there's
- 9:34something wrong with your password.
- 9:36I need you to do a reset and he'll be prompted for two non
- 9:39password factors to reset his password and return to a healthy
- 9:42state and all that happens automatically.
- 9:44Or there's one other interesting example, and I won't go into
- 9:46this with as much depth, but how cloud identity providers are
- 9:49protecting you, Alex Weiner. From Microsoft just posted A
- 9:52blog post a couple weeks ago and we should link to this in the
- 9:55show notes about password spray and how Microsoft detects it.
- 9:58And it's super interesting just from a technical perspective of
- 10:01Microsoft is looking for common password hashes that are failing
- 10:05so being attempted and failing across the entire service.
- 10:09So Azure AD is a globally distributed service, 900 billion
- 10:12authentications a month and looking for those common failed
- 10:16attempts now really sophisticated attackers.
- 10:18Today they will do their password spray across.
- 10:21Thousands of different IP addresses, they will do them
- 10:23across thousands of user accounts, probably even crossing
- 10:26tenant boundaries. And that would be really,
- 10:28really, really hard to detect for any individual organization.
- 10:31But when you have the visibility of literally billions of
- 10:34authentications, darn near a trillion authentications a
- 10:37month, you can correlate them and then you can take action
- 10:40upon them. And so you can mark those as
- 10:42password spray attempts and start to block those IP ranges
- 10:45or block those signin attempts while still allowing valid
- 10:48signin attempts to proceed. So it's really, really
- 10:50interesting and we'll link to it.
- 10:51In the show notes. But that's just an example of
- 10:54some of the benefits you get when you're with an identity
- 10:56provider that's in the cloud and some of the security they can
- 10:59add on to your account or your organization that you're just
- 11:02not going to have if you're trying to do it yourself on
- 11:04premises. And so think of that as you
- 11:05start to build in these conditional access policies, how
- 11:08much protection you're getting right in the front end even
- 11:11without you building any sort of policy, you just kind of get a
- 11:14lot of that protection automatically.
- 11:16I have two anecdotes here to kind of build off of that.
- 11:19One was back in February, we had a bunch of executives who
- 11:23started getting these emails along with my boss from a
- 11:26independent contractor or security contractor who had
- 11:29obtained a list of quote, UN quote, our credentials on the
- 11:33dark web probably matched up with our company e-mail
- 11:36addresses and some sort of breach somewhere.
- 11:38Most of them were probably old, but, you know, the question came
- 11:41down to us to kind of investigate whether or not these
- 11:44credentials were legitimate, if any.
- 11:46Activity had been used on the accounts outside of normal
- 11:50activity and at the time my pitch was if we had self-service
- 11:55password reset enabled, if we had risk based conditional
- 11:59access where the rule that you're talking about Adam, if a
- 12:03breach credential matches on Microsoft's threat feed to
- 12:06automatically trigger that self-service password reset,
- 12:10then we wouldn't have even had to worry about it because the
- 12:13whole response would have been automated that as soon as the
- 12:15password becomes. Breached and known in that
- 12:18threat feed the user would automatically be prompted for a
- 12:21self-service password reset. And so that's kind of what
- 12:24prompted our company to kind of start moving in that direction
- 12:26to get it implemented. Of course like we're still
- 12:28working on the licensing for risk based conditional access
- 12:31because that does take us different licensing.
- 12:33But either way as we've talked about security is a journey and
- 12:37so it's good to have a road map to kind of build on on certain
- 12:40things to get there. The other anecdote I have is on
- 12:43the sign and risk and also on user risk, but there's a signal.
- 12:46That we may have mentioned before, called Impossible
- 12:49travel, where if you sign in from say, the United States, and
- 12:52then a few seconds or minutes later you sign in in North
- 12:56Korea, there's going to be an alert for impossible travel
- 12:59because you can't be in two places with that quickly.
- 13:02So this is notoriously a very busy alert it.
- 13:08Prompts quite a bit, and there's a lot of false positives because
- 13:11sometimes due to where data centers are located
- 13:15geographically, a user may be physically located, say in
- 13:17Japan, but then hit an Azure data center within the United
- 13:21States, and that will trigger an impossible travel just due to
- 13:24the physical locations. So it is very hard to separate
- 13:28out those signals. But if you're able to tune this
- 13:30down and accept certain risk, say you know you have data
- 13:34centers in the United States and you know you have employees in
- 13:38Japan and you go ahead and accept the risk and you're going
- 13:41to exclude alerts. From those two countries, if
- 13:44they originate or go to those countries, then you start to
- 13:47narrow down those signals. And I was at a company where
- 13:50unfortunately we missed one of these impossible travel alerts
- 13:53because it's busy and infosec analysts and operations folks go
- 13:57through alert fatigue. The attacker had persistent
- 14:00access to a user's account due to some sort of credential
- 14:04phishing attempt, and we didn't have MFA enabled at the time and
- 14:08so as long as the credentials were valid, the attacker kept
- 14:11persistent access. And throughout weeks he would
- 14:15send out little reconnaissance emails to people just to make
- 14:18sure he had access still. And we found all this out
- 14:21afterwards. But eventually he laid his
- 14:24attack and sent the e-mail from this user to a Financial Group
- 14:29requesting funds to be transferred to a country with an
- 14:32account where the country had customers that my company was
- 14:36working with. But this wasn't one of them.
- 14:39And of course there were other processes that were broke during
- 14:41this attack where say, finance was supposed to have certain
- 14:44people approve it or verify that this was a legitimate request
- 14:48and it wasn't. So oftentimes during these type
- 14:50of attacks, there are several things that have to happen and
- 14:53chips have to fall in place in order for the attack to be
- 14:55successful. And that kind of happened.
- 14:57And so in the end, the company ended up paying a bogus invoice
- 15:01and and losing out a bunch of money.
- 15:02But if we had those tunings in place, if we had that sign in,
- 15:06risk in place and we were able to succeed.
- 15:09Successfully identify this, we could have prevented it.
- 15:12So those are two kind of antidotes that I have for
- 15:15conditional access and sign in risk and user risk in my
- 15:19experience. So moving on to device based
- 15:23conditional access, we talked about how if you have valid
- 15:27credentials, you can. Install certain applications on
- 15:30a non managed machine. And Adam, you have a really
- 15:34unique way of looking at this that I would like you to kind of
- 15:37explain because I think a lot of people look at an enterprise or
- 15:40company device and then they look at personal devices and
- 15:43there's this separation between the two and they feel like you
- 15:46don't own this device. So I don't want you to do
- 15:49anything to this device, but I'm going to go ahead and put
- 15:51company data on it, whereas I think companies should start
- 15:54shifting in the mindset of let's let our customers use the
- 15:58device. They want to use but make sure
- 16:01that that is compliant with our security controls.
- 16:04Ultimately, device ownership doesn't really affect the
- 16:08security posture of the device in and of itself.
- 16:11That's not a security control. Well, we own the device in the
- 16:14legal sense, own the device. But how does that help you
- 16:16secure it better? And I think this comes from the
- 16:19mindset where there used to be such a gap between the controls
- 16:23you could enforce on a corporate owned device using things like
- 16:26System Center Configuration Manager.
- 16:28And group policy compared to what you could do on a personal
- 16:31device because there was a big gap without that domain join,
- 16:35without GPO, without SCCM, you couldn't enforce all of the
- 16:39policy you needed to. And so I think that's where that
- 16:41mindset comes from is did require ownership for all of
- 16:45those things to happen. But what has really changed is
- 16:48the tools available to do that today.
- 16:50So if you were building a company net new today, and you
- 16:53wanted to have windows machines, you would not on premises domain
- 16:57join them. You would cloud join.
- 16:58Them directly to Azure AD, which means you would not have GPO,
- 17:01which means you would need to enforce all of that policy
- 17:04through Intune or Microsoft Endoint Manager.
- 17:06And if you really wanted the extra layer of control, you
- 17:08could do comanagement with Intune plus Configuration
- 17:11Manager. But either way, the larger point
- 17:13stands that you would not do domain join if you were
- 17:16Greenfield today, you would not do GPO.
- 17:19So we need to get our mind away from the fact that those are
- 17:21requirements because they are not.
- 17:23You could build a perfectly functional company without them
- 17:26and so once we've wrapped our mind around that, and.
- 17:28We've accepted that there's no reason we can't have the same
- 17:31level of control regardless of the ownership of the device.
- 17:34Then we should become less concerned with it and we should
- 17:37turn our focus to Does this device meet all my security
- 17:40controls? Yes or no.
- 17:41And if it does, we should let it get to company resources.
- 17:44So this is how Microsoft actually operates today.
- 17:47You can connect a Windows PC that Microsoft does not own to
- 17:51Microsoft, You can enroll it in Intune.
- 17:53It will become Co managed with System Center Configuration
- 17:55Manager. Microsoft will put Defender ATP
- 17:58on it or? I guess I should call it by the
- 17:59new name Defender for endpoint and it will look and function
- 18:02pretty much like a corporate on Microsoft device.
- 18:05The ownership doesn't really matter.
- 18:07The level of control you can put on it.
- 18:08You can enroll A Macintosh, I have done that.
- 18:10You can enroll your personal devices, iOS and Android.
- 18:13So ultimately complete separation of the model of it
- 18:16matters who legally owns the device and we move to a model
- 18:20where is this device compliant with our policies.
- 18:23And now once we're doing that, it's really nice if our identity
- 18:26provider can validate that. So this is device.
- 18:28Based conditional access is what we're talking about.
- 18:30I want to gain access to a resource, let's say Exchange
- 18:33Online. My e-mail I show up to Azure AD
- 18:36and I could be a Windows device, I could be a Mac, I could be
- 18:39iOS, I could be Android. When I show up, Azure AD is
- 18:41going to go check a flag on my device identity and that flag is
- 18:45IS compliant and it's a boolean true or false.
- 18:48Now the only thing that can write to that flag is Microsoft
- 18:50Intune and it changes that flag if the device ever becomes non
- 18:54compliant. And a compliance policy can look
- 18:56for things like encryption, secure boot.
- 18:58Password policy, operating system version, antivirus
- 19:01status, and based on that flag the devices to our false.
- 19:05So the experience you get as an organization is when a device
- 19:08shows up to the front door and says it wants access to a thing,
- 19:11it is validated that it is healthy and in a compliant
- 19:14state. And if it becomes in a non
- 19:16compliant state, it becomes unhealthy.
- 19:18It can automatically be removed from accessing those company
- 19:21resources. Again, we're automating all of
- 19:24that so your security team doesn't have to spend their time
- 19:26worrying about it. Oh, hey, Jane's device.
- 19:29Didn't install the latest update?
- 19:31We should go knock on her door and yell at her to stop using
- 19:35e-mail. If that happens automatically,
- 19:36it's much better. And then to take it one step
- 19:39further, you can tie threat protection solutions into that
- 19:42as well. So of course Microsoft Defender
- 19:44for endpoint runs on all those same device platforms now.
- 19:47Mac OS, iOS, Android, Windows, and the threat level of the
- 19:50device, Low, medium or high can be factored into that compliance
- 19:54decision as well. And you can say for the device
- 19:56to be compliant, the threat level must be low.
- 19:58Or none. So if Jane in accounting
- 20:01downloads some malware on her device and Microsoft Defender
- 20:04for endpoint detects it and flags the device as a medium
- 20:07threat risk, again Jane is automatically removed from
- 20:10having access to corporate e-mail or any other applications
- 20:13that are fronted with the identity provider that is device
- 20:16based conditional access. And that's where it gets super
- 20:19powerful is now we're using more and more signals as we've gone
- 20:22through our conversation today and we've moved from what Andy
- 20:25started off with by saying we're going to look for valid
- 20:27credentials and maybe we're. To look at what network you're
- 20:29coming from and now we've layered into, we're going to
- 20:31look at the risk of your signin. We're going to look at the risk
- 20:34of your user identity. We're going to look at health of
- 20:36your device and now we're layering in all of those data
- 20:39points to make an access decision.
- 20:41And you start to understand how powerful this truly becomes.
- 20:44And really this is how you get to a more zero trust like model
- 20:48where zero trust states you should never trust and always
- 20:50verify. Think of all the things that
- 20:52we're validating at every signin, device health, signin
- 20:55health, user health, etc. So that is device is conditional
- 20:59access. What I think blew my mind when
- 21:01it comes to device management as a security professional was that
- 21:06I could go into a Best Buy or order some sort of laptop off
- 21:11the shelf that's a Windows device, join it to Azure AD
- 21:15right from the out of box experience to an Azure tenant
- 21:18and automatically apply all the security configurations that I
- 21:22need on that device and it becomes a company device and
- 21:26acts. Like a company device, because
- 21:29Windows 10 is a user based license, if I'm assigned a
- 21:32license, it'll automatically upgrade that to Windows 10
- 21:34Enterprise. It will deploy all the
- 21:36applications that are assigned to my user.
- 21:38So if I have Defender for endpoint, you know that will
- 21:41automatically get applied. Or if I have a third party
- 21:43endpoint protection solution, I can have that MSI automatically
- 21:47deploy through Intune. I can make sure Windows Hello is
- 21:50turned on. I can make sure Windows
- 21:52Credential Guard, all sorts of other things are turned on to
- 21:55make sure that that device is in a.
- 21:57Secure state. And then what Adam is saying is
- 21:59continually check the compliance of that device to make sure that
- 22:02that device stays in that configuration and if it doesn't,
- 22:05it revokes the access to company data.
- 22:07So that in itself I think is a revolutionary idea where you can
- 22:11take any computer, join it to your Azure tenant and it becomes
- 22:16a secure, company managed device based on the policies that
- 22:19you've defined as a security professional.
- 22:22Andy, that's not a flying car, that's a that's a real thing.
- 22:25That's how I got my new Surface Book Three in the mail a couple
- 22:29months ago, because my Surface Book One was really getting long
- 22:32in the tooth and the only extra piece I'd add on to what you
- 22:35said is Autopilot was stood up on it.
- 22:38So it took it one step further to everything you just said.
- 22:41Or when I booted it up, it automatically recognized that it
- 22:44was part of Microsoft Corporation and prompted me for
- 22:47my Microsoft corporate credentials.
- 22:48But otherwise, exactly as you described, Azure 80 join, get
- 22:52policy, upgrade to Windows 10 Enterprise, get apps, get
- 22:55configuration, install my VPN, install my antivirus solution,
- 22:59install my EDR solution, install my apps.
- 23:02And it just shipped with the image that came with the device.
- 23:05And we upgraded it to get it to where it needed to be to be a
- 23:08work ready device. And that's really, really
- 23:10powerful. But that's that's a real thing.
- 23:12That's not a fantasy land. You can get there if you're
- 23:15really motivated to do it. And it's the same thing with
- 23:18Macs too. Intune has controls for Mac
- 23:20built in and another vendor that's in this space that has
- 23:23been very good and a partner of Microsoft is JAMF.
- 23:26And one of the things that JAMF does really well is they also
- 23:29integrate with Intune conditional access.
- 23:31So what you can do is trigger that conditional access to make
- 23:35sure that if you're connecting to any type of Azure onboarded
- 23:39app or Microsoft application that it will trigger a
- 23:42conditional access to make sure that that Mac is enrolled in
- 23:45JAMF and if it's. Not then access gets denied and
- 23:48then you apply all of your conditions through JAF to make
- 23:51sure that the device has the applications deployed, it has
- 23:55the correct encryption applied, password on the screen, and all
- 23:58of that. So just because you're on a Mac
- 24:01doesn't mean that you're out of luck when it comes to
- 24:03conditional access. Jaf is a well respected partner
- 24:05in the device management space and they integrate with
- 24:09conditional access with Intune. If you're an O365 customer too,
- 24:12let's give Apple a ton of credit here, which doesn't happen a lot
- 24:15on an enterprise focused show. But Apple basically invented all
- 24:18of these concepts and they got it right pretty much on the
- 24:21first try all the way back in iOS 4.
- 24:24The whole concept of taking a known good image and
- 24:27transforming it to become an enterprise ready device.
- 24:30They debuted that whole concept of configuration profiles and
- 24:34MDM and the way they designed MDM to function was incredibly
- 24:38precient and they did that all the way back.
- 24:40So iOS 4, iPhone 4, that was 2010.
- 24:43So it's literally 10 years ago kind of turned the whole idea on
- 24:46its head of stop imaging. Why?
- 24:48Why are you replacing the known good OS on the device and
- 24:51instead transform the OS And then they kind of took it the
- 24:54step further with automated device enrollment or what used
- 24:57to be called DEP, the Device Enrollment Program.
- 25:00And that's the idea that you can take a brand new device off the
- 25:03shelf, shrink wrapped and it is already joined to your
- 25:06organization and has to join your organization's management
- 25:09infrastructure. Windows Autopilot was really
- 25:11just a kind of a adapting that concept and idea to Windows, and
- 25:15it's a great idea. And Apple really invented all of
- 25:18this and it's amazing how they got it right so often on the
- 25:22first try with everything they did.
- 25:23And just to your other point around, JAMF, I think you
- 25:26undersold it a little bit. JAMF is the Rolls Royce of Mac
- 25:29management. Intune can meet a lot of use
- 25:31cases and you should start with Intune and see if it will meet
- 25:33your organization's needs. But if it doesn't, there's a
- 25:36clean path to go to JAMF and still use the same conditional
- 25:39access controls and integration. And they really are the
- 25:43everything of Mac management. If you're going to manage Macs,
- 25:46you should do Intune or Jam for nothing else, because that kind
- 25:48of gives you the cleanest path to whatever level of complexity
- 25:52you need. They're a great organization and
- 25:54mad respect for them. If you have been listening to
- 25:57our podcasts and all the episodes that we had previously,
- 26:00we kind of started with Identity.
- 26:01And I made this point that when you're picking an identity
- 26:05provider, if you haven't yet, you really need to take a hard
- 26:08look at the strategic value of using something like Microsoft
- 26:13Azure AD as your identity provider for your SASS apps.
- 26:16Because when it comes to conditional access for those
- 26:20apps, if they're not onboarded with Microsoft, then you can't
- 26:24apply conditional access to. Intune So for example if you had
- 26:27Dropbox or box or some other sass app that you are using
- 26:32Azure AD as the identity provider, you can alley
- 26:34conditional access to a device to say if you try to install
- 26:38this app on this device it first has to be compliant.
- 26:41The other thing that you can do is when it comes to cloud app
- 26:44security, you can apply different conditions on out of
- 26:48band access or what's referred to as a reverse proxy back to a
- 26:52cloud app security to alley conditional access.
- 26:55So, Microsoft. As Microsoft Cloud App Security
- 26:57and what's really cool about this is if you're on a non
- 27:00managed machine or on a managed machine, it doesn't matter.
- 27:03You can specify those conditions as you're accessing those apps.
- 27:07You can look at different conditions like if this is a
- 27:11hybrid Azure AD join machine or if this is an Intune compliant
- 27:14machine, or if you're coming from even a domain join machine.
- 27:17You can do that within M cast. And if you're accessing, say,
- 27:20your e-mail, and you want to download an attachment, you can
- 27:23block that attachment or you can.
- 27:26Allow it. Or you can even apply in real
- 27:29time Azure Information Protection and encrypt that
- 27:31document for read only access. If it's on say grandma's
- 27:35computer during Thanksgiving and you need to really check your
- 27:37e-mail and I have to download this spreadsheet that has
- 27:40company data on it, well I'll go ahead and allow you to do that,
- 27:43but I'm going to encrypt it with AIP and allow only read access
- 27:47to the document. So all of that is built in using
- 27:51Azure as its identity provider. So for third party apps you can
- 27:54do the same thing and demo it with Salesforce when I'm showing
- 27:58it to customers, but you know you kind of bring up two points
- 28:01I want to touch on there. Number one, just to tie off on
- 28:04the discussion around device based conditional access.
- 28:06You mentioned a term that we haven't discussed on the show
- 28:09yet and it's hybrid Azure AD join and it's a huge mouthful.
- 28:13But the very short version is it's a way to take your on
- 28:16premises domain joined devices and enlighten Azure AD to their
- 28:20existence essentially. And it is mostly think of it as
- 28:24kind of an attestation and time that this device is part of your
- 28:28organization and that's really all it attests to.
- 28:30O that's another device based conditional access control you
- 28:33can use. I often describe it as the easy
- 28:35button if you want to get started with device based
- 28:38conditional access controls. It's a great lace to start
- 28:40because it's easy to turn on. It's literally like a go and
- 28:43then all your windows devices will do it and then you can
- 28:45start looking for known company devices and writing olicy around
- 28:48them as opposed to things you robably shouldn't do anymore.
- 28:51Like look at network condition, like what network you're coming
- 28:54from O it's a great lace to get started.
- 28:56But for all our discussion and enthusiasm around real time
- 29:00adaptive device based conditional access controls,
- 29:03this is not because it's a it's a point in time thing.
- 29:06It's not going to change or go away if the device becomes
- 29:09unhealthy or compromised or anything else.
- 29:11So keep that in mind. It's still incumbent on you to
- 29:14manage and monitor the health of the device and take control to
- 29:19prevent it from accessing company resources if appropriate
- 29:21because the identity provider is not going to be able to do that
- 29:23for you. And then the other thing I
- 29:24wanted to tie off on talked about the cloud proxy for
- 29:28Microsoft Cloud app security and how you can selectively decide
- 29:31which sessions you might send to that.
- 29:34And in general, when I talk about conditional access
- 29:37features with customers, I encourage them to think bigger
- 29:40because oftentimes what customers will do is they'll
- 29:42apply really basic policy sets that kind of are a
- 29:45reimplementation of things they were doing before.
- 29:47And so it might be like if you're on a managed device, you
- 29:50don't have to do MFA, but if you're not on a managed device,
- 29:52you do. Or if you're on a trusted
- 29:53network, you don't have to do MFA.
- 29:55But if you're not network, you do.
- 29:57That's really too static. And I think we talked about this
- 30:00on like our very first show, think more dynamically, think
- 30:03bigger. How can I write policy that
- 30:05differentiates per application risk level?
- 30:08If you have an HR information system like a work day or a
- 30:10SuccessFactors, that should have stronger controls on it than a
- 30:13lot of your other applications. And you can do that with
- 30:16conditional access policies. So look into stuff like that
- 30:18too. And then, Andy, totally
- 30:20switching gears for a second, but kind of related.
- 30:22There was a tweet, and we're going to put this in the show
- 30:25notes by Alex Simons, who's a CVP of identity at Microsoft.
- 30:29And it's talking about this new technology Microsoft's rolling
- 30:32out called Continuous Access Evaluation.
- 30:34So if you're familiar under the covers with how a lot of
- 30:38identity providers work, especially if they're based on
- 30:40things like Open ID Connect, you have these different concepts of
- 30:43tokens. You have session tokens and
- 30:45access tokens and refresh tokens.
- 30:47And I can't speak to the other implementations, but I can speak
- 30:50to how it's done. In Azure AD you have a pair of
- 30:53tokens, an access token and a refresh token.
- 30:56The access token is valid for one hour, no more, no less.
- 31:00It is a bearer token. If I possess the access token, I
- 31:04get access to whatever thing it is authorized for, say access to
- 31:07Exchange Online, like a mailbox. It cannot be revoked.
- 31:10So if I decide later I don't want Andy to have that access
- 31:13token anymore, I have to wait for the hour to be up.
- 31:16Now on the other hand, there's also, paired with every access
- 31:18token, a refresh token. There's a whole bunch of rules
- 31:20around how often you can exchange refresh tokens.
- 31:23But basically the idea is a refresh token can be revoked.
- 31:27So I can pull it away from you and say, Andy, your refresh
- 31:29token is no longer good. But normally under normal
- 31:31behavior, you can keep exchanging that refresh token
- 31:34for another access token every hour.
- 31:36Every hour I need a new access token.
- 31:38Give me another one. Give me another one.
- 31:39Give me another one. Now is you're listening to me
- 31:42describe this and you've heard me say an hour, no more, no
- 31:45less. And you think of very
- 31:47contentious separations in your organization when an hour of
- 31:50access after you terminate someone is, you know about 59
- 31:53minutes too long. You have now experienced pain
- 31:56point that many organizations have.
- 31:58This is not ideal. So this new technology,
- 32:00Continuous Access Evaluation puts all this on its head, kind
- 32:03of gets away with that old model and moves to a new model where
- 32:07access is continuously evaluated.
- 32:09And if you should no longer have access to a thing, you're going
- 32:11to be removed from accessing it in much closer to real time.
- 32:14And this is continuously evaluating conditional access
- 32:17policies as well. So with that previous model I
- 32:20described, you'd also see experiences like if you're on
- 32:22cororate network, you don't need MFA.
- 32:24If you're off cororate network, you need MFA.
- 32:26And I would get customers back when, you know, you could go
- 32:29places who would complain that, hey, Bob was just testing this
- 32:32out and he went to Starbucks and he never got prompted for MFA,
- 32:34What's the deal? And I'd have to explain that you
- 32:37have to wait an hour after you leave corporate network before
- 32:40that new access token is going to get renewed and you're going
- 32:43to get prompted for any conditional access policies.
- 32:45So this is really cool. Technology really turns it on
- 32:48its ear and significantly shrinks that risk that was
- 32:52inherent with the old model where you had that minimum of
- 32:56access retty much no matter what you did.
- 32:58O check out that tweet, check out the blog post.
- 33:01It's really just interesting technology if you're a
- 33:03technologist and kind of like to see how this stuff works under
- 33:05the covers. Yeah, another quick anecdote
- 33:07before we closeout the podcast. When I left one of my companies
- 33:11as a security professional, I know that my coworker was
- 33:14hovering over the button to disable my account as soon as I
- 33:17walked through the threshold on my last day.
- 33:20It wasn't because it was a contentious separation, it was
- 33:22just more because I was an information security
- 33:25professional and I had access to high level and sensitive data
- 33:28and systems. And so when he disabled my
- 33:30account, I still technically had a little bit of access until
- 33:34that access token expired. So you know.
- 33:36That is the risk that Adam is referring to and of course with
- 33:40this continuous access evaluation, it minimizes that
- 33:43quite a bit. And then the other plug I wanted
- 33:45to put out there is on Adam's LinkedIn.
- 33:47He has been creating some fantastic content on some demos
- 33:51for Microsoft Security and one of the videos directly relates
- 33:55to this episode which is a device based conditional access
- 33:58in Mcast and it's outstanding. I highly recommend it.
- 34:01If you're interested in actually implementing it, watch the video
- 34:04and walk through some of the steps that Adam demonstrates.
- 34:06Because he'll go into detail on how to actually turn on these
- 34:10rules and what rules to configure and show you in real
- 34:13time how it actually works. So check out Adams LinkedIn,
- 34:16which is going to be in the show notes.
- 34:18So that's our time for today. There's a link in the show notes
- 34:20to our voicemail. Leave us a voice message or send
- 34:23us a DM on Twitter or LinkedIn if there's a security topic you
- 34:26want us to talk about or ask our opinion on.
- 34:28See you guys next week. Thank you for listening to the
- 34:30Blue Security Podcast. Please check out the show notes,
- 34:33catch up on episodes you may have missed, and subscribe so
- 34:36you don't miss any future episodes.
- 34:38Find Andy on Twitter at a Jaw Zero and Adam at Ajbrewer.
- 34:42See you at our next episode.