Analysis
-
max time kernel
31s -
max time network
60s -
platform
debian-9_mips -
resource
debian9-mipsbe-20231215-en -
resource tags
arch:mipsimage:debian9-mipsbe-20231215-enkernel:4.9.0-13-4kc-maltalocale:en-usos:debian-9-mipssystem -
submitted
23-01-2024 08:06
Behavioral task
behavioral1
Sample
Mozi.m
Resource
debian9-mipsbe-20231215-en
General
-
Target
Mozi.m
-
Size
132KB
-
MD5
a73ddd6ec22462db955439f665cad4e6
-
SHA1
ac6962542a4b23ac13bddff22f8df9aeb702ef12
-
SHA256
b5cf68c7cb5bb2d21d60bf6654926f61566d95bfd7c9f9e182d032f1da5b4605
-
SHA512
92a52f68a7324c4d5876e1f7e2cb87d14b8604b057ceee2e537815568faa96abf576a22111c5c976eff72ab9015f1261b2331d4b4d711f4e62c8eb403c2377aa
-
SSDEEP
3072:2glZ3FtCKXhkmHtZ9TEKzjfj/WMngyIfsJ0F7xPtoM:2IIKXhZtL7jOTyIG87Xl
Malware Config
Signatures
-
Contacts a large (1929) amount of remote hosts 1 TTPs
This may indicate a network scan to discover remotely running services.
-
Changes its process name 1 IoCs
Processes:
description ioc pid Changes the process name, possibly in an attempt to hide itself sshd 708 -
Modifies Watchdog functionality 1 TTPs 2 IoCs
Malware like Mirai modifies the Watchdog to prevent it restarting an infected system.
Processes:
description ioc File opened for modification /dev/watchdog File opened for modification /dev/misc/watchdog -
Enumerates active TCP sockets 1 TTPs 1 IoCs
Gets active TCP sockets from /proc virtual filesystem.
Processes:
Mozi.mdescription ioc process File opened for reading /proc/net/tcp Mozi.m -
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:
description ioc File opened for reading /proc/net/route -
Writes file to system bin folder 1 TTPs 2 IoCs
Processes:
description ioc File opened for modification /sbin/watchdog File opened for modification /bin/watchdog -
Reads system network configuration 1 TTPs 3 IoCs
Uses contents of /proc filesystem to enumerate network settings.
Processes:
Mozi.mdescription ioc process File opened for reading /proc/net/tcp Mozi.m File opened for reading /proc/net/raw Mozi.m File opened for reading /proc/net/route -
Reads runtime system information 64 IoCs
Reads data from /proc virtual filesystem.
Processes:
killallMozi.mdescription ioc process File opened for reading /proc/701/stat killall File opened for reading /proc/717/stat killall File opened for reading /proc/241/stat killall File opened for reading /proc/383/stat killall File opened for reading /proc/self/exe Mozi.m File opened for reading /proc/12/stat killall File opened for reading /proc/21/stat killall File opened for reading /proc/111/stat killall File opened for reading /proc/692/stat killall File opened for reading /proc/5/stat killall File opened for reading /proc/69/stat killall File opened for reading /proc/173/stat killall File opened for reading /proc/529/stat killall File opened for reading /proc/709/stat killall File opened for reading /proc/3/stat killall File opened for reading /proc/11/stat killall File opened for reading /proc/16/stat killall File opened for reading /proc/330/stat killall File opened for reading /proc/698/stat killall File opened for reading /proc/7/stat killall File opened for reading /proc/9/stat killall File opened for reading /proc/154/stat killall File opened for reading /proc/694/stat killall File opened for reading /proc/76/stat killall File opened for reading /proc/393/stat killall File opened for reading /proc/18/stat killall File opened for reading /proc/71/stat killall File opened for reading /proc/121/stat killall File opened for reading /proc/698/cmdline killall File opened for reading /proc/8/stat killall File opened for reading /proc/10/stat killall File opened for reading /proc/14/stat killall File opened for reading /proc/15/stat killall File opened for reading /proc/689/cmdline killall File opened for reading /proc/6/stat killall File opened for reading /proc/22/stat killall File opened for reading /proc/74/stat killall File opened for reading /proc/374/stat killall File opened for reading /proc/1/stat killall File opened for reading /proc/77/stat killall File opened for reading /proc/384/stat killall File opened for reading /proc/84/stat killall File opened for reading /proc/filesystems killall File opened for reading /proc/4/stat killall File opened for reading /proc/20/stat killall File opened for reading /proc/73/stat killall File opened for reading /proc/70/stat killall File opened for reading /proc/79/stat killall File opened for reading /proc/329/stat killall File opened for reading /proc/688/stat killall File opened for reading /proc/357/stat killall File opened for reading /proc/568/stat killall File opened for reading /proc/675/stat killall File opened for reading /proc/688/cmdline killall File opened for reading /proc/708/stat killall File opened for reading /proc/13/stat killall File opened for reading /proc/24/stat killall File opened for reading /proc/122/stat killall File opened for reading /proc/569/stat killall File opened for reading /proc/150/cmdline killall File opened for reading /proc/355/stat killall File opened for reading /proc/17/stat killall File opened for reading /proc/23/stat killall File opened for reading /proc/72/stat killall -
Writes file to tmp directory 1 IoCs
Malware often drops required files in the /tmp directory.
Processes:
Mozi.mdescription ioc process File opened for modification /tmp/.ips Mozi.m
Processes
-
/tmp/Mozi.m/tmp/Mozi.m1⤵
- Enumerates active TCP sockets
- Reads system network configuration
- Reads runtime system information
- Writes file to tmp directory
PID:705
-
/bin/shsh -c "killall -9 telnetd utelnetd scfgmgr"1⤵PID:709
-
/usr/bin/killallkillall -9 telnetd utelnetd scfgmgr2⤵
- Reads runtime system information
PID:711
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 60243 -j ACCEPT"1⤵PID:777
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 60243 -j ACCEPT2⤵PID:778
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 60243 -j ACCEPT"1⤵PID:784
-
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 60243 -j ACCEPT2⤵PID:785
-
-
/bin/shsh -c "iptables -I PREROUTING -t nat -p tcp --destination-port 60243 -j ACCEPT"1⤵PID:786
-
/sbin/iptablesiptables -I PREROUTING -t nat -p tcp --destination-port 60243 -j ACCEPT2⤵PID:787
-
-
/bin/shsh -c "iptables -I POSTROUTING -t nat -p tcp --source-port 60243 -j ACCEPT"1⤵PID:794
-
/sbin/iptablesiptables -I POSTROUTING -t nat -p tcp --source-port 60243 -j ACCEPT2⤵PID:795
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 60243 -j ACCEPT"1⤵PID:796
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 60243 -j ACCEPT2⤵PID:798
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 60243 -j ACCEPT"1⤵PID:799
-
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 60243 -j ACCEPT2⤵PID:800
-
-
/bin/shsh -c "iptables -I PREROUTING -t nat -p tcp --dport 60243 -j ACCEPT"1⤵PID:801
-
/sbin/iptablesiptables -I PREROUTING -t nat -p tcp --dport 60243 -j ACCEPT2⤵PID:802
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 22 -j DROP"1⤵PID:803
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 22 -j DROP2⤵PID:805
-
-
/bin/shsh -c "iptables -I POSTROUTING -t nat -p tcp --sport 60243 -j ACCEPT"1⤵PID:804
-
/sbin/iptablesiptables -I POSTROUTING -t nat -p tcp --sport 60243 -j ACCEPT2⤵PID:806
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 23 -j DROP"1⤵PID:807
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 23 -j DROP2⤵PID:808
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 2323 -j DROP"1⤵PID:809
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 2323 -j DROP2⤵PID:810
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 22 -j DROP"1⤵PID:811
-
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 22 -j DROP2⤵PID:812
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 23 -j DROP"1⤵PID:813
-
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 23 -j DROP2⤵PID:814
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 2323 -j DROP"1⤵PID:815
-
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 2323 -j DROP2⤵PID:816
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 22 -j DROP"1⤵PID:817
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 22 -j DROP2⤵PID:818
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 23 -j DROP"1⤵PID:819
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 23 -j DROP2⤵PID:820
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 2323 -j DROP"1⤵PID:821
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 2323 -j DROP2⤵PID:822
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 22 -j DROP"1⤵PID:823
-
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 22 -j DROP2⤵PID:824
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 23 -j DROP"1⤵PID:828
-
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 23 -j DROP2⤵PID:829
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 2323 -j DROP"1⤵PID:830
-
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 2323 -j DROP2⤵PID:831
-