MadApe Phishing Kit: How a Code, Not a Password, Unlocks Microsoft 365

MadApe Phishing Kit: How a Code, Not a Password, Unlocks Microsoft 365

Most phishing training tells people to check the web address before typing a password. A newly documented phishing kit called MadApe gets around that advice. It never asks for a password at all. Instead, it gets people to type a short code into the real Microsoft website. That code quietly gives the attacker access to their Microsoft 365 account.

The kit was documented by researchers at Group-IB in a report published on 25 November 2026, and reported by Help Net Security on 30 November.

How the attack works

MadApe abuses Microsoft’s device code sign-in. This is a real feature built for devices without a keyboard, such as smart TVs or meeting-room screens. The device shows a code, and you type it at microsoft.com/devicelogin on your phone or PC to sign it in.

Group-IB describes the attack like this:

  1. The victim gets an email with a PDF attachment that looks like a business document, often dressed up as a SharePoint notification.
  2. A link in the PDF opens a SharePoint-style “document access” page or a fake “verify you’re human” check.
  3. The next page shows a code and an “Open File” button. Clicking the code copies it.
  4. The button sends the victim to the genuine microsoft.com/devicelogin page. They paste the code and sign in as normal.
  5. The attacker’s system, waiting in the background, receives an access token for the victim’s account. Where supported, it also gets a refresh token, which can keep the access going.

Because the victim signs in on Microsoft’s own site, the phishing page never sees a password. Group-IB warns that the sign-in may also satisfy MFA, since the victim completes the MFA prompt themselves.

How big is it

According to Group-IB:

  • Lures pose as SharePoint, OneDrive, Teams, Adobe Acrobat, DocuSign and Microsoft sign-in pages.
  • They come in at least nine languages, including English, German, French, Spanish and Portuguese.
  • Researchers mapped 155 root domains, with the kit deployed on 97 of them.
  • The earliest operator panel they found was set up on 19 August 2026.
  • Group-IB has not linked MadApe to a known threat group.

What businesses should do

  1. Block device code sign-in if you don’t need it. Both Group-IB and Help Net Security advise restricting the device code flow with Conditional Access in Microsoft Entra. Most small businesses never use it. If you have meeting-room devices that do, allow it only for those accounts. Conditional Access needs Microsoft Entra ID P1, which comes with Microsoft 365 Business Premium.
  2. Watch device code sign-ins. Check your Entra sign-in logs for device code authentication. Any use outside known devices should be investigated.
  3. Teach one simple rule. Staff should never enter a code at microsoft.com/devicelogin unless they are setting up a device right in front of them. A document, invoice or voicemail never needs a code. Add this to your security awareness training.
  4. Report fast, act fast. If someone entered a code from an email, treat the account as compromised. Revoke the user’s sessions in Entra, reset the password, check mailbox rules and recent sign-ins, and review what was accessed.
  5. Review your wider setup. Our Microsoft 365 security checklist covers other settings that limit the damage when an account is taken over.

Frequently asked questions

Does MFA protect us from this? Not on its own. The victim signs in on the real Microsoft page and approves MFA themselves, so the attacker gets a valid session. Blocking device code sign-in where you don’t need it is the stronger fix. It is a similar idea to MFA fatigue attacks: the attacker gets the user to approve the login for them.

How can staff tell this apart from a normal login? A normal login to open a document asks for your email and password on a Microsoft page. If a page asks you to copy a code and paste it somewhere, stop. Unless you are setting up a TV, printer or meeting-room device yourself, it is a scam.

We think someone fell for it. What first? Revoke all sessions for that user and reset their password straight away. Then check for new inbox rules, forwarding, app consents and unusual sign-ins over the past few days.

Sources: Group-IB, “MadApe: The Code That Opens the Door” (25 Nov 2026); Help Net Security (30 Nov 2026).