A wave of ransomware attacks has struck worldwide recently.