The only way to prevent malware and ransomware attacks is by implementing good anti-virus software, setting up a strong firewall, and regular back-ups. But, you can mitigate the damage by “micro-segmenting” your network. This makes each computer have very limited connections to other computers. It then prevents those installed malware programs from spreading to other computers.