By rajputdk421
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.
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!
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
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!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.