Connect with us

Hi, what are you looking for?


Identity & Access

Microsoft Warns of Persistent Windows Hello for Business Orphaned Keys

Microsoft this week issued guidance regarding Windows Hello for Business (WHfB) public keys that persist even after the devices they are tied to are removed from Active Directory.

Microsoft this week issued guidance regarding Windows Hello for Business (WHfB) public keys that persist even after the devices they are tied to are removed from Active Directory.

These WHfB public keys, the tech company explains, are written to the on-premises Active Directory after the user sets up WHfB. Tied to the user and the device added to Azure AD, these keys are considered orphaned when the device is removed.

The issue, however, is that orphaned keys are not deleted from AD even when the devices they were created on are no longer present.

While authentication to Azure AD using orphaned WHfB keys is rejected, some of these keys could lead to a series of security issues in Active Directory 2016 or 2019, Microsoft explains. The problems could appear in either hybrid or on-premises environments.

“An authenticated attacker could obtain orphaned keys created on TPMs that were affected by CVE-2017-15361 (ROCA), discussed in Microsoft Security Advisory ADV170012 to compute their WHfB private key from the orphaned public keys,” Microsoft says.

Using a stolen private key, an attacker could pose as the user and authenticate within the domain using Public Key Cryptography for Initial Authentication (PKINIT).

The attack can be performed even if the TPMs (Trusted Platform Modules) affected by CVE-2017-15361 have received firmware and software updates, due to the fact that the corresponding public keys might still exist in Active Directory.

Advertisement. Scroll to continue reading.

The issue, Microsoft explains, can be present when WHfB is deployed on Active Directory 2016 or 2019, either in hybrid mode or on-premises only, and has or had WHfB keys generated on TPMs that were affected by CVE-2017-15361.

Azure AD and Active Directory Federation Services (AD FS), the company reveals, are not impacted.

Steps to mitigate the issue include patching TPMs affected by the vulnerability and then installing the WHfBTools Windows PowerShell module in order to employ WHfBTools PowerShell scripts to identify orphaned WHfB keys and keys affected by ROCA.

Next, AD customers can remove orphaned keys, keys affected by the security flaw, or both types of keys.

“If you haven’t updated your TPM first, simply deleting these keys from the directory is not sufficient to mitigate the issue. Setting up WHfB again will re-create keys that are affected by CVE-2017-15361,” Microsoft underlines.

The company also explains that keys deleted in Azure AD are automatically removed in Active Directory as part of the synchronization process. In hybrid environments, however, keys deleted only from Active Directory are rewritten from Azure AD as part of the synchronization process.

Related: Tech Giants Warn of Crypto Flaw in Infineon Chips

Related: Experts Find Faster Way to Exploit Infineon Chip Crypto Flaw

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

SecurityWeek’s Threat Detection and Incident Response Summit brings together security practitioners from around the world to share war stories on breaches, APT attacks and threat intelligence.


Securityweek’s CISO Forum will address issues and challenges that are top of mind for today’s security leaders and what the future looks like as chief defenders of the enterprise.


Expert Insights

Related Content


Less than a week after announcing that it would suspended service indefinitely due to a conflict with an (at the time) unnamed security researcher...

Data Breaches

OpenAI has confirmed a ChatGPT data breach on the same day a security firm reported seeing the use of a component affected by an...

Identity & Access

Zero trust is not a replacement for identity and access management (IAM), but is the extension of IAM principles from people to everyone and...

Risk Management

The supply chain threat is directly linked to attack surface management, but the supply chain must be known and understood before it can be...


The latest Chrome update brings patches for eight vulnerabilities, including seven reported by external researchers.


Patch Tuesday: Microsoft warns vulnerability (CVE-2023-23397) could lead to exploitation before an email is viewed in the Preview Pane.


Apple has released updates for macOS, iOS and Safari and they all include a WebKit patch for a zero-day vulnerability tracked as CVE-2023-23529.

IoT Security

A group of seven security researchers have discovered numerous vulnerabilities in vehicles from 16 car makers, including bugs that allowed them to control car...