Huntress Finds NPPSPY Used to Capture Cleartext Passwords in an Exchange Intrusion

· Original article ↗

Summary

Huntress documented NPPSPY deployed during an intrusion to capture cleartext credentials via a malicious Windows network provider. The investigation details the configuration, detection opportunities, and remediation.

Key points

  • Huntress found a malicious network provider named logincontroll and a DLL at C:\Windows\System32\lsass.dll on a compromised system.
  • NPPSPY intercepts the Winlogon-to-mpnotify credential flow and writes usernames and cleartext passwords to a designated file.
  • The designated capture file was C:\Windows\Temp\tmpCQOF.tmp; Huntress reported evidence that email credentials were collected on the compromised Exchange server.
  • The team reproduced the technique in a lab and correlated its registry configuration with evidence from the compromised host.
  • Detection opportunities include investigating unexplained NetworkProvider registry entries, DLLs, privileged changes, and process activity; the article cautions that filenames and DLL locations can vary.
  • Huntress found that removing either the attacker-controlled DLL or its NetworkProvider registry entry stopped the credential file from being written; removing both was recommended.

Article Details

Attack Vectors
  • The threat actor registered an attacker-controlled network provider and DLL so it could intercept cleartext credentials exchanged during the Windows logon process.
  • The DLL recorded usernames and passwords to a designated file. The article says the technique required a privileged user, registry changes, and bringing a DLL onto the system.
Defensive Notes
  • Inspect NetworkProvider registry entries and the DLL paths they reference; the article identifies HKLM\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order and HKLM\SYSTEM\CurrentControlSet\Services\<provider>\NetworkProvider as relevant locations.
  • Use forensic tools such as RegRipper to review suspicious service entries, and monitor processes and commands with tools such as Sysmon.
  • Do not rely on missing DLL signatures, version numbers, descriptions, or expected installation directories as detection criteria.
  • The article reports that removing only the attacker-controlled DLL or only its NetworkProvider registry entry stopped credential-file writes in testing; remove both to stop the credential-gathering activity.

MITRE ATT&CK

People

Vendors

Products

Tools

Related Articles