5

In this question How does Google Chrome store passwords? I found out how my Chrome passwords are encrypted. The passwords are encrypted with the current useraccount (of Windows).

I had saved my userdata from "C:\Users\%username%\AppData\Local\Google\Chrome\User Data" before reinstalling windows.

After putting the Data on the fresh installed system, I only have my chrome settings and bookmarks stored. There are no passwords in the list (in chrome)

With ChromePass I could only recover my website data and loginnames. (The password value is empty)

I know some of my passwords which are stored in the Login Data and the username and password on the old system.

Is it possible to decrypt my passwords ?

10
  • What exactly is the question? Did you backup all the required data in order to do this before you deleted the original data? – Ramhound Oct 7 '13 at 16:34
  • I did a backup of the UserData folder of Chrome which contains the file "Login Data" with the login data and encrypted passwords – waki Oct 7 '13 at 16:38
  • 1
    So if you restore all the data in the current profile. You are saying that Chrome does not allow you to view the passwords? If thats the case then what you want isn't possible as the correct data wasn't backed up. – Ramhound Oct 7 '13 at 16:39
  • In the settings at saved passwords is shown nothing, but with the tool ChromePass, I get all Logindata expect the passwords (empty) – waki Oct 7 '13 at 16:41
  • did you originally password protect your passwords? – Ramhound Oct 7 '13 at 16:43
4

Google Chrome on Windows encrypts your saved passwords using the Windows encryption function CryptProtectData. In order to decrypt the saved password not only do you have to be logged in with the same user password Chrome used to save it, but also be on the same computer.

From your description I understand you only reinstalled Windows, but are on the same computer. Try changing your password or create a new account with the same username and password you used before reinstalling to decrypt the passwords with ChromePass.

1
  • 3
    I am on the same computer and I use the same username and password I have used before, but it doesn't work to decrypt with ChromePass. – waki Dec 21 '13 at 16:15
0

The question is a bit outdated and was fairly active during its time but doesn't seem to have reached a fruitful answer. In any case, this answer is meant for anyone who stumbles across this page like I have.

Although it's noted that you are on the same computer, using the same username and password, CryptProtectData uses an encryption algorithm which derives its key from environment variables such as the current machine ID and user credentials. Since you mentioned a fresh install of Windows, I assume you reformatted as part of the process (while simply upgrading to a new hard drive could've also been a case for reinstalling Windows), and while it's the same machine with presumably the same OS, there's still unknown variables that would've factored into your computer's system environment as well as user environment. One simple question is what was the version of Windows you installed compared to your old system which had most likely downloaded and installed Windows Updates thus changing the Windows environment you brought the data back into. The same goes with Chrome from when you first signed in and saved your first password at a particular browser version to the version you reinstalled it on?

Since this is all trivial to pose those questions now, you had more simply asked not how, but if you could decrypt it in which case a technical, more official answer would've been no since it was a fresh install of Windows. But o course, the "protection" against same-user different-application extraction is the additional entropy the caller can supply. So in actuality, you can always just run the application and get that anyways.

While importing it into Chrome resulted in no data showing up at all in the settings menu, you were only able to retrieve username data using ChromePass whereas it was empty where the passwords should've been reported. The Chrompass you used (I assume you used the one by NirSoft) tries to extract the stored entropy values from the chrome DB file whereas the alternative would've been to attach to the chrome process and intercept its call to CrypProtect. An overview of DPAPI, which CryptProtect uses can be found here. While a tool for DPAPI extraction such as mimikatz can be found here.

While mimikatz would have had you covered in offering multiple solutions, something more simply such as CryptProtectData by zhmyh1337 uses functions stored in a visual studio project that directly calls the WinAPI CryptPortectData and could have been more particular to the chrome version of your day, I'm guessing 30.0.1599.101

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.