The researcher — who is known as MalwareTech on Twitter — registered a garbled domain name hidden in the malware to track the virus, a move that halted it.
Source: Marcus Hutchins is 22-year-old who stopped ransomware malware virus – Business Insider