Preemptive Protection Against Ransomware Attacks