8220 Mining Group Now Uses Rootkit to Hide Its Miners

Recently, the Alibaba Cloud Security Team found that the 8220 Mining Group began to use rootkit to hide its mining programs. By using this method, mining programs can reside on compromised hosts longer without being detected. Developed after the application of watchdogs and other mining worms, this concealment technology has been widely applied and is evolving. It is predicted that methods to hide mining worms on hosts and the corresponding defenses will become a major security issue in the future.

Who Is the 8220 Mining Group?

The Alibaba Cloud Security Team detected a download script update of the 8220 Mining Group on the worm monitoring platform. In addition to the necessary residing script and mining programs, a shared library was added. The file can be downloaded from

The 8220 Mining Group is a criminal gang that has operated in China for a long time. It exploits multiple vulnerabilities to attack hosts and deploy mining programs [1–2]. The mining group exploits the WebLogic XMLDecoder deserialization vulnerability (CVE-2017–10271), Drupal RCE (CVE-2018–7600), JBoss deserialization command execution vulnerability (CVE-2017–12149), and other vulnerabilities to attack hosts and deploy mining programs to make illegal profits.

The Alibaba Cloud Security Team analyzed the script and the shared library and confirmed that the 8220 Mining Group now uses ProcessHider [3] in the attack toolkit to hide its mining programs. ProcessHider is a rootkit that is widely used in various malicious software programs. When ProcessHider is used by mining worms, it is difficult for the host administrator to detect the mining process using normal methods. Therefore, the mining process can reside on the host for a long time and the criminals reap a greater benefit. In the future, more and more mining worms will probably use this technique.

Detecting Hidden Worms

If the CPU usage displayed in the cloud console spikes and the host response slowly but you cannot locate processes with high CPU usage by running the PS or TOP command on the host, the host may be compromised by mining worms hidden by rootkit.

1. Detecting Worms on the Host

The worm uses LD_PRELOAD to load its own “so” file before the system and hijacks the readdir function so that the host cannot return the correct response to PS or TOP commands that depend on this API. In this way, you cannot run these system commands to view the actual processes that are running on the compromised host.

As shown in the preceding figure, the process keyword that is hidden by this worm is kworkerds.

On the host, you can run the following command to detect the worm:

The process information returned after you run the normal TOP command is as follows:

LD_PRELOAD depends on the dynamic linking process. Therefore, you can use statically compiled BusyBox to run the TOP command. Then, all the actual processes are displayed.

2. Detecting Worms on the Network

As the defenses against mining worms continuously improve, the self-concealment functions of the worms are also constantly upgraded. It is extremely costly for common users to defend against well-designed worms and viruses, while the benefits are low. The network-side network traffic analysis (NTA) function is a more effective way to detect such worms. Regardless of the concealment method that the attacker uses on the host, the attacker actions, such as remote download, C&C communication, and mining pool communication, will always leave traces in the network traffic.

The following figure illustrates how the network-side Cloud Firewall detects the worm through its backdoor file download action on the compromised host.

Recommended Solution

1. Considering that the local commands may have been hijacked, you can download statically compiled BusyBox to run the commands and avoid hijacking.

2. Clear dynamic hijacking.

3. Kill malicious processes and related files.

4. Fix crontab.

5. Fix crontab and repeat step 3.

6. After crontab is fixed, restart crontab.


1. Tracing and Analysis of the 8220 Mining Group in China

2. Analysis of the Latest Activities of the 8220 Mining Group: Mining Trojans and Ransomware

3. libprocesshider

Original Source

Follow me to keep abreast with the latest technology news, industry insights, and developer trends.