Security · 4 December 2026

Device-code phishing plants rogue devices in 305 Microsoft Entra tenants

How this briefing is made

Huntress found a campaign that registered 468 rogue devices in 305 organisations' Entra ID tenants in November. Victims enter an attacker-generated code on Microsoft's real login page. The attackers then register a device and obtain a Primary Refresh Token for lasting access to OneDrive, SharePoint and Exchange.

Why it matters: Block device-code sign-ins with Conditional Access if you don't need them, and look in Entra ID for unknown devices named 'MH-' followed by hex characters. Delete such devices before resetting passwords, because the token survives a reset.

Also covered by

How the story developed

  1. Microsoft: attackers exploited Entra Connect Health flaw to read tenant admin data
  2. Rackspace Spot breach let attackers read customer Kubernetes secrets
  3. Azure API Management flaw exploited to steal customer secrets, rotate keys now
  4. Device-code phishing plants rogue devices in 305 Microsoft Entra tenants