NSA ‘infected’ 50,000 networks with malware