Question

Someone hacked into my DigitalOcean account

They removed certain functionalities for web application. How can I restore those functions and prevent this from happening again?


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.

Hi 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

Hope that this helps!

Hi there,

If it was only your web server that got compromised, I would recommend restoring a backup for your Droplet:

https://docs.digitalocean.com/products/images/backups/how-to/create-and-restore/

Then once you’ve restored your web server back to a working state, I would recommend scanning your website for malicious files and also installing all of the latest security patches. For example if you are using WordPress, you could follow the steps on how to do that here:

https://www.digitalocean.com/community/questions/how-to-secure-wordpress-without-a-security-plugin

In case that you believe that someone gained access to your DigitalOcean control panel, I would recommend the following:

  • Change your password to a very strong one
  • To prevent this from happening again, enable 2FA.
  • If you are still seeing the problems, I would recommend contacting the DigitalOcean support team.

Regards, Bobby