Entra ID & AiTM Detection · T1098.005

Investigating Unauthorized MFA Registration & Security Info Changes in Entra Logs

Direct Answer (Key Forensic Takeaway)

Within minutes of stealing an AiTM session or compromised password, threat actors browse to My Sign-Ins (mysignins.microsoft.com) to add their own phone number or Authenticator app—emitting "User registered security info" or "Admin registered security info" in Entra Audit and Purview UAL. AuditVane rule AV-004 treats every security-info mutation as Critical.

Why This Artifact Matters in M365 Incident Response

A stolen browser session cookie eventually expires—so an attacker’s highest priority right after landing inside an employee’s Microsoft 365 account is converting fragile session access into durable persistence. Their favorite way to do that is registering a brand-new MFA device of their own.

Because Microsoft allows multiple simultaneous authentication methods per user (for instance, keeping the victim’s iPhone Authenticator intact while silently adding a second Android TOTP app or SMS number), victims often never realize an attacker owns a parallel MFA key into their account.

Every authentication method change emits events across both Entra Directory Audit Logs and Purview UAL (RecordType 8): `User registered security info`, `Admin registered security info`, `User deleted security info`, and `Update user` touching `StrongAuthenticationMethod`. Inspecting `targetResources` and `initiatedBy` reveals both the initiating IP and the exact method name (e.g., Authenticator App, Phone, FIDO2 passkey, or Software OATH).

Critically, unless your Conditional Access rules protect the "Register security information" User Action (requiring a compliant device, trusted corporate location, or Temporary Access Pass), any attacker holding a stolen AiTM session cookie can enroll a new MFA method straight from a proxy IP without triggering any extra re-authentication!

1. RAW TELEMETRY Entra ID & AiTM Detection T1098.005 2. CLIENT-SIDE PARSE AuditVane Engine unauthorized MFA registration Entr 0 Bytes Uploaded 3. SOC OUTCOME Scoped Containment IOCs · CSV · KQL
Local browser DFIR workflow for unauthorized MFA registration Entra audit log (T1098.005)
AdSense-Ready In-Article Placement

Real-World Incident Walkthrough

Following an Evilginx login in Frankfurt (`194.26.135.210`), an attacker opens `My Sign-Ins` at 14:12:50 UTC and enrolls "Authenticator App - Pixel 8".

Four hours later, Helpdesk resets the employee’s password—only for the attacker to re-enter cleanly using a leaked backup credential or password-reset loop because they still approve MFA via Pixel 8. Running the Entra Audit JSON through AuditVane fires `AV-004` immediately, pinpointing the exact rogue device for removal.

Forensic Telemetry Fields & High-Signal Indicators

Telemetry Field / Pattern Meaning in M365 / Entra High-Signal Threat Indicator
User registered security infoSelf-service MFA device or phone enrolledCritical if IP mismatches corporate/home baseline
Admin registered security infoAdmin/Helpdesk registered MFA for userVerify ticket or suspect admin account compromise
User deleted security infoExisting MFA method removedAttackers sometimes wipe victim devices to lock them out
StrongAuthenticationMethodLegacy/directory MFA array updatedInspect ModifiedProperties NewValue/OldValue
targetResources[].displayNameName/type of MFA device addedIdentifies exact phone or Authenticator to purge
initiatedBy.user.ipAddressIP address executing security info editCompare against known employee workstation IP

Self-Service vs. Admin Security Info Registration Risks

Audit EventWho Executed ItContainment & Hardening Check
User registered security infoCompromised user session at My Sign-InsProtect "Register security info" User Action with CA Compliant Device/TAP
Admin registered security infoAuthentication Admin / Helpdesk / Global AdminVerify helpdesk verification protocol & check admin account for takeover
User deleted security infoUser session or admin removing old deviceCheck if attacker locked out victim or replaced phone number

Rogue MFA Registration in Entra Directory Audit Logs

{
  "id": "audit-9004",
  "activityDateTime": "2026-12-02T14:12:50Z",
  "activityDisplayName": "User registered security info",
  "category": "UserManagement",
  "result": "success",
  "initiatedBy": { "user": { "userPrincipalName": "hr.lead@contoso-demo.invalid", "ipAddress": "194.26.135.210" } },
  "targetResources": [
    { "displayName": "Authenticator App - Pixel 8", "userPrincipalName": "hr.lead@contoso-demo.invalid" }
  ]
}

