Device Code Phishing Is Dead, Long Live New Azure AD Attacks!

Elias Issa (Head of Red Team · Orange Cyberdefense)

Insomni'hack 2026 · Day 1 · Main Track

Overview

Modern cloud environments have largely evolved past simple credential theft, prompting security professionals and threat actors alike to seek out novel authentication vectors. In this talk, Elias Issa, Head of Red Team at Orange Cyberdefense, explores an insidious attack vector targeting Azure AD (now Microsoft Entra ID) that bypasses traditional password collection entirely. By weaponizing Microsoft Authenticator's passwordless push notification mechanism, an attacker can compromise user sessions and acquire high-privilege tokens using nothing more than social engineering and a two-digit confirmation code.

Watch on YouTube

Visual summary for Device Code Phishing Is Dead, Long Live New Azure AD Attacks! by Elias Issa
Visual summary for Device Code Phishing Is Dead, Long Live New Azure AD Attacks! by Elias Issa

Key moments

  1. 0:00 Introduction and overview of Azure AD authentication mechanisms
  2. 1:54 Limitations of current attacks: credential phishing, device code, password spraying
  3. 7:00 Discovering the Microsoft Authenticator passwordless push notification vector
  4. 10:30 Automating enumeration of passwordless users via API requests
  5. 14:20 Choosing social engineering delivery methods: email vs SMS timing
  6. 22:50 Demonstration of the automated exploitation and post-exploitation tool
  7. 29:30 Bypassing conditional access policies and dealing with device enrollment
  8. 37:10 Mitigations, detection rules, and audience Q&A session

Device Code Phishing Is Dead, Long Live New Azure AD Attacks!

Speakers: Elias Issa (Head of Red Team, Orange Cyberdefense)

Conference: Insomni'hack

YouTube: https://www.youtube.com/watch?v=JFQj79j6O4Q

Overview

Modern cloud environments have largely evolved past simple credential theft, prompting security professionals and threat actors alike to seek out novel authentication vectors. In this talk, Elias Issa, Head of Red Team at Orange Cyberdefense, explores an insidious attack vector targeting Azure AD (now Microsoft Entra ID) that bypasses traditional password collection entirely. By weaponizing Microsoft Authenticator's passwordless push notification mechanism, an attacker can compromise user sessions and acquire high-privilege tokens using nothing more than social engineering and a two-digit confirmation code.

The presentation details how traditional cloud credential-harvesting techniques are facing diminishing returns due to widespread user awareness, enhanced browser protections, and defensive telemetry. By shifting the offensive focus away from passwords and directly onto primary Multi-Factor Authentication (MFA) flows, red teams can achieve high success rates with minimal friction. Issa shares empirical data from multiple red team engagements, revealing an average success rate of roughly 5% (one hit per 20 targets) while requiring zero malware, zero infrastructure setup with reputable sending domains, and no user password guesses.

Beyond the initial access phase, the talk examines the downstream consequences of these attacks, including Primary Refresh Token (PRT) generation, Intune device enrollment bypasses, and lateral movement across enterprise tenants. The findings highlight significant gaps in how organizations configure passwordless authentication policies, demonstrating that modern convenience features can inadvertently introduce severe systemic risk when misconfigured.

Background

▶ Watch: Introduction and overview of Azure AD authentication mechanisms (0:00)

Over the past decade, cloud identity providers have introduced various authentication mechanisms to balance user friction with security posture. Traditionally, attackers relied on three primary techniques against Azure AD: credential-based phishing (using reverse-proxy frameworks like EvilGinx), phishing for authentication artifacts (such as device code phishing), and password spraying.

Each of these legacy techniques carries substantial limitations. Credential-based phishing suffers from high user friction, aggressive browser blocks, and straightforward blue team correlation via mail and proxy logs. Device code phishing, while historically effective, is severely restricted by a 15-minute token lifetime, easy detection, and the fact that the feature is disabled by default in newly provisioned Azure AD tenants. Finally, password spraying generates massive visibility in authentication logs, triggers smart lockout mechanisms implemented by Microsoft, and remains ineffective against passwordless tenants—while still leaving the attacker with the challenge of bypassing MFA even if a weak password is guessed.

During a red team engagement targeting approximately 1,000 users where password spraying yielded zero hits over three weeks, device code flows were disabled, and credential phishing failed to capture a single click, Issa investigated alternative pathways. By probing the standard Microsoft login portal (login.microsoft.com) with arbitrary email addresses, he observed that certain accounts bypassed the password prompt entirely, instead displaying a two-digit number and prompting the user to enter it into their Microsoft Authenticator app. This behavior exposed a structural vulnerability in how organizations deploy Microsoft Authenticator passwordless authentication.

Key Findings

▶ Watch: Discovering the Microsoft Authenticator passwordless push notification vector (7:00)

The core discovery centers on the abuse of Microsoft Authenticator passwordless sign-in as a primary authentication factor. According to Microsoft’s security documentation, passwordless push notifications are categorized as the highest tier of authentication security. However, when deployed as a primary authentication method without secondary validation layers, it eliminates the password barrier, leaving only an MFA push prompt for the attacker to solve.

