← Back to SOC feed Coverage →

Auto-generated rule - file genhash.exe

yara CRITICAL Yara-Rules
backdoorcommunity
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-18T23:00:00Z · Confidence: medium

Hunt Hypothesis

This detection targets adversary behavior involving the execution of genhash.exe, a utility often leveraged by attackers to generate cryptographic hashes for verifying malware integrity or establishing command-and-control trust chains within Azure environments. The SOC team should proactively hunt for this activity because its critical severity suggests potential early-stage reconnaissance or lateral movement that, if unmonitored, could indicate the deployment of sophisticated fileless attacks or supply chain compromises requiring immediate investigation.

YARA Rule

rule genhash_genhash : Toolkit  {
	meta:
		description = "Auto-generated rule - file genhash.exe"
		author = "Florian Roth"
		reference = "http://www.coresecurity.com/corelabs-research/open-source-tools/pass-hash-toolkit"
		date = "2015-07-10"
		score = 80
		hash = "113df11063f8634f0d2a28e0b0e3c2b1f952ef95bad217fd46abff189be5373f"
	strings:
		$s1 = "genhash.exe <password>" fullword ascii /* PEStudio Blacklist: strings */ /* score: '30.00' */
		$s3 = "Password: %s" fullword ascii /* PEStudio Blacklist: strings */ /* score: '17.00' */
		$s4 = "%.2X%.2X%.2X%.2X%.2X%.2X%.2X%.2X%.2X%.2X%.2X%.2X%.2X%.2X%.2X%.2X" fullword ascii /* score: '11.00' */
		$s5 = "This tool generates LM and NT hashes." fullword ascii /* score: '10.00' */
		$s6 = "(hashes format: LM Hash:NT hash)" fullword ascii /* score: '10.00' */
	condition:
		uint16(0) == 0x5a4d and filesize < 200KB and 2 of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 5 string patterns in its detection logic.

References

False Positive Guidance

Here are 4 specific false positive scenarios for the genhash.exe detection rule in an enterprise environment, along with suggested filters:

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