MadApe phishing kit abuses Microsoft 365 Device Code flow to steal access tokens without collecting passwords
Group-IB's threat intelligence team documented MadApe, a previously undocumented phishing kit that gives its operators access to Microsoft 365 accounts without collecting a password on any phishing page. It abuses Microsoft's Device Code authentication. If the victim completes the sign-in and access controls allow it, the operators receive an access token and, where supported, a refresh token. That opens a path to the victim's mailbox and files, and Group-IB warns the authentication may also satisfy MFA requirements. Group-IB did not attribute the campaign to a known threat actor. This summary is based on the article alone, because no web research was done.
Detalhes técnicos
- Delivery: a phishing email carries a PDF attachment disguised as a business document or SharePoint file-sharing notice. Its embedded link leads to an intermediary page. That page is either a SharePoint-themed access page or a human-verification challenge (custom CAPTCHA, text entry, image selection or press-and-hold button) that keeps security scanners out.
- Device code step: the victim is shown a device code obtained from Microsoft. Clicking it copies the code to the clipboard and logs the interaction. An "Open File" button then sends the victim to microsoft.com/devicelogin to paste the code and sign in. Authentication therefore happens on a legitimate Microsoft domain. The kit's backend polls Microsoft's token endpoint to collect the tokens.
- Lures: templates pose as SharePoint, OneDrive, Teams, Adobe Acrobat, DocuSign and Microsoft sign-in, including a German-language Teams voicemail lure. The lures come in at least nine languages, and the Hebrew ones targeted recipients in Israel. Attachment names mostly refer to payments, invoices, contracts and account statements.
- Infrastructure: the operator panel login page, which gave the kit its name, appeared on at least five domains. The earliest instance was on 19 August 2026, on a server hosted in Germany. Decoy sites include a fake logistics firm, C2S Logistics. Group-IB mapped 155 root domains, and the kit was deployed on 97 of them. Most were registered between mid-June and late August 2026, and Dynadot handled 86.4% of the registrations. 69% of the domains share a creation timestamp with at least one other domain. Nine legitimate third-party sites hosting redirect pages were likely compromised.
- Group-IB published YARA rules and IOCs, including URLs, domains and PDF lure hashes.
Remediação
Organizations that do not need the Device Code flow should block it with Conditional Access. Users should be wary of any device code request they did not expect.
Linha do tempo
-
MadApe phishing kit abuses Microsoft 365 Device Code flow to steal access tokens without collecting passwords
ler a análise desta fonte ocultar
Group-IB's threat intelligence team documented MadApe, a previously undocumented phishing kit that gives its operators access to Microsoft 365 accounts without collecting a password on any phishing page. It abuses Microsoft's Device Code authentication. If the victim completes the sign-in and access controls allow it, the operators receive an access token and, where supported, a refresh token. That opens a path to the victim's mailbox and files, and Group-IB warns the authentication may also satisfy MFA requirements. Group-IB did not attribute the campaign to a known threat actor. This summary is based on the article alone, because no web research was done.
Technical Details
- Delivery: a phishing email carries a PDF attachment disguised as a business document or SharePoint file-sharing notice. Its embedded link leads to an intermediary page. That page is either a SharePoint-themed access page or a human-verification challenge (custom CAPTCHA, text entry, image selection or press-and-hold button) that keeps security scanners out.
- Device code step: the victim is shown a device code obtained from Microsoft. Clicking it copies the code to the clipboard and logs the interaction. An "Open File" button then sends the victim to microsoft.com/devicelogin to paste the code and sign in. Authentication therefore happens on a legitimate Microsoft domain. The kit's backend polls Microsoft's token endpoint to collect the tokens.
- Lures: templates pose as SharePoint, OneDrive, Teams, Adobe Acrobat, DocuSign and Microsoft sign-in, including a German-language Teams voicemail lure. The lures come in at least nine languages, and the Hebrew ones targeted recipients in Israel. Attachment names mostly refer to payments, invoices, contracts and account statements.
- Infrastructure: the operator panel login page, which gave the kit its name, appeared on at least five domains. The earliest instance was on 19 August 2026, on a server hosted in Germany. Decoy sites include a fake logistics firm, C2S Logistics. Group-IB mapped 155 root domains, and the kit was deployed on 97 of them. Most were registered between mid-June and late August 2026, and Dynadot handled 86.4% of the registrations. 69% of the domains share a creation timestamp with at least one other domain. Nine legitimate third-party sites hosting redirect pages were likely compromised.
- Group-IB published YARA rules and IOCs, including URLs, domains and PDF lure hashes.
Remediation
Organizations that do not need the Device Code flow should block it with Conditional Access. Users should be wary of any device code request they did not expect.