Municipalities are especially an easy target and at risk for cyber attacks. Here is an article on how Ontario municipalities have been affected:
Ontario municipalities hit hardest by cyber attacks, says OPP investigator
It is vital that municipalities such as Cobourg develop a strategy before this becomes reality. Security software and education can help but is not the full answer. The Town should be prepared for how to recover from such an attack with a strategy of how to back up all of the critical information and the ability to retrieve it quickly.
UPDATE: Another article on how municipalities are vulnerable: