Technology

Microsoft 365 attackers are bypassing password resets by registering their own rogue devices

Microsoft 365 attackers are bypassing password resets by registering their own rogue devices
Image: CSOONLINE.com

A new phishing campaign targeting Microsoft 365 is giving attackers something more valuable than stolen passwords: Persistent access that can survive a reset.

Researchers at managed detection and response (MDR) company Huntress have identified an active device code phishing campaign that registered hundreds of rogue devices in Microsoft 365 environments.

The team surfaced more than 450 such devices in Microsoft Entra ID across 305 organizations. Attackers registered devices to 326 different identities.

Alarmingly, password resets alone do not remove their access; rogue devices must be manually deleted from Entra ID. Otherwise, attackers are able to maintain persistent access through single sign-on (SSO).

The ongoing campaign began in November, and the target seems to be data theft from OneDrive, SharePoint, and Exchange, the researchers explained.“This device code campaign is super sneaky,” said Frank Dickson of Dickson Research. “The attacker gets in with the victim’s blessing and establishes persistence after a password reset.”However, the attacker “does leave fingerprints that are easy to find.”How this campaign worksIn this campaign, attackers trick victims into approving a sign-in code on a legitimate Microsoft authentication page, the Huntress researchers explained. They then obtain access and session tokens that they immediately use to register a rogue Windows device in the victim’s Microsoft Entra ID environment.A device registered to a compromised account gets a Primary Refresh Token (PRT), a long-lived credential that signs a user into Microsoft 365 apps without prompting again. “That token came from the phished session,” Dickson explained. “The password never entered into it.”Thus, changing the password leaves the token working, and it can even satisfy Conditional Access rules that require a registered device.

The threat actors appear to use a public toolkit, ROADtools, to register devices in Entra ID environments, Huntress explained. ROADtools is a popular open-source framework for analyzing and interacting with Microsoft Entra ID that was initially designed for defenders.

Once inside a compromised environment, attackers usually log into Azure Active Directory and Microsoft Office, then pivot to resources like OneDrive, SharePoint, or Exchange.“That is everything a business email compromise needs: The mailbox, the files, and a trusted identity to send from,” Dickson said.

This could give them the ability to access sensitive emails and other documents, exfiltrate data, impersonate employees, and move even further into an organization’s environment.

Why device code phishing is still so effectiveDevice code phishing attacks are not new, Dickson emphasized. In February 2025, for instance, Microsoft documented a suspected Russia-aligned group phishing device codes and then registering devices to obtain PRTs. And in April 2026, Redmond described a phishing-as-a-service (PHaaS) kit that generates the code the moment the victim clicks, defeating the 15-minute expiration that used to limit such lures.“Nation-state tradecraft is now available for rent,” he noted.

Device code phishing works because the victim never visits a fake site or types a password into a fake form, and personally approves the MFA prompt, Dickson said. The most dangerous part of this campaign is that the standard first move in incident response, resetting the password, does not end it. “Changing the locks does not help when the burglar installed his own door.”Nothing is broken into, he pointed out. The device code flow exists so smart TVs and printers, which lack a keyboard, can sign in. The attacker starts a legitimate sign-in, then tricks the victim into entering the sign-in approval code on a genuine Microsoft page. The victim does the authenticating. The attacker collects the token. “It is a clever implementation of a social engineering attack,” he said.

Threat actors disguise the approval request as a routine business activity, such as accessing a document or joining a meeting, explained Ahmad Jowhar, senior research analyst at Infotech. “This makes the attack difficult to recognize and highlights how traditional MFA can be bypassed through social engineering.”What security teams should do nowEnterprises who discover rogue devices should immediately delete them from Entra ID, revoke the users’ sessions, and reset their credentials, the Huntress researchers advised. Users, meanwhile, should only enter device codes when they begin the sign-in process themselves, or know for sure that it was initiated by a trusted party.

Security teams should search both interactive and non-interactive Entra sign-in logs for suspicious device code authentications, the researchers emphasized. Also, audit for any suspicious inbox rules, as well as a compromised identity’s registered devices and MFA methods. Any unrecognized ones should be promptly removed.

Adopting an identity-first security approach is important, Infotech’s Jowhar added. This means restricting or disabling device code authentication through Microsoft Entra Conditional Access policies wherever it is not operationally required. Enterprises should also implement phishing-resistant MFA, such as the use of FIDO2 security keys or passkeys, strengthen device registration controls, and monitor for suspicious sign-ins and unauthorized devices.

Incident response procedures should also be considered, and must account for compromised tokens and persistent sessions, Jowhar advised. Active sessions and refresh tokens should be revoked, rogue device registrations removed, and potentially compromised accounts and applications reviewed.

Employee awareness training is also critical, and enterprises need to treat identity as a security perimeter and continuously validate the users, devices, and authentication sessions accessing corporate resources, he said.

Dickson agreed that security teams should turn off device code sign-ins for every user who does not need them. “In reality,” he said, “most users do not.”Organizations with Entra ID P1 licensing or above can block device code sign-ins with Conditional Access and require managed, compliant devices to authenticate, not only registered ones, he added. Companies should limit who can register devices, cap how many each user can add, and require MFA to register one.

But the cleanup of a compromise is more than just “delete the device,” he emphasized. While a necessary step, it is only the start. Remove the device, kill the user’s sessions, then change the password. After that, look for anything else the attacker planted, such as a new MFA method or an inbox rule.

He complimented Huntress on its overview of the attack: the researchers published the naming pattern, the infrastructure, and the exact log sequence that defenders can monitor for. They were also candid about the fact that they were not yet able to tie the activity to a named actor.

Ultimately, Dickson noted, in Microsoft 365, “the password is no longer the key, the device is. Find the rogue device, delete it, and then reset everything else.”

microsoftphishingmdrhuntresssecurity

This summary is from CSOONLINE.com, published Dec 4, 2026. NewsFusion links to the original reporting and groups related coverage.

Cyber Security News app icon

Find more in the app

Keep reading in Cyber Security News

Get every Cyber Security News story as it breaks, follow the topics you care about, and get alerts the moment something big happens. Free on iPhone and Android.

  • Breaking-news alerts
  • Follow topics & teams
  • Related coverage grouped by AI