This hypothesis posits that adversaries are utilizing legitimate memory dumping utilities to extract sensitive data or credentials from running processes as part of a post-exploitation persistence strategy. The SOC team should proactively hunt for these activities in Azure Sentinel to distinguish between routine administrative tasks and potentially malicious credential harvesting, ensuring early detection before lateral movement occurs.
rule dump_tool
{
meta:
author = "@patrickrolsen"
reference = "Related to pwdump6 and fgdump tools"
strings:
$s1 = "lsremora"
$s2 = "servpw"
$s3 = "failed: %d"
$s4 = "fgdump"
$s5 = "fgexec"
$s6 = "fgexecpipe"
condition:
uint16(0) == 0x5A4D and 3 of ($s*)
}
This YARA rule can be deployed in the following contexts:
This rule contains 6 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the dump_tool detection rule in an enterprise environment, including suggested filters or exclusions:
Scheduled Memory Dump by System Administrators
Procdump.exe from the Microsoft Sysinternals suite or the built-in DumpIt.exe. These executions occur during off-hours via Task Scheduler under a dedicated service account.TaskSchedulerService (or svchost.exe) and the file path matches known administrative directories, such as C:\Program Files\Microsoft Sysinternals\Procdump.exe or C:\Windows\System32\dumpit.exe.Automated Debugging by DevOps CI/CD Pipelines
gdb (GNU Debugger) or windbg on temporary worker nodes to analyze application crashes. These tools are launched by the pipeline orchestrator rather than an interactive user session.Jenkins-Agent, Azure-DevOps-Svc) and restrict the scope to specific build agent hostnames or IP ranges defined in the network inventory.Enterprise Endpoint Management Health Checks
windbg or custom wrappers invoking `CreateDump