Analysis

  • max time kernel
    27s
  • max time network
    29s
  • platform
    linux_mips
  • resource
    debian9-mipsbe-en-20211208
  • resource tags

    arch:mipsimage:debian9-mipsbe-en-20211208kernel:4.9.0-13-4kc-maltalocale:en-usos:debian-9-mipssystem
  • submitted
    30/08/2023, 23:54

General

  • Target

    Mozi.m

  • Size

    132KB

  • MD5

    a73ddd6ec22462db955439f665cad4e6

  • SHA1

    ac6962542a4b23ac13bddff22f8df9aeb702ef12

  • SHA256

    b5cf68c7cb5bb2d21d60bf6654926f61566d95bfd7c9f9e182d032f1da5b4605

  • SHA512

    92a52f68a7324c4d5876e1f7e2cb87d14b8604b057ceee2e537815568faa96abf576a22111c5c976eff72ab9015f1261b2331d4b4d711f4e62c8eb403c2377aa

  • SSDEEP

    3072:2glZ3FtCKXhkmHtZ9TEKzjfj/WMngyIfsJ0F7xPtoM:2IIKXhZtL7jOTyIG87Xl

Score
8/10

Malware Config

Signatures

  • Contacts a large (1555) amount of remote hosts 1 TTPs

    This may indicate a network scan to discover remotely running services.

  • Changes its process name 1 IoCs
  • Modifies Watchdog functionality 1 TTPs 2 IoCs

    Malware like Mirai modifies the Watchdog to prevent it restarting an infected system.

  • Enumerates active TCP sockets 1 TTPs 1 IoCs

    Gets active TCP sockets from /proc virtual filesystem.

  • Reads system routing table 1 TTPs 1 IoCs

    Gets active network interfaces from /proc virtual filesystem.

  • Writes file to system bin folder 1 TTPs 2 IoCs
  • Reads system network configuration 1 TTPs 3 IoCs

    Uses contents of /proc filesystem to enumerate network settings.

  • Reads runtime system information 1 IoCs

    Reads data from /proc virtual filesystem.

  • Writes file to tmp directory 1 IoCs

    Malware often drops required files in the /tmp directory.

