how to stop malware running on my droplet which is utilising all the cpu.

I have a droplet running ubuntu 16.04 with apache and mysql. I have hosted a wordpress website on this server which was running fine. But week ago mysql was stopped working automatically. which when I later examine and found that a process running on my droplet using all the cpu. This process is which is using 98% of cpu, because of which apache and mysql stopped working. When i kill the process it starts again. I can’t find any solution to kill this process permanently or secure my site from such attacks. It looks like it is a crypto mining malware which is using all resources to mine crypto currency. How should I stop and block this process. Please help.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


Your server has been compromised. Based on the info you’ve provided so far, it’s unclear whether this is user or root level breach. I recommend using a safe backup and restore it to a new droplet. You can go in and work on cleaning the server from malware but that effort could be moot if the attacker has firm control over the server.