← Back to SOC feed Coverage →

Disclosed hacktool set - file nc.exe

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 the Netcat utility (nc.exe) as a disclosed hacktool to establish reverse shells or exfiltrate data through network connections. Proactively hunting for this behavior in Azure Sentinel is critical because nc.exe is frequently abused by threat actors to maintain persistence and command-and-control channels, often evading standard antivirus signatures due to its legitimate status.

YARA Rule

rule Ncat_Hacktools_CN {
	meta:
		description = "Disclosed hacktool set - file nc.exe"
		author = "Florian Roth"
		date = "17.11.14"
		score = 60
		hash = "001c0c01c96fa56216159f83f6f298755366e528"
	strings:
		$s0 = "nc -l -p port [options] [hostname] [port]" fullword ascii
		$s2 = "nc [-options] hostname port[s] [ports] ... " fullword ascii
		$s3 = "gethostpoop fuxored" fullword ascii
		$s6 = "VERNOTSUPPORTED" fullword ascii
		$s7 = "%s [%s] %d (%s)" fullword ascii
		$s12 = " `--%s' doesn't allow an argument" fullword ascii
	condition:
		all of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 6 string patterns in its detection logic.

False Positive Guidance

Here are 5 specific false positive scenarios for the “Disclosed hacktool set - file nc.exe” detection rule, along with suggested filters and exclusions:

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