. All right. Welcome to Improving the Security Posture of macOS and Linux with Azure AD. I'm Mark Morzynski and I'm here with Michael Epping. Something we've been trying to do to try to be more inclusive of those with a visual impairment is quickly just describe what we look like. I am a late 30s white male with medium length brown hair. I have glasses that are blue and black outlined, and today I'm wearing a black shirt. Michael? I'm a mid 30s white male with short to medium brown hair, and I'm wearing a blue striped shirt. All right. Thanks so much. Michael and I are both product managers in the identity division at Microsoft. We work on Active Directory, Active Directory Federation Services, and Azure Active Directory. We spend most of our time working with customers on their deployments of Azure Active Directory. We take the learnings and feedback from those deployments and we work it back into the product to make it easier and better for everybody else. The last year or so, Michael and I have been working with some of our customers that have a larger Mac footprint as well as some Linux footprint, and we wanted to share some of the learnings we have from those deployments here with the DEF CON community here. Also, we will both be live right now on your video, but also in the chat. If you have questions about anything we're talking about, feel free to post them in the chat and we will go through and answer those. All right. Let's go ahead and get started. The first thing is we're going to talk about just to give everybody a quick high-level overview is what is Azure AD and conditional access. Let's go ahead and start with that. If you're not familiar, if you have Office 365 and you have Azure, you have Azure AD. Azure AD is the identity provider for those two things, but it's not just an identity provider for those two services. It is a full-blown identity access as a service, so we can do things like provision users or deprovision users to applications. We can build things with dynamic groups. There's a whole bunch of stuff we could do here. We could go a full several hour session on Azure AD if we need to. If you have any specific questions about Azure AD, feel free to reach out to Michael and I either on Twitter or in the chat. But from now, just as a high-level, it is the IDP for Office 365 Azure and Azure and a bunch of other things as well. Now, something that we saw with a lot of our customers that definitely got accelerated with COVID was that users were looking to work more outside of the office. They did most of their work in the office, but they wanted to be able to work from home, work from the coffee shop, and the resources that they were accessing are no longer just going to be on that prime network. They're probably using things like Cloud Services, SaaS apps, things of that nature, and the devices that they're using, most of their work is probably done from their corporate device, but they want to be able to do things from their personal phone. They want to be able to do things from their iPad, things of that nature. This is really starting to spread. It started to move into this method where no longer is it we're only accessing these resources that are on the corporate network and that the network is the boundary, everything inside is safe, everything outside is bad, has really started to go away. If you've been to any Azure AD talks before, you may have heard us talk about how identity has become that control point now, because that's the consistent thing across all of these different areas. That's where Azure AD can come in. Let's talk about a very specific thing around Azure AD that I think is really important. Like I said, that we can do a whole bunch of topics on Azure AD, but something I wanted this community to get across here is that Azure AD is built on open standards. This means things like OAuth, OpenID Connect, and SAML. If you actually crack open any of the Microsoft applications themselves, you will see that they are built on OpenID Connect. Now, we're continuing to invest in new standards, things like FIDO, as well as the decentralized identity framework. We actually have a whole team of people that work on this. They're led by Pam Dingle. If you know her from any of the identity stuff, she's great. Her team works with these different standards, bodies, and foundations to help define new and emerging standards. A good example of this is if you saw the PassKeys announcement by the FIDO Foundation. You can read more at ak.ms.passkeyannouncement. This is going to be supported by Microsoft, Apple, and Google. Tim and her team actually helped work with the FIDO Alliance and those groups to agree on that standard. Not only are they helping define new standards, they also make sure that Azure AD will support those standards. If you have any applications that support OAuth, OpenID Connect, or SAML, you can quickly integrate those into Azure AD, which allows us to use things like conditional access. If you aren't familiar with conditional access, this is our zero trust authentication and authorization engine. As an admin, you can define different sets of conditions, and if those conditions apply, the user or device will have to pass certain controls. If they do, they are then granted access to that resource. It's all there in the name, conditional access. It's a common question we've seen with some of these other communities that maybe aren't so familiar with Azure ADs. The Mac admin community is that, when is conditional access being applied? I logged in first thing in the morning, I got prompted for MFA, and then I went to access that same application later, I didn't get prompted. Is conditional access even working? The answer is, yes. Conditional access is you dial it every time a user or device is requesting access to a resource, and they're getting that access token. I'll talk a little bit about that a little bit later. This goes into modern authentication. Now, what are some of the things you can do from a conditional access perspective? You can configure things based on where the user is coming from. Is there any risk on that user? Is there anything suspicious? What type of device that they're coming from? Is it a Windows device, Linux or Mac device? Is it in a good healthy state? Are there any application requirements that you want to enforce? You can configure a conditional access policy that says, if you're coming from a mobile phone, and you're trying to get your email in exchange online, that you have to come from the Outlook mobile app, because that prevents people from accidentally saving attachments to their personal OneDrive or their personal Dropbox. It has to be saved to the corporate OneDrive or the corporate Dropbox. And some of the resources that we're trying to get to here may include Linux servers. And Michael's going to talk about things we can do with that here in a little bit. But let's take a look at how conditional access actually applies. So we've seen this question come up, and people want to have a conditional access, like they want the first policy to apply. And if that doesn't apply, they want the second and third policy to apply and things of that nature. Unfortunately, conditional access does not work that way. There is no precedence. So if you're familiar with how group policies work in Active Directory, where you have that local site domain OU precedence, it does not work that way. All conditional access policies are entered together. And then the first question that's asked really is, is there a policy that applies in this scope of this request? If the answer is yes, it then goes to these following controls. So the first is if you have a block control, the default deny will always win there first. There's no block controls. Then we have a grant control that goes in this order of risk, MFA, device, and then again, that approved client app. Now, a key thing to remember here is that conditional access will try to satisfy the policy without having the user have to do any interaction. So if you have a conditional access policy that says, we either have to do MFA or come from a compliant device, if the user is not coming from a compliant device, they would then get prompted to do MFA. So you can see here on the right, Michael tried to log into the Azure portal. He was coming from a non-compliant device. You can see that as the attribute here is set to is compliant is false. That's what the arrow is pointing to. So this is actually controlled by Intune. We'll talk a little bit about how this works here in a little bit, but it's really important that as defenders and maybe people that have Macs in our environment, Linux clients in our environment, that we understand what those conditional access policies are because those can greatly impact how the behavior is for that end user. So let's take a look at what are some of those common policies that we see. So, you know, again, talk to your IM team. If that's not you, understand the policies, but things like requiring MFA for all users. This is really, really good. Blocking legacy authentication. You've probably done that already. I know we've had talks about this here in the past, things like POP3, IMAP4. Blocking access by country location. So saying we have no users in this region and we have no business interest in this region, we're going to block access all together. Requiring compliant or a hybrid joined device. So we're starting to see customers moving this way that it's no longer okay just to do MFA, that you also need to come from a device that's known and managed by the environment. So this is that device identity aspect. We're also starting to see the inverse of this, which is where we're going to put stricter controls for non-corporate managed devices. So this is always that like grandma's PC, grandma's workstation snow that the security teams love to talk about, that they're at their grandma's house for a holiday. And that's when someone decides that they're going to get a couple hours of good work done. And instead of using their own PC, they're going to use grandma's PC or grandma's Mac. And we don't want that session to persist for hours, days, or weeks. So the security team sets a policy that says, if you're coming from a non-corporate device, you're going to have to re-authenticate every two hours. And if you haven't done the work, especially on your Mac side, to do an integration with Azure AD, Azure AD is going to see all of your corporate Macs as unmanaged devices. And these stricter controls are going to apply to them. And this is going to, be a very, very horrible experience. And if you talk to your security teams about that, hopefully that's you, cause you're at the DEF CON Blue Team Village here. Some people on your team may say that this is good from a security perspective. They'll say, we practice zero trust. We don't trust anyone. We don't trust any devices. We don't trust anything. We want people to be re-authenticating cause that is proving who they say they are. This is good from a security perspective. And in theory, that sounds like that would be right. That we would want people to continue to be re-authenticated. That sounds like it'd be a good security practice. But in reality, what we found with customers, that probably isn't having the same security benefit that you think it is. So let's talk about why over-prompting our users is bad. So we had a customer case study here. One of our large financial customers in Europe, they had their red team doing a cyber attack. So they're running through the playbooks and they're doing that password spray. And they found some users with easily guessable passwords. So maybe something like summer 2022, exclamation point. Or something like that. So they found a couple accounts and they asked their leadership team, can they just hammer these people with MFA prompts? And they said, sure, not a problem. We'll tell her I helped us. So when they call and complain, we can tell them what's going on. Here's what we found. First of all, no users reported that there was any extra prompts. So that's off to a bad start. And then many of those users actually just blindly approved those MFA requests themselves. So that's having the opposite effect we want from MFA. And one user was so fed up with the amount of prompts that they were getting, they just uninstalled the Authenticator app entirely. Like, I can't even be dealing with this thing. They just deleted the app from their phone entirely. So this is obviously what we don't want from a security perspective. So we found really when you over prompt your users, this is really bad from a security perspective. It's going to lead to compromise. You're teaching your users bad behaviors. You're teaching them to give up their credentials all the time. And when you have lots of MFA prompts during the day, so they get four or five or six, when an attacker gets a hold of their account, they go to log in with those credentials and they get that seventh or eighth MFA prompt, they're just going to approve it because they don't know better and they've already approved the previous five or six. So we don't want to blindly have people getting all these MFA prompts. Now, is it bad from a security perspective? It's bad from a productivity perspective, especially on platforms where we don't have single sign-on out of the box. This includes things like Mac OS and Linux. And we'll talk a little bit about that later today, how you can improve upon that. But really, as defenders here, we should be striving to improve our end user experience and improving security. And we're going to do that by only prompting our users when it truly is needed. So things like when they're coming from a new device or they're coming from a location we've never seen them come before. There's something else has changed in their risk profile. That's when we want to prompt those users. And the credential type we want to use when we are prompting our users is a passwordless credential. It makes for a better experience. It's a stronger credential. And we'll talk a little bit about that at the very end. But the thing I want to make sure I stress here is that many times in our environments, the Mac OS and Linux clients and servers are more of a smaller subset. And they don't get the type of attention that they probably deserve. And they are probably falling into this bucket with these conditional access policies where they are having a really poor experience. And we probably are over prompting these users more than we should be. So let's go ahead and move on where Michael is going to talk about. Oh, sorry, I forgot one part here. Yeah, so the first thing we're going to need to do is we are going to need to determine if we have a prompting problem in our environment. And unless you've been spending time on this, you probably have some room for improvement. So you want to be able to show this with data. We actually have somebody on our team here that used to work in Power BI. And he has a shirt that says, in God we trust, all others bring data. And all of the data you need for this is in the Azure AD sign-in logs. So we have a workbook here for you. If you go to aka.ms slash MFA prompts workbook, this is a free workbook that uses Azure Monitor and Log Analytics. If you're not sending your Azure AD sign-in logs, to Azure Monitor and Log Analytics, that's okay. Go take a look at this, because you can see what all of the queries are. And then you can then write your own query and wherever you are sending your Azure AD sign-in logs. So something like Splunk or Qlogic or Sumo Logic, QRadar, I just combined two seams together there. Custo, it doesn't really matter, but you can take that from there. Now in this workbook, we will show you lots of different things. The first thing you can see is which of your users are being prompted the most. And this can be a very eye-opening experience for some customers. We'll also show you what is the average amounts of prompts that you're getting in your environment, as well as what are the applications that have a very high prompt count. We've had customers that find that their applications are actually misconfigured and it's actually causing more prompts than really, really needed. So you'll see all this type of stuff in there. The other thing that we're gonna find in here is what is the device state of those prompts? So here you can see on the graph on the right-hand side, 95% of the prompts are coming from unmanaged devices. And this is really, really, really critical to understand because we may be having those more stricter conditional access policies being applied to them. So we're gonna wanna look to move those types of devices, those Mac OS and Linux devices from an unmanaged state to a managed state. And we'll talk about that here in a little bit. But now Michael is actually gonna talk about how we can do some things on the Linux server side. All right, so let's talk about how we can turn Linux servers into a resource that can be protected by conditional access. So we said earlier that Linux servers may be a resource, but I would contend that they should definitely be considered one of these resources that we need to apply zero trust type policies to. So in Azure AD, we have a capability to protect access via SSH to Linux servers with conditional access and other Azure AD tools. So this would include conditional access where we can do things like require compliant devices, require MFA, use passwordless sign-in methods. There's other tooling that we can use like privilege identity management so that users don't have standing access to things and they have to check out their access. So there's a lot of different tools that we can use to start protecting these servers with the same types of conditional access policies that we're using for other applications in our environment. And we also have the capability to do this type of protection for more than just your own users. If you need to have machines accessing those Linux servers using SSH, we can protect workload identities or what may also be known as service principles as well. So there's a lot of different features available here. So I want to step back and talk about why do we need a tool like Azure AD to protect SSH access to VMs? So we're going to kind of lay out how our customers are accessing Linux today or what the common access patterns are. So it's really, really common for out of the box Linux installations to use password authentication. So in this case, the user sends the username and password over the wire to the device. It may be validated locally. It may be validated by another system like a radius server or an LDAP server, but the username and password are passing over the wire. There could be an LDAP service in the mix. We have customers who use Active Directory to validate user credentials or other LDAP stores. Kerberos is an option. Some customers use public key, private key pairs. This is another very common option out of the box on Linux distributions. This could, again, just be credentials that are local to that specific Linux server where the user has a private key on their local workstation. And instead of sending their credential over the wire, they basically sign a random piece of data with the private key. And then the public key on the server is used to validate it. In some environments, customers are a little more mature and they manage these keys with some sort of tooling. So there could be a process to go revoke keys when a user is terminated or to distribute new keys when a user is onboarded. But it's fundamental to understand that this is still a very on-premise oriented technology. In many cases, it's typical that this is not using a web-based protocols like WebAuthn or Fido or some of these newer protocols that we've talked about previously. There's also options like user certificates, but in the end, most of our customers end up using what the defaults are in their distributions. And so really commonly that's public key, private key, and in some case, passwords. So not very cloud oriented credentials, not very zero trust oriented credentials. So most Linux distros, like I said, out of the box assume either password or key. And you can see here in the upper right, we have password authentication where I'm just sending my credentials over the wire to the Linux server. And in the lower right, you can see I have a private key that's stored on my workstation. And I use that private key to access the server instead. So it's a little bit more secure, but it still has a lot of management overhead. So what we found is that customers really struggle with some of that management. If you have, if you're using LDAP, you have to manage the LDAP system like Active Directory Forest, Radius Infrastructure, whatever tooling you're using to distribute public keys to machines, PKI if you're using user certificates. And for a lot of organizations, key revocation and being confident that your keys were revoked properly is very, very difficult. So if I have to do an emergency termination on a user, how confident am I that they can't access some Linux server in my environment using a private key that's still on the workstation in their possession? In a lot of organizations, the confidence level there is not super high. Again, Linux doesn't support web authentication or FIDO out of the box. So there's really a lack of modern authentication options. So this leads customers into those other defaults in the OS. So the weak passwords or the hard to manage keys. And there's little to no device-based control available. So unlike with conditional access where we can validate every time the user is accessing something, that the device is known and in a healthy state, for most customers, they protect their Linux server workloads with network centric security. So they might put a firewall around the network where all their Linux servers exist. And then if a user is through the firewall, they could theoretically reach any of the Linux servers. So this is a little bit of an old school approach like Mark mentioned. So we're gonna try to solve some of this with Azure AD, and here's how we're going to do it. So just like accessing any other application, a user might authenticate to Azure AD, and we check their authorization. So we might check to see if they have the appropriate role on the virtual machine. The role that they possess might be PIM enabled so that we can force them to do a checkout on the virtual machine. But if everything works out and they successfully pass all the conditional access policies and all the RBAC checks go correctly, what they're going to get back in return is an open SSH certificate. So just like in a different type of application, like say Exchange Online, where I might open an Outlook client and Outlook needs to go, needs to go acquire an access token. If I'm accessing a Linux server, I'm going to go acquire an open SSH certificate that is short-lived like an access token. So sometimes we call this an ephemeral open SSH certificate. So it's an open SSH certificate from Azure AD that's only good for an hour. And that way, if I need to do an emergency termination on the user and an hour passes, they won't be able to access any of their Linux servers anymore. So it's bringing that short-lived token model that we have for web applications to Linux server access via SSH. And then once they are in possession of that open SSH certificate, they can access VMs that are running in Azure. This is a generally available feature. And they can also access virtual machines that are running in AWS, GCP, on-prem data centers, basically anywhere else using an integration we have with a tool called Azure Arc, which is a multi-cloud management tool. That functionality is in public preview today. And I'll talk in a little bit about how this actually works. And I'll talk in a little bit about how this actually works under the covers. So before I get into the specifics, let's talk about some of the prerequisites to make this work. On the client side, so my workstation where I'm initiating the SSH connection, I need to have an open SSH client installed. So by default on Linux or Mac OS, this is likely going to be there, might need to install it on Windows, but basically any operating system that has an open SSH client on it can use this functionality. So under the covers, we're not doing anything different with SSH. We are just using open SSH like any other client might. Then we have a wrapper that sits on top of open SSH that's provided by a tool called AZCLI. This is the Azure command line interface tool that comes along with Microsoft's auth libraries. It's highly recommended to use this tool. It makes the user experience much, much easier. There are options for exporting certificates from AZCLI and then doing a raw open SSH commands yourself, but there's a lot of extra work involved and extra steps there. So I recommend using AZCLI and I'll show you the commands for that in a little bit. There's also an extension for AZCLI that you have to install one time. You can run this on basically any client OS. So Windows, Mac, Linux, Docker containers, Azure Cloud Shell, basically anything again that supports open SSH and AZCLI is going to work here. And then the client has to be able to reach the VM. So this is specific to VMs that are in Azure. I will talk about some slightly different requirements for the Azure OS. I'll talk about the VMs in a little bit. But basically you have to be able to reach the VM on port 22. So this might be over the internet, although that's not really recommended. Could be over a site to site VPN to your Azure instance. It could be through Azure Bastion, which is a bastion host solution, or you could just do it in a browser using Azure Cloud Shell. On the server side, there's a couple of prerequisites as well. You have to have a Linux server running in Azure for the Azure specific feature. The Linux server has to be running a supported distro. So on our docs page, we maintain a list of the distributions that we support on the server side. Again, we're using open SSH under the covers. So open SSH server has to be present. And then the Linux server has to be able to reach a few specific endpoints. So one is packages.microsoft.com, which is where you install the Linux installer from, or some server side components from. So that's just a standard package repo for us. This 169 IP address, which is the Azure instance metadata service. This is a service running on the host machine in Azure that facilitates some functionality that has to be able to reach Azure AD, as well as Azure RBAC. Finally, the Linux server needs to have a, what's called a system assigned managed identity. This gives the server a representation in the Azure AD directory. So this is basically the resource that the user is going to be asking to access when they request their open SSH certificate. So this is tied to the VM itself. And then there's also an extension that has to be installed on the VM. And the system assigned managed identity. So let's walk through how this actually works visually. So again, first component that we need to install is the extension software on the virtual machine itself. So there's things in here like a PAM module, cert handler. Then we go and install our client side components. So we have AZCLI along with the SSH extension for it. And that comes bundled with the Microsoft authentication library. Then when I'm, when I, the end user, want to, initiate my connection to the VM, I issue a command in AZCLI, and that triggers the AZCLI to use MSAL, the authentication library to go ask Azure AD for one of these short-lived ephemeral one-hour SSH certificates. At this point, conditional access applies. Any controls need to be satisfied, like am I on a compliant device? Have I done an MFA, et cetera, et cetera. So conditional access is in the mix here, and we can apply those zero trust policies. And if I pass all those checks, then I get my ephemeral SSH returned. So this is basically a one-hour access token. Then what happens next is my OpenSSH client is used by AZCLI to try to initiate a connection to the server that I specified. And so the cert is passed as part of that authentication to the OpenSSH server. At that point, the OpenSSH server module passes the cert to the component that we installed on the server. And we check with Azure AD to make sure that cert is valid. So we wanna make sure it's not a forged certificate. We wanna make sure it's issued by the correct tenant. It has the right information in it. We just basically wanna make sure that this is a legitimate certificate and not something forged. We would do this with an access token for any other application. And the Azure instance metadata service running on the Azure host is used to facilitate this. In addition, we also check the RBAC roles. So there's two RBAC roles that we support today. And as your RBAC, one is the virtual machine administrator login role, which gives you pseudo rights on the VM. And the other is the virtual machine user login role, which does not give you pseudo rights on the VM. And these are the only two that we have today. If I have the appropriate RBAC role and my certificate is legitimate, then I get my SSH tunnel. And finally I am connected. So at this point I have signed into my VM with Azure AD and I have protected that SSH access using conditional access and my zero trust policies. So now I wanna talk about servers that are running outside of Azure. So those Azure Arc VMs. So I'm gonna just focus on the bolded items here. So the first requirement that's different for the Azure Arc machines is that the Linux server must be onboarded to Azure Arc and have the Azure Arc service in a running and connected state. So basically if I have my VM in AWS or on-prem, it needs to have the Azure Arc service on it and it needs to be connected to your Azure tenant. And in a connected state. So all the underlying infrastructure needs to be healthy. And then from a networking perspective, there's a slight difference. We have to configure the Linux server to allow inbound connections on the SSH port in the Arc configuration. This is an Arc specific config. So in the Arc config, you say, here are the ports that I wanna publish through Arc. And then this is different than your firewall configuration on the device. And I will show you what this means in a second visually. So let's step through this again for a machine running somewhere else outside of Azure. So this could be on-prem, AWS, GCP, it doesn't matter. So we installed the Azure Arc service first, and this gets into a connected state with the Azure Arc cloud service. So at this point, our machine that's running outside of Azure is connected to the Azure management control plane. We install our server extension, just like before. We install our client extension, just like before. And then my user tries to initiate a connection. And just like before, they run the exact same command, and MSAL tries to go get a certificate. Conditional access policies apply. We can check for all of the things that we want, like compliant device, MFA, et cetera. Next, we get our ephemeral SSH certificate back. And this time, the SSH cert is actually passed to the Azure Arc cloud service, which can relay that traffic to the server that's running outside of your Azure tenant. So this is the fundamental difference from a networking perspective with the Azure Arc implementation, which is that the user does not actually need direct line of sight to that machine. So if I'm working remotely, and I want to access something that's in my on-prem data center, that traffic can be relayed through the Azure Arc service if we want. So just like before, we need to check and make sure that it's a legitimate certificate. So we validate with our Azure AD tenant that it's good. Then we check the RBAC roles, no difference here, same RBAC roles. And then finally, when everything is in alignment, and I get my connection, that SSH connection is relayed through the Azure Arc service. So again, no line of sight required if we don't want it in order to use this functionality. So in order to instantiate one of these connections, we have to do a couple things. So if we're using AZ-CLI, the first thing we're gonna do is run AZ login. At this point, we're just connecting to the Azure tenant. We're not doing anything specific to SSHing into the VM. Any conditional access policies that apply to the Azure Arc or management cloud app will apply at this stage. If you have multiple subscriptions, you may also set the context of which subscription you wanna be operating in. So you would run the AZ account set and specify the subscription. Then you're going to run the AZ SSH VM command, and you can either specify the IP address or the name of the VM in the resource group if you don't care about the IP address, and we'll just automatically resolve it for you. At this point, any conditional access policies that apply to the Azure Linux VM sign in in cloud app will trigger. So if you haven't satisfied any of the policies already when you're in AZ login, we will make you satisfy any of those additional controls at this point. However, if the controls are the same, if the AZ login controls already apply things like device compliance and MFA, you already have a session with those controls satisfied, and therefore we won't need to trigger an interactive authentication for the end user at that point. This works the same for both VMs that are running in Azure, as well as outside of Azure. From an end user perspective, who's connecting to my VMs, I do not care about the underlying infrastructure. The commands are exactly the same for me, regardless of which type of VM I'm actually connecting to. And with that, I'm going to turn it back to Mark to talk a little bit about what we can do for Macs on the client side. That's super cool. That's really nice for the admin. So, okay, let's talk about the client aspect of this. So before we get into the Mac specific stuff, there are two critical capabilities that we're going to want from any client OS. The first is the ability to do device health at a station. So on Windows, we have two choices here. We have MDM compliance, and if we squint a little bit, we have hybrid Azure AD join, which basically tells us that device is joined to an active directory. There's group policies being applied to it, so it's got some light management there, but we really should be moving more to a device compliance, which actually tells us the health of the device. Now, everything else only has one option, which is MDM compliance. There is no other good way for Azure AD to be able to tell that the state of the device is in a good state or not. And this is becoming more and more critical as customers adopt those zero trust policies and principles. And we're starting to see customers move those conditional access policies from saying, you either have to do MFA or come from a compliant device, to saying that you have to do MFA from identity perspective, and you have to come from a compliant device. And we're starting to include that device identity in that requirement. That's really good from a zero trust perspective. So if you haven't started moving your devices to MDM managed and that type of thing, you really need to start. The next thing here is we want to get single sign-on as much as we can. We talked about earlier, prompting our users too much is bad from a security perspective. It's bad from a usability perspective. So the user experience and security go hand in hand here. We want to try to get as much single sign-on for our client devices as we can. All right, so let's talk about now, what are some of the Mac specific things that we want to do? So first, we're going to want to enroll our Macs in an MDM so we can start to get that device compliance. Now, a key thing to know here is that some of the single sign-on settings you're going to want to also configure are going to require you to come from an MDM. Now, I want to be clear, there's two separate aspects of this. There's the conditional access from the device compliance piece from an MDM, and there's the single sign-on aspect, which reduces your prompts, gets a better end user experience. These are different features, but they are related. So we recommend you deploy both, but you can, as an MDM, you can only deploy the device compliance aspect and you'd be able to pass those conditional access policies and not do single sign-on. You can also just deploy the single sign-on features for macOS and not do the device compliance if you don't want to, but we really recommend that you do both. Okay, so what are the MDMs we can use to start enrolling in device compliance? So first, you can use Intune, or if you are not using Intune, you can use an MDM that integrates with Intune so we're able to get that device compliance to Azure AD. They publish this list here. The most common ones we see with customers if you're not using Intune is something like Jamf Pro or VMware Workspace One. And this is really, really important because this will allow us to pass those device-based conditional access policies. And if we don't do this, remember, Azure AD is going to see all of these devices as unmanaged. So if we have stricter conditional access policies being applied, all of our corporate Macs are going to fall into those policies. So we want to start moving our corporate Macs from unmanaged to managed and managed to compliant. So let's take a look at what that means to get to a compliant device. So if Intune is your MDM, this is pretty straightforward. Intune knows about Azure AD, Azure AD knows about Intune. In Intune, you will configure those device compliance policies. That device will report its status back up to Intune. And the Intune service will write the is compliant, true or false attribute on the device object in Azure AD. Recall earlier, we showed you that sign-in event where Michael was trying to log into the Azure portal and the is compliant flag was set to false. That is being controlled via Intune. If Intune is not your MDM provider, so let's say you're using something like Jamf Pro or the AirWatch, it's going to follow a very, very similar pattern. You're going to have your compliance settings set. You're going to have your compliance settings set. You're going to have your compliance settings set. And you're going to have to do a little bit of work to hook it up to that Intune service. It will message over that device compliance to Intune. And then once again, the Intune service will then write to that attribute on the device object is compliant or not. So it's a little bit of extra work, but we feel like this is really, really worth it because it really allows you to pass those conditional access policies. We know that the device is in a healthy state. So we really recommend that you do this. If you're not using Intune, you do the extra work and you connect it up to the Intune service. Okay, so let's now talk about single sign-on. So on the Mac, there are a few different ways you can do single sign-on. If you've been using Macs for a while, you may be familiar with the bind method. So this is where we bind it to an LDAP directory. So commonly this is going to be Active Directory. And this allows us to get Kerberos tickets and do single sign-on to those Kerberos resources. If this is what you're doing today, be aware that Apple's actively killing customers to move away from this. They're telling you to move to the next one, which is the Apple Kerberos SSO extension. It works in a very similar way, but you have to deploy this via an MDM. And again, just a reminder here, this is for Kerberos-based authentication. So this is mostly for those on-prem resources. It's not really designed for those cloud apps. We'll talk about that here in a little bit why that is. But if you do have cloud apps, you're going to want to move to Apple's extensible enterprise SSO framework. I have to say that multiple times during this presentation, I guarantee you, I'm going to mess that up in like a word's out. So just know if I start stumbling, I'm probably talking about this. But this framework allows IDPs to create a plugin so they can get single sign-on to those modern authentication applications using tokens. And I'll kind of cover that here in a little bit. So what do you need to do this? So first of all, you need an IDP vendor. That's us, that's Azure AD. And you need to be able to deploy that via MDM. Okay, so let's talk about here how Kerberos will actually work. So if you have applications that your users on Macs need to access that can do Kerberos, you're going to want to deploy the modern Kerberos SSO extension through your MDM. So we're going to walk through how this works. This is basically just Kerberos. I'm going to play it a little fast and loose because this is not a deep dive into Kerberos, but you guys will kind of know what I'm getting at. So first, our user is going to enter their username and password. They have a very strong password. You can see there, summer 2022, exclamation point. That is going to get sent over to Active Directory. If the credentials are valid, we're going to get the Kerberos ticket granting ticket, and that's going to get sent back to that device. Now, we're going to try to access some sort of Kerberos application. This could be a web application that does integrated Windows auth. It could be a file share, doesn't really matter. We don't have the right ticket now to get access to that resource, so we're going to need to take that TGT and exchange it for a TGS. So let's walk through what happens there. So the client's going to take that TGT. Everything's valid. It's going to generate that TGS that we need to talk to the application. It gets sent back to the client. The client now sends it to the application, and you get single sign on there. So again, this happens all under the covers. This is nothing new or special here. This is just Kerberos. But if you have resources that are still on-prem using Kerberos, you want to deploy the SSO extension. And you can validate this is working if you open your terminal window and use type K list. You can see here we have a Kerb TGT ticket. We can see here we also have a TGS for a file share on a domain controller here. So that's it. This is basic stuff. But let's talk about where this starts to maybe come apart. So Kerberos works really, really well when the resource that we're trying to access, the user that's trying to access it, and the Kerberos distribution center, which in our case here is going to be Active Directory, is all on the same corporate network. This doesn't work so well when we're trying to get things over the internet because Kerberos really wasn't designed for this. So let's kind of walk through what would happen instead of having a Kerberos application. We had a SaaS app that used Kerberos authentication. So the first thing is we're going to need a way to have the clients talk to that domain controller to get that Kerb TGT and that Kerb TGS. And your domain controllers should not be on the internet. So this is actually not going to work. Now, if you're sitting there thinking to yourself, what are you talking about, Mark? My DCs are on the internet. Stop watching this video. Start your incident response process because you have much bigger problems in your environment than trying to get these Macs to get single sign-on to some Kerberos applications. For everyone that was nodding along, you kind of see where this is going, right? We can't get that TGT. We can't get that TGS. The only way that this would actually work is that the client has a VPN set up and is able to see that line of sight to a domain controller. We would then be able to get the TGT and TGS. The SaaS app would also have to be bound to the domain, things like that. So this is not really going to work for SaaS app. So we need to move to something different. So we're going to start moving our applications here to modern authentication. So things like SAML, or even better, like OpenID Connect. And the big difference we get here is this is browser-based. So we have those web sign-in flows. You may have seen it in your browser here, or maybe like the mini browser and something like Outlook. And this gives us a huge advantage of Defender. So we have much more things now we can require to get access to resources. Now we can say things like, in order to get access to this resource, you have to do MFA. So Authenticator app, SMS code, we can start to do things like require passwordless credentials, things like FIDO. We can challenge for smart cards. We can also start proxying that traffic through something like a CASB solution. So when the user starts to download their entire customer list at one in the morning, we can stop that. So it gives us many more things from a protective control, but it also gives us many more things from a detective control because now we have more information. So to give you an example of this, let's say in your environment, you're mostly Windows 10. Maybe you have some Windows 11, Mac, some Linux. And now you have somebody that logs in from a Windows 8. So that means one or two things is happening. Either that is deep, deep in a drawer somewhere that they pulled out, and we have a lot of work to do to get that up to date, or that's somebody trying to masquerade as something else to avoid security control. So that is super, super helpful. So as defenders, we want to start moving our applications to modern authentication as much as we can. Okay, so let's talk about modern authentication. I'm going to go a little quick through this, but that's okay because actually last year at DEF CON Blue Team Village, we did an entire 15-minute talk on modern authentication with a security admin. If you go to aka.ms slash btv, modern auth, we cover how does SAML work, how does OAuth and OpenID Connect work, how those flows, why your users probably don't want to do RLPC flows, why you want your developers to be using, rolling their own libraries, a whole bunch of stuff like that. So that's all covered here. But from a modern auth perspective, we really want to have one goal, which is to prompt our user one time per device, really and really per password change unless something changes. And we're going to do that by using a few different types of tokens. Okay. The first type of token that we're going to use is called the primary refresh token. This acts as a token broker on Windows, MacOS, iOS, or Android. It's good for a rolling 14-day window. So as long as your user is continuing to use their device, like here, their Mac, once every 14 days, the token will continue to get refreshed and extended. And if they go on a long vacation, greater than 14 days, something I think that all us Blue Teamers deserve, then when they come back, you would probably see that they need to re-authenticate. Now, this PRT is going to work with two other types of tokens here, the refresh token and the access token. The refresh token ties a user to an application. So you're going to have a refresh token for Outlook. You're going to have a refresh token for OneDrive. And that refresh token is used to get access tokens. So if you attended our talk last year, this is that bearer token, which is kind of only referred to. And that means because whoever bears that token has access to that resource. So these tokens are short-lived. They're usually only good for an hour. This is kind of what Michael talked about from those certificates that we get on the SSH side. Same thing. And when those access tokens expire, the refresh token is used to get another access token. This is where conditional access is evaluated. If they're able to pass those conditional access policies, then we get an additional access token. And that primary refresh token acts as a token broker. So you'll get less prompts if we have a primary refresh token on the device. Okay, so let's talk about now, what do we need to do from a single sign-on perspective to get that enterprise SSO framework? I messed it up there. You know I'm talking about that last one, the very long one. So what do we need here? So the first thing we're going to need is, we're going to need an IDP that supports SAML or OpenID Connect. Azure AD is Microsoft's cloud IDP. We support both of those, but there's lots of other vendors and they should support those protocols too. We're going to need to have our apps that are integrated with that IDP. And we're also going to need to have the IDP vendor create that SSO extension plugin. So that's us. We've actually done that and we'll walk through how that works here in a second. And the other thing is you're going to need to have this deployed, via an MDM. And you're going to see why here in a minute. This is very, very powerful capability. So you're going to have to deploy this under an MDM. Okay, so let's talk about here how this actually works under the cover. So we're going to have a few things. We have our app that does modern authentication. So we'll just say Exchange Online. We're going to have an IDP that is going to issue tokens. This is going to be Azure AD. And then we're going to need to get these tokens from the IDP to that application. So we're going to do this using the SSO extension. This comes in the Microsoft company portal. You will have to have the. Company portal on the device. But your users will not have to interact with it or sign in with it or anything like that. If you do not want them to. We know this can be sometimes very sensitive in the Mac admins community about making them use this. You don't have to, but the company portal will need to be on the device. Okay, so once that's on the device, we can figure that via our MDM. We'll cover that here in a second. We now need to sign in and start getting some of these tokens. So we're going to sign in. We're either going to open an application that knows how to work with this. Something like Outlook. Maybe we'll open a browser. Or you can have your users. Go to the company portal. It doesn't really matter. And now we're going to prompt them for credentials because we're doing modern authentication. We can do many rich things like requiring passwordless authentication using authentic care app. We can do MFA with OTP. We can really do whatever we want because we have that browser based flow. Those credentials are going to get sent over to Azure AD. If everything looks good, we pass conditional access policies. Now we're going to get back that primary refresh token, which is going to stay on that device. And this is protected by the Mac key chain. This is how. If you're not familiar with Macs, this is how they protect a lot of their sensitive information. Nothing special there. And remember that this PRT is good for a 14 day rolling window. As long as the person is consistently using their Mac once every 14 days, they should not get forced to reauthenticate. They'll continue to be able to use that primary refresh token as it gets extended. All right. Now we got to go get an access token. So there's going to be two different ways that we can do this. First, if you have an application that's built using the MSA authentication libraries, this is the Microsoft authentication library. You heard Michael talk about this a little bit. But before with Azure command line interface, this is an open source library. We make it for things like dot net, Python, Java, Objective C, Swift, whatever you want. But most of the Microsoft apps are going to use this. And this knows how to talk to the token broker directly. So let's say here we have Outlook. It's going to reach out to the SSO extension to ask to get that access token. The refresh token is going to be used to Azure AD to ask for that access token for that resource. Conditional access here is going to be validated. Assuming we pass everything we need to do here. That access token is going to be sent back to the company portal and the company portal is then going to pass that back to the authenticator app and it's going to be used to get access to the resource. So now we'll get our mail in our Outlook profile all without having to do any additional sign in prompts because we're able to use that PRT with the SSO extension, which is bundled with the company portal. So that's how it works if you have an application that does MSAL. So again, this is going to be most of the Microsoft apps. You can also do a line of business app with those libraries. Works just the same. All right. So now let's look at what happens if we don't have that. We have an application that's not built on MSAL. This is where we're going to use the thing called a redirect flow. So the user is going to maybe use Safari. They're going to go to OWA in this case. So they access that and that's going to say, hey, I need to get you need to get an access token from Azure AD. It's going to tell you, go back to Azure AD, give me that access token. So we're going to redirect over to that. And this part here, the Mac OS network stack is going to intercept that request and redirect it to the SSO extension. So this is built into the OS. This is part of that platform that they made gets redirected there. And now we're going to use that primary refresh token. It's going to go to Azure AD. We're going to request that access token. We have to pass our conditional access policies. That's going to get returned to the SSO extension, which then gets returned back up the network stack back to the browser and off to the application here. So now we get access to OWA. So this was able to work. You didn't have to use the MSAL libraries, but beware here. This is a very, very powerful thing because the OS is intercepted. It's accepting that network traffic and sending it off somewhere. So if we misconfigure this, we can break SSO, but if something is malicious here, it's going to send those requests off to that. So we have to be very, very careful. So this is why this has to be deployed via an MDM. It's very, very powerful. So if Intune is your MDM, this is very straightforward. You can select from the SSO app extension type, Microsoft Azure AD. There's a few other things you configure if you want to. If you go to aka.ms slash Apple SSO dash Intune, it walks you through the process. But let's say you're not using Intune. Let's say you're using Jamf Pro as your MDM. There's a little more work we need to do. We actually have this documented for you as well. If you go to aka.ms slash Apple SSO dash Jamf Pro, there's a sample plist file. We recommend you use that because we've seen customers sometimes fat finger this and it breaks their SSO. So just be careful. It's okay. Follow the recommendation here. Follow the configurations and you'll push those plist files to the client. And then you're able to get single sign on if Jamf Pro is your MDM. So now the last thing here to remember with this is that the company portal is going to be required on the device. But if you follow our recommendations and our configuration, the users will not have to open the company portal at all. I know this seems a little weird, but if you talk to some of your Mac admins, they sometimes can be very, very sensitive about this. So the Mac, the company portal needs to be there, but they actually don't need to log in or interact with it. And remember here that the single sign on aspect of this and the device compliance are two separate things in the MDM. You do not have to do both. You can do one or the other, but we highly, highly recommend that you do both. And just a tip from us when working with customers, if you need to troubleshoot this, using Safari in private mode works really, really well. So go ahead and use that. You can see we're signing in with Safari in private mode. You can test whatever you need to test there. All right. So what are some things that we need to be aware of before we deploy this? So first of all, the SSO extension is still in public preview, but it is fully supported. It's supported just like any other feature in Azure AD that's in public preview. But I know that we have some customers that only will use functionalities if it's in general availability, but this is still in public preview. We have a little things we're trying to button up to get this to GA. Hopefully that comes here soon. But as of the day of this recording, it's still in public preview. In order for this to work, the applications either need to be built using MSAL, or they need to use Apple System Frameworks. If you do not, you will not get single sign on for your applications because the SSO extension is unaware of them and the applications are unaware of it. So you're not going to be able to install it on your device. going to get single sign-on for this. The two primary examples we see with customers are Chrome and Firefox because they implement their own network stack. They're not using the system network stack in macOS. So as defenders, we should be asking our app vendors to support these SSO extensions. And we see this come up in the Mac admin Slack a few times where some application doesn't work with this. You should go talk to your vendors, ask them to support this. They should want to support this. It gives it a better end user experience. And Apple is only making SSO extension more important as time goes on. So we really want to ask them to support this. All right. Another thing I want to touch on really quickly from a Mac admin perspective is, and as well as iOS's perspective, is we want users to use the Authenticator app wherever possible. As I just talked about how the company portal works, it acts as that primary refresh token on the device, that token broker. The Authenticator app works the exact same way for iOS and iPadOS devices, as well as Android devices. So you want to make sure we get this installed. You will get less prompts just by having the app installed. So if you're using the Mac admin Slack a few times, you'll get less the authenticator app on the device if you rolled out mfa in your environment maybe many years ago and we weren't so um adamant about what type of mfa factor they could use so we let people use phone call or text message that's fine but we wanted them to use the authenticator app if you go to aka.ms nudge after the user completes sign into azure id they will have to go through the authenticator app registration process another thing i want to make sure all us defenders know about is we want to move from the push notification aspect of authenticator app so that's what you see there in the upper left so you get the mfa request you get the approved deny to move to the number match experience so there you see in the lower right the number pops up and you actually have to type the number in to be able to approve that mfa request this helps tremendously with the mfa hammering technique i talked about a little bit earlier also number matches what's going to be needed to use passwordless so let's talk about passwordless really really quick passwordless gives you the best user experience combined with the best security and every time we talk to customers about using power source authentication somebody will always say look we can't use it because i have a mainframe still i have these ldap applications still blah blah blah we totally understand you're not expecting you to get rid of your passwords overnight that's too that's too big of a mountain to climb but we want you to start looking to use passwords less so any of the applications that you have integrated with azure id you can use passwordless credentials with and actually michael and i have been completely passwordless on the corporate mac that we have from msit and we're accessing all those corporate resources completely passwordless since november 2020 right around thanksgiving msit admins went in they scrambled our passwords and we've been passwordless ever since because most of the resources that we access can they use kerberos or they're mostly going to be modern authentication applications so we can do passwordless there so you may you may have some applications that are on mainframes and things like that that you can't use passwords for but you may have a substantial part of your environment that can use passwords today so don't discount this start to move your users to passwords so what are the methods you can use the authentic here i put number match is great you can also use fido two keys when you see there you click sign in with windows hello or security keys you'll get prompted to insert that fido key today this works with edge in chrome you have to do that proof of presence or maybe there's like a biometric there it kind of depends on the key but this works like i said for edge and chrome safari will be coming in the future and then finally another thing i talked about a little bit at the beginning is pass keys this is a really a cool thing it's an emerging standard supported by apple microsoft and google the passes are going to be synced across the same device so keep an eye on this this is a really cool thing that is starting to emerge and with that i think michael is going to take over here for the last part around the linux client okay so we've talked about mac clients but we should also talk about what capabilities exist for linux clients so i want to go back and talk about how we do device os identification in those conditional access policies so there's really two ways if the device is an intune management we have a pretty strong way of determining the device os because it's had to provide us with a certificate and the mdm has made us aware that this is a windows device or this is a mac device but in other cases we have to fall back to things like user agent strings to determine what os we're on so if i'm using a bsd device for example it's going to show up as bsd or if i'm an attacker who wants to spoof my user agent string i can provide something like i'm not an attacker i promise so we can really send anything in the user agent string that i want this is a modifiable field obviously so we need to treat it like it's unverified so if i'm using device types that azure ad doesn't explicitly support i need to make sure that i account for that in the way i configure my conditional access policies so we don't have support for bsd for example so i may want to catch those devices and stop them from being used to access my environment or stop attackers who are doing things like forging their user agent strings like mark's example of someone looking like a windows 8.1 device earlier in the presentation so if you're using device platform in your conditional access policies if you followed our best practices in the past your policies would probably look something like this you would have at least one policy that's set to include any device platform which is basically a wild card and then on that same policy you would exclude the device platforms that you explicitly support and this would typically be android ios windows and mac os and then you would block that access the end result of this policy is that i can have other policies that apply to android ios windows or mac because i have other policies that may do things like require device compliance for those but if a user shows up with some other user agent string like that bsd device that windows 8.1 device that attacker with the attacker device i can block that because they'll get caught by the wild card so this has always been a best practice and historically this is also applied to linux it meant that linux devices got blocked in our environments so a few months ago we actually released support for linux as a device platform in conditional access as well so this is still using user agent string typically so we can start to filter out those linux devices it's not as high of a security bar as saying requiring device compliance on linux but it does give us some flexibility to provide slightly better end user experiences and some level of security for our linux users you can see here in the screenshot it's got a preview tag on it since we made this deck it's actually gone to ga otherwise given you the the fact that you can't access a developer function on infor what is the binary domain oré–“ simf Producer so some common things that we've seen customers implement using this functionality is requiring MFA on linux devices sometimes requiring MFA and specific locations for the linux devices so i might say my windows or max can get to resources from anywhere but if my users on Linux, I want them to have to do an MFA, and I want them to have to come from a corporate network. I might also apply risk-based policies to my users on Linux devices, and it might apply things like sign-in frequency controls to require users to re-authenticate periodically. As we discussed, prompting is not our favorite, but in some cases customers have chosen to do this. However, naturally customers ask me, this all sounds good, but when am I going to get device compliance support for Linux? So give me a couple slides, and we'll talk about that one as well. So just to reiterate, this is a really common policy set and something that we might recommend for those environments where you do need to support Linux today. So you might have a policy that explicitly includes Windows, macOS, iOS, and Android, and then requires MFA and device compliance. This is a very strong zero-trust oriented policy for your supported platform. Then you might have another policy that specifically targets Linux that requires MFA and a trusted location. So we can still provide some access for our developers who might be on Linux devices, but we have some compensating security controls since we don't have device compliance. And then finally, you need to have that catch-all policy that grabs everything else. So the condition would be any device other than our supported OSs, and then the control would be to block access. But like I said, we really want to start moving towards the device compliance for everything. And so this is something that we're adding. As Mark mentioned earlier, there's really two critical capabilities that we want on NEOs. It's not just the device compliance piece. We want SSO and device compliance. So we're working on building this for both, for Linux in addition to all the other platforms. So for the SSO piece, just like we talked about earlier, we want to have PRTs on Linux that can be used by a broker. So just like on Mac, where Intune Company Portal is the broker, we're building an company portal app for Linux that will be able to have a PRT and act as a broker for other applications that want to get access tokens. This will also make it so that we can support device-based conditional access controls on Linux. So you can start to move eventually from those location-based or risk-based controls for Linux to the device-centric zero trust policies that we're using on other OSs. So this functionality is in preview today. So we're running a private preview. We'll have more to announce about public preview and GA dates in the future. But just to give you an idea about what the scope of the preview is currently, we're working on securing access to web applications primarily. And this is going to be done via Microsoft Edge. And I'll talk about why that is in a second. So basically, this will give you access in your Edge browser to M365 applications, SaaS apps, LOB apps, other applications you integrate with your Azure AD environment. As of today, we're going to be working on a web application. Today, we're supporting Ubuntu 2004. We are working on support for the next LTS release. We're supporting compliance policies. So from an Intune perspective, we're gonna support applying compliance policies to the Linux devices. There's other types of policy objects in Intune that we're not going to support out of the gate. And then once those devices are enrolled into Intune, we will have things like the compliance state of the device, some very lightweight device inventory, and then information about the enrollment success. In the future, we are looking to add additional capabilities like securing access to Azure resources and tools like AZCLI, the Git CLI for Azure DevOps, and we're gonna look at adding support for additional distributions. So let's talk about how this is gonna work. This is gonna be very similar to the Mac example. So just like before, we have the Intune Company Portal app that's installed on the device. This comes along with the Microsoft authentication library. So if you haven't figured it out yet, MSAL is really, really important for a lot of the things that we're doing. So we're going to go ahead and install the company portal and then we're going to build a broker. So similar to our Android broker, it's based on Java. So this is a dependency for the Intune Company Portal. When you install the company portal from our package repo as a dev or in the future, maybe an RPM, it's going to come bundled along with the Java broker. Technically separate components, but they're dependencies for each other. Then when I want to initiate enrollment, my user opens the company portal app or is directed to the company portal app by a conditional access policy blocking their access. And the MSAL module is used to present the user with a sign-in screen. So they initiate their sign-in and just like before, they can do a passwordless sign-in or username and password plus MFA. And then MSAL takes those credentials and passes them through the Java broker to Azure AD, where we do a device registration. So we get a device object in Azure AD, and then we can also get a PRT. So we get a PRT and a device certificate in return. At this point, our broker is in a provision state. So now we can start to plug applications into it. The Intune company portal will use tokens acquired by the Java broker to go enroll into Intune at this point. Intune will return the compliance policy. Remember compliance policy is where we're starting. So we're not doing configuration or anything yet. The compliance policy can be for things like requiring password complexity for the account sign-in on the device. We can also require disk encryption. There's some nuances around disk encryption on Linux. It's a little bit trickier than some other OSs. We are looking at future capabilities, like maybe requiring TPMs or other compliance controls and some customization. But today, most customers are using password complexity and disk encryption requirements. The Intune company portal returns compliance information about whether or not the device is in a compliant or non-compliant state. And then Intune provides that to Azure AD. And that's what we use in conditional access policy evaluation. Next, we might want to actually sign into something. So we open our Edge browser and again, MSAL is present. And this is why Edge is the first application that's able to plug into the Java broker is because MSAL is a hard requirement to interface with the Java broker. Anything that's going to interface with the Java broker must use the MSAL library. So on macOS where Apple gave us an OS level redirection capability, we don't have something similar on Linux. So on Linux, any app that we want to participate in SSO, and use that PRT and pass those conditional access policies needs to have MSAL built into it. So we've worked with the Edge team to do this on the Edge for Linux build. So just like before, we have compliance information flowing through to Azure AD. My user might go to an application, request a token, and we go to evaluate conditional access. Just like before, we need to make sure that the user's in a compliant state, that they've done their MFA, whatever controls are in place. If everything's good, the token is returned to the Java broker. The Java broker returns the token to the application, and the application uses the token to access the app. So I can open Edge on my device. I can use the PRT to get single sign-on into resources, and I can satisfy device-based conditional access policies. So this is a new capability that's coming in the future. So something to look forward to. And just remember, like we said earlier, the two things we want on any device are SSO and device compliance, and we're looking to deliver that here. So let's recap and talk about what you can go do in your own environment. So the first thing is understand issues with prompting. Talk to your identity and access management team if you're not on that team. Understand what your conditional access policies look like. Use those workbooks that we built so that you can evaluate, do I have a prompting problem? Who's it occurring with? What type of devices is it occurring with? And what applications is it occurring with? Next, optimize your Linux server access so that they can be treated like any other resource subject to these conditional access zero trust policies. So start playing around and deploying the Linux server sign-in via SSH capability protected by CA. Integrate your client OSs with the cloud to improve user experience and security. On macOS, this means get your devices into MDM management. That can be via Intune or another third-party MDM so that you can use the device state in conditional access. And then deploy SSO. So we definitely want customers to be deploying the Azure AD SSO extension. And if you still have those on-prem Kerberos apps, think about modernizing with Apple's Kerberos SSO extension as well. Move away from that LDAP bind. And then finally, for your Linux clients, you can start formulating your conditional access policies now to give yourself some support for Linux. So today, like I laid out, you can use Linux as a device platform to provide some compensating controls for your Linux users. And in the future, start preparing for us to have MDM and SSO on Linux, just like we have on macOS. And with that, thank you. The slides will be available at aka.ms.aadbtb2022. And please let us know if you have any questions. Thank you.