National intelligence agencies have long adjusted to the opportunities and threats from new technologies. From spy planes and satellites to the internet, they have created …