Skip to content

Cybersecurity

MadApe Phishing Kit: How Microsoft 365 Access Can Be Stolen Without Your Password

November 30, 2026 | ComputersDOTCalm

MadApe M365 Sign in

For years, the standard phishing warning has been simple: never type your Microsoft 365 password into a suspicious website. MadApe demonstrates why that advice is no longer enough.

Security researchers at Group-IB have documented a phishing kit they call MadApe that abuses Microsoft’s legitimate Device Code authentication process. Instead of building a fake Microsoft password page, the attack attempts to persuade the victim to complete authentication on Microsoft’s real device-login service. If successful and permitted by the organization’s access policies, the attacker may receive tokens that provide access to the victim’s Microsoft account.

For small businesses, this matters because an email can look unusual while the final Microsoft sign-in page looks completely legitimate. That changes what employees need to watch for.

Key takeaway: A genuine Microsoft sign-in page does not automatically mean the request that sent you there is legitimate.

What is MadApe?

MadApe is the name Group-IB assigned to a phishing framework it identified in a device-code phishing campaign targeting Microsoft accounts.

According to Group-IB’s November 2026 research, the campaign uses business-themed PDF attachments, redirect pages and fake document-sharing experiences. Researchers observed templates impersonating familiar services including Microsoft SharePoint, OneDrive, Teams, Adobe Acrobat and DocuSign.

The important difference from conventional credential phishing is that the victim’s password does not need to be entered into the attacker’s phishing page.

Instead, the victim is manipulated into authorizing an authentication session initiated by the attacker.

How the Attack Works

1. A believable business document arrives

The attack can begin with an email containing a PDF presented as something routine, such as an invoice, payment, contract, account statement or shared document.

This is effective because these are exactly the kinds of files employees receive during an ordinary workday.

2. The victim follows the document link

The PDF can direct the victim through an intermediary page. Group-IB observed SharePoint-style document pages as well as human-verification challenges designed to make the interaction appear legitimate and hinder automated security scanning.

3. The victim is given a device code

Instead of asking for a Microsoft 365 password, the phishing workflow presents a device code and directs the victim to Microsoft’s legitimate device-login process.

That is the critical trick.

Employees are often taught to check whether they are signing in on a genuine Microsoft website. In this attack, authentication really does take place on Microsoft infrastructure.

4. The employee authenticates

The victim enters the supplied code and signs into Microsoft.

The employee may believe the authentication is opening a document. In reality, the code is associated with a session initiated by the attacker.

5. Microsoft can issue tokens to the attacker’s session

If authentication succeeds and the organization’s policies allow the flow, the attacker’s client may receive an access token and, in supported circumstances, a refresh token.

Those tokens can potentially provide access to Microsoft 365 resources without the attacker ever receiving the user’s password.

Group-IB warns that because the legitimate user performs the authentication, the interaction may also satisfy applicable MFA requirements. It is therefore important not to describe MFA as a complete defense against this particular social-engineering technique.

Why this is dangerous for a small business

A compromised Microsoft 365 identity can be much more valuable than a single password.

Depending on the account, permissions and security controls in place, unauthorized access may expose resources such as email and cloud-hosted business information. A compromised mailbox can also create opportunities for further phishing and business email compromise.

Consider a 20-person professional-services company. An employee receives an apparently ordinary contract notification, follows the instructions and completes the requested Microsoft device sign-in. The employee may never type a password into a suspicious page, making the incident much harder for the employee to recognize using traditional phishing advice alone.

Three warning signs employees should remember

1. An unexpected document asks for a device code

Entering a device code should not be a routine step for opening an unexpected PDF, invoice or shared document.

If a document request unexpectedly asks you to copy or enter a device code, stop.

2. The Microsoft page is real, but the request was unexpected

Do not evaluate only the final web address. Ask why you were asked to authenticate in the first place.

A real authentication service can still be abused as part of a malicious authorization workflow.

3. The request creates urgency around an ordinary business task

Invoices, contracts, voicemail notifications and shared documents are effective lures precisely because employees are accustomed to acting on them quickly.

When something unusual appears in a familiar workflow, verify it with the supposed sender using a known phone number, a fresh email thread or another trusted communication channel.

How small businesses can reduce their exposure

Restrict Device Code authentication when the business does not need it

For organizations using Microsoft Entra ID, administrators should first determine whether legitimate applications or operational workflows rely on Device Code authentication.

Group-IB recommends examining legitimate Device Code use, evaluating restrictions in report-only mode and blocking the flow through Conditional Access when it is unnecessary. Testing matters because immediately disabling an authentication flow without understanding dependencies can disrupt legitimate devices or workflows.

Investigate suspicious Device Code sign-ins

Microsoft 365 and Entra administrators should treat unexpected device-code authentication as an identity-security event, particularly when it follows a suspicious PDF or document-sharing message.

Useful investigation points include Entra sign-in activity, unexpected mailbox rules and OAuth consent activity.

Revoke sessions after suspected compromise

Changing a password alone may not address access represented by already-issued tokens.

When an account is believed to be compromised, incident response should include revoking active sessions and refresh tokens as appropriate, in addition to resetting credentials and reviewing the account for persistence or unauthorized changes.

Keep MFA, but strengthen the authentication strategy

MadApe is not a reason to turn off MFA. MFA remains an essential security control.

The lesson is that MFA should be combined with appropriate Conditional Access policies, phishing-resistant authentication where practical, monitored sign-in activity and employees who understand authorization-based phishing.

Update security awareness training

Training should move beyond “don’t give away your password.”

Employees should also be taught:

  • Never enter a device code because an unexpected document tells you to.
  • Treat unsolicited authentication or authorization requests as suspicious.
  • Verify sensitive document-sharing requests through a second trusted channel.
  • Report unusual Microsoft 365 prompts to IT immediately.
  • Do not assume a legitimate Microsoft domain means the entire workflow is trustworthy.

What to do if somebody entered a suspicious device code

Treat the account as potentially compromised and respond quickly.

  1. Contact your IT provider or administrator immediately.
  2. Review Microsoft Entra sign-in logs for suspicious authentication activity.
  3. Revoke affected sessions and refresh tokens where appropriate.
  4. Reset the user’s credentials as part of a complete identity-response process.
  5. Review mailbox rules, forwarding and OAuth permissions for unauthorized changes.
  6. Examine recent email and cloud activity to determine what the account accessed or sent.
  7. Preserve relevant evidence before removing everything if the incident may require deeper investigation.

The bigger lesson: phishing is becoming identity phishing

MadApe shows why modern cybersecurity needs to focus on identity, not only passwords and malware.

Attackers increasingly look for ways to abuse legitimate authentication and authorization mechanisms. That makes context important: who initiated the login, why authentication is being requested, which application is receiving authorization and whether that behaviour is normal for your organization.

For a small business, the goal is not to deploy every enterprise security product available. The goal is to put the right safeguards around the identities, email, endpoints and cloud data the business depends on every day.

ComputersDOTCalm can help

ComputersDOTCalm helps small businesses with fewer than 50 employees across South Western Ontario build practical Microsoft 365 and cybersecurity protections without turning everyday IT into a burden.

If your organization uses Microsoft 365 and you are unsure whether Device Code authentication is needed, whether your Conditional Access policies are appropriate, or how quickly you could identify a compromised account, contact ComputersDOTCalm for a Microsoft 365 security review.


Sources

  • Group-IB, MadApe: The Code That Opens the Door, November 2026.
  • Help Net Security, MadApe phishing kit steals Microsoft 365 access without ever asking for a password, November 30, 2026.