If your talking about wannacry.
This bug effected folks running an unsupported OS or an unpatched OS.
Meaning a self induced problem.
Run a supported OS and keep it patched.
Recently, a virus attack on 12 May 2017 which name is Ransomware. I want to discuss my topic Ransomware virus & how it effected to our computer. According to worldwide this virus damaged 200000 computers are damaged & stolen data.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic