SOP-119: Entra ID Device Registration / Join Abuse for PRT & MFA Persistence Response

·

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 02 Identification 03 Containment 04 Eradication 05 Escalation
🛠

01 — BACKGROUND

TECHNIQUE OVERVIEW
01
Technique Overview — Rogue Device Registration & PRT Abuse
MITRE T1098.005

When 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.

FieldValue
MITRE TechniqueT1098.005 — Account Manipulation: Device Registration
T1556.006 — Modify Authentication Process: Multi-Factor Authentication
T1078.004 — Valid Accounts: Cloud Accounts
Kill-chain PhasePersistence / Privilege Escalation (post-credential-theft)
Primary Log SourceAuditLogs (Core Directory — Device Registration Service; Authentication Methods)
Secondary Log SourcesSigninLogs, AADNonInteractiveUserSignInLogs, AADUserRiskEvents, IdentityInfo
Common Toolingroadtx / ROADtools, AADInternals (Join-AADIntDeviceToAzureAD), TokenTactics, Device Code flow, native Settings join
Default SeveritySEV2 standalone; SEV1 when it follows a risky/AiTM sign-in
Detection WindowQuery last 24 hours minimum; extend to 7 days for persistence hunts
02
Attack Paths, Log Sources & Severity Indicators
CONTEXT

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 / isManaged to 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.
SeveritySignal
LOWSingle device registration from the user's normal IP/country during business hours, no preceding risk event, matches an expected new-laptop provisioning ticket
MEDIUMDevice 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 / CRITICALDevice 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
▶ Investigation Workflow
☑
Alert Triage Checklist
TRIAGE
  • 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.
I1
Device Registration / Azure AD Join Event
MANUAL + KQL
WHY CHECK

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.

📍 Portal Navigation — Entra Admin Center
entra.microsoft.com› Identity› Monitoring & health› Audit logs
  • 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 OperationMeaningSeverity
Register deviceA new device object was created/bound to the tenant via DRSCRITICAL
Add registered owner to deviceAn owner identity attached to a device — enables PRT for that userCRITICAL
Add registered user to deviceSecondary user bound to a device — multi-identity persistenceHIGH
Update deviceDevice attributes changed (e.g. compliance flip) — review contextMEDIUM
DETECTS: device registration and owner/user-add operations in the Entra audit log, with the actor identity, actor IP, and target device
KQL — Microsoft Sentinel / Defender XDR Advanced Hunting
AuditLogs | where TimeGenerated > ago(24h) | where OperationName in ("Register device","Add registered owner to device", "Add registered user to device") | extend Actor = tostring(InitiatedBy.user.userPrincipalName) | extend ActorIP = tostring(InitiatedBy.user.ipAddress) | mv-expand TargetResources | extend DeviceName = tostring(TargetResources.displayName) | extend DeviceId = tostring(TargetResources.id) | project TimeGenerated, OperationName, Actor, ActorIP, DeviceName, DeviceId, Result, ResultReason | order by TimeGenerated desc
DETECTS: same device-registration operations in Splunk via the Entra ID audit sourcetype
SPL — Splunk
index=azuread sourcetype="azure:aad:audit" operationName IN ("Register device","Add registered owner to device","Add registered user to device") | rename "initiatedBy.user.userPrincipalName" AS actor, "initiatedBy.user.ipAddress" AS actor_ip, "targetResources{}.displayName" AS device_name, "targetResources{}.id" AS device_id | table _time operationName actor actor_ip device_name device_id result | sort - _time
I2
Correlate Registration With a Preceding Risky Sign-In
MANUAL + KQL
WHY CHECK

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.

📍 Portal Navigation — Entra Risk & Sign-ins
entra.microsoft.com› Protection› Identity Protection› Risky sign-ins
  • 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.
