Now hackers are targeting digital cameras with Ransomware. Experts are advising that this is probably not isolated to Canon and that all camera manufacturers are probably vulnerable.
General advice:
1) Don’t connect your camera directly to your computer, use a card reader instead
2) Turn off your camera’s wireless and bluetooth when not in use
3) Only connect to your camera to secure networks and limit the connection time
4) Update, if available, your camera’s firmware using the manufacturers web site
Canon Security Advisory
Checkpoint Research Article
Digital Camera World Article