General
Target

Mozi.axswhkguf

Filesize

106KB

Completed

26-04-2022 00:34

Task

behavioral1

Score
10/10
MD5

4dde761681684d7edad4e5e1ffdb940b

SHA1

2327be693bc11a618c380d7d3abc2382d870d48b

SHA256

d546509ab6670f9ff31783ed72875dfc0f37fa2b666bd5870eecaaed2ebea4a8

SHA512

91a61c719128f263f9f95736d55895954cc468c74ff469ee061d35ec382c50b9165e9a5427dc46a835dac6ae0e6e1f9819632475f68b98a907b53196bd4eb02a

Malware Config
Signatures 13

Filter: none

Discovery
  • suricata: ET MALWARE JAWS Webserver Unauthenticated Shell Command Execution

    Description

    suricata: ET MALWARE JAWS Webserver Unauthenticated Shell Command Execution

    Tags

  • suricata: ET MALWARE Mirai Variant User-Agent (Outbound)

    Description

    suricata: ET MALWARE Mirai Variant User-Agent (Outbound)

    Tags

  • Contacts a large (10601) amount of remote hosts

    Description

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

    Tags

    TTPs

    Network Service Scanning
  • Modifies the Watchdog daemon

    Description

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

    TTPs

  • Writes file to system bin folder

    TTPs

    Reported IOCs

    descriptionioc
    /sbin/watchdog/sbin/watchdog
    /bin/watchdog/bin/watchdog
  • Modifies hosts file

    Description

    Adds to hosts file used for mapping hosts to IP addresses.

    Reported IOCs

    descriptionioc
    /etc/hosts/etc/hosts
  • Writes DNS configuration

    Description

    Writes data to DNS resolver config file.

    TTPs

    Reported IOCs

    descriptionioc
    /etc/resolv.conf/etc/resolv.conf
  • Enumerates active TCP sockets

    Description

    Gets active TCP sockets from /proc virtual filesystem.

    TTPs

    System Network Connections Discovery

    Reported IOCs

    descriptionioc
    /proc/net/tcp/proc/net/tcp
  • Modifies init.d

    Description

    Adds/modifies system service, likely for persistence.

    TTPs

    Reported IOCs

    descriptionioc
    /etc/init.d/S95baby.sh/etc/init.d/S95baby.sh
  • Reads system routing table

    Description

    Gets active network interfaces from /proc virtual filesystem.

    TTPs

    System Network Configuration Discovery

    Reported IOCs

    descriptionioc
    /proc/net/route/proc/net/route
  • Creates a large amount of network flows

    Description

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

    Tags

    TTPs

    Network Service Scanning
  • Reads system network configuration

    Description

    Uses contents of /proc filesystem to enumerate network settings.

    TTPs

    System Network Configuration Discovery

    Reported IOCs

    descriptionioc
    /proc/net/route/proc/net/route
    /proc/net/raw/proc/net/raw
    /proc/net/tcp/proc/net/tcp
  • Writes file to tmp directory

    Description

    Malware often drops required files in the /tmp directory.

    Reported IOCs

    descriptionioc
    /tmp/config/tmp/config
    /tmp/Mozi.axswhkguf/tmp/Mozi.axswhkguf
