Attacks on computer networks and software platforms have become a growing cause of concern for governments and private sectors around the globe—whether inflicted by cybercriminals seeking financial gain or by hackers as political acts aiming to undermine the government’s credibility.