This hunt hypothesis targets adversaries deploying the hscangui.exe component of a Chinese hacktool suite to establish persistence or conduct reconnaissance within Azure Sentinel environments. Proactive hunting for this specific artifact is essential because its legitimate appearance often masks early-stage supply chain compromises, allowing SOC teams to identify and isolate potential threats before they escalate into critical incidents.
rule hscangui {
meta:
description = "Chinese Hacktool Set - file hscangui.exe"
author = "Florian Roth"
reference = "http://tools.zjqhr.com/"
date = "2015-06-13"
hash = "af8aced0a78e1181f4c307c78402481a589f8d07"
strings:
$s1 = "[%s]: Found \"FTP account: anyone/[email protected]\" !!!" fullword ascii
$s2 = "http://www.cnhonker.com" fullword ascii
$s3 = "%s@ftpscan#Cracked account: %s/%s" fullword ascii
$s4 = "[%s]: Found \"FTP account: %s/%s\" !!!" fullword ascii
condition:
uint16(0) == 0x5a4d and filesize < 220KB and 2 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 - hscangui.exe detection rule, along with recommended filters or exclusions:
Legitimate Deployment via SCCM/MECM
hscangui.exe execution during business hours.ccmexec.exe (SCCM Agent) and the file path matches the known installation directory (e.g., C:\Program Files\Huawei\Security Center\hscangui.exe).Automated Morning Health Scan via Task Scheduler
hscangui.exe to perform a quick heuristic scan of the C: drive before users log in, generating a standard execution event.-scan-mode=quick) and the process is launched by svchost.exe or TaskScheduler with a known Task Name ID matching “Daily Security Integrity Check”.IT Helpdesk Remote Support Session
hscangui.exe manually on a user’s workstation to troubleshoot a specific malware alert. The manual execution is legitimate but triggers the rule due to its association with Chinese-origin security tools.