Skip to main content
Mallory
Malware1 associated CVE

HZ RAT

Tracked since Nov 25, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns1Associated
Actors0Associated
ATT&CK10Techniques
IOCs291Tracked
Type
RAT
Capabilities
Credential theftExfiltrationReconnaissancePost exploitationDefense evasion
Delivery
Lure
Platforms
WindowsmacOS

HZ RAT is a remote access trojan with Windows and macOS variants used for remote command execution, credential theft, reconnaissance, and data exfiltration. Its campaign has been active since at least October 2020 and was publicly documented in November 2022. The macOS variant targets users of the Chinese messaging applications DingTalk and WeChat. Both variants support operator-directed command execution, writing files to disk, uploading files to command-and-control servers, and victim availability checks. Windows tasking uses PowerShell commands and scripts, while the macOS variant receives shell-script payloads.

Windows infection chains use malicious RTF documents exploiting CVE-2017-11882 in Microsoft Office's Equation Editor, or self-extracting archives masquerading as installers for legitimate software such as OpenVPN, PuTTYgen, and EasyConnect. The installer-based chain executes a Visual Basic Script that launches HZ RAT alongside the advertised application. A macOS distribution package similarly impersonates OpenVPN Connect. Windows samples use custom packers incorporating Base64 or AES, and the backdoor communicates through a custom XOR-encrypted protocol.

Observed Windows tasking targets browser and email-client credentials, database-management and development-tool artifacts, and WeChat-related data. The macOS variant collects system information, local network addresses, installed-application lists, and user data associated with DingTalk, WeChat, and Google Password Manager. Targeted messaging data includes account identifiers, email addresses, telephone numbers, and organizational details. Identified command-and-control infrastructure is concentrated in China.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Associated CVEs

Associated vulnerabilities

1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.

CVE-2017-11882via the hacker newsExploited in the wildRemote Code Execution in Microsoft Office Equation EditorThe attack chains involving RTF documents are engineered to deploy the Windows version of the malware that's executed on the compromised host by exploiting a years-old Microsoft Office flaw in the Equation Editor (CVE-2017-11882).View vulnerability →Source ↗
MITRE ATT&CK

Techniques & procedures

10 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

2 techniques
T1566PhishingEvidence1

MITRE ATT&CK T1566 Phishing

T1566.001Spearphishing AttachmentEvidence1

Either embedded as self-extracting zip archive or as malicious RTF document build presumably with the Royal Road framework.

Execution

3 techniques
T1203Exploitation for Client ExecutionEvidence1

Once opened, the document writes HZ Rat to disk as default.exe and executes it with an Equation Editor exploit (CVE-2017–11882) hidden in the document and triggered after opening the document.

T1204User ExecutionEvidence1

only the lure filename is used to social engineer the victims into opening the document.

T1204.002Malicious FileEvidence1

the archive actually executes install.vbs which first runs the contained default.exe (HZ Rat) and afterwards the actual lure program.

Persistence

1 technique
T1112Modify RegistryEvidence1

MITRE ATT&CK T1112 Modify Registry

Defense Impairment

1 technique
T1112Modify RegistryEvidence1

MITRE ATT&CK T1112 Modify Registry

Credential Access

1 technique
T1003OS Credential DumpingEvidence1

Reviewing the received commands indicates that, beside system reconnaissance, a strong focus is set on credential dumping.

Discovery

2 techniques
T1012Query RegistryEvidence1

MITRE ATT&CK T1012 Query Registry

T1082System Information DiscoveryEvidence1

Our research revealed that this malware was utilised for credential stealing and system reconnaissance.

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence1

* upload file​ to C2

Indicators of compromise

Observables

291 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
emsisoftNews · Nov 20, 2025Mac Specific Threats and AnalysisRemote access trojan providing full remote control of infected macOS systems; commonly delivered by a downloader.Read more ↗the hacker newsNews · Aug 27, 2024macOS Version of HZ RAT Backdoor Targets Chinese Messaging App UsersBackdoor with Windows and macOS versions that receives commands from attacker-controlled servers, executes commands and scripts, writes and uploads files, and checks victim availability. The macOS variant impersonates an OpenVPN Connect installer and collects system information and user data from WeChat, DingTalk, and Google Password Manager. Credential harvesting and reconnaissance are suspected purposes; lateral movement is a potential future use, not an observed capability in this investigation. Windows distribution includes malicious RTF documents and installers that also install legitimate lure software. Samples were detected as early as June 2020, although the malware was first publicly documented in November 2022.Read more ↗cert eu threat intelNews · Apr 9, 2024Cyber Brief 24-09 - August 2024Remote access trojan/backdoor targeting macOS and Windows, used for lateral movement and targeting messaging app users.Read more ↗medium dcso cytecNews · Nov 16, 2022HZ RAT goes China. Walking down the Royal Road as we did… | by DCSO CyTec Blog | MediumA simple backdoor/RAT used as an initial access tool. It iterates through a list of C2 servers, connects using a custom XOR-encrypted protocol and handshake, and executes commands from the server. Reported capabilities include executing PowerShell commands/scripts, writing files to disk, uploading files to C2, and limited ping functionality. The campaign also used custom packers and focused on credential theft and system reconnaissance.Read more ↗
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching291Match every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities1CVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping10Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.