This topic uses common mining programs to introduce the characteristics of mining programs and describe how Security Center generates alerts upon mining programs, blocks mining programs, and traces and analyzes mining programs.
Mining programs typically spread to multiple system services and therefore are difficult to be removed from the system. Mining programs may appear repeatedly and system commands may be replaced with malicious scripts. In this case, the system may accidentally run malicious scripts, such as Xor DDoS. Therefore, you must remove all Trojans and persistent webshells from your server within the execution period of the mining program.
Use Security Center to manage mining programs
- Log on to the Security Center console.
- In the left-side navigation pane, choose .
- In the alert list, find the target Mining Software in the Event column, and then click Processing in the Actions column.
If a mining program is detected, Security Center generates a Mining Software alert.
- To remove a mining program, select Virus removal and Isolate the source file of the process, and then click Process Now. This prevents the mining program from running again.
- For other alerts related to the mining program, for example, mining pool communications,
Security Center generates policies to prevent servers from visiting mining pools, leaving you sufficient time to manage security events.
- Check alerts generated upon unusual process behaviors, and determine whether unusual crontab tasks exist.
- Enable virus detection.
If you fail to remove all mining programs from your server, the virus detection feature blocks mining programs, preventing them from running. For more information about how to enable virus detection, see The anti-virus feature.
You can also use Security Center to trace intrusion events and analyze how mining programs intrude into your server.
Use other approaches to manage mining programs
To maximize exploits, mining programs typically insert a large number of webshells into the victim server. In this case, viruses may be difficult to be removed.
If your server intruded by mining programs is not protected by Security Center, take the following steps to troubleshoot and manage mining programs.
- Query the file path of the mining program.
ls -l /proc/xxx/exe // xxx represents the PID of the mining program.
- Remove the file of the mining program.
- Among the processes consuming most of the CPU resources, find and terminate the mining process.
- Check whether the firewall of your server contains the address of the mining pool
to which the mining program belongs.
- Run the following command to check for unusual communication addresses and open ports
that are not required by normal workloads.
iptables -L -n
- Run the following command to remove the address of the mining pool.
- Run the following command to check for unusual communication addresses and open ports that are not required by normal workloads.
- Run the following command to scan for and manage crontab tasks, which can cause repeated
- Run the following command to check whether the SSH public key contains mining viruses.
This eliminates persistent webshells.
- Check whether mining activities exist on other servers to eliminate the risk of infecting other servers deployed in the same private network.