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

October 15, 2018 656 views
Apache Networking Firewall Ubuntu 16.04

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 cache.sh 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.

1 Answer

Hi,

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.

Best

Have another answer? Share your knowledge.