This detection identifies adversaries executing a PwDump 6 variant to extract credential hashes from memory, a critical step often used to facilitate lateral movement or privilege escalation within an Azure environment. Proactively hunting for this behavior in Azure Sentinel is essential because successful password dumping frequently precedes large-scale compromise, allowing the SOC team to intervene before attackers leverage stolen credentials to establish persistent access.
rule PwDump
{
meta:
description = "PwDump 6 variant"
author = "Marc Stroebel"
date = "2014-04-24"
score = 70
strings:
$s5 = "Usage: %s [-x][-n][-h][-o output_file][-u user][-p password][-s share] machineNa"
$s6 = "Unable to query service status. Something is wrong, please manually check the st"
$s7 = "pwdump6 Version %s by fizzgig and the mighty group at foofus.net" fullword
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 3 string patterns in its detection logic.
Here are specific false positive scenarios for the PwDump 6 variant detection rule, including suggested filters and exclusions:
Scenario: Scheduled Credential Backup via PowerShell
PowerShell to export Active Directory user credentials or service account passwords to a secure backup location. This often involves reading the LSASecrets registry key or utilizing the Get-ADUser cmdlet with specific flags that mimic PwDump behavior.DOMAIN\BackupSvc) executing powershell.exe on a scheduled basis between 02:00 and 04:00 UTC, specifically where the command line contains keywords like -Command "Get-ADUser" or references to specific backup script paths.Scenario: Legitimate Admin Tool Execution (LAPS & MDT)
LapsService or deployment agents read local SAM database secrets to rotate passwords or configure new endpoints.lapsadmin.exe, mdtutil.exe, and ntdsutil.exe running under the SYSTEM account, provided the parent process is a known management service (e.g., svchost.exe with specific service names like LapsSvc).Scenario: Third-Party Password Management Solutions