Skip to navigation

Threat reportPhishingTL-2026-4714

MadApe: Previously Undocumented Microsoft Device Code Phishing Kit Using Business-Themed PDF Lures and Fake Document-Sharing Pages

highACTIVE

Group-IB documents MadApe, a previously undocumented phishing kit that abuses the Microsoft OAuth 2.0 device code flow: business-themed PDF lures lead through redirect pages and human-verification gates to fake SharePoint/OneDrive/Teams/Adobe/DocuSign pages that show a device code and send the victim to the legitimate microsoft.com/devicelogin portal, so the operator's application receives the victim's tokens.

Key facts

IdentifiersTL-2026-4714
Also known asMad Ape
SeverityHIGH
First disclosed
Affected productsMicrosoft Microsoft Entra ID / Microsoft 365 (OAuth 2.0 device code flow)
MITRE ATT&CK techniquesT1204.001 Malicious Link, T1480 Execution Guardrails, T1528 Steal Application Access Token, T1550.001 Application Access Token, T1566.001 Spearphishing Attachment, T1566.002 Spearphishing Link, T1583.001 Domains, T1584.004 Server, T1608.005 Link Target, T1684.001 Impersonation
MotivationUNKNOWN
Target sectorsfinancial services, health, logistics, technology, real estate
Target regionsisrael, Multinational
Detection rules9 (1 shown free)
Sources5 cited sources

Detection coverage

As of 2026-10-29, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4714 across Splunk SPL, Microsoft KQL and Sigma, covering 30 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: MadApe Device Code Sign-in Success in Entra ID — Exploitation Phase

Detects a successful Entra ID sign-in that used the OAuth 2.0 device code flow, the exact authorization path MadApe (TL-2026-4714) abuses: the victim enters an attacker-supplied code at microsoft.com/devicelogin and the operator's application receives the tokens (T1528, T1550.001). Flags the Group-IB example hosting IP 5.230.194.87. Hunt every hit against the tenant's inventory of legitimate device code use.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1528, T1550.001
  • Data sources: azure_ad_signin_logs, azure:monitor:aad, SigninLogs
  • Severity: high
  • Confidence: high

Splunk SPL

index=azure sourcetype="azure:monitor:aad" category=SignInLogs properties.authenticationProtocol=deviceCode earliest=-24h
| eval user=lower('properties.userPrincipalName'), src_ip='properties.ipAddress', app='properties.appDisplayName', resource='properties.resourceDisplayName', asn='properties.autonomousSystemNumber', risk='properties.riskLevelDuringSignIn', err=tonumber('properties.status.errorCode')
| where err=0
| eval madape_known_ip=if(src_ip="5.230.194.87" OR asn="12586","yes","no")
| stats count as signins min(_time) as first_seen max(_time) as last_seen values(app) as apps values(resource) as resources values(src_ip) as src_ips values(asn) as asns values(risk) as risk_levels values(madape_known_ip) as madape_known_ip by user
| convert ctime(first_seen) ctime(last_seen)

Microsoft KQL

SigninLogs
| where TimeGenerated > ago(24h)
| where (AuthenticationProtocol =~ "deviceCode" or OriginalTransferMethod =~ "deviceCodeFlow")
| where ResultType == 0
| extend Country = tostring(LocationDetails.countryOrRegion), MadApeKnownIP = (IPAddress == "5.230.194.87" or AutonomousSystemNumber == "12586")
| project TimeGenerated, UserPrincipalName, IPAddress, MadApeKnownIP, AutonomousSystemNumber, RiskLevelDuringSignIn, Country, AppDisplayName, ResourceDisplayName, ClientAppUsed, UserAgent, CorrelationId

Sigma

title: MadApe Entra ID Device Code Sign-in Success
id: d1e5a0c2-7b34-4f1a-9c8e-3a5b6c7d8e01
name: madape_entra_devicecode_signin
status: experimental
description: Successful Entra ID sign-in using the OAuth 2.0 device code flow, the authentication path abused by the MadApe phishing kit (TL-2026-4714).
references:
    - https://www.group-ib.com/blog/madape-microsoft-device-code-phishing-kit/
    - https://learn.microsoft.com/en-us/entra/identity/conditional-access/policy-block-authentication-flows
author: Threadlinqs Team
date: 2026/10/29
tags:
    - attack.credential-access
    - attack.t1528
    - attack.lateral-movement
    - attack.t1550.001
logsource:
    product: azure
    service: signinlogs
