This hunt hypothesis targets adversaries deploying the Chinese Hacktool suite (hscan.exe and hscangui.exe) to conduct reconnaissance or establish persistence within the environment. Proactive hunting in Azure Sentinel is essential because these tools often exhibit benign characteristics that may evade standard signature-based alerts, requiring behavioral analysis to distinguish legitimate usage from covert adversary activity.
rule _hscan_hscan_hscangui {
meta:
description = "Chinese Hacktool Set - from files hscan.exe, hscan.exe, hscangui.exe"
author = "Florian Roth"
reference = "http://tools.zjqhr.com/"
date = "2015-06-13"
super_rule = 1
hash0 = "17a743e40790985ececf5c66eaad2a1f8c4cffe8"
hash1 = "568b06696ea0270ee1a744a5ac16418c8dacde1c"
hash2 = "af8aced0a78e1181f4c307c78402481a589f8d07"
strings:
$s1 = ".\\log\\Hscan.log" fullword ascii
$s2 = ".\\report\\%s-%s.html" fullword ascii
$s3 = "[%s]: checking \"FTP account: ftp/[email protected]\" ..." fullword ascii
$s4 = "[%s]: IPC NULL session connection success !!!" fullword ascii
$s5 = "Scan %d targets,use %4.1f minutes" fullword ascii
condition:
uint16(0) == 0x5a4d and filesize < 240KB and all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 5 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the Chinese Hacktool Set detection rule, focusing on legitimate enterprise activities involving hscan.exe and hscangui.exe:
Scenario: Deployment of “Huawei HiSec Insight” or “H3C SecPath” Endpoint Agents
hscan.exe (background scanner service) and hscangui.exe (graphical user interface/management console) are core components of these legitimate suites.C:\Program Files\HiSec Insight\Bin\). Additionally, whitelist the process names if they are signed by a trusted Chinese Certificate Authority.Scenario: Execution of Third-Party Patch Management Scans
hscan.exe are common in regions with significant Chinese vendor infrastructure.hscangui.exe to generate a report on missing patches and open ports.