The journey towards passwordless authentication is one of the most significant security upgrades an organisation can make. Methods like FIDO2 security keys, the Microsoft Authenticator app and Windows Hello for Business are not just about improving the user’s sign-in experience, they fundamentally mitigate entire categories of attacks that have been the major cause for concern. For example, password spray attacks essentially become irrelevant if there are no passwords to spray, or if the password is unknown or so abnormally complex that it is never used.
Microsoft’s digital defence report in 2024 states that, based on Microsoft Entra data, more than 99% of identity attacks are password-based. It also states how easy (or hard) it is to carry out different types of social engineering attacks, where the primary objective is to obtain the user’s password, or sometimes, bypass traditional MFA mechanisms. The most actionable step to mitigate these types of attacks is for users to adopt passwordless technologies, where these attacks become redundant, forcing the need for more complex and less likely alternative attack methods.
While adopting passwordless authentication in Microsoft Entra generally means a lower risk level for users (specifically so in Microsoft Entra ID Protection), most organisation fail to take the step to improve their Conditional Access policies structure to accommodate for this new passwordless world.
Page Contents
Targeting passwordless users to Conditional Access policies
It would be a mistake to think that Conditional Access policies are just “set and forget”, as your environment adapts to adopts stronger security technologies (like passwordless), it is even more important to ensure your Conditional Access policies can better handle the nuanced risk levels. While password credentials themselves are very difficult to compromise, the context of the user should still be accounted for. Consider a scenario where a legitimate user’s access token is stolen by malware on their device. The initial passwordless sign-in was secure, but the resulting token can be used maliciously.
The step to building a more resilient Conditional Access framework for your passwordless users is understanding how we can efficiently target them to said Conditional Access policies. Unfortunately, Microsoft do not provide any out of the box capability to add users with specific authentication methods to a group, so here is an example PowerShell script that can be users to add users who are “Passwordless capable” to a group. The expectation is that this type of script would be run in Azure Automation on a frequent schedule.
Connect-MgGraph -scopes "User.Read.All", "group.readwrite.all", "UserAuthenticationMethod.Read.All"
# Get all users and their user mfa registration details
$userRegistrations = Invoke-MgGraphRequest -Uri "Beta/reports/authenticationMethods/userRegistrationDetails?`$top=20000&`$orderby=userPrincipalName" -OutputType PSObject | Select -Expand Value
# Get all passwordless capable users
$totalPasswordlessUsers = $userRegistrations | Where-Object { $_.isPasswordlessCapable -eq $true }
# Get passwordless users group
$groupName = "Passwordless Capable Users"
$group = Invoke-MgGraphRequest -Uri "Beta/groups?`$filter=displayName eq '$groupName'" -OutputType PSObject | Select -Expand Value
# Add users to the group
foreach ($user in $totalPasswordlessUsers) {
$groupMember = @{
"@odata.id" = "https://graph.microsoft.com/beta/users/$($user.id)"
}
Invoke-MgGraphRequest -Uri "Beta/groups/$($group.id)/members/`$ref" -Method POST -Body ($groupMember | ConvertTo-Json)
} Note, there are more considerations to this script, for example, if some users no longer have passwordless methods registered they may be blocked from accessing resources.
Now the script is regularly updating our passwordless users group, you can use this group target in your Conditional Access policies like so:
Self remediation of sign-in risk for passwordless users
Sign-in risk levels are measured by Microsoft Entra as the likely hood that a users authentication attempt is legitimate or illegitimate. The risk level is a combination of all the active risk detections, determining the probability malicious authentication attempts.
As sign-in risk is calculated from events relating to the login attempt, such as anonymous IP addresses, anomalous token usage or impossible travel, it is recommended for users to self remediate by performing MFA.
For passwordless users, you should create a Conditional Access policy that targets high/medium sign-in risk and requires an authentication strength for passwordless MFA and sign-in frequency every time.
If you don’t explicitly force high-risk passwordless users to use their passwordless authentication method to remediate the high-risk, there is a chance the users less secure authentication methods could be used to remediate the risk level.
Blocking user risk for passwordless users
Unlike sign-in risk, the user risk level indicates the probability that the users account has been compromised, which provides a clearer representation of overall account security.
The problem in the passwordless scenario, is that a secure password change is the only way to self-remediate user risk regardless of the risk level. However, passwordless users cannot remediate the risk themselves if they do not know or cannot enter their password due to authentication strength policies.
Fortunately, the nature of adopting passwordless naturally minimises the possibility of the user risk level being raised, so in the event of high user risk, it is likely that the account is actually compromised and access must be blocked to be manually investigated resolved.
To achieve this, you should create a Conditional Access policy for your passwordless that targets all resources and high user risk, and enforces a Block access control.
Depending on the impact to your users, you could extend the user risk block control to both high and medium risk users, but be cautious of the fact that every block will need to me manually remediated by the helpdesk which could be strain on both IT resources and business operations.
Summary
So, what’s the bottom line? While transitioning your organisation to passwordless in Microsoft Entra eradicates certain types of attacks, your work isn’t finished. To truly harden your environment, you must evolve your Conditional Access policies to match, applying targeted controls for your now more secure user base. In this article, I’ve shown you exactly how to target these users and build specific policies for both sign-in and user risk, ensuring your security framework is as modern as your authentication methods.


Quite interesting approach, but it targets more users then needed.
If they are capable for password less that doesn’t mean, that they are using this method, right?
This could cause blockings and extra MFA requests for users as I understand.
Maybe it is better to use Token Protection in Microsoft Entra Conditional Access ?
Well the point is that it will ask for an extra prompt, due to the high risk. The goal is to remediate the risk level.