
Executive Summary
In a significant cybersecurity incident, hackers have executed a device-code phishing campaign that has infiltrated Microsoft Entra ID environments across 305 organizations. This operation has led to the registration of over 400 rogue Windows devices, allowing attackers persistent access to sensitive company resources. The campaign, which began in November, has raised alarms among cybersecurity experts as it highlights vulnerabilities in authentication processes and the need for enhanced security measures.
Threat Snapshot
The device-code phishing campaign has been characterized by its methodical approach to tricking victims into entering a sign-in code on a legitimate Microsoft authentication page. This tactic has enabled attackers to obtain valid access tokens, which they then use to register rogue devices within the victims' Microsoft Entra ID environments. The primary goal of these attacks appears to be data theft, targeting resources such as OneDrive, SharePoint, and Exchange.
Attack Statistics
- Over 400 rogue devices registered across 305 organizations.
- In November alone, 468 registrations were observed across 326 identities.
- 276 devices were registered during the first two weeks of November.
The naming pattern of the rogue devices, starting with “MH-” followed by 16 uppercase hex characters, has been noted as a consistent identifier across multiple attacks.
Attack Path and Tradecraft
The attack begins when victims are deceived into entering a device sign-in code generated by the attackers. This code is entered on Microsoft's legitimate authentication page, leading to the acquisition of access and refresh tokens. These tokens are crucial as they allow the attackers to register rogue devices and obtain a Primary Refresh Token (PRT), ensuring ongoing access to the organization's resources.
This method is part of a broader trend in phishing attacks, particularly those targeting Microsoft 365 accounts. The campaign has been linked to various phishing-as-a-service (PhaaS) operations, which have made such attacks increasingly accessible to cybercriminals.
Notable Campaigns
- Tycoon2FA
- Greatness
- Kali365
In a recent example, attackers utilized the Kali365 PhaaS alongside fake event invitations to lure victims into authorizing access to their accounts.
Detection Opportunities
Organizations can enhance their detection capabilities by monitoring for unusual sign-in patterns and device registrations. The use of the ROADtools open-source security toolkit has been noted in these attacks, which can be exploited to inspect and manipulate an organization’s Entra environment.
Key indicators of compromise (IoCs) include:
- Unrecognized device names registered in Entra ID.
- Sign-ins from unusual locations or devices.
- Access to sensitive resources following unexpected sign-ins.
Containment and Hardening Priorities
Organizations affected by this campaign should prioritize immediate remediation steps to contain the threat:
- Delete rogue devices: Remove any unauthorized devices from Entra ID to prevent further access.
- Revoke user sessions: Ensure that all active sessions are terminated to mitigate the risk of unauthorized access.
- Reset credentials: Prompt users to change their passwords to secure their accounts.
Additionally, organizations are advised to implement stricter controls around device-code authentication. Microsoft recommends blocking this feature through Entra Conditional Access where it is not essential.
Business Risk Outlook
The implications of this phishing campaign extend beyond immediate data theft. Organizations face potential reputational damage, regulatory scrutiny, and financial losses if sensitive data is compromised. The persistent nature of the access granted through the PRT means that even password resets may not fully eliminate the threat unless rogue devices are removed.
“The evolving nature of phishing attacks necessitates a proactive approach to cybersecurity, particularly in safeguarding authentication processes.” - Cybersecurity Analyst
Key Takeaways
- Impact: Over 400 rogue devices registered, affecting 305 organizations.
- Why it matters: Highlights vulnerabilities in Microsoft Entra ID and the need for robust security measures.
- Recommended action: Immediate removal of rogue devices and revocation of user sessions is critical.
Sources
What Happened
A detailed analysis of the ongoing device-code phishing campaign that has compromised Microsoft Entra ID environments across multiple organizations.
sign-in code on a legitimate Microsoft authentication page. This tactic has enabled attackers to obtain valid access tokens, which they then use to register rogue devices within the victims' Microsoft Entra ID environments. The primary goal of these attacks appears to be data theft, targeting resources such as OneDrive, SharePoint, and Exchange. Attack Statistics Over 400 rogue devices registered across 305 organizations. In November alone, 468 registrations were observed across 326 identities. 276 devices were registered during the first two weeks of November. The naming pattern of the rogue devices,
This report consolidates available public details and highlights where evidence is still limited, helping teams prioritize immediate defensive action while additional technical indicators are collected.
Technical Root Cause
starting with “MH-” followed by 16 uppercase hex characters, has been noted as a consistent identifier across multiple attacks. Attack Path and Tradecraft The attack begins when victims are deceived into entering a device sign-in code generated by the attackers. This code is entered on Microsoft's legitimate authentication page, leading to the acquisition of access and refresh tokens. These tokens are crucial as they allow the attackers to register rogue devices and obtain a Primary Refresh Token (PRT), ensuring ongoing access to the organization's resources. This method is part of
a broader trend in phishing attacks, particularly those targeting Microsoft 365 accounts. The campaign has been linked to various phishing-as-a-service (PhaaS) operations, which have made such attacks increasingly accessible to cybercriminals. Notable Campaigns Tycoon2FA Greatness Kali365 In a recent example, attackers utilized the Kali365 PhaaS alongside fake event invitations to lure victims into authorizing access to their accounts. Detection Opportunities Organizations can enhance their detection capabilities by monitoring for unusual sign-in patterns and device registrations. The use of the ROADtools open-source security toolkit has been noted in these attacks, which
Based on observed patterns in recent campaigns, the likely attacker objective is to establish durable access, exploit trust relationships, and later pivot toward higher-value systems. Where specific attribution or tooling data is absent, these details are not publicly disclosed and should be treated as unknown.
Exposure and Affected Environments
can be exploited to inspect and manipulate an organization’s Entra environment. Key indicators of compromise (IoCs) include: Unrecognized device names registered in Entra ID. Sign-ins from unusual locations or devices. Access to sensitive resources following unexpected sign-ins. Containment and Hardening Priorities Organizations affected by this campaign should prioritize immediate remediation steps to contain the threat: Delete rogue devices: Remove any unauthorized devices from Entra ID to prevent further access. Revoke user sessions: Ensure that all active sessions are terminated to mitigate the risk of unauthorized access. Reset credentials: Prompt users
to change their passwords to secure their accounts. Additionally, organizations are advised to implement stricter controls around device-code authentication. Microsoft recommends blocking this feature through Entra Conditional Access where it is not essential. Business Risk Outlook The implications of this phishing campaign extend beyond immediate data theft. Organizations face potential reputational damage, regulatory scrutiny, and financial losses if sensitive data is compromised. The persistent nature of the access granted through the PRT means that even password resets may not fully eliminate the threat unless rogue devices are removed. “The evolving
nature of phishing attacks necessitates a proactive approach to cybersecurity, particularly in safeguarding authentication processes.” - Cybersecurity Analyst Key Takeaways Impact: Over 400 rogue devices registered, affecting 305 organizations. Why it matters: Highlights vulnerabilities in Microsoft Entra ID and the need for robust security measures. Recommended action: Immediate removal of rogue devices and revocation of user sessions is critical. Sources Bleeping Computer Hackers in an ongoing device code phishing campaign registered more than 400 rogue Windows devices in Microsoft Entra ID environments across 305 organizations. [...] across 326 identities in
Security engineering teams should validate exploitability across environments, map exposure by asset criticality, and confirm whether available telemetry can detect pre-compromise reconnaissance, exploitation attempts, and post-exploitation behavior.
Patch and Mitigation Playbook
305 organizations." During the workdays of the first two weeks of the month, the attacker registered 276 devices (Windows build 10.0.19041.928) at 168 organizations, using a recognizable naming pattern: “MH-” followed by 16 uppercase hex characters. The attacks begin with victims being tricked into entering an attacker-generated device sign-in code on Microsoft's legitimate authentication page and completing the sign-in. This allows the attacker to obtain valid access and refresh tokens, which are used to register a rogue device in the victim's Microsoft Entra ID environment and This report consolidates available
Organizations with internet-facing systems, third-party integrations, or delayed patch cycles generally carry elevated risk. Internal segmentation gaps can increase blast radius if an attacker obtains initial foothold credentials.
Detection and Monitoring Priorities
- Correlate authentication anomalies with unusual process execution and outbound traffic spikes.
- Alert on privilege escalation events, lateral movement indicators, and unauthorized persistence changes.
- Prioritize monitoring of externally exposed services and high-value identity providers.
- Track integrity changes in scripts, scheduled tasks, startup items, and critical configuration files.
- Hunt for command-and-control beaconing patterns and suspicious use of remote administration tools.
Detection coverage should be validated through tabletop simulation or controlled testing to ensure response teams receive actionable, high-confidence alerts quickly.
Mitigation Checklist
- Patch affected services and validate version levels across all environments.
- Restrict exposed management and service ports to trusted networks only.
- Enable detailed logging and alerting for suspicious process or network activity.
- Harden endpoint controls and isolate high-risk systems until remediation completes.
- Conduct post-remediation validation and document residual risk.
Mitigations should be sequenced by risk: immediately reduce exposed attack surface, then remove persistence opportunities, and finally harden architecture to prevent recurrence.
Incident Response and Recovery Planning
- Establish a clear incident commander and communication cadence across security, IT, and leadership.
- Capture and preserve relevant logs and forensic artifacts before major containment changes.
- Contain compromised accounts and hosts, then execute structured eradication with validation checkpoints.
- Document lessons learned and implement control improvements with owner accountability and timelines.
Recovery should include business continuity planning, legal or regulatory assessment where required, and transparent stakeholder updates based on verified facts.
Security Program Lessons Learned
public details and highlights where evidence is still limited, helping teams prioritize immediate defensive action while additional technical indicators are collected. obtain a Primary Refresh Token (PRT). In doing so, the threat actor enables persistent access to the victim's organization's resources through single sign-on. This is a typical device code phishing attack chain, which has become a common attack method targeting Microsoft 365 accounts , with multiple phishing-as-a-service (PhaaS) operations adopting it (e.g., Tycoon2FA, Greatness, and Kali365). In one recent campaign uncovered by Push Security, attackers used the Kali365 PhaaS
and fake OpenAI and SpaceX event invitations to trick victims into authorizing access to their work accounts. In the observed attacks, Huntress observed sign-ins to Microsoft Entra ID (formerly Azure Active Directory) and Microsoft Office, in many cases followed by access to OneDrive, SharePoint, or Exchange. Huntress has found that all device registrations reported a Windows build that is the default in the ROADtools open-source security toolkit for Microsoft Entra ID. The tool is used to inspect an organization’s Entra environment and test how Microsoft handles sign-ins, tokens, and device
Security leaders should align technical remediation with stakeholder communication, incident readiness, and continuous monitoring to reduce repeat exposure.