The vulnerability targeted by WannaCry was for years of strategic importance for the National Security Agency.