Sources indicate that in the last post I talked about building a remote control app that had to grow a fourth backend just for generic, uncertified Android TV boxes β€” because one of the boxes in my own house didn't speak either of the two "real" remote protocols. While poking at that box to figure out why, I went looking for what it was actually running.

I was not expecting to find a botnet node.

It has been revealed that the device in question is a cheap Android TV box β€” the kind sold under a dozen different no-name brands, same board, same firmware, just a different sticker. It had been sitting on my home network for a while, doing normal TV-box things. I plugged in over ADB to poke around, mostly out of curiosity about why my remote app couldn't talk to it the normal way. (Related: Latest Update: How to generate text: using different de...)

(That remote app is the one from part 1 β€” code's at github.com/duvanjamid/tv-remote if you want context on what it was trying to do.). (Related: Latest Update: Fine tuning CLIP with Remote Sensing (Sa...)

First red flag, before I'd even looked at a single app: SELinux was set to permissive, not enforcing. On stock, certified Android devices, SELinux enforcing is non-negotiable β€” it's one of the core sandboxing guarantees the whole security model leans on. Permissive mode logs policy violations instead of blocking them. There's no legitimate reason for a consumer device to ship that way; it's what you leave on during development, not what you ship to a customer's living room.

That alone was enough to make me look closer.

A few things stood out immediately when I started going through installed packages and running processes:.

Sources indicate that none of this was doing anything to the TV's actual function β€” the box played video fine the entire time. That's the point. This isn't the kind of malware that introduces itself with a ransom note; it's the kind built to be invisible to the owner indefinitely while the device does unrelated work for somebody else.

Industry observers note that this pattern β€” Android TV boxes shipping from the factory with a pre-installed dropper, disguised as Google components, dropping a persistent root-level backdoor, and enrolling the device in an outbound-connection botnet (residential proxy / ad-fraud / click-fraud infrastructure, typically) β€” is documented at scale. Human Security and Google have both published research on it under the name BadBox and its successor BadBox 2.0: supply-chain malware baked into the firmware of cheap, uncertified Android TV boxes and streaming devices before they're ever sold, affecting what's been reported as millions of devices worldwide, largely sold through marketplaces with little vetting.

The uncomfortable part isn't that malware exists. It's where it lives: not in a sideloaded app you can uninstall, but baked into the system partition of a device you bought in good faith, running with permissions a normal app could never get, on a permissive SELinux policy that makes "normal app" containment moot anyway.

Everything above is checkable on your own device with nothing but adb and a few minutes. Swap in your own box's IP for the placeholders below, and treat every hit as "worth a closer look," not a confirmed verdict.

Sources indicate that disclaimer: only run this against hardware you own. This is for auditing your own device β€” not someone else's without authorization. Uninstalling system packages can have side effects (broken functionality, instability); do it at your own risk.

Accept the on-screen authorization popup on the TV the first time.

Sources indicate that returns uid=0(root) with no fuss? That's root access that didn't come from you β€” not normal for a consumer Android box.

Should say Enforcing. Permissive is the red flag from above.

If the pair doesn't match Android's real version↔API-level table, build.prop was hand-edited β€” usually to make the box look newer/more legitimate than it is.

Watch for anything prefixed com.google.android.* or com.android.* that isn't a real Google package β€” like com.google.android.adengine from the box in this post (full list above).

Helps reconstruct the dropper chain.

rem_address is hex IP:port β€” decoding it by hand isn't worth it; the simpler heuristic holds: dozens of simultaneous connections to different remote IPs on odd ports, with nothing you're actively doing on the TV, is itself the signal.

Sources indicate that clears the dropper for your user β€” not the firmware it came from. Mitigation, not cure.

In a recent development, once I'd identified the specific packages behaving as droppers/backdoors, I removed them. The device's free memory went from 35MB free to 220MB free after cleanup β€” which on its own tells you roughly how much was quietly running in the background the whole time, on a box that's supposed to just play video.

That's a mitigation, not a fix. The dropper's gone, but the firmware it came from is still the firmware on the device β€” same root daemon framework, same permissive SELinux policy, same unknown provenance for everything else in that system image. Cleaning the apps off a BadBox-infected device is treating the symptom. The actual fix is the firmware itself, and that's a bigger job.

Which is exactly what I'm doing next β€” and it's not done yet.

It has been revealed that next up: backing up every partition on this thing before touching anything, and figuring out whether the safer move is to re-patch the existing images or replace the whole thing with a clean, official Google image. Still in progress β€” post 3 β†’.

A note on scope: packages, process behavior and the BadBox pattern above are public, documented security findings and are shared for exactly that reason. Network identifiers specific to my own setup (local IP, device names, Wi-Fi network name) have been left out or genericized β€” they're not relevant to the finding and there's no reason to publish them.

β†’ Read original article