Microsoft had released a security patch in 2018 to fix some of the vulnerabilities from the CredSSP (Credential Security Support Provider Protocol) used by the RDP (Remote Desktop Protocol) in Windows Server.
While attempting to connect to say a Windows Server 2016 or Windows Server 2019 hosted in Azure, you might end up seeing an error:
Now, this error is happening due to the update to Windows to resolve the vulnerabilities in Windows Authentication. This vulnerability applies to all the modern versions of Windows OS and allows for remote code execution. More details on this issue can be found here:
Microsoft also released a Support article on this issue:
What is CredSSP?
“CredSSP” or “Credential Security Support Provider Protocol” is a security support provider that helps to securely delegate user credentials from a client computer to a windows server by using TLS (Transport Layer Security) as an encrypted pipe.
Fixing CredSSP Issue
In order to fix this issue, we will try to do a workaround using the Group Policy Editor in the Client Computer. Please do not try to uninstall the update as it’s not the best way to fix it.
- Open Run dialog (WIN Key + R)
- Type gpedit.msc and press Enter or click on OK
- In the left panel, expand to the following path:
Local Computer Policy > Computer Configuration > Administrative Templates
> System > Credentials Delegation
- From the right pane, double-click Encryption Oracle Remediation
- In the Encryption Oracle Remediation window, set the option to Enabled on the left side.
- Once done, in the bottom pane, set the Protection Level to Vulnerable.
- Click on OK then close the other Window
- Try again to connect to the Azure VM using RDP
Hope it fixes the issue for you.