O365 - Expand Detection of New MFA Devices#3868
Merged
patel-bhavin merged 3 commits intosplunk:developfrom Jan 20, 2026
Merged
Conversation
nasbench
approved these changes
Jan 19, 2026
Contributor
nasbench
left a comment
There was a problem hiding this comment.
Removed the quotes so that we do not escape strings and make the search unreadable.
Other than that, this LGTM
patel-bhavin
approved these changes
Jan 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
The current
O365 New MFA Method Registereddetection only triggers on changes containingStrongAuthenticationMethod. I noticed the registration of a new mobile authenticator generated an event containingStrongAuthenticationPhoneAppDetailinstead.The updated detection looks for both change type, additionally the regular expressions for detecting the count of registered authenticators was expanded for mobile authenticators.
Example Event
Note that this was manually redacted and identifiers were exchanged for random ones.
{ "CreationTime": "2026-01-16T12:00:00", "Id": "861d8ef8-c283-418c-9e55-4c111c3599a0", "Operation": "Update user.", "OrganizationId": "9a02d81c-f0e0-4598-be8a-56895708611d", "RecordType": 8, "ResultStatus": "Success", "UserKey": "Not Available", "UserType": 4, "Version": 1, "Workload": "AzureActiveDirectory", "ObjectId": "John.Doe@example.org", "UserId": "ServicePrincipal_bf3dc3a7-50d5-4a75-a5a1-3eaecb50617d", "AzureActiveDirectoryEventType": 1, "ExtendedProperties": [ { "Name": "additionalDetails", "Value": "{\"UserType\":\"Member\"}" }, { "Name": "extendedAuditEventCategory", "Value": "User" } ], "ModifiedProperties": [ { "Name": "StrongAuthenticationPhoneAppDetail", "NewValue": "[\r\n {\r\n \"DeviceName\": \"iPhone\",\r\n \"DeviceToken\": \"apns2-bb8249525d3ae2d290d698c762fc9a680e06bc29f3c745da8b1cd85d4503c946\",\r\n \"DeviceTag\": \"SoftwareTokenActivated\",\r\n \"PhoneAppVersion\": \"6.8.40\",\r\n \"OathTokenTimeDrift\": 0,\r\n \"DeviceId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"Id\": \"b8b75645-bd44-4993-a950-e6dc61b21a1b\",\r\n \"TimeInterval\": 0,\r\n \"AuthenticationType\": 3,\r\n \"NotificationType\": 2,\r\n \"LastAuthenticatedTimestamp\": \"2026-01-16T12:00:00.0000000Z\",\r\n \"AuthenticatorFlavor\": \"Authenticator\",\r\n \"HashFunction\": null,\r\n \"TenantDeviceId\": null,\r\n \"SecuredPartitionId\": 00000,\r\n \"SecuredKeyId\": 00000\r\n },\r\n {\r\n \"DeviceName\": \"iPhone 13\",\r\n \"DeviceToken\": \"apns2-ea983ac318a6a4c7a8f2284acca702d505edc698a1b5e4ac9d93e9de85465820\",\r\n \"DeviceTag\": \"SoftwareTokenActivated\",\r\n \"PhoneAppVersion\": \"6.2105.3263\",\r\n \"OathTokenTimeDrift\": 0,\r\n \"DeviceId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"Id\": \"1ce963c8-69ce-4306-aece-a207c855d240\",\r\n \"TimeInterval\": 0,\r\n \"AuthenticationType\": 3,\r\n \"NotificationType\": 4,\r\n \"LastAuthenticatedTimestamp\": \"2026-01-16T12:00:00.0000000Z\",\r\n \"AuthenticatorFlavor\": null,\r\n \"HashFunction\": null,\r\n \"TenantDeviceId\": null,\r\n \"SecuredPartitionId\": 00000,\r\n \"SecuredKeyId\": 00000\r\n },\r\n {\r\n \"DeviceName\": \"iPhone 16 Pro\",\r\n \"DeviceToken\": \"apns2-4c852672f12869d906f1bbeee155e5e0bec57fdfa7b3e6200c4f3303f9b03691\",\r\n \"DeviceTag\": \"SoftwareTokenActivated\",\r\n \"PhoneAppVersion\": \"6.8.40\",\r\n \"OathTokenTimeDrift\": 0,\r\n \"DeviceId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"Id\": \"42442de4-aab0-415e-9821-dccb05860308\",\r\n \"TimeInterval\": 0,\r\n \"AuthenticationType\": 3,\r\n \"NotificationType\": 2,\r\n \"LastAuthenticatedTimestamp\": \"2026-01-16T12:00:00.000000Z\",\r\n \"AuthenticatorFlavor\": \"Authenticator\",\r\n \"HashFunction\": null,\r\n \"TenantDeviceId\": null,\r\n \"SecuredPartitionId\": 00000,\r\n \"SecuredKeyId\": 0\r\n }\r\n]", "OldValue": "[\r\n {\r\n \"DeviceName\": \"iPhone\",\r\n \"DeviceToken\": \"apns2-bb8249525d3ae2d290d698c762fc9a680e06bc29f3c745da8b1cd85d4503c946\",\r\n \"DeviceTag\": \"SoftwareTokenActivated\",\r\n \"PhoneAppVersion\": \"6.8.40\",\r\n \"OathTokenTimeDrift\": 0,\r\n \"DeviceId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"Id\": \"b8b75645-bd44-4993-a950-e6dc61b21a1b\",\r\n \"TimeInterval\": 0,\r\n \"AuthenticationType\": 3,\r\n \"NotificationType\": 2,\r\n \"LastAuthenticatedTimestamp\": \"2026-01-16T12:00:00.0000000Z\",\r\n \"AuthenticatorFlavor\": \"Authenticator\",\r\n \"HashFunction\": null,\r\n \"TenantDeviceId\": null,\r\n \"SecuredPartitionId\": 00000,\r\n \"SecuredKeyId\": 00000\r\n },\r\n {\r\n \"DeviceName\": \"iPhone 13\",\r\n \"DeviceToken\": \"apns2-ea983ac318a6a4c7a8f2284acca702d505edc698a1b5e4ac9d93e9de85465820\",\r\n \"DeviceTag\": \"SoftwareTokenActivated\",\r\n \"PhoneAppVersion\": \"6.2105.3263\",\r\n \"OathTokenTimeDrift\": 0,\r\n \"DeviceId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"Id\": \"1ce963c8-69ce-4306-aece-a207c855d240\",\r\n \"TimeInterval\": 0,\r\n \"AuthenticationType\": 3,\r\n \"NotificationType\": 4,\r\n \"LastAuthenticatedTimestamp\": \"2026-01-16T12:00:00.0000000Z\",\r\n \"AuthenticatorFlavor\": null,\r\n \"HashFunction\": null,\r\n \"TenantDeviceId\": null,\r\n \"SecuredPartitionId\": 00000,\r\n \"SecuredKeyId\": 00000\r\n }\r\n]" }, { "Name": "Included Updated Properties", "NewValue": "StrongAuthenticationPhoneAppDetail", "OldValue": "" }, { "Name": "TargetId.UserType", "NewValue": "Member", "OldValue": "" } ], "Actor": [ { "ID": "Azure MFA StrongAuthenticationService", "Type": 1 }, { "ID": "b4dfc487-a747-4a11-951c-5565c565b996", "Type": 2 }, { "ID": "ServicePrincipal_bf3dc3a7-50d5-4a75-a5a1-3eaecb50617d", "Type": 2 }, { "ID": "bf3dc3a7-50d5-4a75-a5a1-3eaecb50617d", "Type": 2 }, { "ID": "ServicePrincipal", "Type": 2 } ], "ActorContextId": "63e2c7df-29e8-4cd7-9b0b-98f565381849", "InterSystemsId": "ca89301a-6906-458d-aa70-baaa1d9cc906", "IntraSystemId": "cc7d00a1-5f22-4142-a158-0b2cf84176f4", "SupportTicketId": "", "Target": [ { "ID": "User_a58c7bc2-f79e-4f1e-bf0f-b764de3fbdfc", "Type": 2 }, { "ID": "a58c7bc2-f79e-4f1e-bf0f-b764de3fbdfc", "Type": 2 }, { "ID": "User", "Type": 2 }, { "ID": "John.Doe@example.org", "Type": 5 }, { "ID": "5F53182DF476D92C", "Type": 3 } ], "TargetContextId": "8a4f50fa-173c-46ab-b4e6-f4731b8a26bb" }