Windows Hello Flaw Enables Entra ID Persistence

Windows Hello Flaw Allows Persistent Entra ID Access

HIGH
August 8, 2026
6m read
VulnerabilityThreat IntelligenceCloud Security

Related Entities

Organizations

Other

Dirk-jan Mollema

Full Report

Executive Summary

Security researcher Dirk-jan Mollema has detailed and released proof-of-concept (PoC) scripts demonstrating a significant design weakness in Windows Hello for Business (WHfB). The technique allows malware, running with standard user-level privileges on a compromised Windows endpoint, to silently use the victim's WHfB key. This action allows the malware to authenticate to Microsoft Entra ID and acquire a Primary Refresh Token (PRT), granting it long-term, persistent access to the user's cloud resources. Crucially, this process requires no administrator privileges and bypasses all user interaction, including the need for a PIN or biometric authentication. Microsoft has reportedly acknowledged the behavior as part of the current design and has not issued a CVE. This disclosure fundamentally changes the threat model for WHfB, indicating that any code execution on an endpoint should be treated as a full identity compromise.


Vulnerability Details

This is not a traditional vulnerability with a simple patch, but rather an exploitation of the intended functionality of WHfB in a post-compromise scenario.

  • The Core Issue: WHfB is designed to allow applications running in the user's session to seamlessly use the WHfB credential for authentication. The PoC demonstrates that malicious code running in the same session can do this as well.
  • The Mechanism: The malware programmatically calls the necessary Windows APIs to generate an assertion using the hardware-bound key stored in the TPM. This assertion is then used to request a PRT from Entra ID.
  • Bypassed Protections: The attack does not require the user's PIN or biometric gesture. It does not require administrator rights. It does not export the key from the TPM. It simply uses the key in place, as the logged-on user.
  • The Outcome: The attacker obtains a PRT, which is a long-lived token that can be used to silently acquire access tokens for various cloud services (Office 365, Azure, etc.) linked to the user's Entra ID account.

Affected Systems

  • Any organization using Windows Hello for Business for authentication against Microsoft Entra ID.
  • The endpoint must be compromised with malware running in the context of an active, signed-in user.

Exploitation Status

The researcher, Dirk-jan Mollema, has released PoC scripts (fido_assertion.ps1 and hellopoc.ps1) as part of the ROADtools repository, making the technique publicly available. While there is no evidence of widespread in-the-wild exploitation yet, the release of the PoC means that threat actors will likely integrate this technique into their malware toolsets soon.


Technical Analysis

The attack challenges a core assumption of phishing-resistant, hardware-bound credentials: that they protect user identity even if the user is phished. This technique shows that if the endpoint itself is compromised, the hardware-bound credential can be turned against the user.

MITRE ATT&CK Mapping

This attack highlights the paradigm shift from 'stealing the key' to 'using the key in place'. The key never leaves the TPM, making traditional credential theft detection methods ineffective.


Impact Assessment

The impact is significant because it undermines the perceived security of a flagship phishing-resistant authentication method.

  • Full Identity Compromise: An attacker with code execution on an endpoint can gain full, persistent access to the user's cloud identity and all associated resources.
  • Stealth and Persistence: Because the PRT is a legitimate token, subsequent activity by the attacker using it may not be flagged as suspicious by basic security monitoring.
  • Bypasses MFA: The technique completely bypasses the need for MFA, as it generates the primary token that is the foundation of the user's authenticated session.

This means that endpoint security is more critical than ever. If an attacker can run code on your machine, WHfB cannot save your cloud identity.


IOCs — Directly from Articles

The PoC scripts fido_assertion.ps1 and hellopoc.ps1 are indicators of this specific tool being used.


Cyber Observables — Hunting Hints

The researcher provided a key hunting hint:

Type
log_source
Value
Entra ID Sign-in Logs
Description
Look for WHfB sign-in events that have an empty or null device ID. This can indicate the token was generated programmatically without the full device context.
Context
Microsoft Entra ID Sign-in Logs
Confidence
medium
Type
event_id
Value
New Device Registration
Description
Monitor for unexpected new device registrations in Entra ID, as an attacker might use the stolen PRT to register their own machine.
Context
Microsoft Entra ID Audit Logs
Confidence
medium

Note: The researcher cautions that legitimate sessions from incognito browsers or non-SSO browser sessions can also produce sign-ins with an empty device ID, so this indicator may have false positives and requires correlation.


Detection & Response

