For the past six years, government officials were comforted by the fact that their most fervent adversaries - North Korea, Iran, extremist groups - did not have the skills or digital tools to inflict major damage.