This detection identifies adversaries deploying a specific Chinese hacktool suite that utilizes netstat.exe to enumerate network connections and identify active services on compromised hosts. Proactively hunting for this behavior in Azure Sentinel is critical because, despite its low severity rating, the presence of this tool often signals early reconnaissance activities by advanced persistent threat groups targeting regional infrastructure.
rule Dos_netstat {
meta:
description = "Chinese Hacktool Set - file netstat.exe"
author = "Florian Roth"
reference = "http://tools.zjqhr.com/"
date = "2015-06-13"
hash = "d0444b7bd936b5fc490b865a604e97c22d97e598"
strings:
$s0 = "w03a2409.dll" fullword ascii
$s1 = "Retransmission Timeout Algorithm = unknown (%1!u!)" fullword wide /* Goodware String - occured 2 times */
$s2 = "Administrative Status = %1!u!" fullword wide /* Goodware String - occured 2 times */
$s3 = "Packet Too Big %1!-10u! %2!-10u!" fullword wide /* Goodware String - occured 2 times */
condition:
uint16(0) == 0x5a4d and filesize < 150KB and all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 4 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the Chinese Hacktool Set - file netstat.exe detection rule, including suggested filters and exclusions:
Microsoft Endpoint Configuration Manager (MECM/SCCM) Software Updates
netstat.exe process from the %ProgramFiles%\Microsoft Intune Management Extension\ or %SystemRoot%\System32\ directory to audit active connections and listening ports on endpoint devices.ccmexec.exe (SCCM Agent) AND the file path matches C:\Windows\System32\netstat.exe. Additionally, verify that the file hash matches the known Microsoft-signed version of netstat.exe.Third-Party RMM Tools (e.g., Datto RMM or ConnectWise Automate)
netstat.exe to generate a report of open ports for compliance auditing. This is often triggered by the tool’s service process (e.g., DattoRMMService.exe) rather than user interaction.netstat.exe is launched with arguments typical of reporting, such as -a -n -o.Enterprise Antivirus Real-Time Scanning and Remediation