A phishing kit turns Microsoft's sign-in codes against you

MadApe phishing kit takes over Microsoft 365 accounts through device code sign-in

From the HARD Situation Room · First reported
By Mitchell Flindell, founder of HARD
Share Email X Facebook
A phishing kit turns Microsoft's sign-in codes against you: don't enter a device code you didn't ask for
High scam: who’s affected and what to do, reported 30 Nov 2026.
group-ib.com: MadApe: The Code That Opens the Door
Screenshot: group-ib.com

A new phishing kit called MadApe gets into Microsoft 365 accounts by walking people through Microsoft's own device code sign-in. The fake pages never ask for a password, but the person signs in on the real Microsoft site, and the attackers receive access once that sign-in finishes. Group-IB, the cybersecurity firm that found it, counts 155 domain names tied to the kit, and there is no software update for it because it abuses a sign-in method rather than a flaw.

Does this affect your devices? HARD for Mac and iPhone matches what you have installed against these stories, privately on your device, and explains why you need to update, while the free browser extension stops scams and fake sites before they load.

Current event.First reported 30 Nov 2026. Details may change as more becomes known; updates will be added to the timeline.

What to do

  1. Don't type a device code you didn't ask for.If an email, a PDF or a web page asks you to enter a code at microsoft.com/devicelogin, stop. Only do it if you started that sign-in yourself, on a device you own.
  2. Open shared files from the source.A file-share notice that arrives as a PDF is the kind of lure described above. Go to SharePoint or OneDrive by typing the address yourself, or ask the sender through another channel.
  3. Cancel any device login you didn't start.If your Microsoft account shows a sign-in you don't recognise, cancel it. If the account is for work or school, report it to your IT team.
  4. If you already entered a code, act now.Tell your IT team straight away. On a personal account, change your Microsoft password, sign out of other sessions, and remove any apps or devices you don't recognise.
  5. Ask whoever runs your Microsoft 365 to block device code sign-in.They can check the sign-in logs, then add a Conditional Access policy, which is Microsoft's rule for controlling sign-ins, to block the flow. Test it in report-only mode first, so nothing breaks without warning.

What happened

A new phishing kit called MadApe gets into Microsoft 365 accounts without its fake pages ever asking for a password. It walks people through Microsoft's own device code sign-in instead. The person signs in on the real Microsoft website, and the attackers receive the access that comes out of that sign-in. The research firm Group-IB found the kit and wrote it up.

MadApeMicrosoft 365 device code phishing kit
Level
High Active phishing, targets Microsoft 365 accounts
Lures
Emails with a PDF, styled as SharePoint, OneDrive, Teams, Adobe Acrobat, DocuSign or Microsoft sign-in pages
Scale
155 domain names tied to the kit; phishing parts found on 97 of them
Languages
Nine, including English, French, German, Hebrew and Icelandic
Fix
None. It is a phishing kit, not a software flaw, so there is nothing to install.
What's known.Group-IB's research, as reported by Help Net Security on 30 November 2026.
The full story3 more sections

What happened

Group-IB's threat intelligence team says MadApe had not been documented before. It tied 155 domain names to the kit, and the phishing parts were found on 97 of them. Most of those domains were registered between mid-June and late August 2026, and many were created in batches within the same second.

The lure usually arrives as an email with a PDF attached. The PDF looks like a file-sharing notice from SharePoint, Microsoft's document service, and its file names point to payments, invoices, contracts or account statements. Some emails copy the branding of the organisation being targeted.

Group-IB did not link MadApe to any known criminal group. Its report names no fixed software version. The coverage we read does not mention any response from Microsoft.

How the trick works

Microsoft describes device code sign-in as a way to sign in devices that lack a usable keyboard or screen, such as shared devices or digital signage. The device shows a short code, and the person then signs in on a separate device at microsoft.com/devicelogin and types the code in. MadApe turns that around. The attackers' server asks Microsoft for a code and shows it to the victim on a fake page.

The victim clicks the link in the PDF and lands on a page that looks like a SharePoint access portal, or that asks them to pass a check such as a CAPTCHA. The check is there to slow down automated scanners. The fake page then shows a device code and asks them to copy it. Its "Open File" button sends them to the real Microsoft login page, where they paste the code and sign in with their own password and any second check, such as a code sent to their phone.

While that happens, the kit's server keeps asking Microsoft whether the sign-in has finished. If it has, and the account's access rules allow it, the server receives an access token and, where it is available, a refresh token. Those can open the person's mailbox and files. Group-IB warns that this kind of sign-in "may also satisfy MFA requirements", so a second check may not stop it.

Who is affected

Anyone with a Microsoft 365 account can be sent these emails. The lures copy familiar work tools, so they look like ordinary office mail.

Microsoft says device code sign-in is high risk and recommends blocking it wherever possible. For a business, school or club that runs Microsoft 365, the block is a setting its administrator controls. Microsoft suggests checking the sign-in logs for device code use first, so that a block does not stop anything that is still needed.

Timeline
  1. HARD publishes its article, at High.

Share Email X Facebook

Written by Mitchell Flindell, founder of HARD. How we check our stories. Spotted a mistake? Tell us.

Latest from HARD

References3
  1. Group-IB (). “MadApe Microsoft Device Code Phishing Kit”. Original research: lure chain, 155 root domains, 97 with phishing components, nine languages, registration patterns, recommendations for admins, SOC and users; no fixed version because it is a phishing kit.
  2. Help Net Security (). “MadApe phishing kit steals Microsoft 365 access without ever asking for a password”. News summary: device code abuse, token and refresh token capture, MFA may be satisfied, no attribution to a known threat actor, no Microsoft response mentioned.
  3. Microsoft Learn (). “Conditional Access: Authentication flows as a condition in Conditional Access policy”. Microsoft's description of device code flow as high risk and phishing-linked; recommends blocking it wherever possible; report-only mode and sign-in log checks; purpose of device code sign-in for devices without input.

Situation Room articles are updated as events develop: updates are added to the timeline, and never edited away. Follow them by email or RSS.