always use a good firewall to avoid such instances, I recommend you to use any Internet security solutions(not necessary to go with pad subscription ). Most of the browsers are by default configured for an automatic update so we don't need to manually download any updates.
I personally use comodo internet security configured with custom rulesets (so that I can see what is going through my internet connection, and able to block if any suspicious handshakes with my PC )