Question

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello there,

You can install malware detection software like Linux Malware Detect, also known as Maldet or LMD. It will help you to locate any malicious files on your droplet.

If you’re interested in securing your droplet (everyone should be in general) you can double-check our tutorial - An Introduction to Securing your Linux VPS.

The article will cover the basic and some more advanced steps in website and server security.

You can check the article here:

https://www.digitalocean.com/community/tutorials/an-introduction-to-securing-your-linux-vps

Also, make sure to check your Apache or Nginx access logs for any strange POST requests

Hope that this helps!

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