
Executive Summary
In November 2026, a sophisticated device code phishing campaign targeted Microsoft Entra ID, resulting in the registration of 468 unauthorized Windows devices across 305 organizations. The attackers exploited a sign-in method designed for devices with limited input capabilities, such as smart TVs and printers. This incident highlights critical vulnerabilities in identity management systems and underscores the importance of robust operational security measures.
Operational Security Context
The phishing campaign utilized a method that allowed attackers to generate device codes, which victims entered on a legitimate Microsoft sign-in page. Once the code was approved, attackers gained access to sensitive tokens, enabling them to register rogue devices within the organizations' Entra ID tenants. Each rogue device was identified by a unique name prefixed with “MH-” followed by 16 hexadecimal characters.
The compromised devices were linked to 326 user identities, illustrating the scale and impact of the attack. The attackers leveraged automated scripts to redeem tokens and register devices, effectively bypassing traditional security measures. Notably, the devices operated on an outdated Windows build, which had not been supported since 2021, raising concerns about the security posture of the affected organizations.
SOC Detection and Triage Workflow
To effectively detect and respond to such incidents, Security Operations Centers (SOCs) should implement a structured triage workflow:
- Monitoring: Continuously monitor for unusual device registrations and sign-in patterns in Entra ID.
- Alerting: Set up alerts for any registrations of devices with the “MH-” prefix or those using outdated Windows builds.
- Investigation: Conduct a thorough investigation of any flagged devices, including checking for associated user accounts and sign-in locations.
- Incident Response: If a rogue device is confirmed, follow the incident response plan, which includes deleting the device, revoking user sessions, and resetting credentials.
As noted by Huntress, only a fraction of the organizations affected had Microsoft Defender connected, which limited visibility into the incident. This highlights the need for comprehensive security solutions that provide full coverage across all devices and users.
Engineering Remediation Checklist
Organizations can take several proactive steps to mitigate the risk of similar phishing attacks in the future:
- Limit Device Registrations: Restrict the number of devices a user can register and implement strict policies on who can join devices to the network.
- Multi-Factor Authentication (MFA): Require MFA for all device registrations to add an additional layer of security.
- Conditional Access Policies: For organizations with Entra ID P1 licensing or higher, block device code authentication through conditional access policies.
- Regular Audits: Conduct regular audits of device registrations and user access to identify any anomalies.
Validation and Follow-through
After implementing remediation measures, it is crucial to validate their effectiveness. Organizations should:
- Test Security Controls: Regularly test the effectiveness of new security measures and update them based on evolving threats.
- Conduct Training: Provide ongoing training for employees about the risks of phishing and the importance of security best practices.
- Review Incident Response Plans: Ensure that incident response plans are up-to-date and include procedures for handling device code phishing incidents.
“A password reset alone doesn’t remove the access; the device has to be deleted,” emphasized the Huntress team, highlighting the critical nature of device management in security protocols.
Sources
- Hackers plant rogue devices in Microsoft Entra ID across 305 organizations
- Attackers exploit new Acronis backup plugin vulnerability (CVE-2026-87887)
- December 2026 Patch Tuesday forecast: Patch without unexpected downtime
A recent device code phishing campaign has compromised Microsoft Entra ID across 305 organizations, leading to the registration of 468 rogue devices. This article explores the implications, detection workflows, and remediation strategies.
the code was approved, attackers gained access to sensitive tokens, enabling them to register rogue devices within the organizations' Entra ID tenants. Each rogue device was identified by a unique name prefixed with “MH-” followed by 16 hexadecimal characters. The compromised devices were linked to 326 user identities, illustrating the scale and impact of the attack. The attackers leveraged automated scripts to redeem tokens and register devices, effectively bypassing traditional security measures. Notably, the devices operated on an outdated Windows build, which had not been supported since 2021, raising concerns
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.
about the security posture of the affected organizations. SOC Detection and Triage Workflow To effectively detect and respond to such incidents, Security Operations Centers (SOCs) should implement a structured triage workflow: Monitoring: Continuously monitor for unusual device registrations and sign-in patterns in Entra ID. Alerting: Set up alerts for any registrations of devices with the “MH-” prefix or those using outdated Windows builds. Investigation: Conduct a thorough investigation of any flagged devices, including checking for associated user accounts and sign-in locations. Incident Response: If a rogue device is confirmed, follow
the incident response plan, which includes deleting the device, revoking user sessions, and resetting credentials. As noted by Huntress, only a fraction of the organizations affected had Microsoft Defender connected, which limited visibility into the incident. This highlights the need for comprehensive security solutions that provide full coverage across all devices and users. Engineering Remediation Checklist Organizations can take several proactive steps to mitigate the risk of similar phishing attacks in the future: Limit Device Registrations: Restrict the number of devices a user can register and implement strict policies on
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.
who can join devices to the network. Multi-Factor Authentication (MFA): Require MFA for all device registrations to add an additional layer of security. Conditional Access Policies: For organizations with Entra ID P1 licensing or higher, block device code authentication through conditional access policies. Regular Audits: Conduct regular audits of device registrations and user access to identify any anomalies. Validation and Follow-through After implementing remediation measures, it is crucial to validate their effectiveness. Organizations should: Test Security Controls: Regularly test the effectiveness of new security measures and update them based on
evolving threats. Conduct Training: Provide ongoing training for employees about the risks of phishing and the importance of security best practices. Review Incident Response Plans: Ensure that incident response plans are up-to-date and include procedures for handling device code phishing incidents. “A password reset alone doesn’t remove the access; the device has to be deleted,” emphasized the Huntress team, highlighting the critical nature of device management in security protocols. Sources Hackers plant rogue devices in Microsoft Entra ID across 305 organizations Attackers exploit new Acronis backup plugin vulnerability (CVE-2026-87887) December
2026 Patch Tuesday forecast: Patch without unexpected downtime A device code phishing campaign registered 468 attacker-controlled Windows devices in the Microsoft Entra ID tenants of 305 organizations, according to Huntress. The devices, registered in November, were tied to 326 user identities, and each carried a name made of the “MH-” prefix followed by 16 uppercase hexadecimal characters. Source: Huntress Device code phishing abuses a Microsoft sign-in method meant for devices that can’t easily handle a password prompt, such as smart TVs and printers. … More → The post Hackers plant
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.
rogue devices in Microsoft Entra ID across 305 organizations appeared first on Help Net Security . generated that code receives tokens that give access to the victim’s account. Huntress describes a lure posing as a non-disclosure agreement (NDA) protected by Adobe. Once the victim approves the code, the attacker receives access and refresh tokens linked to the Microsoft Authentication Broker app. An automated Python script then redeems those tokens from a different IP address and registers a new device in the organization’s Entra ID, Microsoft’s cloud identity service. That registration
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.
hands the attacker a Primary Refresh Token (PRT), a credential used for single sign-on to Microsoft 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. services. When obtained through phishing, the token keeps working after the victim’s password is changed, and it can satisfy Conditional Access policies that only let registered devices in. The attacker used it to get into Office, OneDrive, SharePoint and Exchange. “A password reset alone doesn’t remove the access; the
device has to be deleted,” the researchers wrote. The sign-ins were routed through residential proxy networks, mostly from US and UK broadband connections, and no single IP address was used against more than two victims. Every rogue device reported Windows build 10.0.19041.928, the default build hardcoded in ROADtools, an open-source toolkit for Microsoft Entra ID. Its developer built it for both offensive and defensive security work, and one of its components can request tokens and register devices. “The threat actor appears to be leveraging the ROADtools public toolkit to register
Security leaders should align technical remediation with stakeholder communication, incident readiness, and continuous monitoring to reduce repeat exposure.