Processes 47
  • ./Mozi.axswhkguf
    ./Mozi.axswhkguf
    PID:320
  • /bin/sh
    sh -c "iptables -I INPUT -p tcp --destination-port 22 -j DROP"
    PID:327
    • /sbin/iptables
      iptables -I INPUT -p tcp --destination-port 22 -j DROP
      PID:328
  • /bin/sh
    sh -c "iptables -I INPUT -p tcp --destination-port 55093 -j ACCEPT"
    PID:329
    • /sbin/iptables
      iptables -I INPUT -p tcp --destination-port 55093 -j ACCEPT
      PID:334
  • /bin/sh
    sh -c "iptables -I INPUT -p tcp --destination-port 23 -j DROP"
    PID:338
    • /sbin/iptables
      iptables -I INPUT -p tcp --destination-port 23 -j DROP
      PID:339
  • /bin/sh
    sh -c "iptables -I INPUT -p tcp --destination-port 2323 -j DROP"
    PID:340
    • /sbin/iptables
      iptables -I INPUT -p tcp --destination-port 2323 -j DROP
      PID:341
  • /bin/sh
    sh -c "iptables -I OUTPUT -p tcp --source-port 22 -j DROP"
    PID:342
    • /sbin/iptables
      iptables -I OUTPUT -p tcp --source-port 22 -j DROP
      PID:343
  • /bin/sh
    sh -c "iptables -I OUTPUT -p tcp --source-port 55093 -j ACCEPT"
    PID:344
    • /sbin/iptables
      iptables -I OUTPUT -p tcp --source-port 55093 -j ACCEPT
      PID:345
  • /bin/sh
    sh -c "iptables -I OUTPUT -p tcp --source-port 23 -j DROP"
    PID:346
    • /sbin/iptables
      iptables -I OUTPUT -p tcp --source-port 23 -j DROP
      PID:347
  • /bin/sh
    sh -c "iptables -I PREROUTING -t nat -p tcp --destination-port 55093 -j ACCEPT"
    PID:348
    • /sbin/iptables
      iptables -I PREROUTING -t nat -p tcp --destination-port 55093 -j ACCEPT
      PID:349
  • /bin/sh
    sh -c "iptables -I OUTPUT -p tcp --source-port 2323 -j DROP"
    PID:350
    • /sbin/iptables
      iptables -I OUTPUT -p tcp --source-port 2323 -j DROP
      PID:351
  • /bin/sh
    sh -c "iptables -I POSTROUTING -t nat -p tcp --source-port 55093 -j ACCEPT"
    PID:359
    • /sbin/iptables
      iptables -I POSTROUTING -t nat -p tcp --source-port 55093 -j ACCEPT
      PID:360
  • /bin/sh
    sh -c "iptables -I INPUT -p tcp --destination-port 58000 -j DROP"
    PID:361
    • /sbin/iptables
      iptables -I INPUT -p tcp --destination-port 58000 -j DROP
      PID:362
  • /bin/sh
    sh -c "iptables -I OUTPUT -p tcp --source-port 58000 -j DROP"
    PID:363
    • /sbin/iptables
      iptables -I OUTPUT -p tcp --source-port 58000 -j DROP
      PID:364
  • /bin/sh
    sh -c "cfgtool set /mnt/jffs2/hw_ctree.xml InternetGatewayDevice.ManagementServer URL \"http://127.0.0.1\""
    PID:365
  • /bin/sh
    sh -c "cfgtool set /mnt/jffs2/hw_ctree.xml InternetGatewayDevice.ManagementServer ConnectionRequestPassword \"acsMozi\""
    PID:366
  • /bin/sh
    sh -c "iptables -I INPUT -p tcp --destination-port 35000 -j DROP"
    PID:367
    • /sbin/iptables
      iptables -I INPUT -p tcp --destination-port 35000 -j DROP
      PID:368
  • /bin/sh
    sh -c "iptables -I INPUT -p tcp --destination-port 50023 -j DROP"
    PID:369
    • /sbin/iptables
      iptables -I INPUT -p tcp --destination-port 50023 -j DROP
      PID:370
  • /bin/sh
    sh -c "iptables -I OUTPUT -p tcp --source-port 50023 -j DROP"
    PID:371
    • /sbin/iptables
      iptables -I OUTPUT -p tcp --source-port 50023 -j DROP
      PID:372
  • /bin/sh
    sh -c "iptables -I OUTPUT -p tcp --source-port 35000 -j DROP"
    PID:373
    • /sbin/iptables
      iptables -I OUTPUT -p tcp --source-port 35000 -j DROP
      PID:374
  • /bin/sh
    sh -c "iptables -I INPUT -p tcp --destination-port 7547 -j DROP"
    PID:375
    • /sbin/iptables
      iptables -I INPUT -p tcp --destination-port 7547 -j DROP
      PID:376
  • /bin/sh
    sh -c "iptables -I OUTPUT -p tcp --source-port 7547 -j DROP"
    PID:377
    • /sbin/iptables
      iptables -I OUTPUT -p tcp --source-port 7547 -j DROP
      PID:378
  • /bin/sh
    sh -c "iptables -I INPUT -p udp --destination-port 11353 -j ACCEPT"
    PID:379
    • /sbin/iptables
      iptables -I INPUT -p udp --destination-port 11353 -j ACCEPT
      PID:380
  • /bin/sh
    sh -c "iptables -I OUTPUT -p udp --source-port 11353 -j ACCEPT"
    PID:381
    • /sbin/iptables
      iptables -I OUTPUT -p udp --source-port 11353 -j ACCEPT
      PID:382
  • /bin/sh
    sh -c "iptables -I PREROUTING -t nat -p udp --destination-port 11353 -j ACCEPT"
    PID:383
    • /sbin/iptables
      iptables -I PREROUTING -t nat -p udp --destination-port 11353 -j ACCEPT
      PID:384
  • /bin/sh
    sh -c "iptables -I POSTROUTING -t nat -p udp --source-port 11353 -j ACCEPT"
    PID:385
    • /sbin/iptables
      iptables -I POSTROUTING -t nat -p udp --source-port 11353 -j ACCEPT
      PID:386
Network
MITRE ATT&CK Matrix
Collection
    Command and Control
      Credential Access
        Defense Evasion
          Execution
            Exfiltration
              Impact
                Initial Access
                  Lateral Movement
                    Persistence
                      Privilege Escalation
                        Replay Monitor
                        00:00 00:00
                        Downloads