How the WannaCry ransomware attack was stopped

The spread of the malicious software, nicknamed WannaCry or WannaCrypt, has been halted several times by researchers who have identified flaws in the program known as kill switches.