The discovery of thousands of devices that could have wiped out communications in New York City comes after a series of cyberattacks targeting the US.