What should I do after being hacked

I noticed my test Rails app calling some strange routes

" Started GET “/”.

and also running php my admin scripts even though I never installed it. Also in the logs, there’s a record of connections from strange ip addresses (such as ) that google results reveal to be associated with suspicious behaviour

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.

Before destroying your droplet, it is very IMPORTANT to locate the security hole, and how they are gained access and hacked your server. Installing new droplet wont protect you from future hacks. If you can’t - hire someone, but even then they might be covered they trails, if so you can use the image of the server (if you have) like a honey pot and wait for them to hack it again. But just re install droplets is not a good option.

Is this a GET request from your droplet or to your droplet?

hey, <br> <br>those idiots scan the whole internet, I see that GET request every day at work. <br> <br>Just because you see a GET or POST to your webserver does not mean you have been hacked. <br> <br>If you have people actually connecting via ssh to your server (or whatever other management tools/ports) you have enabled and successfully logging in then be concerned or you seeing files in your web server that you did not put there (apache flaws, php exploits aka web server hacked etc) <br> <br>You saying you are running php my admin even though you did not install it worries me though… you sure it didnt come with your droplet? Can you see who has connected to your server? Who is logged on from what IP? <br> <br>If you have no clue kill the box and walk away slowly :)