This hunt targets adversaries deploying the specific Chinese hacktool executable MyUPnP.exe to establish persistence or conduct network reconnaissance within Azure environments. Proactively hunting for this artifact is critical because its low severity classification may cause it to be overlooked in automated alerts, allowing attackers to maintain a stealthy foothold before escalating their activities.
rule CN_Tools_MyUPnP {
meta:
description = "Chinese Hacktool Set - file MyUPnP.exe"
author = "Florian Roth"
reference = "http://tools.zjqhr.com/"
date = "2015-06-13"
hash = "15b6fca7e42cd2800ba82c739552e7ffee967000"
strings:
$s1 = "<description>BYTELINKER.COM</description>" fullword ascii
$s2 = "myupnp.exe" fullword ascii
$s3 = "LOADER ERROR" fullword ascii
condition:
uint16(0) == 0x5a4d and filesize < 1500KB and all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 3 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the Chinese Hacktool Set - file MyUPnP.exe detection rule in an enterprise environment, along with suggested filters or exclusions:
Scenario: Deployment of Network Configuration Management Tools
MyUPnP.exe within their installation directory (e.g., C:\Program Files\NetworkTools\Bin\) to handle port mapping and device discovery tasks during scheduled maintenance windows.C:\Program Files\*\MyUPnP.exe where the parent process is a known management agent (e.g., SolarWindsAgent.exe, OpUtils.exe) or a legitimate service installer (msiexec.exe).Scenario: Automated Patch Management and Software Distribution
MyUPnP.exe as part of a pre-requisite check to ensure network connectivity before applying patches to endpoints running in a DMZ or branch office environment.ccmexec.exe (SCCM) or IvantiAgentService.exe, and the file hash matches a known baseline version of the legitimate tool distributed by the organization’s software catalog.**Scenario: Virtual Desktop Infrastructure (VD