Query Details

Overview Of All MFA Methods In Use

Query

# KQL query to get an overview of all MFA methods in use

```kusto
// Bar chart showing all MFA types used
SigninLogs
| where AuthenticationRequirement == "multiFactorAuthentication"
| where ResultType == 0
| project AuthenticationDetails
| extend ['MFA Method'] = tostring(parse_json(AuthenticationDetails)[1].authenticationMethod)
| summarize Count=count() by ['MFA Method']
| where ['MFA Method'] != "Previously satisfied" and isnotempty(['MFA Method'])
| sort by Count desc
| render barchart with (title="Types of MFA Methods used")
```

Explanation

This KQL query is designed to provide a visual overview of the different Multi-Factor Authentication (MFA) methods being used successfully within an organization. Here's a simple breakdown of what the query does:

  1. Data Source: It starts by looking at the SigninLogs, which contain records of sign-in attempts.

  2. Filter for MFA: It filters these logs to only include entries where multi-factor authentication was required (AuthenticationRequirement == "multiFactorAuthentication") and was successful (ResultType == 0).

  3. Extract MFA Method: From these filtered logs, it extracts the specific MFA method used by parsing the AuthenticationDetails field.

  4. Count MFA Methods: It counts how many times each MFA method was used, excluding any entries where the method is "Previously satisfied" or empty.

  5. Sort and Visualize: The results are sorted in descending order based on the count, and then displayed as a bar chart titled "Types of MFA Methods used".

In summary, this query generates a bar chart that shows the frequency of different MFA methods used successfully, helping to understand which methods are most commonly employed.

Details

Nathan Hutchinson profile picture

Nathan Hutchinson

Released: April 10, 2026

Tables

SigninLogs

Keywords

SigninLogsAuthenticationDetailsMFAMethodCount

Operators

//|where==projectextend=tostring()parse_json()[]summarizeCount=count()by!=andisnotempty()sort bydescrenderwith(title=)

Actions