Latest / Blue Security / Entra Conditional Access - Deep Dive
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 hosts for
- 0:19today's show, Andy JA and Adam Brewer.
- 0:22Welcome to this week's episode of the Blue Security Podcast.
- 0:25I'm Andy, your host. I'm Adam, your Co host.
- 0:27We're going to talk about conditional access today and do
- 0:29a deep dive into Entra conditional Access.
- 0:32Now you may think I already know about conditional access.
- 0:35Yes, it's a very basic concept when it comes to identity.
- 0:38But we have added, and by we, I mean Microsoft Adam, you can do
- 0:43your disclaimer right after this, but at Microsoft Entra
- 0:46we've added several things, several different rules and
- 0:50scoping to conditional access over the years.
- 0:52So I think even for the most seasoned veterans of identity,
- 0:56you're going to learn something here today.
- 0:58So let's get into it. Adam, if you want to give our
- 1:00standard disclaimer here. Yeah.
- 1:02I mean, for a show like this, when we're talking about
- 1:04Microsoft the whole time, I'll just say we both work for
- 1:06Microsoft, but we do the show on our own time outside of work and
- 1:09and we have funded the show ourselves.
- 1:11Microsoft has no editorial control over the show.
- 1:15But of course, we always want to stay in the good graces of our
- 1:17employers who sign our paychecks.
- 1:19And so we just like our listeners to be aware of there
- 1:24is a conflict of interest here. Let's just be honest, we'll call
- 1:27it what it is, but we also like to share what we know and what
- 1:29we're familiar with. And both Andy and I have, I'd
- 1:32say, a fair amount of expertise in Intra over the years.
- 1:35And it's certainly an area of of high interest of mine and and
- 1:38one of the first products that really covered at Microsoft.
- 1:41And Andy, you have, I kind of picked that up, Mantle up for me
- 1:45since I moved into a sales role. So yeah, let's get into it.
- 1:47All right. So conditional access at its
- 1:50core is essentially if you match something, a user, a device, a
- 1:56sign in condition from this IP, If you match something, then you
- 1:59must do this in order to have access to whatever app or other
- 2:04things. If there's actually other things
- 2:06now that are included in that you must get access to.
- 2:09So you must satisfy this condition in order to access
- 2:12something. One of the things that's really
- 2:14nice and we won't talk too much about device management, but
- 2:17because we have our own MDM, device management and identity
- 2:22are very, very deeply integrated.
- 2:24So we have the ability to use conditional access with devices
- 2:28as well. So again, we're mostly talking
- 2:32about the identity portion of it, but just want to mention,
- 2:34you know, Intune has signals that it can send to conditional
- 2:37access. So we have that.
- 2:38And as well as another thing, we have insider risk now as well on
- 2:42the purview side and those signals can be brought into
- 2:45conditional access too. So we're going to get into all
- 2:48that in in the deep dive of a policy, but it's not just
- 2:52identity at Microsoft. It is other signals that you're
- 2:55getting, so you must satisfy these conditions.
- 2:57If you match this then you either get access or you get
- 3:02blocked. Yeah, I mean it, it's a really
- 3:04good point. When you're talking about what's
- 3:05the secret sauce of Microsoft, it is that interplay of Intune
- 3:09and, and try to gather that device management with identity
- 3:12all in one single control plane and that is truly differentiated
- 3:17and remain so to this day. In fact, I'll be honest and I'm
- 3:20not taking a shot at competitors here because we've some really
- 3:24strong competitors both in the UEM and the IIM space.
- 3:28Even where there's partnerships in place like Octa claims to
- 3:32have this great partnership. Oh my gosh, I'm going to blank
- 3:34on on the name. What did Airwatch turn into?
- 3:37Mobile Iron. No what?
- 3:39Whatever Airwatch is today, forget who that's even through
- 3:43they claim to have the the Super tight partnership and they don't
- 3:46they still do this. They don't have anything close
- 3:48to this. It, it is really very, very
- 3:51differentiated for for Microsoft.
- 3:53So if you're a Microsoft shop or you're looking at these
- 3:56solutions, this is an area where if you're not familiar with
- 3:59what's possible here, there just is more capability, more more
- 4:03tight integration. Yeah.
- 4:05And I want to use this example of an amusement park because
- 4:07we're going to come back to it throughout this discussion.
- 4:10So Simply put, like if for conditional access, you must
- 4:14provide something in order to get access, right?
- 4:16So in this case, if I'm going to an amusement park, I'm going to
- 4:19provide money in order to get a pass to get into the park.
- 4:24And that's, that's simply like you have your username and
- 4:27password or something like that and you give it to the identity
- 4:30provider at the beginning and then you get access.
- 4:32And then we're going to layer on all sorts of other conditions,
- 4:36like for example, if you're trying to get in, you must wear
- 4:39clothing. So that's one condition.
- 4:42If you're not wearing clothing or you're carrying weapons or
- 4:44something like that, then you get blocked, right?
- 4:47Even though you have a pass. Even if you have a pass,
- 4:50correct, So let's talk through some of the conditional access.
- 4:53We will talk about a little bit in licensing.
- 4:56For licensing, there is ENTRA P1 and ENTRA P2, and there are some
- 5:00differences for conditional access when we get into that,
- 5:03right. So when you start with the
- 5:06assignment portion of the conditional access policy, it's
- 5:10pretty simple. You have targeted users, groups
- 5:14and roles. And so you can target a specific
- 5:19user, multiple users, you can target a security group,
- 5:21multiple security groups, and then you can also target a
- 5:23specific role within Entra. So Global admins, Exchange
- 5:27admins. So you can very granular
- 5:29controls on who you want to assign it to.
- 5:32And then when it comes to the target resource, you can target
- 5:35a specific app. So when this user, let's say
- 5:38I'm, I'm targeting Adam, when Adam signs into Exchange Online,
- 5:42I could say I want this conditional access policy just
- 5:44to apply to Exchange Online or maybe M365 in general or
- 5:49Salesforce or other Federated applications with Entra, then do
- 5:54something else, right? So you can target applications,
- 5:57you can also target user actions.
- 5:59This is something that's brand new, while it's, it's fairly
- 6:02new. So if you haven't dove into
- 6:03conditional access, it's newer user action.
- 6:06So you can require a condition to be satisfied if you want to
- 6:11register security information, that is that means to register a
- 6:14new MFA token, a new a Fido 2 key, something like that.
- 6:18You can require something else in order to do that, right?
- 6:22You can require MFA in order to require or maybe a good one
- 6:26would be you have to be on a certain network in order to
- 6:29register new information, right? A trusted network.
- 6:32Also to join devices, this is a common one.
- 6:35Maybe you need to MFA in order to join or register a device to
- 6:40Entra. So that's a good one as well.
- 6:43And then finally, you can do traffic.
- 6:45Oh, I'm sorry, not finally, but you can also target traffic
- 6:48forwarding profiles from global secure access.
- 6:50That's assuming that you're using entry private access.
- 6:53And then also target authentication context.
- 6:56Now you're probably thinking what is authentication context?
- 6:59That's again something new. We're going to dive into that
- 7:01towards the end. So stick with us because that is
- 7:03one of the best uses of session controls and how you can provide
- 7:09more security post authentication.
- 7:13OK, so we talked through some of the the assignments here when it
- 7:17comes to conditions, right? So you must, if you're coming in
- 7:20and you have this condition. So for example, in the amusement
- 7:23park, right? Like I come in and I'm wearing
- 7:25or I have a weapon on me. So all of a sudden I'm high
- 7:29risk. OK, So what do you do?
- 7:30You're blocking me, right? So you can have user risk, you
- 7:33can have sign in risk. You're asking what's the
- 7:35difference between the two? Well, sign in risk is I'm
- 7:39evaluating that specific sign in.
- 7:42Every sign in has a risk value that's associated with it.
- 7:45So Adam's signing in from his home, he signs in at the same
- 7:49time every day. It's on the same machine.
- 7:52That's going to be a low risk or no risk sign in, right?
- 7:55But all of a sudden, Adam signs in from a Tor browser.
- 7:58That's different. The sign in automatically gets
- 8:01elevated. Is his user at risk?
- 8:03I don't know. Probably not.
- 8:06Maybe if all the other factors are still the same.
- 8:09User risk is a high probability that the user is at risk.
- 8:13So if it goes, if the user is high risk, we're getting other
- 8:16signals from M365 that will make us think that the whole user is
- 8:22compromised. Maybe they're signing in to a
- 8:24resource that they normally don't sign into from a machine
- 8:27that they normally don't sign into from an IP address they
- 8:29normally don't sign in from, right?
- 8:31So all these other signals, maybe MDE is also lighting up
- 8:35with some stuff on their device. That is, you know, that they
- 8:40have malware or something else, right.
- 8:42So user risk is like much more significant.
- 8:46If the whole user has that medium risk, that means there's
- 8:49there's a good chance that something else is happening.
- 8:52Whereas the individual sign in is just that one sign in, OK,
- 8:56you know, whatever. So there's different values that
- 9:00you want to put on those two things, right?
- 9:02And user risk is also like a running total versus sign in
- 9:06risk again to Andy's point is that point in time this sign in
- 9:09right now, what is the risk of that versus user risk can be
- 9:13offline detections that happen over time.
- 9:15So another extremely high fidelity user risk event is
- 9:19Microsoft will take, if you choose to do password hash
- 9:24synchronization, will take your password hashes and compare them
- 9:28against password dumps on the dark web.
- 9:30So a new password dump gets posted to paste bin.
- 9:33Microsoft will run that through all the same hashing algorithms
- 9:36to get to the same type of hash that's stored in enter ID and
- 9:40compare it against your user hashes or their their password
- 9:42hashes. And if any of them match, it
- 9:45will automatically flag that user as high risk, high user
- 9:48risk. Why?
- 9:50Because it's extremely high fidelity detection.
- 9:54There's a match for a hash that doesn't happen by accident.
- 9:56That's not accidental, it's not a false positive and it's very
- 10:01serious. Obviously if someone else knows
- 10:02your user password, that's a very serious event.
- 10:04So it's a high confidence and B high severity, which means
- 10:08absolutely we're just going to flag this user immediately to
- 10:11high risk user. At which case you know our
- 10:14guidance is either block the sign in or force a self-service
- 10:16password reset. And then so again, I mentioned
- 10:19insider risk. So insider risk is a new
- 10:22condition that can be given from the insider risk management
- 10:27portal in Purview. So we're sending signals from
- 10:30that. If you're an IRM organization,
- 10:32you have licensing for that. You can use that as a condition
- 10:36here, which is great. Like if if that user is at high
- 10:39risk on the insider risk platform, you know, you can take
- 10:42certain things like block their action from happening.
- 10:45So another condition that's brand new here device platforms
- 10:49that's pretty self-explanatory. I can scope it to iOS, Android,
- 10:53Mac OS, Windows. Funny enough, Windows Phone is
- 10:57still. I was just going to ask, is
- 10:59Windows Phone still there? It's still there.
- 11:01It's still there. Someone is hope is so
- 11:03optimistic. Locations so that you might see
- 11:08a new tab called network, which again, I, I'm actually not
- 11:12familiar with why that's there and locations is here still
- 11:16here. It's fairly redundant, but it's
- 11:18essentially if you have trusted networks or IPS.
- 11:20Also you can do a block action, right?
- 11:22If it's coming from a malicious country or whatever.
- 11:24So you have these trusted networks, trusted IPS that you
- 11:27can scope within conditional access and then you can take
- 11:29actions based on that. So for example, if I'm coming
- 11:33from this location, my corporate IP and I want to register a new
- 11:38security information then then it's OK, right?
- 11:40Allow the action so on and so forth.
- 11:42So. I believe networks versus
- 11:45locations. The purpose is networks will be
- 11:47used with global secure access. So you can say like if you're
- 11:49coming from intra Internet access then allow access to
- 11:53this. Yep, that could be a good point
- 11:56there. Good call out.
- 11:58Client apps is another condition.
- 11:59So you can scope if I'm coming from specific app like Outlook
- 12:04or if I'm coming from an Edge browser or if I'm coming from
- 12:07legacy application. So that's really like in this
- 12:09case, what I would say is for most organizations, you can
- 12:12scope a policy, just straight up block legacy auth, legacy client
- 12:16apps and then you know, have one that allows from modern
- 12:19applications or you must come from a modern application.
- 12:22Here you can also filter for devices.
- 12:24So there's the same thing for Intune if you have device groups
- 12:27or you can do a query for different devices, you can just
- 12:31toss the query right into there. You can apply conditions to only
- 12:35specific devices. And this is fairly unique.
- 12:37Again, like most of the time we're talking about identities
- 12:40and so we were talking about security groups and users.
- 12:42But in this case we can actually apply conditional access to a
- 12:48device group or a, a flag all corporate, you know, manage
- 12:53devices or something like that or unmanaged devices, so on and
- 12:56so forth. So it's, there's, there's a lot
- 12:59of granularity when it comes to this conditional access policy.
- 13:03Here's an example use case for this.
- 13:06If remember, Andy talked about our assignments, we can look for
- 13:09specific roles. If your role type is global
- 13:12administrator, exchange administrator, like highly
- 13:14privileged administrator accounts, then we can do a
- 13:17filter for devices and filter for only your paws and saws,
- 13:21your privileged access workstations or secure access
- 13:23workstations, and say if it's not in that group, then deny
- 13:26access. You can't sign in as a global
- 13:28administrator without being on a device that matches this group.
- 13:32And that's how you can enforce the usage of paws and saws to
- 13:35use those highly privileged accounts as an example.
- 13:37That's one use case you could enable when you have that
- 13:40interplay of device management and identity.
- 13:42And then the final condition that you can scope stuff to is
- 13:45authentication flows. Again, this is fairly new, it's
- 13:50newer, and there's two things within authentication flows that
- 13:55you can scope conditional access around.
- 13:57One of them is device code flow. So this is used when you're
- 14:01signing into like shared devices or digital signage where there
- 14:05might be a lack of local input into that device.
- 14:09In general, Microsoft recommends blocking device code flow
- 14:13whenever possible, but you might want to scope some conditions
- 14:16specifically around that. So this is like when you don't
- 14:19have a way to type in the username or password or
- 14:21whatever, right? So it's, it's very niche case,
- 14:25but it's something that I think even like maybe Teams phone
- 14:30might fall into something like this.
- 14:32There used to be a an issue back in the day with with Teams
- 14:36phones. So again, you can scope very
- 14:39specific conditions around it must be coming from this
- 14:42network, must be coming from this device.
- 14:46You know, you can put the device IDs in there and so on and so
- 14:48forth. And so you can only allow device
- 14:50code flowed from those particular, you know,
- 14:55conditions. If you're having trouble
- 14:56wrapping your head around what device code flow is, a use case
- 15:00we're all familiar with is when you're signing into apps on your
- 15:02smart TV or like your Apple TV, where you bring up the ESPN app,
- 15:06it says scan this QR code and then you know, you'll sign in
- 15:09with your username and password on your phone.
- 15:10Or we'll give you a code on the screen, you know, YXZ 29, and
- 15:14you go to this website and plug it in.
- 15:16Like that's what that is. You can imagine how that is is
- 15:20highly attractive to attackers because it's a super easy way to
- 15:24Phish your users. You say, hey, go here, type in
- 15:26this code. I'm I'm from your help desk.
- 15:27I'm helping you. And now they've been able to
- 15:29sign in as your user and and can run a mock.
- 15:32So that's why we do recommend you keep that really tightly
- 15:35locked down only for specific use cases you must.
- 15:38And then Speaking of that QR code, there's another way, a
- 15:41newer way called authentication transfer.
- 15:45And so in the case that you mentioned very specifically,
- 15:47Adam, you scan the QR code and then you still have to put in
- 15:49your username and password into the browser, right?
- 15:52Whereas authentication transfer is when you're already
- 15:55authenticated into the application or the device and
- 15:58you transfer that authentication via like AQR code.
- 16:01So there are cases now in that where you're scanning the QR
- 16:04code and then if you're signed in to see Netflix on your
- 16:08device, it just says, OK, you're good and that's it.
- 16:11So we're just transferring the authenticated state without
- 16:14having to put in anything else. You're already authenticated,
- 16:17right? YouTube does this a lot.
- 16:18Like, are you signing in from another device and then you just
- 16:22hit, yeah. So that's authentication
- 16:24transfer. And again, these are brand new
- 16:27ways of authenticating that We now have conditions that you can
- 16:30scope around that or limited or however you want to do it.
- 16:33OK, so we've talked through the assignments.
- 16:36Now let's get into access controls.
- 16:39So this is where you're actually granting access or blocking
- 16:42access. So of course you can just block
- 16:44access. Any blocks will take precedence.
- 16:47So this is something that's also really important to understand
- 16:49about conditional access. They are all evaluated upon sign
- 16:54in at the same time, right? It's not like an access control
- 16:58list. It's not like Exchange Mail full
- 17:01rules where it hits one and then and then you're out, right?
- 17:04Like it's all at the same time. And if you have a single block
- 17:10in that conditional access policy, in any of the
- 17:13conditional access policy that you hit, you're automatically
- 17:15blocked. So blocks always take precedent
- 17:18and then you can go ahead. Adam, I was just going to.
- 17:20Say the analogy of lining up the holes in the Swiss cheese kind
- 17:23of thing. You've heard that before in
- 17:24security context, like that's conditional access is you know,
- 17:27you may have different holes carved out in different pieces,
- 17:30but you stack them all up. So if you have 10 policies,
- 17:33you've got to stack all the pieces of cheese up and to allow
- 17:36access, it has to be able to see through to the other side and
- 17:38for it to work, you know, to use that analogy.
- 17:41And if if there is no pathway through, then that users
- 17:44effective accesses, they are blocked.
- 17:46So keep that in mind. To Andy's point, they are all
- 17:48evaluated. You must successfully evaluate
- 17:51all of them. And if different want different
- 17:54policies in import different controls here as we talk to
- 17:57these access controls, like let's say you hit one and it
- 17:59requires MFA and you hit another one and it requires your device
- 18:03to be interjoined and you hit another one and requires device
- 18:06to be marked compliant. Well then the result is you have
- 18:07to do MFA, be interjoined and be marked as compliant.
- 18:10You have to satisfy all three to get in.
- 18:12So keep that in mind too. Yeah, you have require MFA
- 18:16obvious you have. Which is just any MFA by the
- 18:20way, like that, that control will just be like you could do
- 18:22SMS and it's good. You can get a voice call and
- 18:25push one and that counts. So, you know, there's there's no
- 18:29strength associated with that, but then go to the very next
- 18:31one. Right.
- 18:32And that's important to remember too.
- 18:33Like there's the required MFA here, but you also have
- 18:37authentication methods, which is the totally different tab that
- 18:41you can then say, you know, I don't want voice calls to be
- 18:43even considered as an authentication method within my
- 18:47organization as an MFA, as an MFA registration.
- 18:50So you have controls on what you have be registered then like
- 18:55Adam said, this require MFA is just any of the MFA's that
- 18:58you've already dictated as acceptable.
- 19:01And then you have authentication strength.
- 19:03And so this is where you can dictate do I want password list,
- 19:06do I want fish resistant? And again, you you can dictate
- 19:10what is fish resistant pass keys, Fido 2 keys, so on and so
- 19:14forth. So this is a good one to have
- 19:16and to look at especially for your admins.
- 19:19Microsoft has moved to all employees must use fish
- 19:23resistant Mfas so we have pass keys that are associated with
- 19:27our authenticator within our devices.
- 19:29We also can get Fido 2 keys like Adam right there.
- 19:33I have one as well. Very similar model there.
- 19:36I think the same. Model Yep, Yep, Yep, there we
- 19:38are they they have. To be approved by Microsoft you
- 19:40can't just register any Fido two key to your intra tenant from
- 19:46Microsoft. So you know, like that's it's a
- 19:50great way to step up your authentication here.
- 19:53Now the other two here require device to be marked compliant
- 19:56and require intra to be hybrid Entra joint.
- 19:59Those are two again, very specific access controls that
- 20:03are unique to Microsoft. To be marked as compliant, you
- 20:07must have that compliance policy be evaluated by Intune.
- 20:11It can be. An on premise or you know hybrid
- 20:15join machine as long as it's Co managed and that compliance
- 20:18policy has been offloaded to intra to do that evaluation.
- 20:21We do have also tight integration with SCCM or Mecum
- 20:26Microsoft Endpoint configuration manager.
- 20:28We do have we can get signals from Mecum into Intune and
- 20:34accept that to like flow back to Intune to save mark desk
- 20:37compliance. So a lot of different ways to
- 20:39get that, but it Intune has to be involved in some way if
- 20:43you're going to use that compliant marker versus hybrid
- 20:47enter joint now. And you made a great point that
- 20:50it is independent of the device identity.
- 20:52So however you're doing device identity does not matter.
- 20:55What matters is you've made it clear Intune is has a compliance
- 20:59policy and is evaluated. Now what's awesome about this is
- 21:02this gives you, I wouldn't say near real time, but compliance
- 21:06policies are evaluated frequently and and can
- 21:09automatically lock out devices if they are no longer compliant
- 21:13with policy. Microsoft uses this internally
- 21:16to enforce that we upgrade all of our personally owned devices,
- 21:19our BYOD devices to current versions of the operating
- 21:22system. And so depending on like how
- 21:24severe the latest like iOS zero day is or whatever, and Apple
- 21:28just released an emergency security patch for it.
- 21:30Sometimes they've given very short windows, like you have
- 21:33three days to install the new iOS or you will get cut off.
- 21:35And I, I've had it happen to me before where I didn't install it
- 21:38and my e-mail stopped flowing. Now that's a compliance policy
- 21:41that does that. But the other thing Andy talked
- 21:43about this too, and this is where you can really start to
- 21:46stitch everything together over in the Intune side of the world.
- 21:49One of the compliance policy requirements you can set is the
- 21:54defender for endpoint threat level must be at or below a
- 21:58certain threshold, so medium or below lower or lower.
- 22:01That is how now you can incorporate the risk level as
- 22:05detected by an EDR solution into your identity decision making.
- 22:10No, you cannot get to your e-mail anymore because the EDR
- 22:13told me you're at a medium threat level.
- 22:16Isn't that pretty cool? And that's how all the pieces
- 22:18fit together. That's defender for endpoint
- 22:20talking to Intune, which talks to Entra.
- 22:22And because all those pieces are integrated together, you get
- 22:26that result. So don't sleep on device being
- 22:28marked as compliant. That is an incredibly powerful
- 22:31tool and it should really be the North Star for every
- 22:34organization to get to because it gives you that ongoing
- 22:38attestation of the compliance of the device and you can layer in
- 22:43health components with that as well.
- 22:45It also ties in with mobile threat detection vendors.
- 22:47Even if you're not using MDE on your iPhone, you can tie in and
- 22:51pull in MTD levels from third party solutions like Simperium
- 22:55and use that to make decision making as well.
- 22:57So very powerful tool. And again, it's like it's one
- 23:00check box in this conditional access policy, but can't
- 23:03emphasize enough like how much is here.
- 23:06And this is really a state I recommend everyone try to get to
- 23:10and there. Is a big difference.
- 23:11You might ask, well, Andy, well, we are hybrid Entra joint, so we
- 23:16can just use the hybrid Entra joint.
- 23:18There's a big conceptual difference between require
- 23:21hybrid enter join and require device to be more compliant.
- 23:24Let's go back to our amusement park example here, right.
- 23:27So let's say I'm, I'm compliant with all the rules.
- 23:30I, I'm wearing a shirt, I have shoes on and I get in.
- 23:35Well, if you're just requiring hybrid enter join devices, yeah,
- 23:39I'm compliant. I, I have all the things I get
- 23:41in and that's it, right? I'm, I have free game within
- 23:44there. Once I'm in the amusement park,
- 23:47I take my shirt off, you know, I take my shoes off, you know all
- 23:50that. I start breaking this analogy.
- 23:51Keeps working really well, yeah. And so I'm, I'm once I'm in, I'm
- 23:56in, that's, that's Entra hybrid join.
- 23:58I, I, I'm Entra joined, I'm in, I'm good to go, point in time.
- 24:02At a station and I can. Break all the rules once I'm in,
- 24:06whereas no it's. Better than nothing, right?
- 24:08It is better than nothing. I do.
- 24:11And I've always advocated for this for years now of like these
- 24:16are steps on a maturity journey. Start with entrahybrid join,
- 24:19check for that. That at least is validating.
- 24:21It's joined to your organization.
- 24:23It's part of your organization. That's a good first step.
- 24:26I like that. But do not stop there.
- 24:29Do not hang a mission accomplished banner.
- 24:31Keep going and get to device marked as compliant state.
- 24:34But sure, start there. If you can't do anything else,
- 24:37it's at least a good place to start, right?
- 24:39Because when you can, when do time.
- 24:40At a station when you get to the.
- 24:42Devices compliant that's where you have you know, say for
- 24:44example, a security guard that's walking around the park and they
- 24:47see me without my shirt they're like hey, you're breaking the
- 24:49rules you're out of here unless you fix that right so you can
- 24:53put the. Shirt back on and you can say
- 24:55correct. Right.
- 24:56So you either get kicked out or you can fix it.
- 24:59You have time, you have a grace period where you can get to
- 25:04compliant, right? So that's a better model.
- 25:08We can all agree that's a better model for the amusement park,
- 25:11right? So it's a better model in
- 25:12security controls to be at a compliance state rather than
- 25:15just, OK, you're compliant at the gate and, and go on and do
- 25:18whatever you want to do after that.
- 25:21OK, a couple other things here. Under the access controls, you
- 25:23can require an approval. Hold on, I want to say.
- 25:25One more thing real quick, sorry.
- 25:26On mark compliant versus enter hybrid join, enter hybrid join.
- 25:29Also of course only for Windows devices device marked as
- 25:32compliant. Anything that can be managed by
- 25:33Intune, Vision OS, iPad OS, iOS, Android, Windows and Mac OS can
- 25:40all use that control. So that is the multi platform
- 25:44control versus entry hybrid joins.
- 25:45Just Windows almost forgot about that and you could have.
- 25:48The same access controls checked off because at the bottom of
- 25:53these policies you can have satisfies one or all of these
- 25:58access controls. So you could have required
- 26:01device if you just wanted a device policy for all, like Adam
- 26:05said, good call out on the multi OS there for device to be marked
- 26:08compliant. And then you could have your
- 26:10windows be a hyperventure. OK, so required approved client
- 26:13app. That's pretty straightforward.
- 26:14You know, let's say you want client users to use the Outlook
- 26:19client versus like the default iOS mail app or you know, the
- 26:24the Gmail app within Android. So you can require it to be
- 26:27Outlook and there are specific benefits to that like the next
- 26:31one, which is require app protection policy, mobile
- 26:34application management where you can have then protections
- 26:37layered on top of or separate, you know, you can use.
- 26:41We, we've had this conversation before MAM versus MDM you can
- 26:45have both, right? And so you can require Outlook
- 26:48to be that. And there are benefits using
- 26:51Outlook. We have our purview stack, our
- 26:52encryption, all that built in by default.
- 26:55We have our MAM protection. So you can prevent cut and paste
- 26:59or certain, you know, DLP policies to be triggered, all of
- 27:02that. So there are benefits to using
- 27:04an approved client app. And then you can also require
- 27:07MAM, which is another policy which we're not going to get
- 27:09into too much today, but there's other policies that you can
- 27:13layer on top just validating. That that is in place is really
- 27:19what it does. So it's like you can, you can
- 27:21get to Exchange online, but only if you're using the Outlook
- 27:26mobile app that has a man policy applied to it, a mobile
- 27:29application management policy, then yes, you can get to
- 27:32Exchange online, say without managing your whole device.
- 27:34And, and again, whole rabbit hole there.
- 27:37But let's say you want to do the model where it's like, hey, we
- 27:40don't want to manage somebody's whole device.
- 27:42We just want to put these controls in place on the Outlook
- 27:44app and like containerize the Outlook app.
- 27:46This is how you do that right there where you still ensure
- 27:49like people just no one off the street can get to exchange
- 27:52online. But if they show up, they've got
- 27:54the Outlook app and has the policy applied and everything's
- 27:57copacetic there, then absolutely here's your e-mail, go to town
- 28:00like and, and that's how you can deliver that experience and then
- 28:03the. The final one is required
- 28:04password change like Adam said. You know you can.
- 28:07If you have a user at high risk then you can require them to do
- 28:11a self-service password change upon login.
- 28:13So so if. I mean really simple right?
- 28:16Like if user risk equals high, and if you know user assignment
- 28:21is all users, then require password change.
- 28:23So that will just effectively make anyone who shows up with a
- 28:27high risk user risk to be able to perform a password change
- 28:30before they're allowed in. And of course, self-service
- 28:32password reset requires other factors, you know, that aren't
- 28:36their password, of course, to validate their identity.
- 28:38So it's it's a Safeway to immediately mitigate that risk
- 28:42at machine speed instead of to have having to have human
- 28:45interaction. Have someone in your security
- 28:47operation center find it, notify the user, reset their password,
- 28:51call the help desk. Like it just happens
- 28:53automatically. It takes that entire workflow
- 28:55out of your hands like it's just one exam.
- 28:57So we're going to. Move on to session controls and
- 29:00then we're going to wrap up with authentication context.
- 29:02So again, stick around because authentication context is super
- 29:05cool. But session controls is
- 29:06something that is pretty unique to Microsoft, especially in some
- 29:10of these different ones here, because everything we've talked
- 29:14about so far is pre authentication.
- 29:18So it's before you have even successfully authenticated.
- 29:22And then once you satisfy those conditions, you're allowed in,
- 29:25you get access. But then within that session, so
- 29:30once you get authentication and once you get that pass to get
- 29:33into the park, right now we're going to look at different
- 29:37sessions within there. So a good a good example is we
- 29:40have multiple different tokens. And I think we have talked about
- 29:43this on the show, but you have your session token, you have
- 29:46your refresh token with Microsoft, you have primary
- 29:48refresh token, which is just another version of the refresh
- 29:51token specifically for Windows device.
- 29:54You know, essentially how applications work, right?
- 29:58You, you get a session token once you authenticate to entra
- 30:01to the IDP and then you exchange that session token for a refresh
- 30:05token, which is short lived to get to and you know to use that
- 30:09application. So in essence, in the in the
- 30:13amusement park example, right, I have my, my pass, but now I have
- 30:17to show the pass to get a token or, or another pass to ride the
- 30:23specific ride, right? So I got to show my, my daily
- 30:27pass, my yearly pass, whatever my season pass and get a token
- 30:30to ride that specific ride. And so that's what the refresh
- 30:33token is. And the refresh token is short
- 30:36lived. It's an hour by default, right?
- 30:38And whereas the session token is 90 days rolling, I think you
- 30:43have. Those backwards refresh token is
- 30:4490 days. Rolling session token is one
- 30:46hour access token well. OK, that's another contention
- 30:50within the security like is that sometimes these things have
- 30:54different names actually. So but one the Long live token
- 30:59is 90 days. Let's just say that the Long
- 31:01live token is is rolling 90 because actually these do come
- 31:05up differently how Microsoft names and how other other
- 31:08security professional talk about.
- 31:09So there is a Long live token that is 90 days and then there
- 31:13is a short lived token which is an hour, right?
- 31:17And that's important to remember because if you revoke the
- 31:21identity and they've already authenticated and exchanged that
- 31:25long lived token for a short lived token, they will still
- 31:28have access as long as that, you know, short lived token is valid
- 31:34for that, you know, an hour, right?
- 31:36Yeah, depending. On timing, could be up to a full
- 31:38hour, could be right. So these are things that we can
- 31:41enforce conditions around. So couple of things on this.
- 31:44I'm not going to talk about everything in here.
- 31:46We're just going to highlight a couple of things, right?
- 31:48So conditional access application control, really cool
- 31:51thing. Again, we have our reverse proxy
- 31:54that's built into this. So we could require conditional
- 31:57access app control, which integrates with Defender for
- 32:00Cloud apps. So it's a reverse proxy.
- 32:03We shift that session to for cloud apps, which then you can
- 32:06take additional actions behind post authentication.
- 32:11A good example is let's say I use Exchange Online from an
- 32:15unmanaged machine and I require conditional access app control.
- 32:19Well, that will then shift to Defender for cloud apps to then
- 32:23enforce and say, OK, they're coming into here, they're using
- 32:26Exchange Online, they're coming from an unmanaged machine.
- 32:29What can they do? I will let them view their
- 32:32e-mail but not download anything.
- 32:35Or maybe I will let them download something, but then I
- 32:38will use Purview and apply this sensitivity label for read only
- 32:43to that document that they're downloading.
- 32:45So you can take additional actions again, post
- 32:47authentication. But that uses conditional access
- 32:50app control, which integrates with our reverse proxy, our
- 32:54Casby defender for cloud apps, right?
- 32:57Really powerful stuff we could do a whole show on that, but
- 33:00just know that that is there sign in frequency.
- 33:03This is something that almost all ID PS have right So this is
- 33:06one way to do that session control.
- 33:09We can we can limit how often or so there's two options here.
- 33:14We can periodically require the user to sign back in, which
- 33:17means that you have to actually sign back in and get that Long
- 33:21live token right. You can't just have that Long
- 33:23live token anymore. We're going to make sure that
- 33:26you sign in every so often before the 90 days is up.
- 33:29Or you can make them sign in every single time.
- 33:32That's probably not the best way for the majority of users on the
- 33:36majority of applications, but there might be something that
- 33:39you would require them to sign in every time and go through
- 33:42that conditional access gateway again to get that Long live
- 33:46token, right. Yeah, I.
- 33:48Will I will avoid the long soapbox rant and just say the
- 33:51short version is there is a misconception that signing in
- 33:55more frequently equals more secure.
- 33:57That is proven from empirical evidence to be false.
- 34:01However, you may have regulatory environment that requires it.
- 34:05You may have an application that's just so sensitive where
- 34:08you would feel better if you require more frequent sign in.
- 34:10The one Andy and I always bring up on the show at Microsoft is
- 34:13our benefits portal does require more frequent authentication
- 34:16than other sites. I'm I'm always having to sign
- 34:19back into that now again with, with the great experience we
- 34:23have. It's Windows Hello for me.
- 34:25So it's just scan my face and boom, I'm in.
- 34:27But it is still a re authentication versus everything
- 34:30else. It's just single sign on.
- 34:31You know, it's seamless. Nothing happens.
- 34:33And so I can imagine anything like where you can change direct
- 34:35deposit settings, like, yeah, you probably should have to
- 34:38authenticate every time or more frequently for that.
- 34:40Be careful with this. That will be the end of my ramp.
- 34:43I will just say do not turn this on for everything.
- 34:46Do not make your users re authenticate 50 times a day.
- 34:50It is not more secure here. It is proven not to be.
- 34:54All you're doing is training your users to respond more
- 34:56affirmatively to a phishing attempt.
- 34:58So limit this carefully. Less is more in this case, but I
- 35:03get there's some examples where you're going to need to have it,
- 35:06and here it is, so there is. A.
- 35:07An option to customize continuous access evaluation.
- 35:12Now this is a really good and important feature.
- 35:15Continuous access evaluation is that next level and it's based
- 35:21on an open standard. It's that next level of
- 35:23evaluation for that short lived token, right.
- 35:27So we talked about that being an hour and it's, you know, you're
- 35:31only exchanging back to that long lived token once an hour.
- 35:34Whereas continuous access evaluation is now doing near
- 35:38real time evaluation of is that long lived token still there?
- 35:42I'm going to continue to check within the hour to make sure
- 35:46that that long lived token is still there.
- 35:48And so again, this is based on open standard.
- 35:51There are other ID PS out there who have implemented it and so
- 35:55might be worth taking a look to see if this is available.
- 35:57We have done it by default for Exchange Teams and SharePoint
- 36:01and we are of course looking at expanding that CAE capability to
- 36:06other applications. But right now built built in by
- 36:09default to Exchange Teams and SharePoint, which does cover the
- 36:11basis of a lot of our productivity applications.
- 36:15So if that user account is disabled or deleted, then CAE
- 36:20will revoke that short lived token within the hour because
- 36:24again, the goal is near real time.
- 36:26It can take up to like 15 minutes, but it's better than an
- 36:28hour, right? So we have that next level
- 36:31evaluation. And then finally, the other
- 36:33thing that I wanted to highlight is token protection.
- 36:35We did do a whole show, I believe on token protection, but
- 36:41token protection again, is fairly new.
- 36:43It's in preview and this is where we're looking at if an
- 36:48attacker steals that, either the short lived or the long lived
- 36:51token and then they replay it or they start minting their own
- 36:54tokens, right? And So what we have now is token
- 36:59binding protection where that token that's issued is
- 37:04cryptographically bound to the device that is issued on.
- 37:08And so even if that token is stolen, it does no good because
- 37:12the private keys live on the device that that token was
- 37:15issued on that initial authentication.
- 37:18And so we can check for that. And so again, this is in
- 37:22preview. We have token protection built
- 37:24into our SharePoint and, and Teams and Exchange.
- 37:28So it's limited, but we can check for for that and it's on
- 37:32those client applications. And if you have this, you can
- 37:37check off require token protection, so we can check to
- 37:40see if that token is cryptographically bound to the
- 37:43device. Of course, we also have ID
- 37:45protections built into intro, which again, we're not going to
- 37:47talk too much about, But that's post breach, right?
- 37:50If we detect a replay of that token, we can alert you to it.
- 37:54But this is pre this is like a, you know, a defense, right?
- 37:57So you can check to see if it if that token is cryptographically
- 38:01bound and if it's not I can block access.
- 38:04So let me let me do the amusement park analogy for this
- 38:07one. And, and this is real.
- 38:08This is how they really do it. They put your picture on your
- 38:11season pass so someone can't steal your season pass and
- 38:13replay it and say I'm Adam Brewer because their picture
- 38:16doesn't match mine. To keep going with our analogy
- 38:18there, that's why they put your picture on your season pass so
- 38:21they cannot be replayed or stolen and reused by someone
- 38:24else. That's kind of what this is
- 38:25effectively exactly so. A lot of cool things that you
- 38:28can do within the session, right?
- 38:30And so kind of moving that session.
- 38:33So this is not really session protection, but it's called
- 38:36authentication context. And so this is again, fairly new
- 38:40and you might have seen this, but you're like, how does that
- 38:42work? I don't really understand or
- 38:44what's the use case for it. So let me give you again, I'm
- 38:46going to set this up in the amusement park, right?
- 38:48I've gotten in, I got the security guard checking me
- 38:52right. I'm I'm compliant.
- 38:54I'm exchanging my season pass for the tokens, riding the rides
- 38:57and all that. And now I want to get to a
- 38:59restricted area that's only restricted for certain people,
- 39:03like employees. Well, now I got to show a
- 39:06different badge for that restricted area.
- 39:10How do I get in there? So a good example would be like,
- 39:12let's say I'm using privilege identity management to escalate
- 39:15to global admin. I've already authenticated to to
- 39:18global or I've already authenticated to ENTRA, but now
- 39:21I'm trying to get to a privileged role.
- 39:22I want to require other conditions on top of that in
- 39:26order to pin to that role. Now, if you're familiar with PIM
- 39:30back in the day and it's still there, you could just require
- 39:33MFA, Azure MFA. And that again is just any MFA
- 39:36method, right? You just check the box, require
- 39:39MFA. But again, we can require now
- 39:41conditions, not just MFA, just fish resistant MFA compliant
- 39:45device from a, from a specific device filter, all of that, all
- 39:48these things that we talked about, we can require that.
- 39:50How do we do that? We scope a conditional, an
- 39:53authentication context. So authentication context in
- 39:56general is a label. It does nothing, right?
- 40:00Just like a purview sensitivity label.
- 40:01You could have just a label that does nothing.
- 40:04And then you can layer protections on top of that.
- 40:06So you go to authentication context within the conditional
- 40:09access tab and you type in a name and a description for it.
- 40:13And I would make it fairly descriptive, like require fish
- 40:16resistant MFA for PIM or something like that.
- 40:20And then there's your label, right?
- 40:22And so now when you go back to your conditional access policy
- 40:25and you're scoping it for your apps, we talked about it in the
- 40:29beginning where you're doing a target resource or user action,
- 40:33you can target that authentication context that you
- 40:36just created. So anything labeled with that
- 40:38authentication context, I'm going to apply this conditional
- 40:41access policy to. And you can do the same thing,
- 40:43right? Go through the whole thing that
- 40:45we just talked about require fish resistant MFA.
- 40:48Let's say we just do that anything labeled with this
- 40:51authentication context, we're gonna require fish resistant
- 40:53MFA. Cool.
- 40:55Now we have have the conditional access policy that is tagged for
- 40:59that label that we created. Now where do we go within
- 41:03Microsoft? We have authentication context
- 41:06available for two specific applications.
- 41:09One is PIM and the other one is SharePoint.
- 41:12So within PIM you can go and modify the role.
- 41:16So you go to a global administrator and if you modify
- 41:18the global administrator role, you have a lot of options,
- 41:21right? Require it to time frame, right.
- 41:23You can only be 8 hours Max or two hours Max or whatever it is.
- 41:27But one of those things you box there is authentication context.
- 41:31So I can require no additional authentication.
- 41:34I can require Azure MFA or I can require authentication context
- 41:38and if I drop down to the authentication context that I
- 41:41created require fish resistant, it will trigger that conditional
- 41:45access policy that I scoped to that authentication context
- 41:49label and so now I can require fish resistant MFA to pin to a
- 41:55specific role. Same thing with the SharePoint
- 41:58site, so it integrates with Purview sensitivity labels.
- 42:03So when you create a sensitivity label, you must have SharePoint
- 42:07Groups and Sites enabled for sensitivity labels, which does
- 42:11require some additional PowerShell.
- 42:13There's a whole walkthrough on how you can do that.
- 42:15But once you've enabled Groups and Sites to be labeled with
- 42:18Purview labels, there's an external sharing slash
- 42:21Conditional Access checkbox. When you're creating that
- 42:24Purview label, that sensitivity label, you check that box off
- 42:28and then all of a sudden it walks you through the next
- 42:30screen that says which conditional access policy do you
- 42:33want to apply? Oh, I want to apply this, this
- 42:35authentication context that I created.
- 42:36So you tag that label with the authentication context, which
- 42:40then would trigger that CA policy that you created, right.
- 42:44And now anything that I label with that, be it a SharePoint
- 42:48site, all of a sudden if you're storing secret stuff on the
- 42:51SharePoint site, I must use fish resistant MFA to get to that
- 42:54SharePoint site. So really powerful, right tool
- 42:59that you can use to add additional conditional access
- 43:03policies behind PIM and SharePoint, which are two good
- 43:06uses. And of course, this is open for
- 43:09developers to integrate with their applications as well.
- 43:12And we're probably going to add it to additional things in our
- 43:15applications in the future. So good to at least start using
- 43:18it. PIM is a great way.
- 43:19If you're already using PIM, there's no reason why I wouldn't
- 43:22do this for a specific PIM action.
- 43:24Very easy to use, Use. So something that is really good
- 43:29that you should take away and try it out.
- 43:31Yeah, and. In the SharePoint example, what
- 43:34I would think of would be let's say pre release earnings for
- 43:37your finance team before they go out to the public, obviously
- 43:41highly confidential. And this is where we build that
- 43:44defense in depth strategy. Of course that SharePoint site
- 43:46already should be limited to just the people who need access
- 43:49to it. So just enough access #1 #2 any
- 43:54document in there should have a sensitivity sensitivity label
- 43:57applied. So we're using a Purview data
- 44:00security to lock down those documents and make sure they
- 44:03can't leak outside. But we should still do this as
- 44:05well on where we're requiring additional authentication
- 44:08context to hit that SharePoint site at all.
- 44:10Maybe normally we don't require fish resistant MFA.
- 44:13Maybe normally we don't require the use of intra Internet access
- 44:17to get to these things. But for this, we want more
- 44:20assurance. So we're going to layer in
- 44:22additional controls. So we're going to tell our
- 44:24finance team, hey, you're dealing with pre release
- 44:27earnings like this is sensitive stuff.
- 44:29I'm going to give you a Ubi key. And this is something you're
- 44:32going to use because you have access to such sensitive
- 44:36information moving forward. And so when you try to go to get
- 44:38to that, it's going to prompt you to plug that Ubi key in.
- 44:41All right. And yeah, you may get some
- 44:43pushback on that, but these are the kind of things you can do
- 44:45and enable to protect some of the most sensitive documents in
- 44:49your organization. And that's what authentication
- 44:51context lets you do well. Hopefully you learned at least
- 44:54something in there because there's a lot of new
- 44:57capabilities, authentication, context, really cool.
- 45:00I, I implemented it in my, my demo lab and was able to demo it
- 45:03successfully. So it, it works great.
- 45:05So even if you're the most seasoned of identity
- 45:08professionals, hopefully there was something here for you.
- 45:10And if not, you're probably the expert in the area.
- 45:15All right, so that's our show for this week.
- 45:17Thanks for watching and listening.
- 45:18As always, I'll put some show notes for documentation here for
- 45:22you to review. If you have any questions or
- 45:24topics you want us to talk about in the future, please let us
- 45:26know. Thanks.
- 45:28We'll talk to you guys next week.
- 45:29Thank you for listening to the. Blue Security Podcast.
- 45:31Please check out the show notes, catch up on episodes you may
- 45:34have missed, and subscribe so you don't miss any future
- 45:37episodes. Find Andy on Twitter at a Jaw
- 45:39Zero and Adam at AJ Brewer. See you at our next episode.