After leaving a Node JS app running for a while, I get a message from DO that i'm getting ddos'd

May 23, 2016 278 views
Node.js Security Ubuntu

Hi guys, so I made a simple tic-tac-toe online game using Node JS (Express and Sockets.IO). I used nginx somehow to redirect my domain to access the app on the droplet. When the app is running, I can access it fine. After a while I leave the app running, I get a message from Digital Ocean saying my droplet was being ddos'd and they have disabled network on it. This has happened two times in a row after leaving the app running. I gave like three friends access to the app on my domain and I am 99% sure they are not ddosing me. I don't know why this is happening. The source code for the node JS app is here if that matters:

1 Answer

This is unlikely to be directly related to your app. In order for our support team to reach out to you and disable networking on your droplet it would have had to have been receiving at least 1Gbps of incoming traffic. This is almost always a coordinated attack (though it is possible for a small number of clients pushing a ton of data).

Before digging too deep I would recommend powering off your droplet, creating a snapshot and using that to create a new droplet. If your previous IP address was being attacked it could have been due to a prior assignee being the target.

Have another answer? Share your knowledge.