How it works
A Microsoft Entra account can have many ways to prove who it is: a password, the Authenticator app, phone numbers, FIDO2 passkeys, Windows Hello keys, a Temporary Access Pass, and devices registered in its name. Each is stored separately. Anyone who can add one more that they control keeps access to the account after the original way in, usually a stolen password or session, is closed. This is credential theft turned into persistence.
Three variants share that idea:
- Attacker-registered MFA method. With a working session of the victim, the attacker opens the Security info page and adds an authenticator app or phone number. From then on MFA prompts go to the attacker. An administrator with an authentication administrator role can do the same to another account through the admin center or Microsoft Graph, with no session of the victim at all.
- Admin-issued Temporary Access Pass (TAP). A TAP is a time-limited passcode meant for onboarding and recovery. A sign-in with it satisfies MFA. By default it is valid for one hour, and the policy allows lifetimes up to 30 days; one-time use is not enforced by default. An attacker with the right role creates a pass for the target account, signs in as that user without the password, and registers a permanent method. The user's password and existing methods are not touched, so the user notices nothing.
- Rogue device registration. With the user's password or a token for the Device Registration Service, the attacker registers or joins a device of their own. The device receives a device certificate and, for its user, a Primary Refresh Token. Users can register devices themselves by default, up to 50 each. The device certificate proves the device, not the user and not an application: it is a third kind of certificate next to user certificate authentication and application credentials.
The variants chain. A TAP gives an MFA-satisfied session, that session registers a passkey or a device, and the device's refresh token carries on after the pass expires.
Prerequisites
Self-registration on a compromised account:
- The user's password or a live session (from phishing, device code phishing or a stolen cookie).
- If the account already has MFA, a session that satisfies it. If the account has no method yet, the password alone is enough unless a Conditional Access policy protects the "Register security information" user action.
Acting on another account:
- Authentication Administrator (non-administrator targets), Privileged Authentication Administrator or Global Administrator (any target), or an application with
UserAuthenticationMethod.ReadWrite.All. - For the TAP variant: Temporary Access Pass enabled for the target in the authentication methods policy.
Device registration:
- Device settings that allow the user to register or join devices, quota left, and no MFA requirement at that step that the attacker cannot meet.
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
1. Look at what the account already has
Connect-MgGraph -Scopes 'UserAuthenticationMethod.ReadWrite.All'
Get-MgUserAuthenticationMethod -UserId 'alice@corp.example.com' -All |
Select-Object Id, @{ n = 'Type'; e = { $_.AdditionalProperties.'@odata.type' } }
2. Register a method on a compromised account
With a browser session as the user, open https://mysignins.microsoft.com/security-info, choose "Add sign-in method" and enroll an authenticator app or phone the attacker holds. No tool is needed; the page is the same one the user would use.
3. Add a method as an administrator
A phone method is the fastest to add through Graph because it needs no enrollment on a device:
$params = @{ phoneNumber = '+1 5555550100'; phoneType = 'mobile' }
New-MgUserAuthenticationPhoneMethod -UserId 'alice@corp.example.com' -BodyParameter $params
4. Issue a Temporary Access Pass
$properties = @{ isUsableOnce = $false; lifetimeInMinutes = 480 }
$tap = New-MgUserAuthenticationTemporaryAccessPassMethod -UserId 'admin-bob@corp.example.com' -BodyParameter $properties
$tap.TemporaryAccessPass
The pass value is returned once. The attacker enters the target's user name at the sign-in page, types the pass when asked, and is signed in with MFA satisfied. From that session they add a passkey or authenticator under Security info, which stays after the pass expires.
5. Register a device and get a Primary Refresh Token
roadtx requests a token for the Device Registration Service, registers a device and stores its certificate and key:
# Token for the device registration service
roadtx gettokens -u alice@corp.example.com -p 'PASSWORD' -r urn:ms-drs:enterpriseregistration.windows.net
# Register (or join) a device; writes ws-alice.pem and ws-alice.key
roadtx device -a register -n WS-ALICE -c ws-alice.pem -k ws-alice.key
# Request a PRT for the user on that device
roadtx prt -u alice@corp.example.com -p 'PASSWORD' --key-pem ws-alice.key --cert-pem ws-alice.pem
# Use the PRT to get tokens like a signed-in Windows device would
roadtx prtauth -c msteams -r msgraph
roadtx prtenrich adds an MFA claim to the token by completing one MFA prompt, and roadtx prt -a renew extends it. See Primary Refresh Token theft for what a PRT allows.
Impact
The attacker has a sign-in method the organization itself issued. Sign-ins with it show MFA as satisfied, so risk-based reviews that look for single-factor sign-ins see nothing unusual. The access survives a password reset and, for a registered device, renews itself for as long as it is used.
When the target of a TAP or an admin-registered method is a privileged account, this is direct privilege escalation: an Authentication Administrator becomes whichever non-admin user they pick, and a Privileged Authentication Administrator becomes any user, including Global Administrators. A registered device additionally satisfies Conditional Access policies that ask only for a registered device.
OPSEC and artifacts
- Use the normal page. Self-registration through Security info looks like any user enrolling a new phone. It writes
User registered security infowith the method type, and the sign-in that preceded it carries the attacker's IP address. - Prefer a method that needs no call or text. An authenticator app or passkey generates no SMS that the user's old phone would receive. The registration event is the same.
- Keep the user's own methods. Adding a method without removing or changing the default one avoids failed prompts the user would notice. A later
User changed default security infoorUser deleted security infowould add more events. - Short TAP, long tail. A pass with a short lifetime disappears from the account's method list when it expires, so a current-state export does not show it. The audit log keeps
Admin registered security infowith the status reason "Admin registered temporary access pass method for user", the actor and the target. - Device names that fit. A device named like the organization's hardware blends in. The device object keeps its operating system, join type, registration time and registered owner,
Add registered owner to devicenames the user, and the sign-in to the Device Registration Service records whether MFA was used and from which address. - Unmanaged device. A rogue device never enrolls in device management or reports compliance. A registered device with no management record and no compliance state is a lasting tell.
- Graph calls by an application. Methods added by an application show the application as the actor, which stands out because onboarding is normally done by help desk staff.
Detection
- Method registrations. The MFA method registered rules read User registered security info, Admin registered security info and Admin updated security info. Volume is high in any tenant, so correlate: a registration soon after a risky or unfamiliar sign-in, a registration from an address the user never used, or the same phone number on several accounts.
- Temporary Access Pass. The Temporary Access Pass rule matches the status reason. Treat a pass for an account with a privileged role as high severity and require a ticket for each.
- Devices. The rogue device registration rules cover a device registered or joined without MFA and Add registered owner to device.
- Risk detection. ID Protection's suspicious credential addition detection.
// Authentication method changes with actor, target and reason
AuditLogs
| where OperationName in~ ("User registered security info", "Admin registered security info",
"Admin updated security info", "User changed default security info")
| extend Target = tostring(TargetResources[0].userPrincipalName)
| project TimeGenerated, OperationName, ResultReason, Result, InitiatedBy, Target
| order by TimeGenerated desc
// Devices registered or joined with a single factor
SigninLogs
| where ResourceDisplayName == "Device Registration Service"
| where ResultType == "0" and AuthenticationRequirement == "singleFactorAuthentication"
| project TimeGenerated, UserPrincipalName, IPAddress, Location, DeviceDetail, UserAgent
The authentication requirement does not count an MFA claim the user already held, so read the authentication details before concluding that no second factor was used. A method that expired before the export, such as a TAP, is only visible in the audit log.
Mitigation
- Protect registration itself. Require MFA or a Temporary Access Pass issued through a verified process for the "Register security information" user action, and require MFA for the "Register or join devices" user action.
- Limit who can change other people's methods. Keep Privileged Authentication Administrator and Authentication Administrator on a few PIM-managed accounts, and review applications that hold
UserAuthenticationMethod.ReadWrite.All. - Shield privileged accounts. Put them in role-assignable groups or restricted management administrative units so lower-tier authentication administrators cannot touch their methods.
- Tighten the TAP policy. Scope it to the groups that need it, require one-time use and keep the lifetime short.
- Tighten device settings. Limit who may join devices, lower the per-user device quota, remove stale devices, and require a compliant device, not only a registered one, for sensitive applications.
- Prefer phishing-resistant methods and remove SMS and voice where possible, so a registered phone number is not enough.
- Use risk-based policies. With Microsoft Entra ID P2, a user risk policy can force remediation when ID Protection flags the account; the risky users guide explains the setup. Blocking device code flow where it is not needed removes a common way to obtain the first token; see the device code flow guide.
- When responding, remove every method and device registered since the first suspicious sign-in, disable the rogue device first (that invalidates its Primary Refresh Token), delete any Temporary Access Pass, reset the password and revoke sessions.
Detection rules for this attack
Log events to collect
FAQ
Why does a password reset not remove this kind of access?
Authentication methods and registered devices are separate objects on the account. Resetting the password changes one credential and leaves the attacker's authenticator app, phone number, passkey or device in place. A registered device also holds a Primary Refresh Token. Clean-up has to remove every method and device added since the first suspicious sign-in, and revoke sessions.
Who can create a Temporary Access Pass for another user?
Global Administrator and Privileged Authentication Administrator for any user, Authentication Administrator for non-administrators and some limited roles, and any application with the Graph permission UserAuthenticationMethod.ReadWrite.All. The pass must be enabled for the target user in the authentication methods policy, which an Authentication Policy Administrator can change.
Does a Temporary Access Pass satisfy MFA?
Yes. A sign-in with a Temporary Access Pass meets Conditional Access requirements for multifactor authentication. That is what makes it useful for onboarding and also for takeover: the attacker signs in as the target with strong authentication satisfied, without knowing the password, and can then register a permanent method.
How do you detect a rogue MFA method?
Read the audit activities User registered security info, Admin registered security info and Admin updated security info, and correlate them with the sign-in just before: a new method registered minutes after a sign-in from an unfamiliar address or right after a device code sign-in is the pattern. Microsoft Entra ID Protection also raises a suspicious credential addition detection.
References
- Account Manipulation: Device Registration, T1098.005 (MITRE ATT&CK)
- Configure a Temporary Access Pass to register passwordless authentication methods (Microsoft Learn)
- Microsoft Entra security operations for devices (Microsoft Learn)
- Require MFA to register or join devices (Microsoft Learn)
- ROADtools Token eXchange (roadtx) wiki
- Microsoft Entra audit log activity reference (Microsoft Learn)
Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.