This detection identifies the execution of X-way.exe, a known Chinese hacktool that adversaries often deploy to establish persistence or conduct reconnaissance within Windows environments. Proactively hunting for this artifact in Azure Sentinel is critical because its low severity rating may cause it to be overlooked by automated alerts, yet its presence could indicate early-stage lateral movement or data exfiltration activities typical of advanced persistent threats.
rule x_way2_5_X_way {
meta:
description = "Chinese Hacktool Set - file X-way.exe"
author = "Florian Roth"
reference = "http://tools.zjqhr.com/"
date = "2015-06-13"
hash = "8ba8530fbda3e8342e8d4feabbf98c66a322dac6"
strings:
$s0 = "TTFTPSERVERFRM" fullword wide
$s1 = "TPORTSCANSETFRM" fullword wide
$s2 = "TIISSHELLFRM" fullword wide
$s3 = "TADVSCANSETFRM" fullword wide
$s4 = "ntwdblib.dll" fullword ascii
$s5 = "TSNIFFERFRM" fullword wide
$s6 = "TCRACKSETFRM" fullword wide
$s7 = "TCRACKFRM" fullword wide
$s8 = "dbnextrow" fullword ascii
condition:
uint16(0) == 0x5a4d and filesize < 1000KB and 5 of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 9 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the Chinese Hacktool Set - file X-way.exe detection rule, including targeted filters and exclusions:
Scenario: Legitimate Deployment of “X-Way” Remote Support Agent
X-way.exe. This file is frequently installed via SCCM or Intune to IT Helpdesk agents for troubleshooting.ccmexec.exe, msiexec.exe) or if the file path matches the standard installation directory (e.g., C:\Program Files\X-Way Support\).Scenario: Scheduled Maintenance Job for Chinese ERP Integration
X-way.exe to bridge data between a local Windows server and a cloud-based Chinese Enterprise Resource Planning (ERP) system (e.g., Kingdee or Yonyou). This job executes under the context of a dedicated service account (svc_sync_erp) rather than an interactive user.svc_sync_erp and the Parent Process is TaskScheduler.exe. Additionally, filter by time window (e.g., 02:00 – 04:00 local time) to avoid noise during off-hours maintenance.Scenario: Execution of Localized Development Build Tools