On May 12, 2017, WannaCry didn't need anyone to click anything. Once it was inside a network, it jumped from computer to computer on its own. Below is a small clinic network you can attack and defend: infect one machine, then turn the defences on and off and see which ones would have stopped it.
Everything happens in your browser. No real network traffic is sent, and the machines are just drawings. The rules come from what researchers found in 2017.
Want to try your own setup? Use Edit the network to change any computer, add more, or build a network of nothing but Windows XP, and send the link to a friend.
12 May 2017 07:44 UTC
Click any computer to infect it, or pick a starting point on the right.
- Clean
- Infected, encrypting
- Encrypted
- Crashed
- Attack failed
- Quit (kill switch)
Event log
What the simulation is based on
- Windows 7 was the real victim. Researchers found that almost every infected PC ran Windows 7 or Server 2008 R2. On Windows XP the exploit usually crashed the PC with a blue screen instead.
- Windows 10 wasn't hit by the worm. The exploit inside WannaCry didn't work on it. If someone ran the file directly, though, it encrypted Windows 10 just fine (I did exactly that in my 2022 video).
- The update came first. Microsoft fixed the bug (MS17-010) on March 14, 2017, two months before the attack. Everyone who installed it was safe from the worm.
- The kill switch. Before doing anything, WannaCry tried to reach a strange web address. On the afternoon of May 12, Marcus Hutchins registered it, and new infections started quitting immediately.
- Backups don't stop ransomware, they undo it. A backup that's always connected gets encrypted along with everything else. An offline copy is what lets you skip the ransom.
- Simplified on purpose: the real worm also scanned random internet addresses and took a while on each machine. Here one minute of the clock is a few seconds.
The full story, with my own test on a real PC, is in the WannaCry article. You can also watch the ransom screen in the Malware Museum.