How To Remove HZ RAT On Mac [Complete Guide]
Before we dive in
Before we dive in, let's make sure you stay safe online. We created SpyHunter because your security matters to us.
Protect your computer today — download SpyHunter right here! Check out our top tips below to keep your computer safe and secure.
Are you worried about the security of your macOS system amidst the increasing complexity of cyber threats?
HZ RAT, a malware targeting macOS users, particularly those using popular Chinese apps like WeChat and DingTalk, underscores the growing need for robust cybersecurity measures.
This article will explore the mechanics of HZ RAT, discuss its unique threat to macOS users, and offer practical tips to safeguard your system.
Read on for comprehensive insights into combating this sophisticated malware and ensuring your digital safety.
What is the HZ RAT Backdoor?
HZ RAT is a sophisticated form of malware that functions as a backdoor on macOS systems, though it also has a Windows version.
Specifically designed to target users of the Chinese communication applications DingTalk and WeChat, HZ RAT allows cybercriminals to carry out a variety of malicious activities.

By mimicking legitimate software packages, this malware deceives users into downloading and installing it on their devices.
Once installed, HZ RAT can execute commands sent from a remote server, manage files, download further malicious payloads, and intercept and send data back to the cybercriminals.
The ability to execute arbitrary commands makes it particularly dangerous as it could lead to further exploitation of the infected system.
The mechanics of macOS backdoors
Backdoors like HZ RAT operate by opening a hidden entry point into your device, which allows attackers to take control or steal information without your knowledge.
For macOS users, this usually involves tricking the user into downloading what appears to be a harmless software package. Once this package is executed, it installs a backdoor component in a way that often bypasses typical security checks.
In the case of macOS, malware often uses shell scripts—a type of programming script that executes commands on Unix-based systems, including macOS.
These scripts are preferred by attackers because they are powerful and offer deep access to the system’s operations. HZ RAT uses these scripts to execute a predefined set of commands, which can manipulate files, gather system data, or download additional malicious software.
Initial access and infection strategies
The initial infection strategy of HZ RAT on macOS relies heavily on social engineering and the exploitation of trusted applications.
The trojan’s distribution through disguised files prompts users to unwittingly install the malware, believing they are downloading a safe and useful application. Specifically, it exploits the popularity and the trust in apps dealing with instant messaging and data management.
Once installed, the malware utilizes sophisticated shell scripts to modify system configurations and establish persistence.
These scripts connect the infected device to a remote server, thereby initiating unauthorized data transfers and enabling the remote execution of malicious commands.
Persistent threat tactics in macOS
To maintain its presence on an infected macOS system, HZ RAT employs persistence mechanisms that allow it to survive reboots and user attempts to remove suspicious software.
It plants itself in /System/Library/LaunchAgents
and /System/Library/LaunchDaemons
, ensuring it runs continually in the background without the user’s knowledge.
Remove HZ RAT using SpyHunter
For comprehensive malware protection and removal, consider using SpyHunter. SpyHunter can detect and eliminate various types of malware, including the likes of HZ RAT.
Its real-time system guards block unauthorized activities, providing an additional layer of security.
- Download the app here and install it following the on-screen prompts.
- Launch SpyHunter from your dock and then select a full scan of your Mac from the main menu.
- Wait for the scan to end and then examine the list of possible detections, making sure all detected threats are selected for removal.

- Proceed to remove all malware discovered using the interface buttons.

Regular scans with SpyHunter help ensure that your macOS remains clean and secure from any new malware that tries to infiltrate your system.
Steps to manually remove HZ RAT from Mac
1: Identify and end suspicious processes
To get started with removing HZ RAT, first stop or force quit any suspicious processes.
- Open the
Activity Monitor
and look for any processes that seem suspicious. This can include unrecognizable app names and strangely named apps. - Select the suspect processes and force-quit them using the
Stop
button. - Confirm your action to force-quit the process by clicking
Force quit
again.

2. Remove suspicious applications
- Navigate to your
Applications
folder throughFinder
. - Look through the list of installed apps and look for any suspicious names or apps you don’t remember installing.
- Drag and drop the suspicious apps into the
Trash
. - Empty the
Trash
to complete this step.

3. Remove leftover files related to HZ RAT
- Open a
Finder
window and click onGo > Go to Folder
. - In the dialog box that pops up, enter the following paths in order:
/Library/LaunchAgents/
/Library/Application Support/
/Library/LaunchDaemons/
~/Library/LaunchAgents/
~/Library/Application Support/
- Examine each of those directory locations for any files that may be linked to HZ RAT and delete them all manually.
- Empty the
Trash
.

Conclusion
To prevent future infections, follow best practices such as keeping your macOS and applications updated, using strong, unique passwords, and avoiding suspicious downloads or email attachments.
Additionally, using reputable anti-malware software like SpyHunter for regular system scans can help detect and block new threats before they can cause harm. Stay vigilant to maintain your Mac’s security.