← Back to SOC feed Coverage →

Chinese Hacktool Set - file XScanLib.dll

yara LOW 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-15T11:00:00Z · Confidence: medium

Hunt Hypothesis

This hunt aims to identify the presence of the XScanLib.dll artifact, a known component of the Chinese Hacktool set often associated with advanced persistent threat reconnaissance activities. Proactively hunting for this file in Azure Sentinel is critical because its low severity rating may cause it to be overlooked by standard alerting, allowing adversaries to establish a foothold before initiating more aggressive data exfiltration or lateral movement phases.

YARA Rule

rule XScanLib {
	meta:
		description = "Chinese Hacktool Set - file XScanLib.dll"
		author = "Florian Roth"
		reference = "http://tools.zjqhr.com/"
		date = "2015-06-13"
		hash = "c5cb4f75cf241f5a9aea324783193433a42a13b0"
	strings:
		$s4 = "XScanLib.dll" fullword ascii
		$s6 = "Ports/%s/%d" fullword ascii
		$s8 = "DEFAULT-TCP-PORT" fullword ascii
		$s9 = "PlugCheckTcpPort" fullword ascii
	condition:
		uint16(0) == 0x5a4d and filesize < 360KB and all of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 4 string patterns in its detection logic.

References

False Positive Guidance

Here are 4 specific false positive scenarios for the Chinese Hacktool Set - file XScanLib.dll detection rule, tailored for an enterprise environment:

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