Google said Monday that it worked with industry partners to take down a botnet of more than 1.3 million Android TV set-top boxes that shipped with malicious software, and it blamed the devices’ maker for installing it.

The Google Threat Intelligence Group said the malware, which it calls XCPE after one of its core components, turned the boxes into “residential proxies,” quietly selling access to owners’ internet connections, and was also used for advertising fraud. Google attributed the scheme to Videostrong Technology, a TV box manufacturer based in Shenzhen, China, and said it has banned the company from certified Android.

“A device manufacturer intentionally infecting their users with malware is an unacceptable breach of trust, and represents a serious risk to those users,” Google’s report said. It said it took legal action to seize domains and servers used to control the botnet, and that the operation should also cut off access to at least 10 million more compromised devices.

Google said the malware loaded right after a device was first switched on, getting around Android’s compatibility checks, and that it has since closed that gap. Besides TV boxes, the same code turned up in telehealth devices, karaoke machines and digital signs, KrebsOnSecurity (opens in new tab) reported. Ars Technica (opens in new tab) reported that Google Play Protect stays disabled on affected devices, so owners cannot rely on it to clean them.

Partners named in the takedown include Japan’s National Police Agency, Lumen, HUMAN Security, Plume, Synthient and TrendAI. A separate count by Trend Micro put the number of infected devices at 1,472,554, mostly in Brazil, Malaysia, Iraq, Mexico and Taiwan, Ars Technica (opens in new tab) reported.

Synthient published research linking the malware to boxes sold under the MECOOL brand, KrebsOnSecurity (opens in new tab) reported. Synthient founder Ben Brundage called the 1.3 million figure “highly conservative” and told the site, “This is probably the largest operation against backdoored TV boxes that we’ve seen.” Videostrong’s response was not included in the reports.