For this particular attack, you are most likely to be infected if you have an IP addressable camera and you never changed the default password. This includes Samsung cameras.
See the following article:
https://krebsonsecurity.com/2016/10/who-makes-the-iot-things-under-attack/
The most important thing you can do is to change the default password on everything you own. Power it off. Power back on and immediately change the password.