Identity attacks no longer require stolen passwords or malware to succeed. A single deceptive authentication request can give attackers a persistent foothold in Microsoft 365, making device registrations and token activity just as important to monitor as user sign-ins.
Key Takeaways:
A new phishing campaign has compromised hundreds of organizations by abusing Microsoft’s device code authentication flow, allowing attackers to register rogue devices inside victim environments and gain persistent access to corporate resources.
Researchers at Huntress identified the campaign after investigating suspicious device registrations within customer tenants. The operation successfully planted unauthorized devices across 305 Microsoft Entra ID tenants. This attack uses device code phishing, which tricks users into entering a legitimate device authentication code on a Microsoft sign-in page.
Unlike credential phishing, victims are not asked to provide passwords directly. Instead, they unknowingly authorize an attacker-controlled session, allowing adversaries to obtain authentication tokens that can be used to access cloud services.
According to the researchers, the threat actors registered rogue devices within affected Microsoft environments after obtaining user authorization. These registrations gave attackers a foothold that could persist beyond the initial compromise and potentially provide ongoing access to Microsoft 365 resources.
As multifactor authentication becomes more common, threat actors increasingly focus on exploiting legitimate authentication workflows and user trust rather than stealing passwords directly. Device code authentication has become an attractive target because users may not recognize the security implications of approving a device registration request.
Organizations that focus exclusively on login events may miss indicators that a threat actor has established persistence through a newly registered device. Security teams should also review conditional access policies, audit device registration permissions, and monitor for unusual enrollment activity within Microsoft Entra ID.
The researchers recommend examining environments for unexpected device enrollments and investigating authentication events associated with device code flows. Organizations should also consider restricting unnecessary device registration capabilities and strengthening user awareness training around authentication requests.
Keep in mind that device code authentication remains a valuable feature for legitimate use cases, particularly on devices that lack a full keyboard or browser. Disabling or heavily restricting the workflow could create operational challenges for some users. However, the scale of this campaign demonstrates that organizations may need additional monitoring and controls to balance usability against emerging identity-based threats.