detection:
    selection:
        AuthenticationProtocol: deviceCode
        ResultType: 0
    condition: selection
falsepositives:
    - Legitimate device code use on input-constrained devices (Teams Rooms, IoT, Azure CLI, PowerShell)
level: medium

Known false positives:

  • Legitimate device code authentication on input-constrained devices such as Teams Rooms, kiosks, Azure CLI or PowerShell sessions
  • Developers and administrators using az login --use-device-code

Tuning notes: Build a lookup of approved device code users, applications and egress IPs and exclude them. The madape_known_ip flag marks AS12586 (ASGHOSTNET) / 5.230.194.87 sources and risk_levels surfaces Entra ID Protection scoring; raise severity when it is yes, the source is a hosting or anonymizer range, or the user never used device code before. Pair with a Conditional Access policy blocking device code flow (start in report-only).

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • MadApe Device Code Tokens Issued to Multiple Users from One Source IP — Exploitation Phase · unlock with TL Creds
  • MadApe Mailbox Rule or Forwarding Change Following Device Code Sign-in — Post-Exploitation · unlock with TL Creds
  • MadApe Infrastructure Domain and Hosting IP Contact — C2 / Kit Infrastructure · unlock with TL Creds
  • MadApe PDF Lure Link Click Launching Browser to Kit Infrastructure — Exploitation Phase · unlock with TL Creds
  • MadApe Device Registration Following Device Code Sign-in — Post-Exploitation · unlock with TL Creds
  • MadApe Lure Domain Visit Followed by Microsoft Device Login — C2 / Token Hand-off · unlock with TL Creds
  • MadApe OAuth Consent Grant Following Device Code Sign-in — Post-Exploitation · unlock with TL Creds
  • MadApe Kit Backend Endpoint Requests (/api/code/entered, /api/code/status/) — C2 / Kit Callback · unlock with TL Creds

Indicators of compromise

As of 2026-10-29, Threadlinqs Intelligence tracks 30 indicators of compromise for TL-2026-4714.

Sample indicators (3 of 30)

  • IP address: 5.230.194[.]87
  • Domain: swisstowerant[.]com
  • File hash: e9621f90091b56c712858a27d3a775cde21c6463

Defanged, TLP:CLEAR. Full set of 30 indicators: unlock with TL Creds.

30 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

Lures were seen in nine languages (Hebrew first identified), and the infrastructure spans 155 root domains tied to a single operator.

