MadApe Allows Attackers to Access Microsoft 365 Without Password Theft

• Evgenia Sliv (edited: )
MadApe Allows Attackers to Access Microsoft 365 Without Password Theft

Cybersecurity specialists from Group-IB have discovered a previously undocumented phishing tool called MadApe, which allows attackers to access Microsoft 365 accounts without collecting passwords on fake pages. It uses the legitimate Device Code authorization mechanism, which under certain conditions can obtain access tokens even after successful multi-factor authentication.

The research was published on November 25, 2026. Analysts identified an infrastructure of 155 related domains, 97 of which were used to host components of the phishing scheme.

How MadApe Gains Access to Microsoft 365 Accounts

The attack begins with an email containing a PDF attachment disguised as a business document. Invoices, payment reports, contracts, and notifications about opening files through Microsoft SharePoint are used as bait. Some messages contain branded elements of organizations, employee signatures, or forwarded correspondence, which increases their credibility.

When the attachment is opened, the user sees a link to view the supposed document. It redirects them to an intermediate page that may mimic SharePoint or offer a human presence check. The latter is also used to complicate the automatic analysis of suspicious sites by security systems.

The victim then lands on a phishing page with a Microsoft Device Code authorization code. The user is prompted to copy this code and open the official Microsoft website to complete the login.

The main feature of the attack is that the entry of credentials occurs on the actual Microsoft page, not on a fake site. Therefore, the user may not notice the usual phishing signs associated with a suspicious login page address.

Meanwhile, the code was previously obtained by the attackers' system. After the user confirms the authorization, the MadApe server tracks its completion and attempts to obtain the access tokens issued by Microsoft.

If successful, attackers can access the mailbox and Microsoft 365 files within the permissions granted to the respective application. In some cases, the mechanism also allows obtaining a refresh token, which can be used to continue access without re-entering the password.

Researchers Discovered 155 Related Domains

According to Group-IB, the MadApe infrastructure includes 155 root domains. Phishing components were found on 97 of them, hosted on separate subdomains or pages. The remaining resources, according to researchers, might have been in the preparation stage.

Most of the studied domains were registered between June and August 2026. Some addresses were created simultaneously, indicating the use of an organized process for deploying the infrastructure.

Phishing pages were disguised as Microsoft SharePoint, OneDrive, Teams, Adobe Acrobat, and DocuSign. Researchers found that different visual templates concealed a common software mechanism using identical authorization functions and server components.

The baits were prepared in at least nine languages, including English, German, French, Spanish, and Hebrew. Some messages in Hebrew were directed at users in Israel. Additionally, specialists found signs of possible compromise of nine legitimate third-party sites used for intermediate redirects.

The MadApe control panel was found on at least five domains. The earliest identified instance operated on August 19, 2026, on a server in Germany.

Despite the scale of the discovered infrastructure, Group-IB did not establish the campaign's affiliation with any known hacker group. The number of identified domains should not be equated with the number of successfully compromised accounts.

Why Multi-Factor Authentication Doesn't Always Protect Against MadApe

Unlike traditional phishing, MadApe does not attempt to intercept the password directly through a fake login form. Instead, attackers convince the user to independently complete the genuine Microsoft authorization procedure to connect an application controlled by the attacking side.

As a result, standard multi-factor authentication can be successfully passed. The system will issue tokens according to the application's request and the current security policies. Thus, having MFA does not eliminate the risk of account compromise.

To protect corporate accounts, Group-IB researchers recommend checking the use of Device Code Flow in Microsoft Entra. If an organization does not require such a method of authorization, it can be blocked using Conditional Access policies after verifying the potential impact on workflows.

Administrators are also advised to monitor unusual logins, suspicious applications, unknown IP addresses, and subsequent actions with corporate data. In case of suspected compromise, it is necessary to check the issued permissions and revoke related access sessions.

For users, the main danger signal remains an unexpected request to enter an authorization code obtained from an email or third-party document. Even if the transition leads to the actual Microsoft site, it does not confirm the legitimacy of the original request.

Researchers have published indicators of compromise and MadApe detection rules that organizations can use to analyze their own infrastructure. The discovered scheme shows that modern phishing campaigns can exploit not only user errors but also the features of legitimate authentication mechanisms.

This material is prepared solely for informational purposes and does not constitute financial advice or a recommendation.

Comments

Checking authorization...
Loading comments...