[go: up one dir, main page]

New paint, two TVs and a backdoor

The site got a new theme, my TVs lost their ads, and a TV box lost its botnet. Also, a remote's Input button now does something nice.

9 min read metawebosandroid-tvrustpythonsecurity

On this page

Post one said I wouldn't post often. Eight months later, here's post two. Right on schedule.

Three things happened since then: the site got a new look, my two LG TVs got cleaned up, and so did the two Android TV boxes plugged into them. One of those boxes was quietly part of a botnet. Fun.

A new coat of paint

If you've been here before, you noticed. The site is now a green-phosphor terminal: scanlines, a bit of noise, a status bar at the top and a logo that glitches whenever it feels like it. Very on brand.

Some things you might have missed:

  • The projects page now tracks every repo across my code hosts, archived ones included. Each repo gets a health check: alive, napping, comatose or fossil. Most are fossils. This is normal.
  • There's a stars section, so I can watch the number go up very slowly.
  • Articles like this one got callouts, captions, copy buttons on code and a reading progress bar under the navbar.

The code is still split in two repos, one for the site and one for this text:

thoxy/thoxy.xyz Homepage site frontend Svelte 0 0 on git.thoxy.xyz

The TV situation

Two TVs: an LG QNED86 (2025) in the living room and an LG OLED C1 in the bedroom. Each one has a Mecool Android TV box plugged in (a KM2 Plus and a Strong HP4423, which is a KM2 Plus Deluxe with a different sticker).

Out of the box, all four of them want something from you: promo tiles on the home screen, an advertising ID, "watch history" collection, pop-ups for sports and AI features you never asked for, and a browser that preloads itself just in case. On the boxes, a pile of factory apps and telemetry on top.

So I spent way too many evenings reading firmware, logs and forum threads, and turned the result into a tool.

The backdoor: x.cpe

The fun part. Firmware made by Videostrong, the manufacturer behind a lot of Mecool boxes, ships with a backdoor called x.cpe. It's preloaded, runs with system rights, and reinstalls itself after a reboot if you remove it. Google's Threat Intelligence Group took it apart in November 2026: more than 1.3 million boxes enrolled, and the manufacturer itself running it "for financial gain".

The box takes orders over MQTT (the protocol smart-home gadgets use), and whoever holds the other end can:

  • Rent out your internet connection: your box becomes a residential proxy, so other people's traffic, whatever it is, leaves through your IP address.
  • Install anything, silently, after turning off Google Play Protect.
  • Run any command on the box with system rights, or open a remote shell on it.
  • Watch and type: take screenshots and inject key presses.
  • Click ads in the background with invisible web pages (ad fraud).
  • Sell access to other groups and load their malware too.

Diagram: the operator sends orders to the TV box over MQTT, strangers route their traffic through it to the internet with your IP, and it clicks invisible ads Your box, working two jobs you never signed up for.

Google has since taken down the control servers and banned Videostrong from making certified Android devices.

tv-debloat

A Python tool you run from your computer. It scans your network, finds the TVs and boxes, and talks to them over SSH (LG) or ADB (Android).

  • Safe: a read-only check first, and every change is explained and asked before it happens.
  • Reversible: nothing is deleted. Apps are disabled, tiles hidden, original values saved, and Undo puts everything back.
  • No install: download, double-click, done. Windows, macOS and Linux.

On the LG side it hides the ad tiles, turns off tracking, stops the browser preload (about 40 MB of RAM back) and can install a cleaner home screen. It can also root an LG TV that isn't rooted yet, using slopbro (webOS 4 to 11, on firmware released before LG patched it around October 2026).

thoxy/tv-debloat archived Archived: Python scripts to debloat rooted LG webOS TVs and Android TV boxes. The Android tool continues as thoxy/tv-debloat-android. Python 0 0 on git.thoxy.xyz

What runs on both TVs today

Rooting is only half the fun. Here's what I actually run on both LGs right now:

  • Glasshouse: a dashboard that runs on the TV itself, with privacy controls, ad and telemetry blocking, and an MQTT bridge that gives Home Assistant full control of the TV. Yes, MQTT again. But this time, I'm the one sending the orders.
  • Luma: a native launcher, written in Rust, that replaces LG's home screen with one that doesn't try to sell me anything.