DETECTS: a "Register device" event that occurs within 2 hours after a medium/high risky sign-in for the same user — the core attack chain
KQL — Microsoft Sentinel / Defender XDR Advanced Hunting
let risky = SigninLogs | where TimeGenerated > ago(24h) | where RiskLevelDuringSignIn in ("high","medium") or RiskState == "atRisk" | project RiskTime = TimeGenerated, UserPrincipalName, RiskIP = IPAddress, RiskDetail = RiskLevelDuringSignIn; AuditLogs | where TimeGenerated > ago(24h) | where OperationName == "Register device" | extend UserPrincipalName = tostring(InitiatedBy.user.userPrincipalName) | extend RegTime = TimeGenerated, RegIP = tostring(InitiatedBy.user.ipAddress) | join kind=inner risky on UserPrincipalName | where RegTime between (RiskTime .. (RiskTime + 2h)) | project RiskTime, RegTime, UserPrincipalName, RiskDetail, RiskIP, RegIP | order by RegTime desc
DETECTS: Splunk equivalent — joins risky sign-ins to device registrations within a 2-hour window per user
SPL — Splunk
index=azuread sourcetype="azure:aad:signin" (riskLevelDuringSignIn="high" OR riskLevelDuringSignIn="medium" OR riskState="atRisk") | rename userPrincipalName AS upn, ipAddress AS risk_ip, _time AS risk_time | table upn risk_time risk_ip riskLevelDuringSignIn | join upn [ search index=azuread sourcetype="azure:aad:audit" operationName="Register device" | rename "initiatedBy.user.userPrincipalName" AS upn, "initiatedBy.user.ipAddress" AS reg_ip, _time AS reg_time | table upn reg_time reg_ip ] | where reg_time>=risk_time AND reg_time<=risk_time+7200 | table upn risk_time reg_time riskLevelDuringSignIn risk_ip reg_ip

If AADUserRiskEvents is onboarded, pivot there for anomalousToken and tokenIssuerAnomaly detections — these frequently flag the PRT replay that follows the rogue registration.

I3
New MFA / Security-Info Registration (Persistence)
MANUAL + KQL
WHY CHECK

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.

📍 Portal Navigation — Authentication Methods
entra.microsoft.com› Identity› Users› [UPN]› Authentication methods
  • 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 OperationMeaningSeverity
User registered security infoAccount self-registered an MFA/SSPR method — verify it was the real userHIGH
Admin registered security infoAn admin registered a method on the account — check for abused adminCRITICAL
User deleted security infoA method was removed — attacker cleanup or victim lockoutHIGH
User registered all required security infoFull security-info registration completed — common after takeoverMEDIUM
DETECTS: MFA / security-info registration and deletion events with actor, target, IP and method detail
KQL — Microsoft Sentinel / Defender XDR Advanced Hunting
AuditLogs | where TimeGenerated > ago(24h) | where OperationName has_any ("registered security info","deleted security info", "registered all required security info") | extend Actor = tostring(InitiatedBy.user.userPrincipalName) | extend ActorIP = tostring(InitiatedBy.user.ipAddress) | extend TargetUPN = tostring(TargetResources[0].userPrincipalName) | extend Method = tostring(TargetResources[0].displayName) | project TimeGenerated, OperationName, Actor, ActorIP, TargetUPN, Method, ResultDescription | order by TimeGenerated desc
DETECTS: Splunk equivalent — MFA method registration/deletion activity from the Entra audit sourcetype
SPL — Splunk
index=azuread sourcetype="azure:aad:audit" (operationName="*registered security info*" OR operationName="*deleted security info*" OR operationName="*registered all required security info*") | rename "initiatedBy.user.userPrincipalName" AS actor, "initiatedBy.user.ipAddress" AS actor_ip, "targetResources{}.userPrincipalName" AS target_upn, "targetResources{}.displayName" AS method | table _time operationName actor actor_ip target_upn method result | sort - _time
I4
PRT-Backed Sign-Ins From the New Device
MANUAL + KQL
WHY CHECK

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.

📍 Portal Navigation — Entra Sign-in Logs
entra.microsoft.com› Identity› Monitoring & health› Sign-in logs
  • 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.