Key findings and empirical results from the research include:

  • Tenant Vulnerability Rate: In an assessment of a client with approximately 1,000 user accounts, 850 accounts (85%) had passwordless authentication methods configured, and 130 accounts used it as their default sign-in preference.
  • Success Rate: Across four red team operations involving multiple targets, the attack achieved an average success rate of one hit per 20 attempts (5%).
  • User Behavior Anomalies: A significant portion of successful compromises occurred only after the victim rejected the first one or two push notifications, indicating that persistent prompting creates psychological pressure or confusion that leads users to eventually validate the request.
  • Token Capabilities: Acquired tokens and session cookies (specifically ESTSAUTH and ESTSPERSIST) maintain MFA-capable claims, allowing attackers to perform sensitive API queries and execute device enrollment workflows.
  • Detection Gaps: Standard enterprise security tooling and Microsoft Defender XDR failed to generate automated security alerts for the attack flow, with the sole indicators of compromise originating from users reporting unexpected push notifications to IT security days later.

Technical Deep Dive

▶ Watch: Choosing social engineering delivery methods: email vs SMS timing (14:20)

The attack chain begins with anonymous reconnaissance and enumeration of a tenant's authentication methods without requiring valid credentials or prior authentication.

By chaining unauthenticated HTTP requests backward from the login endpoint, an attacker can harvest the CTX parameter (which maps to the original_request body argument) and query the /common/getcredentialtype endpoint. The HTTP response exposes two critical JSON parameters:

  1. pref_credential: Indicates the user's default sign-in preference (e.g., 1 for password, 2 for passwordless).
  2. has_remote_ngc: A boolean flag indicating whether Next Generation Credentials (NGC)—the underlying architecture for passwordless methods—are provisioned on the account.

Once vulnerable accounts are enumerated, the attacker initiates a login request for a target email address, which prompts Microsoft’s infrastructure to generate a random two-digit challenge number. The attacker delivers this number to the victim out-of-band via SMS. When the victim enters the number into their Authenticator app, Microsoft issues authentication cookies (ESTSAUTH and ESTSPERSIST) valid for up to 90 days, along with an access token for the device enrollment API.

To achieve persistent access, tools like RoadTX can be leveraged using the persistent session cookie to register an enterprise device and generate a Primary Refresh Token (PRT). This persistence mechanism survives subsequent password resets and standard cookie revocations until the rogue device object is explicitly purged from Azure AD by an administrator.

Demo / Proof of Concept

▶ Watch: Demonstration of the automated exploitation and post-exploitation tool (22:50)

To eliminate the manual labor of browser orchestration and push-timing coordination, Issa developed an automated Python tool utilizing Selenium with multi-threading support.

The demonstration showcased the tool executing the following automated pipeline:

  1. Spawning parallel browser threads to navigate login.microsoft.com and input target email addresses from a pre-enumerated list.
  2. Automatically detecting if the account defaults to a password prompt and programmatically clicking the "Use an app instead" button.
  3. Scraping the dynamically generated two-digit challenge number from the DOM.
  4. Automatically dispatching an SMS containing the challenge code to the victim's professional phone number (discovered via LinkedIn scraping or corporate email interaction).
  5. Polling the authentication state in the background while handling timeouts and rate-limiting responses (such as Microsoft's retry later threshold triggered after approximately five rapid attempts from a single IP).
  6. Capturing and storing the resulting ESTSAUTH, ESTSPERSIST cookies, and generated access tokens in a structured local directory upon successful validation by the victim.

Defensive Implications

▶ Watch: Mitigations, detection rules, and audience Q&A session (37:10)

Defending against passwordless push-notification abuse requires a layered hardening approach across tenant configurations, conditional access policies, and user awareness:

  • Enforce Additional Factors: Ensure that passwordless primary authentication cannot act as a standalone single-factor flow. Implement supplementary verification layers (such as Duo or Okta integrations) that require secondary validation after the Microsoft push is accepted.
  • Tenant Device Constraints: Enforce strict Conditional Access Policies (CAPs) that mandate compliant, hybrid Azure AD-joined or Intune-enrolled devices. This blocks unmanaged attacker machines from successfully trading session cookies for sensitive tokens.
  • Hardware-Backed Cryptographic Attestation: Migrate away from basic push notifications toward FIDO2 security keys or platform-bound passkeys that require physical presence and domain binding.
  • Tenant Lock-Screen Prompts: Configure tenant authentication settings to require biometric or PIN unlocking on the mobile device specifically at the moment of number-matching validation, preventing accidental approvals from lock screens.
  • Telemetry and Monitoring: Implement custom SIEM detection rules monitoring for anomalous clusters of authentication timeouts (Error 500121 or timeout-related telemetry) and unexpected user rejections (Error 13033) across multiple accounts originating from external IP ranges.

Key Takeaways

  • Passwordless authentication mechanisms in Azure AD can be abused as a primary attack vector without requiring password spraying, credential phishing, or valid user passwords.
  • Unauthenticated endpoint enumeration via /common/getcredentialtype allows attackers to rapidly identify accounts with has_remote_ngc enabled.
  • Combining automated browser tooling (Selenium) with out-of-band SMS delivery bypasses the 5-minute time window limitation and yields an average success rate of 5%.
  • Acquired session cookies and access tokens can be leveraged with tools like RoadTX to enroll malicious devices and generate Primary Refresh Tokens for long-term persistence.
  • Standard defensive telemetry rarely flags push-notification attacks automatically, leaving user reporting as the primary detection mechanism.

About the Speaker(s)

  • Elias Issa (Head of Red Team, Orange Cyberdefense): Head of red team at Orange Cyberdefense in France with more than 12 years in offensive security. Started as a pentester doing penetration testing and source code review, and has focused on red teaming and purple teaming for the last 7 years.

Reviews

→ Top-rated talks at Insomni'hack 2026

All talks from Insomni'hack 2026