Analysis
-
max time kernel
150s -
max time network
151s -
platform
debian-9_mips -
resource
debian9-mipsbe-20240729-en -
resource tags
arch:mipsimage:debian9-mipsbe-20240729-enkernel:4.9.0-13-4kc-maltalocale:en-usos:debian-9-mipssystem -
submitted
20-01-2025 09:07
Behavioral task
behavioral1
Sample
Mozi.m.elf
Resource
debian9-mipsbe-20240729-en
General
-
Target
Mozi.m.elf
-
Size
300KB
-
MD5
e730fdb7b4c3e5c8028025fc114d227f
-
SHA1
9211641cc499b5de2fc56c868e075d7b1b073715
-
SHA256
194020a156c76a28c802026c62891bc50e7d3a66d802b217edf9164d63cf597b
-
SHA512
5339282e3403643f660334eed6306231a27fb373c1db30e8bd8a55832d91732ca1bb241044f6c1e1063ca102769f6ba9c01251fadc023a1cd1387b5d953af8ba
-
SSDEEP
3072:phNlHuBafLeBtfCzpta8xlBIOdVo3/4sxLJ10xiouwPa5POdOQ33Q:p3lOYoaja8xzx/0wsxzSiFfPqOJ
Malware Config
Signatures
-
Contacts a large (13996) amount of remote hosts 1 TTPs
This may indicate a network scan to discover remotely running services.
-
Patched UPX-packed file 1 IoCs
Sample is packed with UPX but required header fields are zeroed out to prevent unpacking with the default UPX tool.
resource yara_rule behavioral1/files/fstream-3.dat patched_upx -
Modifies Watchdog functionality 1 TTPs 2 IoCs
Malware like Mirai modifies the Watchdog to prevent it restarting an infected system.
description ioc Process File opened for modification /dev/watchdog Mozi.m.elf File opened for modification /dev/misc/watchdog Mozi.m.elf -
Creates a large amount of network flows 1 TTPs
This may indicate a network scan to discover remotely running services.
-
Enumerates active TCP sockets 1 TTPs 1 IoCs
Gets active TCP sockets from /proc virtual filesystem.
description ioc Process File opened for reading /proc/net/tcp Mozi.m.elf -
Enumerates running processes
Discovers information about currently running processes on the system
-
description ioc Process File opened for modification /etc/init.d/S95baby.sh Mozi.m.elf File opened for modification /etc/init.d/keyboard-setup.sh Mozi.m.elf File opened for modification /etc/init.d/console-setup.sh Mozi.m.elf File opened for modification /etc/init.d/hwclock.sh Mozi.m.elf -
Reads system routing table 1 TTPs 1 IoCs
Gets active network interfaces from /proc virtual filesystem.
description ioc Process File opened for reading /proc/net/route Mozi.m.elf -
Writes file to system bin folder 2 IoCs
description ioc Process File opened for modification /sbin/watchdog Mozi.m.elf File opened for modification /bin/watchdog Mozi.m.elf -
resource yara_rule behavioral1/files/fstream-3.dat upx -
Changes its process name 1 IoCs
description ioc pid Process Changes the process name, possibly in an attempt to hide itself sshd 701 Mozi.m.elf -
Reads system network configuration 1 TTPs 3 IoCs
Uses contents of /proc filesystem to enumerate network settings.
description ioc Process File opened for reading /proc/net/tcp Mozi.m.elf File opened for reading /proc/net/raw Mozi.m.elf File opened for reading /proc/net/route Mozi.m.elf -
description ioc Process File opened for reading /proc/22/stat killall File opened for reading /proc/366/stat killall File opened for reading /proc/674/stat killall File opened for reading /proc/690/cmdline killall File opened for reading /proc/695/stat killall File opened for reading /proc/701/stat killall File opened for reading /proc/76/stat killall File opened for reading /proc/234/stat killall File opened for reading /proc/385/stat killall File opened for reading /proc/127/stat killall File opened for reading /proc/697/stat killall File opened for reading /proc/mounts Mozi.m.elf File opened for reading /proc/73/stat killall File opened for reading /proc/79/stat killall File opened for reading /proc/81/stat killall File opened for reading /proc/110/stat killall File opened for reading /proc/254/stat killall File opened for reading /proc/335/stat killall File opened for reading /proc/9/stat killall File opened for reading /proc/10/stat killall File opened for reading /proc/70/stat killall File opened for reading /proc/704/stat killall File opened for reading /proc/5/stat killall File opened for reading /proc/77/stat killall File opened for reading /proc/126/stat killall File opened for reading /proc/11/stat killall File opened for reading /proc/15/stat killall File opened for reading /proc/360/stat killall File opened for reading /proc/386/stat killall File opened for reading /proc/388/stat killall File opened for reading /proc/self/exe Mozi.m.elf File opened for reading /proc/1/stat killall File opened for reading /proc/8/stat killall File opened for reading /proc/669/stat killall File opened for reading /proc/691/stat killall File opened for reading /proc/176/stat killall File opened for reading /proc/675/stat killall File opened for reading /proc/691/cmdline killall File opened for reading /proc/2/stat killall File opened for reading /proc/6/stat killall File opened for reading /proc/71/stat killall File opened for reading /proc/24/stat killall File opened for reading /proc/127/cmdline killall File opened for reading /proc/696/stat killall File opened for reading /proc/filesystems killall File opened for reading /proc/3/stat killall File opened for reading /proc/12/stat killall File opened for reading /proc/336/stat killall File opened for reading /proc/7/stat killall File opened for reading /proc/13/stat killall File opened for reading /proc/18/stat killall File opened for reading /proc/21/stat killall File opened for reading /proc/74/stat killall File opened for reading /proc/82/stat killall File opened for reading /proc/667/stat killall File opened for reading /proc/690/stat killall File opened for reading /proc/75/stat killall File opened for reading /proc/16/stat killall File opened for reading /proc/20/stat killall File opened for reading /proc/36/stat killall File opened for reading /proc/37/stat killall File opened for reading /proc/72/stat killall File opened for reading /proc/160/stat killall File opened for reading /proc/664/stat killall -
System Network Configuration Discovery 1 TTPs 22 IoCs
Adversaries may gather information about the network configuration of a system.
pid Process 882 sh 890 sh 898 sh 909 sh 844 sh 860 sh 832 sh 836 sh 848 sh 858 sh 864 sh 868 sh 811 sh 826 sh 878 sh 905 sh 888 sh 846 sh 856 sh 913 sh 876 sh 894 sh -
Writes file to tmp directory 2 IoCs
Malware often drops required files in the /tmp directory.
description ioc Process File opened for modification /tmp/.ips Mozi.m.elf File opened for modification /tmp/.config Mozi.m.elf
Processes
-
/tmp/Mozi.m.elf/tmp/Mozi.m.elf1⤵
- Modifies Watchdog functionality
- Enumerates active TCP sockets
- Modifies init.d
- Reads system routing table
- Writes file to system bin folder
- Changes its process name
- Reads system network configuration
- Reads runtime system information
- Writes file to tmp directory
PID:698 -
/bin/shsh -c "killall -9 telnetd utelnetd scfgmgr"2⤵PID:702
-
/usr/bin/killallkillall -9 telnetd utelnetd scfgmgr3⤵
- Reads runtime system information
PID:703
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 35127 -j ACCEPT"2⤵PID:805
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 35127 -j ACCEPT3⤵PID:807
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 35127 -j ACCEPT"2⤵
- System Network Configuration Discovery
PID:811 -
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 35127 -j ACCEPT3⤵PID:814
-
-
-
/bin/shsh -c "iptables -I PREROUTING -t nat -p tcp --destination-port 35127 -j ACCEPT"2⤵PID:816
-
/sbin/iptablesiptables -I PREROUTING -t nat -p tcp --destination-port 35127 -j ACCEPT3⤵PID:817
-
-
-
/bin/shsh -c "iptables -I POSTROUTING -t nat -p tcp --source-port 35127 -j ACCEPT"2⤵
- System Network Configuration Discovery
PID:826 -
/sbin/iptablesiptables -I POSTROUTING -t nat -p tcp --source-port 35127 -j ACCEPT3⤵PID:827
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 35127 -j ACCEPT"2⤵PID:829
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 35127 -j ACCEPT3⤵PID:830
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 35127 -j ACCEPT"2⤵
- System Network Configuration Discovery
PID:832 -
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 35127 -j ACCEPT3⤵PID:833
-
-
-
/bin/shsh -c "iptables -I PREROUTING -t nat -p tcp --dport 35127 -j ACCEPT"2⤵PID:834
-
/sbin/iptablesiptables -I PREROUTING -t nat -p tcp --dport 35127 -j ACCEPT3⤵PID:835
-
-
-
/bin/shsh -c "iptables -I POSTROUTING -t nat -p tcp --sport 35127 -j ACCEPT"2⤵
- System Network Configuration Discovery
PID:836 -
/sbin/iptablesiptables -I POSTROUTING -t nat -p tcp --sport 35127 -j ACCEPT3⤵PID:837
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 22 -j DROP"2⤵PID:838
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 22 -j DROP3⤵PID:839
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 23 -j DROP"2⤵PID:840
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 23 -j DROP3⤵PID:841
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 2323 -j DROP"2⤵PID:842
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 2323 -j DROP3⤵PID:843
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 22 -j DROP"2⤵
- System Network Configuration Discovery
PID:844 -
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 22 -j DROP3⤵PID:845
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 23 -j DROP"2⤵
- System Network Configuration Discovery
PID:846 -
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 23 -j DROP3⤵PID:847
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 2323 -j DROP"2⤵
- System Network Configuration Discovery
PID:848 -
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 2323 -j DROP3⤵PID:849
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 22 -j DROP"2⤵PID:850
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 22 -j DROP3⤵PID:851
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 23 -j DROP"2⤵PID:852
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 23 -j DROP3⤵PID:853
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 2323 -j DROP"2⤵PID:854
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 2323 -j DROP3⤵PID:855
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 22 -j DROP"2⤵
- System Network Configuration Discovery
PID:856 -
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 22 -j DROP3⤵PID:857
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 23 -j DROP"2⤵
- System Network Configuration Discovery
PID:858 -
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 23 -j DROP3⤵PID:859
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 2323 -j DROP"2⤵
- System Network Configuration Discovery
PID:860 -
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 2323 -j DROP3⤵PID:861
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 58000 -j DROP"2⤵PID:862
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 58000 -j DROP3⤵PID:863
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 58000 -j DROP"2⤵
- System Network Configuration Discovery
PID:864 -
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 58000 -j DROP3⤵PID:865
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 58000 -j DROP"2⤵PID:866
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 58000 -j DROP3⤵PID:867
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 58000 -j DROP"2⤵
- System Network Configuration Discovery
PID:868 -
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 58000 -j DROP3⤵PID:869
-
-
-
/bin/shsh -c "cfgtool set /mnt/jffs2/hw_ctree.xml InternetGatewayDevice.ManagementServer URL \"http://127.0.0.1\""2⤵PID:870
-
-
/bin/shsh -c "cfgtool set /mnt/jffs2/hw_ctree.xml InternetGatewayDevice.ManagementServer ConnectionRequestPassword \"acsMozi\""2⤵PID:871
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 35000 -j DROP"2⤵PID:872
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 35000 -j DROP3⤵PID:873
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 50023 -j DROP"2⤵PID:874
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 50023 -j DROP3⤵PID:875
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 50023 -j DROP"2⤵
- System Network Configuration Discovery
PID:876 -
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 50023 -j DROP3⤵PID:877
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 35000 -j DROP"2⤵
- System Network Configuration Discovery
PID:878 -
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 35000 -j DROP3⤵PID:879
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --destination-port 7547 -j DROP"2⤵PID:880
-
/sbin/iptablesiptables -I INPUT -p tcp --destination-port 7547 -j DROP3⤵PID:881
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --source-port 7547 -j DROP"2⤵
- System Network Configuration Discovery
PID:882 -
/sbin/iptablesiptables -I OUTPUT -p tcp --source-port 7547 -j DROP3⤵PID:883
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 35000 -j DROP"2⤵PID:884
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 35000 -j DROP3⤵PID:885
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 50023 -j DROP"2⤵PID:886
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 50023 -j DROP3⤵PID:887
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 50023 -j DROP"2⤵
- System Network Configuration Discovery
PID:888 -
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 50023 -j DROP3⤵PID:889
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 35000 -j DROP"2⤵
- System Network Configuration Discovery
PID:890 -
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 35000 -j DROP3⤵PID:891
-
-
-
/bin/shsh -c "iptables -I INPUT -p tcp --dport 7547 -j DROP"2⤵PID:892
-
/sbin/iptablesiptables -I INPUT -p tcp --dport 7547 -j DROP3⤵PID:893
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p tcp --sport 7547 -j DROP"2⤵
- System Network Configuration Discovery
PID:894 -
/sbin/iptablesiptables -I OUTPUT -p tcp --sport 7547 -j DROP3⤵PID:895
-
-
-
/bin/shsh -c "iptables -I INPUT -p udp --destination-port 6881 -j ACCEPT"2⤵PID:896
-
/sbin/iptablesiptables -I INPUT -p udp --destination-port 6881 -j ACCEPT3⤵PID:897
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p udp --source-port 6881 -j ACCEPT"2⤵
- System Network Configuration Discovery
PID:898 -
/sbin/iptablesiptables -I OUTPUT -p udp --source-port 6881 -j ACCEPT3⤵PID:899
-
-
-
/bin/shsh -c "iptables -I PREROUTING -t nat -p udp --destination-port 6881 -j ACCEPT"2⤵PID:903
-
/sbin/iptablesiptables -I PREROUTING -t nat -p udp --destination-port 6881 -j ACCEPT3⤵PID:904
-
-
-
/bin/shsh -c "iptables -I POSTROUTING -t nat -p udp --source-port 6881 -j ACCEPT"2⤵
- System Network Configuration Discovery
PID:905 -
/sbin/iptablesiptables -I POSTROUTING -t nat -p udp --source-port 6881 -j ACCEPT3⤵PID:906
-
-
-
/bin/shsh -c "iptables -I INPUT -p udp --dport 6881 -j ACCEPT"2⤵PID:907
-
/sbin/iptablesiptables -I INPUT -p udp --dport 6881 -j ACCEPT3⤵PID:908
-
-
-
/bin/shsh -c "iptables -I OUTPUT -p udp --sport 6881 -j ACCEPT"2⤵
- System Network Configuration Discovery
PID:909 -
/sbin/iptablesiptables -I OUTPUT -p udp --sport 6881 -j ACCEPT3⤵PID:910
-
-
-
/bin/shsh -c "iptables -I PREROUTING -t nat -p udp --dport 6881 -j ACCEPT"2⤵PID:911
-
/sbin/iptablesiptables -I PREROUTING -t nat -p udp --dport 6881 -j ACCEPT3⤵PID:912
-
-
-
/bin/shsh -c "iptables -I POSTROUTING -t nat -p udp --sport 6881 -j ACCEPT"2⤵
- System Network Configuration Discovery
PID:913 -
/sbin/iptablesiptables -I POSTROUTING -t nat -p udp --sport 6881 -j ACCEPT3⤵PID:914
-
-
Network
MITRE ATT&CK Enterprise v15
Persistence
Boot or Logon Autostart Execution
1Boot or Logon Initialization Scripts
1RC Scripts
1Privilege Escalation
Boot or Logon Autostart Execution
1Boot or Logon Initialization Scripts
1RC Scripts
1Replay Monitor
Loading Replay Monitor...
Downloads
-
Filesize
25B
MD51b3235ba10fc04836c941d3d27301956
SHA18909655763143702430b8c58b3ae3b04cfd3a29c
SHA25601ba1fb41632594997a41d0c3a911ae5b3034d566ebb991ef76ad76e6f9e283a
SHA51298bdb5c266222ccbd63b6f80c87e501c8033dc53b0513d300b8da50e39a207a0b69f8cd3ecc4a128dec340a1186779fedd1049c9b0a70e90d2cb3ae6ebfa4c4d
-
Filesize
147B
MD5b8a8f466da2abb274b5da8a184d10172
SHA12444c38c3462702bf815cf4e37100214824b76e6
SHA25674c9b3a712c3e883f3d0181d64bb83d4aa02f1619615f4f584441e4ae4de0936
SHA51233dfaaae402915c324acb901a94deac1c6f4b2773bdd9fc5e61fed5fd848570a699abcf3f178f8c2b2bdf527dd10a40edaefbe43b94f6e2f1d8e69ebd681768f
-
Filesize
300KB
MD5e730fdb7b4c3e5c8028025fc114d227f
SHA19211641cc499b5de2fc56c868e075d7b1b073715
SHA256194020a156c76a28c802026c62891bc50e7d3a66d802b217edf9164d63cf597b
SHA5125339282e3403643f660334eed6306231a27fb373c1db30e8bd8a55832d91732ca1bb241044f6c1e1063ca102769f6ba9c01251fadc023a1cd1387b5d953af8ba