From the first attacks by Chinese hackers on American sites in the 2000s to the recent theft of European diplomatic…