← Back to SOC feed Coverage →

Chinese Hacktool Set - file Cmdshell32.exe

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-15T23:00:00Z · Confidence: medium

Hunt Hypothesis

This hunt hypothesis targets adversaries deploying the specific “Cmdshell32.exe” tool from a known Chinese hacktool set to establish persistent command-and-control channels or execute reconnaissance scripts within Azure Sentinel environments. Proactively hunting for this file is critical because its low severity classification may cause it to be overlooked in automated alerting, allowing threat actors to maintain a stealthy foothold before escalating their operations.

YARA Rule

rule Cmdshell32 {
	meta:
		description = "Chinese Hacktool Set - file Cmdshell32.exe"
		author = "Florian Roth"
		reference = "http://tools.zjqhr.com/"
		date = "2015-06-13"
		hash = "3c41116d20e06dcb179e7346901c1c11cd81c596"
	strings:
		$s1 = "cmdshell.exe" fullword wide
		$s2 = "cmdshell" fullword ascii
		$s3 = "[Root@CmdShell ~]#" fullword wide
	condition:
		uint16(0) == 0x5a4d and filesize < 62KB and all of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 3 string patterns in its detection logic.

References

False Positive Guidance

Here are 4 specific false positive scenarios for the Chinese Hacktool Set - file Cmdshell32.exe detection rule, tailored for an enterprise environment:

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