rorygallagher2024/glasshouse For rooted LG webOS TVs: a live dashboard, privacy control, debloating, an ad & telemetry blocker, replacement home screen, and custom screensavers. Runs on the TV itself. Includes an optional Home Assistant MQTT bridge for smart home control. JavaScript 2526 179 on GitHub

ecklf/lg-luma A native launcher for rooted LG webOS TVs Rust 485 96 on GitHub

That's the setup today. Knowing me, it'll change.

A rant about TV boxes

This one hurts, because I liked these boxes.

The Mecool hardware was nearly perfect: smooth interface, good format support, cheap. The software lacked a bit of polish and proper update support, sure. Without the backdoor, it would have been the brand to recommend.

And I did recommend it to friends, because it was cheaper and the setup was sane: a cheap box does the streaming, the TV stays clean, never installs a single app, and if anything gets messy, only the box is affected. Turns out the box was the one doing the mess. Sad. Really sad.

Diagram: the TV they already have, with no apps, fed over HDMI by a Mecool box that runs all the apps, stamped “+ 1 botnet, free” The plan was solid. The box had other plans.

The worst part is that there's no good alternative:

  • The NVIDIA Shield was the answer for years. Everything about it was right, but it's simply too old now.
  • The official boxes from the big names here in France are, let's be polite, not made for people who want to watch every kind of content in every possible format, without lag and without a painful experience.
  • So people buy Chinese boxes. Not because they want to, but because nothing else plays everything.

Outpick, an input picker that doesn't suck

Outpick A fast, native input picker for rooted LG webOS TVs, in Rust and egui.

Once the TVs were rooted, one thing kept bugging me: LG's input picker. Slow, ugly, and it calls my Mecool box "HDMI 1". So I wrote my own.

Outpick is a native input picker for rooted LG webOS TVs, written in Rust with egui. It floats over whatever is on screen, wakes the TV from the screen saver, and names each input after the device plugged in (thanks to HDMI-CEC), with live previews.

Outpick's row layout, floating over the TV picture The row layout over the picture. Yes, the Mecool box is called “TV Thoxy”.

  • Tiny: a 1.9 MB binary, 1.7 MB package. LG's own picker probably has a bigger icon.
  • Yours to shape: row, grid, list or docked sidebar, nine positions, eight themes, eleven accent colours, plus an optional clock.
  • Quick switch: press Input again to step through the connected inputs; the TV switches when a short countdown ends.
  • CEC per input: power a device on or off, open its menu, rename or hide it.
  • Clean to remove: uninstall it and a boot hook gives LG its keys back.

Outpick's docked sidebar layout The docked sidebar, for people who like their inputs vertical.

Install it from the Homebrew Channel: open Settings → Repositories and add this repository.

text
https://git.thoxy.xyz/thoxy/outpick/raw/branch/hbc/repo.json

Then install Outpick from the list, open it once, and turn on Source key → this picker in its settings.

thoxy/outpick A fast, native input picker for rooted LG webOS TVs, built with Rust and egui. Rust 0 0 on git.thoxy.xyz

There's also a GitHub mirror, for the stars and support (issues):

Thoxy67/outpick A fast, native input picker for rooted LG webOS TVs, built with Rust and egui. (mirror) Rust 3 0 on GitHub

Also: goodbye Arch, hello CachyOS

Small news from my desk: I switched from Arch Linux to CachyOS. It's still Arch underneath, so technically I still use Arch, btw.

My main machine does pretty much everything: gaming, programming, and whatever I'm into that week. So I want it fast and boring, in the good way.

On Arch I set a lot of things up by hand. On CachyOS, most of them are already there, and set up right. I spend less time fixing my own setup and more time on my projects, or in games. So far, I'm really happy with it.

What's next

No idea. I'm already on other things, as usual. Everything lives on my Forgejo, and the projects page shows what's alive and what isn't.

If something here saved you from a botnet or from LG's input picker, the contact links are in the footer. See you in another eight months. Or not.

· end of post · Thanks for reading. Or skimming. No analytics, so I'll never know.