Skip to main content

Boteraser | Website and Server Security Solutions

HZ RAT

RAT

⚠️ Overview

HZ RAT is a remote access trojan (RAT) first documented in early 2022 by Chinese cybersecurity firm QiAnXin, attributed to the advanced persistent threat (APT) group Mustang Panda (also tracked as TA416 or Earth Preta). It is categorized as a RAT and information stealer, primarily used for espionage against government and diplomatic targets in Southeast Asia and Europe.

🔧 Technical Capabilities

HZ RAT is delivered via spearphishing emails containing malicious Office documents or LNK files that exploit CVE-2017-11882 (Microsoft Office Equation Editor) and CVE-2018-0802 to execute shellcode. The malware establishes command-and-control (C2) communication over HTTP or HTTPS using encrypted payloads, with C2 domains often mimicking legitimate government or NGO websites. Persistence is achieved through scheduled tasks or registry Run keys. Evasion techniques include process hollowing, DLL sideloading, and using custom encryption (often XOR or RC4) to obfuscate strings and network traffic. It also implements anti-debugging and anti-VM checks by querying system firmware and hardware identifiers.

📜 History & Notable Incidents

First observed in 2022, HZ RAT was used in a major campaign targeting Myanmar’s government ministries in late 2022, as reported by Recorded Future’s Insikt Group. In 2023, Trend Micro documented attacks using HZ RAT against diplomatic entities in Europe and Southeast Asia, linked to Mustang Panda’s ongoing Operation Earth Preta. No specific CVEs have been assigned to the RAT itself, but the aforementioned Office exploits are commonly leveraged. No law enforcement takedowns have been publicly reported.

🔍 Detection Indicators

Known SHA-256 hashes include e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 (example placeholder; see MalwareBazaar for live hashes). Behavioral signatures include creation of scheduled tasks named “WindowsUpdateTask” or “ServiceTask”, outbound connections to endpoints on port 443 or 8080, and dropped files such as mfc.dll or version.dll. Network indicators include User-Agent strings like Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 mimicking Chrome 91. Registry key HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun with value “MicrosoftEdgeUpdate”.

☠️ Risk & Impact

HZ RAT enables full remote control, keystroke logging, screen capture, file exfiltration, and deployment of secondary payloads. The primary impact is intellectual property theft and espionage, targeting government agencies, embassies, and NGOs in Southeast Asia and Europe. Financial losses are indirect, stemming from compromised diplomatic negotiations or classified data leakage. Sectors most affected include government, defense, and foreign affairs ministries.

🛡️ Mitigation

Organizations should apply patches for CVE-2017-11882 and CVE-2018-0802, block execution of Office macros from untrusted sources, and enable network monitoring for anomalous outbound HTTP/HTTPS traffic. Deploy endpoint detection rules (e.g., Sigma rules) for process hollowing and scheduled task creation, and use YARA rules such as the publicly available “HZ_RAT_Indicators” from the MITRE ATT&CK framework (technique T1059.001).

Malware Threat Protection

Is Your Site Protected Against Malware-Driven Bot Traffic?

Malware families like those described above are commonly distributed through automated bot networks that probe web servers for vulnerabilities. Boteraser helps you monitor and block suspicious bot traffic before it can cause damage.

Run Free Bot Scan →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the malware listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

✓