Look at initiatedBy.user.ipAddress (194.26.135.210 — matching the earlier Frankfurt AiTM login) and targetResources[0].displayName ("Authenticator App - Pixel 8")—giving exact evidence of which method must be deleted.

Audit & Delete Unauthorized Authentication Methods via Microsoft Graph

Connect-MgGraph -Scopes "UserAuthenticationMethod.ReadWrite.All"
$upn = "hr.lead@domain.com"
Get-MgUserAuthenticationMethod -UserId $upn | Format-Table Id, @{N="MethodType";E={$_.AdditionalProperties["@odata.type"]}}, @{N="Details";E={$_.AdditionalProperties["displayName"] + $_.AdditionalProperties["phoneNumber"]}}

# Delete confirmed rogue Microsoft Authenticator or Phone method:
Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $upn -MicrosoftAuthenticatorAuthenticationMethodId "<ID>"
# Remove-MgUserAuthenticationPhoneMethod -UserId $upn -PhoneAuthenticationMethodId "<ID>"

Sample Graph Authentication Methods Audit

Id                                   MethodType                                              Details
--                                   ----------                                              -------
11aa22bb-33cc-44dd-55ee-667788990011 #microsoft.graph.microsoftAuthenticatorAuthenticationMethod iPhone 15 (Legitimate)
99ff88ee-77dd-66cc-55bb-4433221100aa #microsoft.graph.microsoftAuthenticatorAuthenticationMethod Pixel 8 (ROGUE -> DELETE)

Step-by-Step Triage, Containment & Verification

  1. Drop Entra Directory Audit JSON or Purview UAL CSV into AuditVane and inspect all AV-004 Critical alerts.
  2. Run `Get-MgUserAuthenticationMethod` on the affected user to enumerate EVERY registered Authenticator app, phone number, email, software OATH token, and FIDO2 key.
  3. Verify every single method directly with the employee over a trusted phone call—never via email.
  4. Delete all unrecognized methods immediately using the matching `Remove-MgUserAuthentication*Method` cmdlet.
  5. Reset password, run `Revoke-MgUserSignInSession`, and inspect `My Sign-Ins` activity for OAuth consents.
  6. Create a Conditional Access policy targeting the "Register security information" User Action requiring either an Intune-compliant device, trusted office IP, or Temporary Access Pass (TAP).

How to Verify Containment Completed Cleanly

  • Every remaining method in Get-MgUserAuthenticationMethod confirmed verbally by the legitimate employee.
  • Conditional Access policy locking down security info registration verified active.
  • Zero further security-info edits observed in post-containment logs.

Analyst Blind Spots, Licensing Quirks & False Positives

Don’t forget Software OATH (`#microsoft.graph.softwareOathAuthenticationMethod`) and Email OTP (`emailAuthenticationMethod`) when auditing `Get-MgUserAuthenticationMethod`! Attackers sometimes add a standard TOTP authenticator seed (`softwareOath`) rather than the official Microsoft Authenticator app.

If an attacker also enabled SSPR recovery email or phone fields, check `Get-MgUserAuthenticationEmailMethod` too.

Frequently Asked Questions

Can an attacker add a new MFA device using only a stolen AiTM session cookie?

Yes, unless Conditional Access explicitly secures the "Register security information" User Action with a compliant device, trusted location, or phishing-resistant step-up.

Does Purview UAL capture MFA registrations as well as Entra Audit logs?

Yes! RecordType 8 (AzureActiveDirectory) records security-info registrations in Purview UAL for up to 180 days.

Why does AuditVane flag User deleted security info too?

Because attackers occasionally delete an employee’s legitimate phone/Authenticator to prevent recovery alerts or hijack the account.

How do I stop users from registering MFA from untrusted foreign IPs?

Create a Conditional Access policy targeting User Actions -> Register security information and require a trusted IP location or Intune-compliant device (issuing TAPs for remote onboarding).

Related Forensics Guides