MadApe Uses Microsoft Codes to Hijack Accounts

Help Net Security · High sophistication
Last updated November 30, 2026

The MadApe phishing kit tricks users into opening a business-themed PDF and completing a Microsoft Device Code sign-in. Because the sign-in happens on Microsoft’s real website, victims may believe it is safe, but the attackers can receive tokens that let them access Microsoft 365 email and files without ever collecting a password.

Key findings

  • MadApe abuses Microsoft Device Code authentication rather than asking victims to enter a password on a fake login page.
  • The attack starts with a business-themed PDF attachment, often disguised as a SharePoint file-sharing notification.
  • Victims are directed through a SharePoint-themed page or a human-verification challenge before reaching the Device Code page.
  • The lure instructs victims to copy a device code and sign in at the legitimate microsoft.com/devicelogin website.
  • After the victim signs in, the attacker’s backend collects access tokens and, where available, refresh tokens that can provide access to Microsoft 365 mailboxes and files.
  • Templates impersonate SharePoint, OneDrive, Microsoft Teams, Adobe Acrobat, DocuSign, and Microsoft sign-in pages; attachment names commonly reference payments, invoices, contracts, and account statements.
  • Group-IB identified 155 root domains associated with the kit but did not attribute the campaign to a known threat actor.

Who’s being targeted

  • Commonly targeted roles: All Microsoft 365 users, Finance and accounting, Procurement, Legal, Executive assistants, Customer support, Sales, Human resources, IT and security teams.
  • Affected industries: Organizations using Microsoft 365, Business services, Finance and accounting teams, Logistics.
  • Attack channels: email, website.
  • Impersonated: SharePoint / Microsoft 365, Microsoft Teams.

Awareness takeaways

  • Never enter or approve a Microsoft Device Code unless you personally started the sign-in process and understand why it is needed.
  • Treat unexpected document-sharing PDFs, especially those involving invoices, payments, contracts, or statements, as suspicious and verify them through a known contact channel.
  • A real Microsoft login page does not make a request safe; check whether the email and workflow were expected before signing in.
  • Be cautious when a routine file or voicemail request makes you complete CAPTCHA, text-entry, image-selection, or press-and-hold verification steps.

Red flags to watch for

  • An unexpected PDF claims to be a SharePoint file-sharing notification.
  • The recipient is asked to enter a device code for a file-access request they did not initiate.
  • A legitimate Microsoft sign-in page is reached through an unexpected email attachment and redirect chain.
  • A voicemail alert arrives unexpectedly, particularly from an unknown sender or outside normal business contacts.
  • The supposed voicemail workflow asks for a Microsoft Device Code instead of opening in the normal Teams application.
  • A CAPTCHA or press-and-hold challenge appears before access to a routine business voicemail.
Try Mirage

Mirage safely runs attacks like this one against your own team, so you find out what happens before a real adversary does.

Get a demo
Read the video transcript

A SharePoint PDF says an invoice is ready. You weren't expecting it. MadApe's trick: the PDF link opens a SharePoint-looking page, then shows a device code and sends you to the real microsoft.com/devicelogin. That's the aha: Microsoft's page is real, but the code isn't your request. Signing in can hand over tokens for your Microsoft 365 mail and files. Didn't start a device sign-in yourself? Don't enter the code.

Similar attacks

N0va Phishkit Uses Trusted Apps to Steal SSO Access

N0va Phishkit Uses Trusted Apps to Steal SSO Access

A phishing kit dubbed N0va is targeting organizations in North America and Europe by impersonating familiar business services (like Microsoft Teams/SharePoint and DocuSign) and pushing victims through legitimate sign-in flows. By capturing authentication tokens rather than dropping obvious malware,…

September 16, 2026
CSuite Phish Steals M365 Sessions, Installs RMM

CSuite Phish Steals M365 Sessions, Installs RMM

Researchers observed a real phishing campaign (“CSuite”) heavily targeting U.S. organizations using familiar business-themed lures (DocuSign, Adobe, Zoom/Meet, Dropbox, Microsoft 365). After a victim engages, the attackers either steal Microsoft 365 sessions (enabling mailbox takeover and fraud) or…

September 30, 2026
Fake Recruiters Target Job Seekers With Malware

Fake Recruiters Target Job Seekers With Malware

Iran-aligned DarkBlinders used convincing recruitment offers while posing as Dubai Airports recruiters to target a high-value job seeker in Iraq. The victim was asked to complete what appeared to be a coding assessment, but the assessment package installed malware. The group also used lookalike…

November 2, 2026
Fake Calendar Invites Hit 40,000 Organizations

Fake Calendar Invites Hit 40,000 Organizations

Attackers sent large volumes of fake Microsoft 365 calendar invitations designed to steal employee credentials. The messages use familiar meeting requests, including apparent Microsoft Teams invitations and calendar files, to direct users to phishing pages. Some invitations can remain on an…

October 20, 2026
DocuSign Phish Uses “Blob” Pages in Your Browser

DocuSign Phish Uses “Blob” Pages in Your Browser

Researchers described a real phishing campaign where victims click through legitimate Microsoft services and end up on a fake login page that is generated inside their own browser. The phishing page uses a temporary “blob URL” (not a normal website) and can disappear after the session, making it…

September 10, 2026
Phish Page Built Inside Your Browser

Phish Page Built Inside Your Browser

Researchers reported a real phishing campaign that uses legitimate Microsoft OAuth and Teams pages to make the journey look trustworthy. Instead of hosting a fake login site on a suspicious domain, the attackers render the phishing page inside the victim’s own browser using a temporary “blob URL,”…

September 10, 2026