"WannaCry variants encrypted files only when they could not successfully contact their configured internet-check domain."
Mandiant documented WannaCry variants whose encryption logic depended on whether an HTTP request to a hard-coded domain succeeded.
View Source