Analysis
-
max time kernel
11s -
max time network
13s -
platform
debian-9_mips -
resource
debian9-mipsbe-20240611-en -
resource tags
arch:mipsimage:debian9-mipsbe-20240611-enkernel:4.9.0-13-4kc-maltalocale:en-usos:debian-9-mipssystem -
submitted
17-07-2024 00:00
Behavioral task
behavioral1
Sample
bin.sh
Resource
debian9-mipsbe-20240611-en
General
-
Target
bin.sh
-
Size
132KB
-
MD5
a73ddd6ec22462db955439f665cad4e6
-
SHA1
ac6962542a4b23ac13bddff22f8df9aeb702ef12
-
SHA256
b5cf68c7cb5bb2d21d60bf6654926f61566d95bfd7c9f9e182d032f1da5b4605
-
SHA512
92a52f68a7324c4d5876e1f7e2cb87d14b8604b057ceee2e537815568faa96abf576a22111c5c976eff72ab9015f1261b2331d4b4d711f4e62c8eb403c2377aa
-
SSDEEP
3072:2glZ3FtCKXhkmHtZ9TEKzjfj/WMngyIfsJ0F7xPtoM:2IIKXhZtL7jOTyIG87Xl
Malware Config
Signatures
-
Modifies Watchdog functionality 1 TTPs 2 IoCs
Malware like Mirai modifies the Watchdog to prevent it restarting an infected system.
Processes:
bin.shdescription ioc process File opened for modification /dev/watchdog bin.sh File opened for modification /dev/misc/watchdog bin.sh -
Enumerates active TCP sockets 1 TTPs 1 IoCs
Gets active TCP sockets from /proc virtual filesystem.
Processes:
bin.shdescription ioc process File opened for reading /proc/net/tcp bin.sh -
Enumerates running processes
Discovers information about currently running processes on the system
-
Reads system routing table 1 TTPs 1 IoCs
Gets active network interfaces from /proc virtual filesystem.
Processes:
bin.shdescription ioc process File opened for reading /proc/net/route bin.sh -
Writes file to system bin folder 1 TTPs 2 IoCs
Processes:
bin.shdescription ioc process File opened for modification /sbin/watchdog bin.sh File opened for modification /bin/watchdog bin.sh -
Changes its process name 1 IoCs
Processes:
description ioc pid Changes the process name, possibly in an attempt to hide itself sshd 710 -
Reads system network configuration 1 TTPs 3 IoCs
Uses contents of /proc filesystem to enumerate network settings.
Processes:
bin.shdescription ioc process File opened for reading /proc/net/tcp bin.sh File opened for reading /proc/net/raw bin.sh File opened for reading /proc/net/route bin.sh -
Reads runtime system information 64 IoCs
Reads data from /proc virtual filesystem.
Processes:
killallbin.shdescription ioc process File opened for reading /proc/13/stat killall File opened for reading /proc/172/stat killall File opened for reading /proc/16/stat killall File opened for reading /proc/373/stat killall File opened for reading /proc/398/stat killall File opened for reading /proc/715/stat killall File opened for reading /proc/312/stat killall File opened for reading /proc/391/stat killall File opened for reading /proc/704/stat killall File opened for reading /proc/714/cmdline killall File opened for reading /proc/18/stat killall File opened for reading /proc/37/stat killall File opened for reading /proc/109/stat killall File opened for reading /proc/121/stat killall File opened for reading /proc/6/stat killall File opened for reading /proc/7/stat killall File opened for reading /proc/70/stat killall File opened for reading /proc/676/stat killall File opened for reading /proc/705/stat killall File opened for reading /proc/706/stat killall File opened for reading /proc/3/stat killall File opened for reading /proc/12/stat killall File opened for reading /proc/24/stat killall File opened for reading /proc/73/stat killall File opened for reading /proc/665/stat killall File opened for reading /proc/11/stat killall File opened for reading /proc/328/stat killall File opened for reading /proc/375/stat killall File opened for reading /proc/390/stat killall File opened for reading /proc/79/stat killall File opened for reading /proc/699/cmdline killall File opened for reading /proc/700/cmdline killall File opened for reading /proc/8/stat killall File opened for reading /proc/15/stat killall File opened for reading /proc/21/stat killall File opened for reading /proc/72/stat killall File opened for reading /proc/75/stat killall File opened for reading /proc/149/cmdline killall File opened for reading /proc/687/stat killall File opened for reading /proc/self/exe bin.sh File opened for reading /proc/1/stat killall File opened for reading /proc/14/stat killall File opened for reading /proc/22/stat killall File opened for reading /proc/10/stat killall File opened for reading /proc/77/stat killall File opened for reading /proc/121/cmdline killall File opened for reading /proc/685/stat killall File opened for reading /proc/filesystems killall File opened for reading /proc/2/stat killall File opened for reading /proc/4/stat killall File opened for reading /proc/5/stat killall File opened for reading /proc/699/stat killall File opened for reading /proc/19/stat killall File opened for reading /proc/71/stat killall File opened for reading /proc/700/stat killall File opened for reading /proc/714/stat killall File opened for reading /proc/311/stat killall File opened for reading /proc/330/stat killall File opened for reading /proc/23/stat killall File opened for reading /proc/36/stat killall File opened for reading /proc/81/stat killall File opened for reading /proc/310/stat killall File opened for reading /proc/710/stat killall File opened for reading /proc/17/stat killall -
Writes file to tmp directory 1 IoCs
Malware often drops required files in the /tmp directory.
Processes:
bin.shdescription ioc process File opened for modification /tmp/.ips bin.sh
Processes
-
/tmp/bin.sh/tmp/bin.sh1⤵
- Modifies Watchdog functionality
- Enumerates active TCP sockets
- Reads system routing table
- Writes file to system bin folder
- Reads system network configuration
- Reads runtime system information
- Writes file to tmp directory
PID:708 -
/bin/shsh -c "killall -9 telnetd utelnetd scfgmgr"2⤵PID:711
-
/usr/bin/killallkillall -9 telnetd utelnetd scfgmgr3⤵
- Reads runtime system information
PID:713
-
-