Ransomware attacks are becoming more common – how do we stop them?

The shutdown of a US oil pipeline is just the latest in a wave of ransomware attacks targeting everyone from small businesses to government agencies – what can be done to stop it?