This hunt targets adversaries deploying the specific ustrrefadd.dll component of a Chinese hacktool suite to establish persistence or execute reconnaissance within Windows endpoints. Proactively hunting for this artifact in Azure Sentinel is critical because its low severity classification may cause it to be overlooked by automated alerts, allowing attackers to maintain a stealthy foothold before escalating their activities.
rule ustrrefadd {
meta:
description = "Chinese Hacktool Set - file ustrrefadd.dll"
author = "Florian Roth"
reference = "http://tools.zjqhr.com/"
date = "2015-06-13"
hash = "b371b122460951e74094f3db3016264c9c8a0cfa"
strings:
$s0 = "E-Mail : [email protected]" fullword ascii
$s1 = "Homepage: http://www.luocong.com" fullword ascii
$s2 = ": %d - " fullword ascii
$s3 = "ustrreffix.dll" fullword ascii
$s5 = "Ultra String Reference plugin v%d.%02d" fullword ascii
condition:
uint16(0) == 0x5a4d and filesize < 320KB 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 5 specific false positive scenarios for the Chinese Hacktool Set - file ustrrefadd.dll detection rule, including suggested filters and exclusions:
WPS Office Deployment or Update
ustrrefadd.dll library is a core component of Kingsoft WPS Office (a popular alternative to Microsoft Office in many enterprises). Legitimate false positives occur during the initial installation via SCCM/Intune, background auto-updates performed by the WPS Cloud Service, or when users launch specific WPS modules like WPS Spreadsheets.C:\Program Files (x86)\Kingsoft\WPS Office and specifically whitelist the parent process wps.exe, wpscloud.exe, or ksooffice.exe. Additionally, exclude file creation events where the file hash matches a known benign signature of WPS components.Tencent Meeting / WeCom (WeChat Work) Installation
ustrrefadd.dll into the user profile directory (%AppData%\Tencent) during scheduled maintenance windows or when a new employee logs in with a fresh profile. This activity is frequently triggered by the “Tencent Update Service” running as a background task.TencentMeeting.exe or WeCom.exe. Furthermore, add an exclusion for files dropped within the specific directory path %ProgramFiles%\Tencent\* and %AppData%\Roaming\Tencent\*.Third-Party PDF Viewer (WPS PDF) Execution