DETECTS: interactive sign-ins from a newly registered device (by deviceId / trustType) and the apps it is reaching
KQL — Microsoft Sentinel / Defender XDR Advanced Hunting
SigninLogs | where TimeGenerated > ago(24h) | extend DeviceId = tostring(DeviceDetail.deviceId) | extend TrustType = tostring(DeviceDetail.trustType) | extend IsCompliant = tostring(DeviceDetail.isCompliant) | where isnotempty(DeviceId) | where TrustType in ("Azure AD registered","Azure AD joined","Hybrid Azure AD joined") | summarize FirstSeen = min(TimeGenerated), Apps = make_set(AppDisplayName, 20), IPs = make_set(IPAddress, 20), Countries = make_set(Location, 20) by UserPrincipalName, DeviceId, TrustType, IsCompliant | order by FirstSeen desc
DETECTS: Splunk equivalent — first-seen sign-ins by registered/joined deviceId and the apps accessed
SPL — Splunk
index=azuread sourcetype="azure:aad:signin" | rename "deviceDetail.deviceId" AS device_id, "deviceDetail.trustType" AS trust_type, "deviceDetail.isCompliant" AS is_compliant, userPrincipalName AS upn | where device_id!="" AND (trust_type="Azure AD registered" OR trust_type="Azure AD joined" OR trust_type="Hybrid Azure AD joined") | stats earliest(_time) AS first_seen values(appDisplayName) AS apps values(ipAddress) AS ips values(location) AS countries by upn device_id trust_type is_compliant | sort - first_seen
I5
IOC Extraction & FP / TP Decision Gate
VERDICT
WHY CHECK

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 deviceId and 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 SignalsFalse Positive Signals
Registration/MFA add within ~2h of a risky/AiTM sign-inRegistration during a known enrolment / Autopilot / MDM onboarding window
Actor IP/ASN/country never before seen for the userActor IP matches the user's usual office/VPN egress
New deviceId already reaching Exchange/SharePoint/GraphDevice 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 burstUser 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 ACTION
C1
Verdict & Containment Decision
DECISION GATE
▶ Based on Identification Findings
Confirmed Device/MFA registration following a risky or AiTM sign-in, unfamiliar actor IP, or PRT-backed sign-ins to M365 apps — execute C2–C4 immediately, escalate to L2/IR
Uncertain New device/MFA from an unusual IP but no risk event and no provisioning ticket yet — complete I2 & I4, revoke sessions as a precaution, hold device deletion pending verification
False Pos. Registration matches a verified IT provisioning ticket, normal egress IP, clean Intune enrollment — document, close ticket, tune the analytic

Session/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.

C2
Account Containment — Revoke Sessions & Block
ENTRA ID
📍 Portal Navigation — Entra User Actions
entra.microsoft.com› Identity› Users› [UPN]› Revoke sessions / Block sign-in
  • 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.

C3
Device Containment — Disable the Rogue Device
ENTRA DEVICES
📍 Portal Navigation — Entra Devices
entra.microsoft.com› Identity› Devices› All devices› [Device] → Disable
  • 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.

C4
Remove Rogue MFA Method & Tighten CA
AUTH METHODS
  • 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
E1
Remove Persistence & Reconstruct the Timeline
ERADICATION
  • 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.
Eradication Complete When
  • 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
ES1
Escalation Matrix & Notification
ESCALATION
TierTrigger ConditionWho to NotifyAction
L1 → L2Device/MFA registration cannot be confirmed TP vs FP within 30 min, OR account is privileged, OR >1 device registeredSOC Lead / L2 AnalystHand off with IOCs; L2 runs I2/I4 correlation
L2 → IRConfirmed rogue registration with PRT-backed access, risky-sign-in chain, or multiple accounts affectedIR Team / Security ManagerOpen incident, full session revocation, device purge, mailbox/data review
IR → CISOPrivileged/admin account compromised, mailbox or SharePoint data accessed, or tenant-wide persistenceCISO / ManagementBreach assessment, legal/compliance engagement, exec comms
ExternalRegulated data (GDPR/PCI/HIPAA) exposed, or confirmed nation-state / ransomware-affiliate TTPsMSSP, forensics vendor, regulators, law enforcementPreserve 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.

📺 YouTube 🎤 TikTok 🐦 X / Twitter 📡 Telegram
All SOPs Blog Web App (Free)
They can't exploit you if you are the Exploit.