Recovering Windows Passwords Remotely in Plain Text

There has been a lot of buzz across the web the last few months about a program called “Mimikatz”.   It is an interesting program that allows you to recover Windows passwords from a system in clear text.   Why spend hours, days, or months trying to crack a complex password when you can just pull it from Windows memory as unencrypted text?   We have seen in the past that most Windows passwords less than 15 characters can be cracked in just a few seconds if the attacker can get the Windows Hashes. This is due to the fact that Windows stores these passwords in an easy to crack LM hash.   An old encryption used for backwards compatibility. Microsoft allows you to disable the older LM Hash, but Microsoft still creates the hash and stores it in memory.   No big deal, just make your passwords 15 characters or greater and problem solved. The LM hash will not be created, only the more secure NTLM hash.

Well, not so fast. It seems that the LM hash is not the only version of the passwords Windows keeps in memory; it also keeps a copy of the passwords in plain text which you can even recover remotely…IF you have remote access to the system via malicious JAVA Code – using Mimikatz to recover remote passwords. For example you can use the website Java attack through the Social Engineering Toolkit (SET) to obtain a remote shell. You can create a trap (aka Malware infected website) if you want to see how this works – NOTE: This is NOT RECOMMENED unless you are interested in security and have the time, tools and system to create a hacker site. First thing you will want to do is download Mimikatz and place the files you need (Windows 32 or 64 bit) in a directory on your Backtrack system. Then run SET and pick the website java attack option.   After the target system surfs to our SET webpage and allows the Java code to run, we get a remote shell. After we connect to the created session, we will need to elevate our authority level. We need System level privileges for Mimikatz to work properly, so the first thing to do is run the Bypass UAC script in Meterpreter, and then connect to the newly created session.

Now all we need to do is create a directory on the target system and copy the Mimikatz files up to it.

Now we need to drop to a command shell and run “Mimikatz”.   You will now be in the Mimikatz program console and need to enter the commands “privilege::debug” and then “inject::process lsass.exe sekurlsa.dll”

If you get an error at this point (Yeah I know, it is all in French), you probably don’t have System level authority.   Okay, if all went well, you need to run one last command, “@getLogonPasswords

And that is it! The passwords for anyone who has logged onto this machine will be displayed in plain text. From the picture above you can see two users:   Username: Fred  Password: password   Okay, not a complex (or smart) password, but look at the other user:   Username: Secure_User  Password: CvM*901D0?#(Fg[“MNoP43!Ta$cv2%   Wow, wouldn’t want to have to type that one in every day. That is a 30 character password and Mimikatz recovered and displayed it in plain text with no need to decrypt or crack.   The moral of this story boys and girls is to not allow scripts or programs to run from websites that you do not know or trust. Run a browser script blocking program like NoScript. Also, do not allow your Windows 7 users to use Administrator level accounts. Drop them down to User accounts for their everyday usage.   As always, do not access systems that you do not have permission to do so. And always do your penetration testing learning on test machines and not on live production systems.

Finally, if you implement a task to automatically restart systems every night (Windows 7 makes this easy) as policy, it will clear out the passwords in memory from the previous logins – especially important if you have logged in as an administrator earlier in the day.


IPhone Malware: Kaspersky Expects Apple’s IOS To Be Under Attack By Next Year

Security company Kaspersky Lab expects the iPhone and iPad to be infected by malware within the next year.

While analyzing security vulnerabilities in Apple’s operating system for Macs, Kaspersky also noted potential instabilities in iOS, Apple’s mobile operating system.

As a security firm, it’s in Kaspersky’s interest to analyze and report on potential security threats, but to date instances of iPhone malware have been relatively rare. The few known cases have occurred within jail-broken phones. Android appears to be the platform to target; in 2011, instances of malware on the Android platform spiked 400 percent from the previous year.

Kaspersky CEO Eugene Kaspersky recently spoke out on Apple’s security in the wake of the Mac Flashback trojan, the virus that infected more than 600,000 Apple computers.

Kaspersky compared Apple to Microsoft, telling Computer Business Review: “I think they are 10 years behind Microsoft in terms of security.”

Kaspersky also his company has seen an increase in malware directed at Macs and recommended Apple take a more dominant security stance against potential threats.

Kaspersky is not the only security company that has recognized the potential threat to Apple devices that run on iOS.

While the iPhone may not be as vulnerable to malware as the Android, with the rising number of smartphone users it won’t be long before hackers find away around Apple’s App Store review process.