All infected machines were running computer systems - the majority Windows 7 - that had not been updated to secure them against such attacks.
Government offices in Russia, Spain, and several other countries were disrupted, as were Asian universities, Germany’s national railway and global companies such as automakers Nissan and Renault.
The attack was brought to a halt by 23-year-old security researcher Marcus Hutchins from Devon who discovered the malware’s author had embedded a “kill switch” in the code, which he was able to trip.