Passwords

How to decrypt the DefaultPassword value saved in registry for AutoLogon

How to decrypt the DefaultPassword value saved in registry for AutoLogon

In an earlier post, we have seen how to bypass login screen in Windows 7 and older versions by taking advantage of AutoLogon tool offered by Microsoft. It was also mentioned that major benefit of using AutoLogon tool is that your password is not stored in plain text form as is done when you manually add the registry entries. It is first encrypted and then stored so that even the PC Administrator does not have access to the same. In today's post, we'll talk about how to decrypt the DefaultPassword value saved in Registry editor by using AutoLogon tool.

First things first, you'd still need to have Administrator privileges in order to decrypt the DefaultPassword value. The reason behind this obvious restriction is that such encrypted system and user data are governed by a special security policy, knows as Local Security Authority (LSA) which grants the access only to the system administrator. So, before we make our move on decrypting the passwords, let's take a look at this security policy and it's co-related know-hows.

LSA - What it is and how it stores data

LSA is used by Windows to manage the system's local security policy and perform the auditing and authentication process on the users logging into the system while saving their private data to a special storage location. This storage location is called LSA Secrets where important data used by LSA policy is saved and protected. This data is stored in an encrypted form in the registry editor, in the HKEY_LOCAL_MACHINE/ Security/ Policy/ Secrets key, which is not visible to general user accounts due to restricted Access Control Lists (ACL). If you have the local administrative privileges and know your way around LSA Secrets, you can get access to the RAS/VPN passwords, Autologon passwords, and other system passwords/keys. Below is a list to name a few.

In order to create or edit the secrets, there is a special set of APIs available for software developers. Any application can get access to the LSA Secrets location but only in the context of the current user account.

How to decrypt the AutoLogon password

Now, in order to decrypt and uproot the DefaultPassword value stored in LSA Secrets, one can simply issue a Win32 API call. There is a simple executable program available for getting the decrypted value of DefaultPassword value. Follow the below steps to do so:

  1. Download the executable file from here -  it's just 2 KB in size.
  2. Extract the contents of DeAutoLogon.zip file.
  3. Right-click DeAutoLogon.exe file and run it as Administrator.
  4. If you have the AutoLogon feature enabled, DefaultPassword value should be right there in front of you.

If you try to run the program without Administrator privileges, you'd run into an error. Hence, make sure to acquire local administrator privileges before running the tool. Hope this helps!

Shout out in the comments section below in case you've got any question.

How to Show FPS Counter in Linux Games
Linux gaming got a major push when Valve announced Linux support for Steam client and their games in 2012. Since then, many AAA and indie games have m...
How to download and Play Sid Meier's Civilization VI on Linux
Introduction to the game Civilization 6 is a modern take on the classic concept introduced in the series of the Age of Empires games. The idea was fai...
How to Install and Play Doom on Linux
Introduction to Doom The Doom Series originated in the 90s after the release of the original Doom. It was an instant hit and from that time onwards th...