Group-IB has documented MadApe, a previously undocumented phishing kit that abuses the Microsoft device code sign-in flow. Because the sign-in happens on Microsoft’s own page, the kit never collects a password.

In its report, Group-IB researchers Mansour Alhmoud and Faraz Ali describe a reusable framework with interchangeable lures and decoy sites. Targets receive an email with a PDF that imitates a file-sharing notice and pass through an intermediary redirect or verification page. The phishing page then shows a device code and tells the recipient to copy it before continuing. The victim is sent to Microsoft’s real device login page to enter the code, and the authors write that “The authentication itself therefore takes place on legitimate Microsoft infrastructure”.

Group-IB identified 155 root domains in its expanded infrastructure dataset. It found device code phishing components on infrastructure tied to 97 of them, and says the other 58 appear to be staged but not yet active. The researchers tie the pages and decoys to one deployment through the title of the kit’s operator panel.

Why it matters

In our reading, controls built around stolen passwords and fake login pages do not see this flow, because the user signs in on a genuine Microsoft domain. We covered how attackers go after stored credentials and tokens in our analysis of four credential reports, and the argument for stronger sign-in is in our opinion piece on passkeys.

Group-IB’s advice is specific. Where the device code flow is unnecessary, create a Conditional Access policy using the authentication flows condition, select device code flow and block access. The authors also recommend reviewing exceptions regularly and validating the policy in report-only mode before enforcing it. Group-IB published YARA rules and indicators of compromise, including domains and PDF file hashes, for hunting.

Tell staff that a device code they did not request is a warning sign, and ask help desk teams to log reports of unexpected codes.

Source: Group-IB