Detection must focus on the initial endpoint compromise and anomalies in the authentication logs.

Detection

  1. EDR/XDR: The primary detection method is a strong Endpoint Detection and Response solution that can prevent or detect the initial malware execution. This is the 'left of boom' opportunity.
  2. Entra ID Log Analysis: Implement the hunting query mentioned above to look for WHfB sign-ins with an empty device ID. Correlate these events with other suspicious activity, such as logins from unfamiliar IPs or impossible travel scenarios. This aligns with D3FEND's User Geolocation Logon Pattern Analysis (D3-UGLPA).
  3. Monitor for PoC Tools: Create detection rules in your EDR for the specific PoC script names (fido_assertion.ps1, hellopoc.ps1) and their unique contents/behaviors.

Response

  • If a compromise is detected, the response must include both the endpoint and the cloud identity. Revoke all refresh tokens for the user in Entra ID and force a password reset, in addition to isolating and re-imaging the compromised endpoint.

Mitigation

Since this is a design feature, mitigation focuses on preventing the prerequisites for the attack.

  1. Endpoint Security: The number one mitigation is to prevent the initial endpoint compromise. This includes using a modern EDR/XDR solution, application whitelisting, and aggressive attack surface reduction rules.
  2. Conditional Access Policies: Use Entra ID Conditional Access to enforce stricter controls. For example, require logins to sensitive applications to come from compliant, hybrid-joined devices. This would make a stolen PRT less useful if it's used from an attacker's machine. This is a form of System Configuration Permissions (D3-SCP).
  3. Assume Compromise: Treat any security alert from your EDR on a WHfB-enabled machine as a potential full identity compromise and trigger response playbooks for both the endpoint and the cloud identity.

Timeline of Events

1
August 6, 2026
The technique and proof-of-concept scripts are publicly disclosed by the security researcher.
2
August 8, 2026
This article was published

MITRE ATT&CK Mitigations

The primary mitigation is preventing the initial malware execution on the endpoint through EDR/XDR and application control.

Use Entra ID Conditional Access policies to require compliant or hybrid-joined devices, limiting the usefulness of a stolen token on an attacker's machine.

Audit

M1047enterprise

Audit Entra ID sign-in logs for the specific anomaly of WHfB logins with a null device ID.

D3FEND Defensive Countermeasures

The most effective way to prevent the Windows Hello for Business abuse is to stop the prerequisite: initial malware execution. A robust endpoint security posture is paramount. Implementing Executable Denylisting (D3-EDL) or, more effectively, allowlisting (D3-EAL), can prevent unauthorized code from running in the first place. By using technologies like AppLocker or Windows Defender Application Control, administrators can define a strict set of applications and scripts that are permitted to run. Any malware attempting to execute, including the PowerShell scripts needed to perform this attack, would be blocked. This 'left of boom' approach is the most effective mitigation, as it addresses the root cause (endpoint compromise) rather than trying to detect the nuanced abuse of a legitimate authentication feature.

To detect the malicious use of a stolen Primary Refresh Token (PRT), security teams must leverage User Geolocation Logon Pattern Analysis (D3-UGLPA), a core feature of Microsoft Entra ID Protection and other UEBA tools. While the initial token generation happens on the compromised endpoint, the attacker will likely use the stolen PRT from their own infrastructure. This will create an 'impossible travel' scenario. For example, the legitimate user logs in from their corporate office in New York, and minutes later, the stolen PRT is used to access SharePoint from an IP address in Eastern Europe. This should trigger a high-risk alert. Correlating the WHfB sign-in with a null device ID with a subsequent impossible travel alert provides a very high-confidence indicator of this specific attack.

Organizations can limit the blast radius of a stolen PRT by implementing strict System Configuration Permissions (D3-SCP) through Microsoft Entra Conditional Access policies. A critical policy to implement is to require sensitive applications to be accessed only from 'compliant' or 'hybrid-joined' devices. This means that even if an attacker steals a PRT and tries to use it from their own unmanaged machine, Conditional Access will block the login because the attacker's device does not meet the policy requirements. This control effectively tethers the user's identity to a trusted device, making the stolen token far less powerful and preventing the attacker from accessing most corporate resources.

Timeline of Events

1
August 6, 2026

The technique and proof-of-concept scripts are publicly disclosed by the security researcher.

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Editorial Standards & Analyst Review

CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.

Tags

Windows Hello for BusinessEntra IDMicrosoftVulnerabilityPersistencePRTAuthentication

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.