How can cyberattacks be stopped?

Thousands of computers go down in yet another large-scale cyberattack targeting companies around the world.