MadApe is a phishing kit documented by Group-IB (published 2026-10-29; the article's key-dates text says 2026-10-28) that targets Microsoft 365 / Entra ID accounts through device code phishing. The user never types a password into a counterfeit page. Instead the victim is persuaded to enter an attacker-supplied device code on the genuine Microsoft device login portal, which authorizes an attacker-controlled application and issues it access tokens. Because authentication happens on a legitimate Microsoft domain, credential-harvesting page detection and many MFA controls do not trigger.

Attack chain: a phishing email carries a business-themed PDF lure (SharePoint-styled; payment reports, invoices, contracts, proposals, account statements, voicemail notifications). The PDF links to a configurable intermediary redirect page presented as a 'Secure Document Access - SharePoint' portal, with JavaScript-embedded target URLs and a loading overlay, which lets the operator rotate downstream destinations without changing templates. A custom client-side human-verification gate follows (CAPTCHA variants, image selection, press-and-hold), with cookie-based session handling, no external library dependencies and randomized challenge types per visit. The Device Code phishing page then displays a dynamically injected Microsoft device code impersonating SharePoint, OneDrive, Teams, Adobe Acrobat, DocuSign or a Microsoft sign-in page. A cc() function copies the code to the clipboard and notifies the backend at /api/code/entered; an 'Open File' button sends the victim to microsoft.com/devicelogin. The backend polls Microsoft's token endpoint server-side, and /api/code/status/<ID> is polled by the page so it can redirect the victim once authentication completes. Backend numeric identifiers observed incrementing across requests (4024, 4026, 4029, 4031, 4033, 4036) are described as tracking records, not confirmed compromises.

Anti-analysis: right-click suppression, blocking of F12 / Ctrl+Shift+I/J/C / Ctrl+U, and client-side verification gates that stop automated scanners. Decoy sites (a 'C2S Logistics' business template and variants for industrial services, technology and real estate that share identical HTML, class names and stylesheets) are hosted on the same infrastructure. Third-party compromised hosts supplemented operator-registered domains.

Infrastructure: a dataset of 155 root domains, with phishing components on 97 and 58 staged but unused at analysis time. Dynadot registered 133 of 154 domains (86.4%); 105 of 152 domains (69%) shared identical WHOIS creation timestamps, the largest batch being 10 domains at 2026-08-18 23:48:21 UTC. Registrations concentrated June-August 2026, peaking in the week of 17 August (26 domains) and continuing into October. Primary hosting is ASGHOSTNET GmbH (Germany, AS12586) with Cloudflare in front; one example IP is 5.230.194.87. Subdomains (167 observed) often embed organization or individual names (109, 65%) or security/service terms (51, 31%), with recurring cgi-/otp- prefixes and -ox/-oi suffixes. A 'Mad Ape - Login' operator panel was found on itencrypted.co, householdwares.co, liva-fit.com, uouso.net and wbconnecticut.net, on the same infrastructure as the phishing and decoy pages; the earliest panel instance was seen on 2026-08-19. The report points to a single operator and names no actor, campaign or victims.

Post-compromise: the report notes that stolen tokens could enable mailbox access, SharePoint/OneDrive downloads, OAuth consent grant abuse, device registration, Primary Refresh Token issuance, inbox rules, forwarding configuration and onward phishing from compromised accounts. These are potential follow-on abuses, not observed activity. Hebrew-language lures were identified first; targeting includes Israel and multinational organizations across financial services, healthcare, logistics, technology and real estate. Group-IB supplied two YARA rules (GIB_MadApe_Phishing_Page, GIB_MadApe_Verification_Gate). Severity is an analyst judgement. Independent corroboration of the MadApe name was not found; facts come from the Group-IB article, with device-code-flow context from Microsoft and press sources.

MITRE ATT&CK techniques by tactic:

Execution

T1204.001 Malicious Link

Defense Evasion

T1480 Execution Guardrails; T1684.001 Impersonation

Credential Access

T1528 Steal Application Access Token

Lateral Movement

T1550.001 Application Access Token

Initial Access

T1566.001 Spearphishing Attachment; T1566.002 Spearphishing Link

Resource Development

T1583.001 Domains; T1584.004 Server; T1608.005 Link Target

Remediation

Immediate actions

  • Block or sinkhole the MadApe domains, IP 5.230.194.87 and the listed URLs at email, proxy and DNS layers
  • Hunt Entra ID sign-in logs for device code flow authentications and revoke sessions and refresh tokens for any account involved
  • Search proxy/DNS/EDR telemetry for requests to /api/code/entered and /api/code/status/ and for 'Secure Document Access - SharePoint' page titles
  • Look for microsoft.com/devicelogin access preceded by visits to the phishing URLs
  • Review device registrations, OAuth consent grants, inbox rules and mail forwarding created after any device code sign-in

Workarounds

  • Block device code flow with a Conditional Access policy (Conditions > Authentication Flows > Device code flow > Block access), starting in report-only mode and excluding documented legitimate use cases and break-glass accounts
  • Alert on device code authentication from hosting providers or anonymization services

Longer-term hardening

  • Enable Continuous Access Evaluation and risk-based Conditional Access
  • Maintain an inventory of legitimate device code flow use
  • Detonate PDF attachments and follow their embedded links in an isolated environment before delivery
  • Train users that device codes are for limited-input devices and that unsolicited code prompts must be reported
  • Deploy the Group-IB YARA rules GIB_MadApe_Phishing_Page and GIB_MadApe_Verification_Gate

Affected and fixed versions

  • Microsoft — Microsoft Entra ID / Microsoft 365 (OAuth 2.0 device code flow)
    Vulnerable versions: Tenants permitting device code flow authentication
    Fixed in: Tenants blocking device code flow via Conditional Access

Timeline

  • MadApe-related domain registrations begin in June 2026 (month-level date per Group-IB), concentrated June-August 2026.
  • Week of 17 August 2026 is the peak domain-registration week, with 26 domains registered.
  • Largest batch of 10 domains registered with identical WHOIS creation timestamp 2026-08-18 23:48:21 UTC.
  • Earliest 'Mad Ape - Login' operator panel instance observed.
  • Domain registrations continue into October 2026 (month-level date), with a shift from .com/.net pairing to .com/.co.
  • Key-dates text in Group-IB's article cites 28 October 2026, while the page header shows 29 October.
  • Group-IB publishes 'MadApe: The Code That Opens the Door', with YARA rules and an infrastructure dataset of 155 root domains.

Sources cited

Previous and next in phishing

Drafted by the Threadlinqs research pipeline from 5 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats