How to Prevent and Mitigate Ransomware Attacks