Processes

  • /tmp/Mozi.m
    /tmp/Mozi.m
    1⤵
    • Enumerates active TCP sockets
    • Reads system network configuration
    • Reads runtime system information
    • Writes file to tmp directory
    PID:328
  • /bin/sh
    sh -c "killall -9 telnetd utelnetd scfgmgr"
    1⤵
      PID:331
    • /bin/sh
      sh -c "iptables -I INPUT -p tcp --destination-port 45955 -j ACCEPT"
      1⤵
        PID:342
        • /sbin/iptables
          iptables -I INPUT -p tcp --destination-port 45955 -j ACCEPT
          2⤵
            PID:343
        • /bin/sh
          sh -c "iptables -I OUTPUT -p tcp --source-port 45955 -j ACCEPT"
          1⤵
            PID:348
            • /sbin/iptables
              iptables -I OUTPUT -p tcp --source-port 45955 -j ACCEPT
              2⤵
                PID:349
            • /bin/sh
              sh -c "iptables -I PREROUTING -t nat -p tcp --destination-port 45955 -j ACCEPT"
              1⤵
                PID:350
                • /sbin/iptables
                  iptables -I PREROUTING -t nat -p tcp --destination-port 45955 -j ACCEPT
                  2⤵
                    PID:351
                • /bin/sh
                  sh -c "iptables -I POSTROUTING -t nat -p tcp --source-port 45955 -j ACCEPT"
                  1⤵
                    PID:360
                    • /sbin/iptables
                      iptables -I POSTROUTING -t nat -p tcp --source-port 45955 -j ACCEPT
                      2⤵
                        PID:361
                    • /bin/sh
                      sh -c "iptables -I INPUT -p tcp --dport 45955 -j ACCEPT"
                      1⤵
                        PID:362
                        • /sbin/iptables
                          iptables -I INPUT -p tcp --dport 45955 -j ACCEPT
                          2⤵
                            PID:363
                        • /bin/sh
                          sh -c "iptables -I OUTPUT -p tcp --sport 45955 -j ACCEPT"
                          1⤵
                            PID:364
                            • /sbin/iptables
                              iptables -I OUTPUT -p tcp --sport 45955 -j ACCEPT
                              2⤵
                                PID:365
                            • /bin/sh
                              sh -c "iptables -I PREROUTING -t nat -p tcp --dport 45955 -j ACCEPT"
                              1⤵
                                PID:366
                                • /sbin/iptables
                                  iptables -I PREROUTING -t nat -p tcp --dport 45955 -j ACCEPT
                                  2⤵
                                    PID:367
                                • /bin/sh
                                  sh -c "iptables -I INPUT -p tcp --destination-port 22 -j DROP"
                                  1⤵
                                    PID:368
                                    • /sbin/iptables
                                      iptables -I INPUT -p tcp --destination-port 22 -j DROP
                                      2⤵
                                        PID:369
                                    • /bin/sh
                                      sh -c "iptables -I POSTROUTING -t nat -p tcp --sport 45955 -j ACCEPT"
                                      1⤵
                                        PID:370
                                        • /sbin/iptables
                                          iptables -I POSTROUTING -t nat -p tcp --sport 45955 -j ACCEPT
                                          2⤵
                                            PID:371
                                        • /bin/sh
                                          sh -c "iptables -I INPUT -p tcp --destination-port 23 -j DROP"
                                          1⤵
                                            PID:372
                                            • /sbin/iptables
                                              iptables -I INPUT -p tcp --destination-port 23 -j DROP
                                              2⤵
                                                PID:373
                                            • /bin/sh
                                              sh -c "iptables -I INPUT -p tcp --destination-port 2323 -j DROP"
                                              1⤵
                                                PID:374
                                                • /sbin/iptables
                                                  iptables -I INPUT -p tcp --destination-port 2323 -j DROP
                                                  2⤵
                                                    PID:375
                                                • /bin/sh
                                                  sh -c "iptables -I OUTPUT -p tcp --source-port 22 -j DROP"
                                                  1⤵
                                                    PID:376
                                                    • /sbin/iptables
                                                      iptables -I OUTPUT -p tcp --source-port 22 -j DROP
                                                      2⤵
                                                        PID:377
                                                    • /bin/sh
                                                      sh -c "iptables -I OUTPUT -p tcp --source-port 23 -j DROP"
                                                      1⤵
                                                        PID:378
                                                        • /sbin/iptables
                                                          iptables -I OUTPUT -p tcp --source-port 23 -j DROP
                                                          2⤵
                                                            PID:379
                                                        • /bin/sh
                                                          sh -c "iptables -I OUTPUT -p tcp --source-port 2323 -j DROP"
                                                          1⤵
                                                            PID:380
                                                            • /sbin/iptables
                                                              iptables -I OUTPUT -p tcp --source-port 2323 -j DROP
                                                              2⤵
                                                                PID:381
                                                            • /bin/sh
                                                              sh -c "iptables -I INPUT -p tcp --dport 22 -j DROP"
                                                              1⤵
                                                                PID:382
                                                                • /sbin/iptables
                                                                  iptables -I INPUT -p tcp --dport 22 -j DROP
                                                                  2⤵
                                                                    PID:383
                                                                • /bin/sh
                                                                  sh -c "iptables -I INPUT -p tcp --dport 23 -j DROP"
                                                                  1⤵
                                                                    PID:384
                                                                    • /sbin/iptables
                                                                      iptables -I INPUT -p tcp --dport 23 -j DROP
                                                                      2⤵
                                                                        PID:385
                                                                    • /bin/sh
                                                                      sh -c "iptables -I INPUT -p tcp --dport 2323 -j DROP"
                                                                      1⤵
                                                                        PID:386
                                                                        • /sbin/iptables
                                                                          iptables -I INPUT -p tcp --dport 2323 -j DROP
                                                                          2⤵
                                                                            PID:387
                                                                        • /bin/sh
                                                                          sh -c "iptables -I OUTPUT -p tcp --sport 22 -j DROP"
                                                                          1⤵
                                                                            PID:388
                                                                            • /sbin/iptables
                                                                              iptables -I OUTPUT -p tcp --sport 22 -j DROP
                                                                              2⤵
                                                                                PID:389

                                                                            Network

                                                                            MITRE ATT&CK Enterprise v15

                                                                            Replay Monitor

                                                                            Loading Replay Monitor...

                                                                            Downloads