
John Hammond Explores Password Theft Techniques on Windows Systems
In this video, John Hammond explores how hackers steal passwords on Windows systems, focusing particularly on the Data Protection API (DP API) used by Windows to store and retrieve encrypted passwords. He begins by explaining that when malware runs on a computer, it searches for stored and cached passwords on the file system, which are written to the disk but encrypted. Hammond demonstrates how to use PowerShell to encrypt and decrypt passwords using the DP API. He explains that the DP API works with two scopes: the current user or the local machine. He shows how to encrypt a password using the "Protect" function of the DP API and how to decrypt it with the "Unprotect" function. He emphasizes that the master keys used by the DP API are stored on the local file system and can be decrypted with the local user's password. Next, Hammond introduces Mimikatz, a well-known tool for extracting plaintext passwords, hashes, PINs, and Kerberos tickets from memory. He shows how to use Mimikatz to extract passwords from browsers like Google Chrome and Brave, using the DP API functions to decrypt the stored passwords. He explains that browser passwords are often protected by the DP API and can be extracted using tools like Mimikatz. Hammond also mentions other tools and techniques used by hackers to steal passwords, such as SharpDPAPI, a C# port of some DP API functionalities from Mimikatz, and DP Loot, a Python rewrite of SharpDPAPI. He discusses the use of these tools in remote control and command (C2) environments like Cobalt Strike or Havoc. Finally, Hammond examines the MITRE ATT&CK framework to understand the techniques and procedures used by various threat groups to extract passwords. He mentions tools like Lasagna, NetPass, and other password recovery software used by threat groups like Agent Tesla, APT33, and DarkGate. He demonstrates the use of Lasagna to extract passwords and private keys on a Windows system. The video provides a comprehensive overview of the methods and tools used by hackers to steal passwords on Windows systems, emphasizing the importance of the DP API and tools like Mimikatz. It offers valuable insights into how passwords are protected and how they can be compromised, which is crucial for strengthening system security.