← Back to SOC feed Coverage →

Disclosed hacktool set - file cmd.bat

yara HIGH 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-28T23:00:00Z · Confidence: medium

Hunt Hypothesis

This detection identifies adversaries deploying batch scripts (cmd.bat) as part of a disclosed hacktool set to establish persistence or execute initial command-and-control activities on compromised hosts. SOC teams should proactively hunt for this behavior in Azure Sentinel because batch files are frequently used by threat actors to obfuscate malicious execution and bypass standard script-based security controls, often serving as an early indicator of a broader intrusion campaign.

YARA Rule

rule Hacktools_CN_445_cmd {
	meta:
		description = "Disclosed hacktool set - file cmd.bat"
		author = "Florian Roth"
		date = "17.11.14"
		score = 60
		hash = "69b105a3aec3234819868c1a913772c40c6b727a"
	strings:
		$bat = "@echo off" fullword ascii
		$s0 = "cs.exe %1" fullword ascii
		$s2 = "nc %1 4444" fullword ascii
	condition:
		$bat at 0 and all of ($s*)
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 3 string patterns in its detection logic.

False Positive Guidance

Here are 5 specific false positive scenarios for the Disclosed hacktool set - file cmd.bat detection rule, including suggested filters and exclusions:

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