Source: CSO Online
Author:
ONE SENTENCE SUMMARY:
Device code phishing registers rogue Entra ID devices, granting persistent Microsoft 365 access via refresh tokens that survive password resets.
MAIN POINTS:
- Huntress found 450+ rogue Entra ID devices across 305 organizations and 326 identities.
- Attackers abuse Microsoft’s device code flow on legitimate login pages, not fake sites.
- Victims approve sign-in codes, enabling token theft without capturing passwords.
- Stolen session tokens are used to register rogue Windows devices in Entra ID.
- Registered devices receive Primary Refresh Tokens providing long-lived, SSO-based access.
- Password resets don’t invalidate access; rogue devices must be manually deleted.
- Conditional Access can be bypassed when it only requires a “registered device.”
- ROADtools, an open-source Entra ID toolkit, appears leveraged for device registration.
- Primary targets include OneDrive, SharePoint, and Exchange for theft and impersonation.
- Effective response requires deleting devices, revoking sessions/tokens, then resetting credentials.
TAKEAWAYS:
- Treat device registrations as critical identity perimeter assets, not merely endpoints.
- Disable or restrict device code authentication wherever it isn’t operationally necessary.
- Prefer phishing-resistant MFA like FIDO2 security keys or passkeys over approval-based MFA.
- Monitor Entra sign-in logs for device-code events and suspicious interactive/non-interactive authentications.
- Post-compromise cleanup must include MFA method reviews and inbox-rule audits alongside token revocation.