Device registration abuse is the quiet persistence step that turns a single stolen password into durable, MFA-satisfying access to an entire Microsoft 365 tenant. After an attacker phishes credentials or replays a stolen token (AiTM, password spray, device-code phishing), they enroll a device they control into the victim's Entra ID tenant. A registered or Azure AD–joined device can be issued a Primary Refresh Token (PRT) — a long-lived credential that provides single sign-on across M365 and can satisfy device-based Conditional Access and MFA claims without ever prompting the attacker again.
The same intrusions almost always pair device registration with a newly registered MFA authentication method (an attacker-owned authenticator app or phone number) on the victim account. Even after the victim resets their password, the attacker's device keeps its PRT and the attacker's MFA method keeps satisfying step-up prompts. This SOP treats a device registration or MFA method registration that follows a risky sign-in as a confirmed account compromise with active persistence.
Primary data sources: AuditLogs (Register device, Add registered owner/user to device, User/Admin registered security info), SigninLogs and AADNonInteractiveUserSignInLogs (DeviceDetail trustType / deviceId, PRT-backed SSO), and AADUserRiskEvents (anomalousToken, unfamiliar sign-in).
☰ Table of Contents
01 — BACKGROUND
TECHNIQUE OVERVIEWWhen an attacker holds valid credentials, the Device Registration Service (DRS) lets them add a device to the tenant using tools such as roadtx (ROADtools), AADInternals, or TokenTactics, or simply by walking through the native "Add work or school account" flow. The registered device receives a device certificate and transport key; the attacker then requests a Primary Refresh Token from the token endpoint. The PRT is the master SSO artifact on a Windows/Entra-joined device — it mints access and refresh tokens for every M365 app and can carry an MFA claim, letting the attacker skip future prompts. Device registration is cheap, rarely alerted on by default, and survives a password reset, which is exactly why hands-on-keyboard actors reach for it after initial access.
| Field | Value |
|---|---|
| MITRE Technique | T1098.005 — Account Manipulation: Device Registration T1556.006 — Modify Authentication Process: Multi-Factor Authentication T1078.004 — Valid Accounts: Cloud Accounts |
| Kill-chain Phase | Persistence / Privilege Escalation (post-credential-theft) |
| Primary Log Source | AuditLogs (Core Directory — Device Registration Service; Authentication Methods) |
| Secondary Log Sources | SigninLogs, AADNonInteractiveUserSignInLogs, AADUserRiskEvents, IdentityInfo |
| Common Tooling | roadtx / ROADtools, AADInternals (Join-AADIntDeviceToAzureAD), TokenTactics, Device Code flow, native Settings join |
| Default Severity | SEV2 standalone; SEV1 when it follows a risky/AiTM sign-in |
| Detection Window | Query last 24 hours minimum; extend to 7 days for persistence hunts |
Device registration abuse almost never appears in isolation — it is the second move after an identity-theft primitive. The common chains a SOC sees:
- 1AiTM phishing → device join → PRT. Victim enters credentials and MFA on an Evilginx/Tycoon proxy; attacker replays the session, registers a device, and pulls a PRT for durable SSO that outlives the stolen session cookie.
- 2Password spray → device-code phishing → registration. A valid password from a spray (see SOP-90) is combined with a device-code flow (SOP-81) to complete sign-in, after which the attacker enrolls their own device.
- 3MFA registration persistence. Attacker adds their own authenticator app or phone number as a second factor so that future sign-ins — even post password reset — satisfy MFA from the attacker's device.
- 4Conditional Access bypass. A "require compliant or hybrid-joined device" policy is defeated when the attacker's freshly registered device is treated as a trusted device, flipping
isCompliant/isManagedto true. - 5MachineAccountQuota-style mass join. A default tenant lets any user register multiple devices; an attacker enrolls several to spread persistence across identities before detection.
| Severity | Signal |
|---|---|
| LOW | Single device registration from the user's normal IP/country during business hours, no preceding risk event, matches an expected new-laptop provisioning ticket |
| MEDIUM | Device registration or new MFA method from an unfamiliar IP/ASN, outside business hours, or on an account that has never self-registered a device before |
| HIGH / CRITICAL | Device registration AND/OR MFA method registration within ~2 hours of a high/medium risky sign-in, AiTM detection, impossible travel, or password-spray breakthrough; PRT-backed sign-ins from the new deviceId to mail/SharePoint |
A password reset alone does NOT evict this attacker. The registered device keeps its PRT and the attacker-owned MFA method keeps satisfying step-up. You must revoke sessions/refresh tokens AND remove the rogue device and MFA method — see Containment and Eradication.
02 — IDENTIFICATION
5 INDICATORS- 1Was there a high or medium risky sign-in, AiTM alert, impossible travel, or password-spray breakthrough on this user in the 24 hours before the registration? If yes → treat as confirmed, go straight to Containment.
- 2Did the device registration or MFA change originate from an IP / ASN / country the user has never used?
- 3Does the user have an open IT provisioning / new-device ticket matching this time window and device name?
- 4Is the newly registered deviceId already issuing sign-ins to Exchange Online, SharePoint, or Graph?
- 5Is the affected account privileged (admin role, PIM-eligible, or mailbox with delegate access)? If yes → escalate severity by one tier.
The "Register device" operation in the Entra audit log is the moment a new device is bound to the tenant. An attacker performing it will show an unfamiliar actor IP, an off-hours timestamp, and no matching provisioning ticket. This is the single most direct indicator of the technique.
- 1Open Audit logs and set Service = Core Directory, Category = Device, Activity = Register device.
- 2Set the date range to the last 24 hours (extend to 7 days when hunting). Add the affected user via the Target filter.
- 3For each hit, open the record and read Initiated by (actor), the actor IP address, and the target device display name + Object ID.
- 4Cross-check the deviceId under Identity → Devices → All devices — note the Join type (Azure AD registered / joined), owner, and registration date/time.
- 5Run the KQL/SPL below to pull all registration and owner/user-add events tenant-wide and spot bursts across multiple accounts.
| Audit Operation | Meaning | Severity |
|---|---|---|
| Register device | A new device object was created/bound to the tenant via DRS | CRITICAL |
| Add registered owner to device | An owner identity attached to a device — enables PRT for that user | CRITICAL |
| Add registered user to device | Secondary user bound to a device — multi-identity persistence | HIGH |
| Update device | Device attributes changed (e.g. compliance flip) — review context | MEDIUM |
A device registration that lands minutes-to-hours after a high/medium risky sign-in, AiTM detection, or impossible-travel event is the signature of post-compromise persistence. The time-join between the two is the strongest single verdict signal in this SOP.
- 1Open Risky sign-ins and filter to the affected user. Note any risk level, risk detection type (anomalous token, unfamiliar sign-in properties, impossible travel), and timestamp.
- 2Compare that timestamp against the device registration time from I1 — a gap under ~2 hours is a confirmed chain.
- 3Also review Protection → Identity Protection → Risk detections for AiTM / token-related detections on the same account and IP.
- 4Run the correlation query below to automate the join between risky sign-ins and registration events.
If AADUserRiskEvents is onboarded, pivot there for anomalousToken and tokenIssuerAnomaly detections — these frequently flag the PRT replay that follows the rogue registration.
Attackers register their own authenticator app or phone number so future step-up challenges resolve on the attacker's device. An MFA method added from an unfamiliar IP, or added close in time to a device registration, is a textbook persistence move (T1556.006) that survives a victim password reset.
- 1Open the user's Authentication methods blade and review every registered method — flag any authenticator app or phone the user does not recognise.
- 2In Audit logs, filter Service = Authentication Methods and look for User registered security info / Admin registered security info on this account.
- 3Note the method type and actor IP from the audit record; compare against the user's baseline sign-in geography.
- 4Run the KQL/SPL below to surface all MFA registration/deletion events and spot method churn (add-then-delete is a cleanup tell).
| Audit Operation | Meaning | Severity |
|---|---|---|
| User registered security info | Account self-registered an MFA/SSPR method — verify it was the real user | HIGH |
| Admin registered security info | An admin registered a method on the account — check for abused admin | CRITICAL |
| User deleted security info | A method was removed — attacker cleanup or victim lockout | HIGH |
| User registered all required security info | Full security-info registration completed — common after takeover | MEDIUM |
Registration alone grants a device identity; the damage begins when that deviceId starts minting SSO tokens. Sign-ins carrying the new DeviceDetail.deviceId with a trustType of "Azure AD registered/joined" — especially to Exchange, SharePoint, or Graph — confirm the attacker is actively using the PRT.
- 1Filter sign-ins to the affected user, then add the Device info columns and filter by the Device ID captured in I1.
- 2Review the trustType (Azure AD registered / joined / hybrid), isCompliant, and isManaged values — a non-compliant, newly registered device suddenly issuing tokens is high-signal.
- 3Check the Application column for Exchange Online, SharePoint, Office 365, or Microsoft Graph — these indicate data access, not just enrollment.
- 4Also review AADNonInteractiveUserSignInLogs — PRT-backed token refreshes land here, not in interactive logs.
- 5Run the query below to list first-seen sign-ins by the new deviceId with their IPs, countries, and target apps.
Before escalating, record the hard artifacts the responder will act on and make an explicit true-positive vs false-positive call. Device provisioning is a legitimate daily event — the verdict gate separates a new corporate laptop from an attacker's rogue enrollment.
- 1Pull and record: the rogue
deviceIdand display name, actor UPN, actor IP / ASN / country, the MFA method(s) added, the preceding risky-sign-in time and detection type, and the list of apps the device has accessed. - 2Note timestamps in NZT for the registration, the MFA registration, and the first PRT-backed sign-in — these anchor the compromise timeline in Eradication.
- 3Apply the decision table below to reach a verdict, then proceed to Containment.
| True Positive Signals | False Positive Signals |
|---|---|
| Registration/MFA add within ~2h of a risky/AiTM sign-in | Registration during a known enrolment / Autopilot / MDM onboarding window |
| Actor IP/ASN/country never before seen for the user | Actor IP matches the user's usual office/VPN egress |
| New deviceId already reaching Exchange/SharePoint/Graph | Device shows normal Intune enrollment & compliance evaluation |
| MFA method added then quickly deleted (cleanup) | Open IT ticket matches device name, user, and time |
| Multiple devices registered across several users in a burst | User confirms they set up a new personal/corporate device |
Do NOT clear the alert on the user's say-so alone when a risky sign-in preceded the registration. Attackers social-engineer help desks; require an IT provisioning record or a verified callback through a trusted channel before accepting a false-positive verdict.
03 — CONTAINMENT
IMMEDIATE ACTIONSession/token revocation and rogue-device removal must happen together. Revoking sessions without deleting the device leaves the attacker able to re-request a PRT; deleting the device without revoking tokens leaves existing access tokens valid until expiry.
- 1On the user record click Revoke sessions — this invalidates refresh tokens and forces re-authentication across all clients.
- 2Toggle Block sign-in = Yes for the account while you investigate; this halts any new token issuance.
- 3Force a password reset (and require change at next sign-in). Remember: this alone does not remove the device or rogue MFA method.
- 4In Protection → Identity Protection → Risky users, select the user and click Confirm user compromised to raise risk and trigger risk-based CA.
- 5Revoke any OAuth app grants / consents the attacker added under Enterprise applications → User consent / Permissions (cross-reference SOP-21).
Use Revoke-MgUserSignInSession -UserId <UPN> via Microsoft Graph PowerShell for scripted, auditable bulk revocation when multiple users are affected.
- 1Locate the rogue deviceId from I1. Click the device and select Disable — a disabled device cannot obtain or refresh a PRT.
- 2Record the device object details for evidence (Object ID, join type, registration date, owner) before any deletion.
- 3If other devices were registered in the same burst (from I1), disable each one — persistence is frequently spread across several device objects.
- 4Add the attacker's source IP as a blocked Named Location (Protection → Conditional Access → Named locations) and, if warranted, a CA policy blocking that location.
Disable, then preserve, then delete. Deleting the device object first destroys forensic evidence of the join type and owner relationship you need to reconstruct the timeline. Deletion happens in Eradication, after evidence capture.
- 1In the user's Authentication methods blade, delete the attacker-registered authenticator app or phone number identified in I3.
- 2Require the user to re-register MFA through a verified channel once containment is complete.
- 3Review and tighten the device-registration surface: in Identity → Devices → Device settings, confirm "Users may register their devices" and MFA on join are configured to require MFA for registration.
- 4Verify Conditional Access requires compliant/hybrid-joined devices for sensitive apps so a bare registered device cannot reach them.
Enforcing "Require multifactor authentication to register or join devices" (Entra device settings) is the single highest-value hardening control against this technique — it blocks registration from a stolen-password-only foothold.
04 — ERADICATION
CLEANUP- 1After evidence capture, delete the rogue device object(s) from Entra → Devices → All devices. Confirm no PRT can be issued — the deviceId must no longer appear in subsequent SigninLogs.
- 2Confirm the attacker MFA method is removed and that only user-verified methods remain in the Authentication methods blade.
- 3Hunt for secondary persistence: malicious inbox rules / forwarding (SOP-85), added OAuth grants (SOP-21), mailbox delegation (SOP-111), and new app registration credentials (SOP-20) created by the same actor/IP.
- 4Re-run I1, I3, and I4 with the same parameters — expected result is 0 hits for the rogue deviceId, no new registrations, and no PRT-backed sign-ins.
- 5Patch the entry point: enforce MFA-on-registration, block legacy auth (SOP-91), and remediate the AiTM/spray vector that produced the initial token.
- 6Reconstruct the compromise timeline (NZT): initial risky sign-in → device registration → MFA method add → first PRT-backed app access → data reached. Record what mail/files the device could have touched.
- Rogue device object(s) disabled then deleted; deviceId absent from new SigninLogs
- Attacker-registered MFA method removed; only user-verified methods remain
- All sessions/refresh tokens revoked and password reset completed
- Re-run of I1 / I3 / I4 returns 0 hits for the rogue artifacts
- No secondary persistence (inbox rules, OAuth grants, delegation, app creds) remains
- MFA-on-registration enforced and the initial-access vector remediated
- Compromise timeline documented end-to-end in NZT with data-at-risk assessment
05 — ESCALATION
ESCALATION PATHS| Tier | Trigger Condition | Who to Notify | Action |
|---|---|---|---|
| L1 → L2 | Device/MFA registration cannot be confirmed TP vs FP within 30 min, OR account is privileged, OR >1 device registered | SOC Lead / L2 Analyst | Hand off with IOCs; L2 runs I2/I4 correlation |
| L2 → IR | Confirmed rogue registration with PRT-backed access, risky-sign-in chain, or multiple accounts affected | IR Team / Security Manager | Open incident, full session revocation, device purge, mailbox/data review |
| IR → CISO | Privileged/admin account compromised, mailbox or SharePoint data accessed, or tenant-wide persistence | CISO / Management | Breach assessment, legal/compliance engagement, exec comms |
| External | Regulated data (GDPR/PCI/HIPAA) exposed, or confirmed nation-state / ransomware-affiliate TTPs | MSSP, forensics vendor, regulators, law enforcement | Preserve evidence, notify per obligation, engage external IR |
Bring to every escalation: incident ID, affected user(s) and rogue deviceId(s), the NZT compromise timeline, containment actions already taken (sessions revoked / device disabled / MFA removed), and current confidence level (TP confirmed / suspected / unverified).
Related playbooks: SOP-96 (PRT Theft & Token Replay), SOP-18 (AiTM token theft), SOP-80 (MFA fatigue / method registration abuse), SOP-81 (device-code phishing), SOP-90 (password spray). Cross-link the incidents if any fired for the same user.
Stay Threat-Ready
Follow CyberHawk Threat Intel for daily SOC analyst playbooks, detection engineering guides, and threat intelligence.