Cybersecurity researchers said a malicious program that disabled computers at Britain’s National Health Service, Russia’s Interior Ministry and companies and homes across dozens of countries Friday originated with the National Security Agency.

Earlier this year, a hacking group calling itself Shadow Brokers published online what it described as stolen NSA documents. They were filled with information that hacking experts said could be used to secretly take over and pluck data from laptops, smartphones and even smart TVs.