4 minhigh
Beyond Passwords: How Attackers Abuse Device Code Authentication
Attackers abuse OAuth 2.0 device code authentication via spoofed Syncfusion and Mimecast phishing pages to steal Microsoft Entra ID session tokens, bypassing MFA. Threat actors send fake bid invitation emails linking to phishing pages mimicking Syncfusion and Mimecast. Victims enter their email, then a device code is generated. The victim is directed to Microsoft's legitimate device auth portal. Entering the code grants the attacker session access without passwords or MFA.
Sens:▲ 24hConf:mediumAnalyzed:2026-11-05Z.ai
Authors: Adriane Andaya, Cofense Phishing Defense Center
Source:Cofense
Detection / HunterZ.ai
Immediate Actions
- Block phishing domains alelmuae[.]com and 93e52647-966b-4c8b-b74b-fa78d16cb02endpoint[.]com
- Review Microsoft Entra ID for recent device code authentication events
- Revoke active sessions for users who accessed known phishing URLs
- Disable or restrict OAuth device code flow for non-managed devices
Key Takeaways
- Device code phishing bypasses MFA by abusing OAuth 2.0 Device Authorization Grant flow
- Phishing emails masquerade as construction bid invitations referencing Salt Lake City Commercial Center
- Spoofed pages use Syncfusion, Microsoft, and Mimecast branding to appear legitimate
- Microsoft's own device auth portal at login.microsoftonline.com serves as the final stage
- Attack targets decision-makers and management-level personnel
Attack Chain
- Initial Access: Phishing email with fake construction bid invitation containing malicious hyperlink
- Credential Harvesting: Victim redirected to fake Syncfusion SSO page on alelmuae[.]com
- Authentication Abuse: Victim funneled to fake Mimecast device enrollment page on phishing domain
- Code Generation: Device code generated and victim directed to Microsoft device auth portal
- Compromise: Victim enters code granting attacker session access to Microsoft 365 account
Affected Systems
- Microsoft Entra ID (Office 365) accounts
- Microsoft 365 tenants
- Mimecast Device Enrollment users
- Syncfusion SSO users
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| Hunt for Entra ID device code authentication completions from non-corporate IP addresses (T1528) | Entra ID sign-in logs with device code auth method | Credential Access | Medium — legitimate device code flows from remote workers |
| Hunt for OAuth token grants following visits to domains impersonating enterprise SSO providers (T1566.002) | Web proxy logs correlated with Entra ID token issuance | Initial Access | Low — SSO-branded non-corporate domains are uncommon |
| Hunt for device code flow completions by users who recently clicked external email links (T1078.004) | Email gateway click events correlated with Entra ID auth events | Defense Evasion | Medium — legitimate external links may precede auth events |
Required Log Sources
- Microsoft Entra ID sign-in logs
- Microsoft 365 audit logs
- Email gateway logs
- Web proxy logs
Control Gaps
- Email filtering may not catch spearphishing links with legitimate-looking lure text
- MFA does not prevent OAuth device code flow abuse
- Conditional access policies may not restrict device code authentication
Recommendations
Infrastructure Hardening
- Implement conditional access policies restricting OAuth device code flow
- Configure Entra ID to block device code authentication from untrusted locations
- Add phishing domains to DNS blocklists and web proxy filters
- Monitor Microsoft 365 audit logs for unexpected OAuth token grants
User Protection
- Train users to verify URLs before entering credentials or authentication codes
- Warn users that Microsoft will never ask them to enter codes from external emails
- Flag external emails with bid invitation subject lines for additional scrutiny
- Instruct users to report suspicious device enrollment prompts to IT
MITRE ATT&CK Mapping
MITRE ATT&CK Mapping3 techniques
Tactic
Initial Access
Tactic
Credential Access
Showing defanged values
- domain93e52647-966b-4c8b-b74b-fa78d16cb02endpoint[.]comPhishing domain hosting fake Mimecast device enrollment page
- domainalelmuae[.]comPhishing domain hosting fake Syncfusion SSO login page