What happened
On September 1, Plex shipped Plex Media Server 1.43.3 and asked everyone to update. CISA's advisory VA-26-266-01 lists five security bugs fixed in build 1.43.3.10861. On October 16, the researcher who reported them, Zach Main, published how four of them chain together. He called it Plex2Shell, and released proof-of-concept code. A day later, a test server running an old Plex version was taken over through the published exploit. The attackers installed a Monero miner and a residential proxy, which lets strangers route their traffic through your home connection.
The chain needs no login. In plain words:
- A player endpoint checks only that a token is present, not that it is valid. Any made-up token gets in.
- From there, the attacker makes Plex send requests to itself, which reach an internal plugin interface.
- That interface can be tricked into sending the server owner's token to a host the attacker controls.
- With the owner's token, the attacker changes a transcoder setting so a crafted library file lands in Plex's
Codecsfolder. The next transcode loads it, and the attacker's code runs as theplexuser.
The token theft and the payload download both need your server to reach the internet. A Plex box with Remote Access on and port 32400 forwarded is the easy target.
Patch first
Check your build. Anything before 1.43.3.10861 is affected. Look at the full build number, not just "1.43.3".
# native install (Debian, Ubuntu)
dpkg -s plexmediaserver | grep Version
# Docker (use your container's name)
docker exec plex dpkg -s plexmediaserver | grep Version
Then turn off Remote Access in Plex if you don't need it, and remove any router port forward for 32400.
What a compromise looks like on the host
- A shell or downloader under Plex. Plex starts its own helpers (Plex Transcoder, Plex Media Scanner, Plex Script Host). A
sh,bash,curlorwgetunderneath them is not normal.ps -eo pid,ppid,user,comm,args --forestshows the tree. - CPU you can't explain. A miner keeps cores busy for hours, usually as the
plexuser. The names seen so far were made up (mylovelyminer,x12345), so don't search by name alone. - Library files you didn't expect in
Codecs. On a native install the folder is/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs. In Docker it sits under your/configvolume. Plex writes codecs itself after every update and on first use, so compare file dates with your last update. - Connections you don't recognise. The test server's attackers came from 45.194.92.222, 91.92.40.202 and 176.65.139.228, and the payload came from 217.60.194.116. Addresses change quickly, so treat these as a starting point.
What Stack Snack shows you
Stack Snack watches the host itself, so it sees what the exploit does after it lands, whatever the entry point was.
The CPU, first
The host CPU chart rises. Open the host's Metrics tab and scroll to Containers / Services / Apps / Users. The series that rose at the same minute name the workload: the plexmediaserver.service unit (or your plex container), the plex user, and the miner program itself. That history stays after the miner is gone, so you can look back days later.
The miner alerts
SEC-044, Cryptominer command-line indicators, flags miner flags such as a stratum pool address, a donate level or a rig id. It usually fires within a minute of the miner starting. SEC-045, Sustained process CPU with a mining indicator, fires when a process keeps nearly a full core busy for ten minutes and also shows a mining sign.
The shell
SEC-046 alerts when a game or media server (Plex, Jellyfin, Emby) starts a shell, interpreter or downloader. It matches on process names, so it works without extra permissions, for native installs and containers alike. It sees processes that live through a 30-second snapshot; a one-shot command can slip past.
Working back to the cause
The Processes table at the top of the Metrics tab shows each busy process with its parent and its container by name. The parent links into the host's process inventory, so you can walk from the miner back towards Plex. The Events tab lines up the alerts with the moment the CPU rose.
The attacker addresses
Add the addresses above as your own indicators on the Threat intel page. SEC-078, Connection with a known malicious IP, then flags any connection to them.
What it won't tell you
- The host CPU alert (OPS-002) waits until nearly every core is busy for five minutes. A miner using two of eight cores shows on the charts, but that alert stays quiet. The miner alerts above are the ones that fire.
- A miner configured by a file instead of command-line flags gives SEC-044 nothing to match. The charts still show it.
- Without the optional privileged helper, Stack Snack can't read the executable paths of processes owned by other users, or connections inside bridge-network containers. Turn on the optional helper for the full picture.
- Stack Snack checks distro packages against Debian, Ubuntu and Alpine advisories. Plex ships its own package outside those lists, so an old Plex build won't show up there. Check the version yourself, as above.
If you were hit
- Take the server off the internet, and stop the miner and proxy processes.
- Update Plex to 1.43.3.10861 or later.
- Delete the
Codecsfolder. Plex downloads clean codecs again when it needs them. - Treat your Plex account token as stolen. Sign out of all devices in your Plex account and change your password.
- Check for persistence: cron jobs, systemd units and
authorized_keys. Stack Snack's SEC-001, SEC-002 and SEC-029 cover these paths. - If the
plexuser could write outside Plex's own folders, rebuild the host from a clean install.
Sources
- CISA advisory VA-26-266-01 (CSAF)
- Zach Main: Plex2Shell write-up
- SecurityOnline: Plex2Shell exploited in the wild
Related posts
- AI servers mined by a botnet: checking your Linux box for PoeLLM: How to check a host running self-hosted AI tools, and what a compromise looks like.
- A fake PyPI package that mined from memory: what sympy-dev looks like in Stack Snack: A malicious package ran a cryptominer from memory; we re-enacted it and filmed the alerts.
- The back door with no open port: catching Global Socket on a Linux web server: What a relay-tunnel installer leaves behind on a hacked web server, and the rules that see each step.