Documents showed that the NSA infected more than 50,000 computer networks with malware in 2012, enabling them to get information that they otherwise would not have had access to. A map from an NSA presentation shows the extent of the secret hacking.
Extra reading:
On the NSA's aggressive spying techniques;
On how British intelligence agency GCHQ is able to tap mobile networks.