← Back to SOC feed Coverage →

LSA dump programe (bootkey/syskey) - pwdump and others

yara LOW Yara-Rules
community
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Yara-Rules →
Retrieved: 2026-07-31T11:00:00Z · Confidence: medium

Hunt Hypothesis

This detection identifies adversaries executing tools like pwdump to extract the Local Security Authority (LSA) secret from memory, a critical step for offline credential cracking or pass-the-hash attacks. Proactively hunting for this activity in Azure Sentinel is essential because LSA dumping often occurs early in an attack chain and can be missed by standard alerts due to its low severity classification, allowing attackers to silently harvest credentials before escalating privileges.

YARA Rule

rule lsadump
{
	meta:
		description		= "LSA dump programe (bootkey/syskey) - pwdump and others"
		author			= "Benjamin DELPY (gentilkiwi)"

	strings:
		$str_sam_inc	= "\\Domains\\Account" ascii nocase
		$str_sam_exc	= "\\Domains\\Account\\Users\\Names\\" ascii nocase
		$hex_api_call	= {(41 b8 | 68) 00 00 00 02 [0-64] (68 | ba) ff 07 0f 00 }
		$str_msv_lsa	= { 4c 53 41 53 52 56 2e 44 4c 4c 00 [0-32] 6d 73 76 31 5f 30 2e 64 6c 6c 00 }
		$hex_bkey		= { 4b 53 53 4d [20-70] 05 00 01 00}

	condition:
		( ($str_sam_inc and not $str_sam_exc) or $hex_api_call or $str_msv_lsa or $hex_bkey )
      and not uint16(0) == 0x5a4d
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 5 string patterns in its detection logic.

False Positive Guidance

Here are 5 specific false positive scenarios for the LSA dump program (bootkey/syskey) detection rule, including legitimate use cases and suggested filters:

Original source: https://github.com/Yara-Rules/rules/blob/main/malware/TOOLKIT_THOR_HackTools.yar