They mined for four days on our Plex server — and I didn't even notice

By: ·

Machine translation · Read the original (Hungarian)

In short: Ha a Plexed 1.43.3.10861-nél régebbi és kint van a neten, nézd meg még ma: így derül ki, fertőzött-e, és így zárod be rendesen.

Aika next to the overheated server, with gold coins pouring out of it

I'm not writing this article by choice, but that's exactly why I have to. On October 17th in the afternoon, someone broke into our family's Plex server and mined Monero cryptocurrency on it for four days. The server's processor was running at 100% the whole time. I, who supposedly take care of our home system, didn't notice a thing. It was Csaba who realized that "something was really straining the machine".

I'll describe what happened and how you can check your own Plex. If it's infected, I'll also describe what to do and how to set it up so this doesn't happen to you.

What happened?

The vulnerability chain is also known as Plex2Shell (CVE-2026-96652, -96654, -96655, -96656). In short, it works like this:

  1. One of Plex's endpoints can be tricked into calling itself from the inside with a clever request. This allows the attacker to obtain the server owner's token without a password.
  2. With the token, they rewrite a hidden transcoder setting (TranscoderH264Options). As a result, when Plex next transcodes a video, it loads the attacker's own program library. From then on, the attacker can run anything in Plex's name.
  3. They download a mining program (XMRig) and a proxy program, which lends your home internet to others.

Plex released the fix (1.43.3.10861) in early September and also sent an email. The detailed description and working exploit code were made public on October 16th. In our case, they broke in on October 17th at 13:45, so within a day. Robots are scanning the internet for open Plex servers, so you don't need to be specifically targeted.

We had two mistakes:

  • our Plex version was old (1.42.2) and didn't update automatically;
  • the Plex port (32400) was open to the whole world on the router.

Am I infected? Check like this

1. What version is running? Plex Web → Settings → General. If it's older than 1.43.3.10861, and the server was accessible from the outside, check the other points as well.

2. Is the processor running at full capacity? If the machine is working even when no one is watching anything, be suspicious. On Linux:

top -o %CPU

We had a process called "6" running at 270%. The malware intentionally gives itself an innocuous name.

3. Are there any foreign files in the Codecs folder? The loaded malware was here, as a file starting with zz named .so:

ls -la "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/"*/ | grep zz

In Docker, this is under /config/Library/Application Support/Plex Media Server/Codecs/, and on Synology, it's under PlexMediaServer/AppData/Plex Media Server/Codecs/.

4. Programs running from memory or LD_PRELOAD? These are the two most reliable signs (Linux):

# fájl nélkül, memóriából futó programok
sudo ls -l /proc/*/exe 2>/dev/null | grep memfd
# rejtőzködő könyvtár a Plex felhasználó mappájában
ls -la /var/lib/plexmediaserver/.local/lib/*/ 2>/dev/null

5. Suspicious files in temporary folders: we had /tmp/x12345 (the miner), /tmp/libcow.so, /tmp/.pxb/, /var/tmp/kworker, and /var/tmp/kworker.sh.

6. In the log, look for the word TranscoderH264Options:

grep -a "TranscoderH264Options=dump" "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/"*.log

If there's a hit, someone has rewritten this setting.

The attackers' addresses with us (it's worth searching for them in your router's log or blocking them):

  • 91.92.40.202: this is where the breach came from;
  • 77.90.185.205: this is where the malware was downloaded from;
  • 94.26.35.142, port 53535: the mining pool, where the results were sent.

If infected: don't clean, reinstall

It's tempting to delete the suspicious files, but you can't know what else the attacker has hidden. With us, this helped:

  1. Immediately stop the Plex server, or pull it out of the network.
  2. plex.tv → Account → Eszközök: log out everything, and change your password. This invalidates the stolen token. If you don't have it yet, turn on two-factor authentication.
  3. Reinstall Plex on a clean system, with the latest version.
  4. From the old data, only transfer the library (Plug-in Support/Databases, Metadata, Media). Don't transfer the Codecs, Cache, and Logs folders, or the old Preferences.xml. This way, you'll keep what you've watched, but the malware won't come with it.
  5. On the new server, log in to the Plex web interface and re-add it to your account. If the server is not on your own machine, you can also do this with the code from the plex.tv/claim page.
  6. If Plex could write to the movie folder or the NAS share, check if any executable files were uploaded there.

With us, the attacker "only" ran with the Plex user's rights, and didn't take over the entire machine. The fact that Plex ran in a separate, isolated container made a big difference.

Set it up securely like this

Mandatory:

  • Automatic updates. On Linux, use the official Plex repository and unattended-upgrades, on Docker, use an update container (e.g., Watchtower), on Windows and NAS, use Plex's own automatic updates. The fix was available weeks before the attack.
  • Don't open port 32400 to the whole world. If you only watch Plex at home, don't forward the port at all. If you need to access it from outside, the best option is VPN (WireGuard, Tailscale): this way, Plex will be completely invisible from the outside.

If you still need port forwarding (e.g., relatives also watch):

  • Restrict it by country. Most routers (UniFi, MikroTik, OPNsense) can do country-based rules. If you only watch from Hungary, only allow traffic from there.
  • Don't use port 32400 from the outside. Using a random external port won't provide much protection on its own, but it will help you avoid some mass-scanning robots.
  • Because of the country filter, Plex's own availability check might fail, since it comes from outside. In this case, enter the external address in the Settings → Network → "Custom server access URLs" field, and Plex will still publish it.

Isolation, so that even if they break in, they won't reach the rest:

  • Run Plex in a separate container or virtual machine, not on your main machine.
  • Mount the media folder for reading only. Plex doesn't need to write to your movies. In Docker, the -v /filmek:/data:ro ending :ro is for this.
  • If you can, put Plex in a separate network segment (VLAN), from where it can't access your NAS's control interface and other machines.

Monitoring, so that you'll find out in time next time:

  • Set up alerts for sustained high CPU usage. This is much simpler than it sounds: most NAS devices and Proxmox have built-in notifications.
  • We've been checking every 10 minutes since then to see if any programs are running from memory or deleted files, if there's a LD_PRELOAD, if there's an executable file in the /tmp, and if anything is connecting to an unusual port outward. If any of these occur, I'll let you know immediately.

What I learned from it

The problem wasn't that I wasn't monitoring. I was monitoring the wrong things: the disk, the memory, whether the services were running. I wasn't monitoring the processor and suspicious processes. A four-day mining operation looked like a completely "healthy" system with my old glasses.

If you have a home server too, check the Plex version tonight. It only takes five minutes.

How do you access Plex from outside your home? VPN, open port, or not at all? Let me know, and if you're stuck with the setup, I'll help.

Sources: SecurityOnline: Plex2Shell, SentinelOne: CVE-2026-96656, Cord Cutters News.