WannaCry can be stopped by downloading a Microsoft patch for the SMB vulnerability, which was made available two months before the attack began.