Analysis

  • max time kernel
    17s
  • max time network
    129s
  • platform
    ubuntu-18.04_amd64
  • resource
    ubuntu1804-amd64-20260513-en
  • resource tags

    arch:amd64arch:i386image:ubuntu1804-amd64-20260513-enkernel:4.15.0-213-genericlocale:en-usos:ubuntu-18.04-amd64system
  • submitted
    30/08/2026, 22:27

General

  • Target
    .X0-lock_x86_64.elf
  • Size 1.4MB
  • Sample260830-2dknzattew
  • SHA256 f6f310bb98d6718154b3962c89bc779a28d2b7f6afe4170e89229ed4aaff88ca
  • MD5 SHA1 SHA512 SSDEEP TLSH

Malware Config

Signatures

  • Family: xmrig

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

  • Modifies the dynamic linker configuration file 2 TTPs 2 IoCs

    Malware can modify the configuration file of the dynamic linker to preload malicous libraries with every executed process.

  • XMRig Miner payload 1 IoCs
  • Executes dropped EXE 1 IoCs
  • Creates/modifies Cron job 1 TTPs 1 IoCs

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

  • Creates/modifies environment variables 1 TTPs 4 IoCs

    Creating/modifying environment variables is a common persistence mechanism.

  • Enumerates running processes

    Discovers information about currently running processes on the system

  • Looks up external IP address via web service 1 TTPs 2 IoCs

    Uses a legitimate IP lookup service to find the infected system's external IP.

  • Write file to user bin folder 2 IoCs
  • Writes file to system bin folder 1 IoCs
  • Modifies Bash startup script 2 TTPs 4 IoCs
  • Changes its process name 6 IoCs
  • Reads CPU attributes 1 TTPs 53 IoCs
  • Enumerates kernel/hardware configuration 1 TTPs 2 IoCs

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

  • Reads runtime system information 64 IoCs

    Reads data from /proc virtual filesystem.

Processes

  • /tmp/.X0-lock_x86_64.elf
    /tmp/.X0-lock_x86_64.elf
    1⤵
    • Modifies the dynamic linker configuration file
    • Changes its process name
    PID:1489
    • /bin/sh
      sh -c "pkill -9 -f '.b0s'; pkill -9 -f 'b0s'; pkill -9 -f 'yum.log'; pkill -9 -f 'apt.log'; rm -f \"\$HOME/.bash_history\" /var/tmp/apt.log /var/tmp/yum.log"
      2⤵
        PID:1496
        • /usr/bin/pkill
          pkill -9 -f .b0s
          3⤵
          • Reads CPU attributes
          • Reads runtime system information
          PID:1497
      • /bin/sh
        sh -c "pgrep -x '16' 2>/dev/null"
        2⤵
          PID:1507
          • /usr/bin/pgrep
            pgrep -x 16
            3⤵
            • Reads CPU attributes
            • Reads runtime system information
            PID:1508
        • /bin/sh
          sh -c "pgrep -x '.16' 2>/dev/null"
          2⤵
            PID:1509
            • /usr/bin/pgrep
              pgrep -x .16
              3⤵
              • Reads CPU attributes
              • Reads runtime system information
              PID:1510
          • /bin/sh
            sh -c "pgrep -x '16' 2>/dev/null"
            2⤵
              PID:1511
              • /usr/bin/pgrep
                pgrep -x 16
                3⤵
                • Reads CPU attributes
                • Reads runtime system information
                PID:1512
            • /bin/sh
              sh -c "pgrep -x '.16' 2>/dev/null"
              2⤵
                PID:1513
                • /usr/bin/pgrep
                  pgrep -x .16
                  3⤵
                  • Reads CPU attributes
                  • Reads runtime system information
                  PID:1514
              • /bin/sh
                sh -c "pgrep -x '16' 2>/dev/null"
                2⤵
                  PID:1515
                  • /usr/bin/pgrep
                    pgrep -x 16
                    3⤵
                    • Reads CPU attributes
                    • Reads runtime system information
                    PID:1516
                • /bin/sh
                  sh -c "pgrep -x '.16' 2>/dev/null"
                  2⤵
                    PID:1517
                    • /usr/bin/pgrep
                      pgrep -x .16
                      3⤵
                      • Reads CPU attributes
                      • Reads runtime system information
                      PID:1518
                  • /bin/sh
                    sh -c "ps -eo pid,comm,%cpu | awk '\$2==\"16\"' | sort -k3nr | awk 'NR>1{print \$1}' | xargs kill 2>/dev/null || pgrep -x '16' | tail -n +2 | xargs kill 2>/dev/null"
                    2⤵
                      PID:1586
                      • /usr/bin/awk
                        awk "NR>1{print \$1}"
                        3⤵
                          PID:1590
                        • /usr/bin/sort
                          sort -k3nr
                          3⤵
                            PID:1589
                          • /usr/bin/xargs
                            xargs kill
                            3⤵
                              PID:1591
                              • /usr/local/sbin/kill
                                kill
                                4⤵
                                  PID:1592
                                • /usr/local/bin/kill
                                  kill
                                  4⤵
                                    PID:1592
                                  • /usr/sbin/kill
                                    kill
                                    4⤵
                                      PID:1592
                                    • /usr/bin/kill
                                      kill
                                      4⤵
                                        PID:1592
                                      • /sbin/kill
                                        kill
                                        4⤵
                                          PID:1592
                                        • /bin/kill
                                          kill
                                          4⤵
                                          • Reads CPU attributes
                                          PID:1592
                                      • /usr/bin/awk
                                        awk "\$2==\"16\""
                                        3⤵
                                          PID:1588
                                        • /bin/ps
                                          ps -eo "pid,comm,%cpu"
                                          3⤵
                                          • Reads CPU attributes
                                          • Reads runtime system information
                                          PID:1587
                                        • /usr/bin/xargs
                                          xargs kill
                                          3⤵
                                            PID:1595
                                            • /usr/local/sbin/kill
                                              kill
                                              4⤵
                                                PID:1596
                                              • /usr/local/bin/kill
                                                kill
                                                4⤵
                                                  PID:1596
                                                • /usr/sbin/kill
                                                  kill
                                                  4⤵
                                                    PID:1596
                                                  • /usr/bin/kill
                                                    kill
                                                    4⤵
                                                      PID:1596
                                                    • /sbin/kill
                                                      kill
                                                      4⤵
                                                        PID:1596
                                                      • /bin/kill
                                                        kill
                                                        4⤵
                                                        • Reads CPU attributes
                                                        PID:1596
                                                    • /usr/bin/tail
                                                      tail -n +2
                                                      3⤵
                                                        PID:1594
                                                      • /usr/bin/pgrep
                                                        pgrep -x 16
                                                        3⤵
                                                        • Reads CPU attributes
                                                        • Reads runtime system information
                                                        PID:1593
                                                    • /bin/sh
                                                      sh -c "for p in /proc/[0-9]*; do pid=\${p#/proc/}; [ \"\$pid\" = \"\$\$\" ] && continue; read name rest < \"\$p/stat\"; name=\${name#(}; name=\${name%)}; [ \"\$name\" = \"16\" ] && echo \"\$pid \$((\$(awk '{print \$14+\$15}' \"\$p/stat\")))\"; done | sort -k2nr | awk 'NR>1{print \$1}' | while read pid; do kill -9 \"\$pid\" 2>/dev/null; done"
                                                      2⤵
                                                        PID:1598
                                                        • /usr/bin/awk
                                                          awk "NR>1{print \$1}"
                                                          3⤵
                                                            PID:1601
                                                          • /usr/bin/sort
                                                            sort -k2nr
                                                            3⤵
                                                              PID:1600
                                                            • /usr/bin/awk
                                                              awk "{print \$14+\$15}" /proc/16/stat
                                                              3⤵
                                                                PID:1608
                                                            • /bin/sh
                                                              sh -c "pids=\$(pgrep -x 'X0-lock'); if [ -n \"\$pids\" ]; then alive=\$(echo \"\$pids\" | xargs ps -o pid= -p 2>/dev/null | wc -l); if [ \$alive -gt 1 ]; then oldest=\$(echo \"\$pids\" | xargs ps -o pid=,etime= -p 2>/dev/null | sort -k2 | head -1 | awk '{print \$1}'); echo \"\$pids\" | grep -v \"\$oldest\" | xargs kill -9 2>/dev/null; elif [ \$alive -eq 0 ]; then true; else echo \"\$pids\"; fi; fi"
                                                              2⤵
                                                                PID:1610
                                                                • /usr/bin/pgrep
                                                                  pgrep -x X0-lock
                                                                  3⤵
                                                                  • Reads CPU attributes
                                                                  • Reads runtime system information
                                                                  PID:1611
                                                              • /bin/sh
                                                                sh -c "for p in /proc/[0-9]*; do pid=\${p#/proc/}; [ \"\$pid\" = \"\$\$\" ] && continue; read name rest < \"\$p/stat\"; name=\${name#(}; name=\${name%)}; [ \"\$name\" = \"X0-lock\" ] && echo \"\$pid \$(awk '{print \$22}' \"\$p/stat\")\"; done | sort -k2n | awk 'NR>1{print \$1}' | while read pid; do kill -9 \"\$pid\" 2>/dev/null; done"
                                                                2⤵
                                                                  PID:1612
                                                                  • /usr/bin/sort
                                                                    sort -k2n
                                                                    3⤵
                                                                      PID:1614
                                                                    • /usr/bin/awk
                                                                      awk "NR>1{print \$1}"
                                                                      3⤵
                                                                        PID:1615
                                                                    • /bin/sh
                                                                      sh -c "pids=\$(pgrep -x 'snap'); if [ -n \"\$pids\" ]; then alive=\$(echo \"\$pids\" | xargs ps -o pid= -p 2>/dev/null | wc -l); if [ \$alive -gt 1 ]; then oldest=\$(echo \"\$pids\" | xargs ps -o pid=,etime= -p 2>/dev/null | sort -k2 | head -1 | awk '{print \$1}'); echo \"\$pids\" | grep -v \"\$oldest\" | xargs kill -9 2>/dev/null; elif [ \$alive -eq 0 ]; then true; else echo \"\$pids\"; fi; fi"
                                                                      2⤵
                                                                        PID:1618
                                                                        • /usr/bin/pgrep
                                                                          pgrep -x snap
                                                                          3⤵
                                                                          • Reads CPU attributes
                                                                          • Reads runtime system information
                                                                          PID:1619
                                                                      • /bin/sh
                                                                        sh -c "for p in /proc/[0-9]*; do pid=\${p#/proc/}; [ \"\$pid\" = \"\$\$\" ] && continue; read name rest < \"\$p/stat\"; name=\${name#(}; name=\${name%)}; [ \"\$name\" = \"snap\" ] && echo \"\$pid \$(awk '{print \$22}' \"\$p/stat\")\"; done | sort -k2n | awk 'NR>1{print \$1}' | while read pid; do kill -9 \"\$pid\" 2>/dev/null; done"
                                                                        2⤵
                                                                        • Reads runtime system information
                                                                        PID:1620
                                                                        • /usr/bin/awk
                                                                          awk "NR>1{print \$1}"
                                                                          3⤵
                                                                            PID:1623
                                                                          • /usr/bin/sort
                                                                            sort -k2n
                                                                            3⤵
                                                                              PID:1622
                                                                          • /bin/sh
                                                                            sh -c "pkill -9 -f '.b0s'; pkill -9 -f 'b0s'; pkill -9 -f 'yum.log'; pkill -9 -f 'apt.log'; rm -f \"\$HOME/.bash_history\" /var/tmp/apt.log /var/tmp/yum.log"
                                                                            2⤵
                                                                              PID:1625
                                                                              • /usr/bin/pkill
                                                                                pkill -9 -f .b0s
                                                                                3⤵
                                                                                • Reads CPU attributes
                                                                                • Reads runtime system information
                                                                                PID:1626
                                                                            • /bin/sh
                                                                              sh -c "pids=\$(pgrep -x '16') && [ \"\$(echo \"\$pids\" | wc -l)\" -gt 1 ] && echo \"\$pids\" | xargs -r ps -o pid=,pcpu= -p | sort -k2 -nr | awk 'NR>1 {print \$1}' | xargs -r kill -9"
                                                                              2⤵
                                                                                PID:1627
                                                                                • /usr/bin/pgrep
                                                                                  pgrep -x 16
                                                                                  3⤵
                                                                                  • Reads CPU attributes
                                                                                  • Reads runtime system information
                                                                                  PID:1628
                                                                                • /usr/bin/wc
                                                                                  wc -l
                                                                                  3⤵
                                                                                    PID:1631
                                                                                • /bin/sh
                                                                                  sh -c "for p in /proc/[0-9]*; do pid=\${p#/proc/}; [ \"\$pid\" = \"\$\$\" ] && continue; read name rest < \"\$p/stat\"; name=\${name#(}; name=\${name%)}; [ \"\$name\" = \"16\" ] && echo \"\$pid \$((\$(awk '{print \$14+\$15}' \"\$p/stat\")))\"; done | sort -k2nr | awk 'NR>1{print \$1}' | while read pid; do kill -9 \"\$pid\" 2>/dev/null; done"
                                                                                  2⤵
                                                                                  • Reads runtime system information
                                                                                  PID:1632
                                                                                  • /usr/bin/awk
                                                                                    awk "NR>1{print \$1}"
                                                                                    3⤵
                                                                                      PID:1635
                                                                                    • /usr/bin/sort
                                                                                      sort -k2nr
                                                                                      3⤵
                                                                                        PID:1634
                                                                                      • /usr/bin/awk
                                                                                        awk "{print \$14+\$15}" /proc/16/stat
                                                                                        3⤵
                                                                                          PID:1637
                                                                                      • /bin/sh
                                                                                        sh -c "self=\$\$; pids=\$(ps -eo pid,comm | awk '\$2==\"top\"{print \$1}' | while read pid; do exe=\$(readlink -f /proc/\$pid/exe 2>/dev/null); [[ \"\$pid\" != \"\$self\" && \"\$exe\" != \"/usr/bin/top\" && \"\$exe\" != \"/bin/top\" && \"\$exe\" != \"/usr/local/bin/top\" && \"\$exe\" != \"/sbin/top\" && \"\$exe\" != \"/usr/sbin/top\" ]] && echo \$pid; done); [ -n \"\$pids\" ] && kill -9 \$pids 2>/dev/null"
                                                                                        2⤵
                                                                                          PID:1638
                                                                                          • /usr/bin/awk
                                                                                            awk "\$2==\"top\"{print \$1}"
                                                                                            3⤵
                                                                                              PID:1641
                                                                                            • /bin/ps
                                                                                              ps -eo "pid,comm"
                                                                                              3⤵
                                                                                              • Reads CPU attributes
                                                                                              • Reads runtime system information
                                                                                              PID:1640
                                                                                            • /bin/readlink
                                                                                              readlink -f /proc/1491/exe
                                                                                              3⤵
                                                                                                PID:1643
                                                                                            • /bin/sh
                                                                                              sh -c "for p in /proc/[0-9]*; do pid=\${p#/proc/}; [ \"\$pid\" = \"\$\$\" ] && continue; read name rest < \"\$p/stat\"; name=\${name#(}; name=\${name%)}; [ \"\$name\" = \"top\" ] || continue; exe=\$(readlink -f \"\$p/exe\" 2>/dev/null); case \"\$exe\" in /usr/bin/top|/bin/top|/usr/local/bin/top|/sbin/top|/usr/sbin/top) continue;; esac; echo \"\$pid\"; done | while read pid; do kill -9 \"\$pid\" 2>/dev/null; done"
                                                                                              2⤵
                                                                                              • Reads runtime system information
                                                                                              PID:1644
                                                                                          • /var/tmp/.16
                                                                                            /var/tmp/.16
                                                                                            1⤵
                                                                                            • Modifies the dynamic linker configuration file
                                                                                            • Executes dropped EXE
                                                                                            • Creates/modifies environment variables
                                                                                            • Write file to user bin folder
                                                                                            • Writes file to system bin folder
                                                                                            • Modifies Bash startup script
                                                                                            • Changes its process name
                                                                                            • Reads CPU attributes
                                                                                            • Enumerates kernel/hardware configuration
                                                                                            PID:1522
                                                                                            • /bin/sh
                                                                                              sh -c "ps -eo pid,comm,%cpu 2>/dev/null | awk '\$2==\"16\"' 2>/dev/null | sort -k3nr 2>/dev/null | awk 'NR>1{print \$1}' 2>/dev/null | xargs -r kill 2>/dev/null"
                                                                                              2⤵
                                                                                                PID:1530
                                                                                                • /usr/bin/xargs
                                                                                                  xargs -r kill
                                                                                                  3⤵
                                                                                                    PID:1535
                                                                                                  • /usr/bin/sort
                                                                                                    sort -k3nr
                                                                                                    3⤵
                                                                                                      PID:1533
                                                                                                    • /usr/bin/awk
                                                                                                      awk "NR>1{print \$1}"
                                                                                                      3⤵
                                                                                                        PID:1534
                                                                                                      • /usr/bin/awk
                                                                                                        awk "\$2==\"16\""
                                                                                                        3⤵
                                                                                                          PID:1532
                                                                                                        • /bin/ps
                                                                                                          ps -eo "pid,comm,%cpu"
                                                                                                          3⤵
                                                                                                          • Reads CPU attributes
                                                                                                          • Reads runtime system information
                                                                                                          PID:1531
                                                                                                      • /bin/sh
                                                                                                        sh -c "pids=\$(pgrep -x '16' 2>/dev/null) && [ -n \"\$pids\" ] && [ \"\$(echo \"\$pids\" | wc -l 2>/dev/null)\" -gt 1 ] 2>/dev/null && echo \"\$pids\" | xargs -r ps -o pid=,pcpu= -p 2>/dev/null | sort -k2 -nr 2>/dev/null | awk 'NR>1 {print \$1}' 2>/dev/null | xargs -r kill -9 2>/dev/null"
                                                                                                        2⤵
                                                                                                          PID:1536
                                                                                                          • /usr/bin/pgrep
                                                                                                            pgrep -x 16
                                                                                                            3⤵
                                                                                                            • Reads CPU attributes
                                                                                                            • Reads runtime system information
                                                                                                            PID:1537
                                                                                                          • /usr/bin/wc
                                                                                                            wc -l
                                                                                                            3⤵
                                                                                                              PID:1540
                                                                                                          • /bin/sh
                                                                                                            sh -c "(ps -o pid=,pcpu= -C '16' 2>/dev/null || ps -eo pid,pcpu,comm 2>/dev/null | grep '16' 2>/dev/null | grep -v grep 2>/dev/null) 2>/dev/null | tr -s ' ' 2>/dev/null | sort -k2 -nr 2>/dev/null | tail -n +2 2>/dev/null | cut -d' ' -f1 2>/dev/null | while read pid; do [ -n \"\$pid\" ] && kill -9 \"\$pid\" 2>/dev/null; done"
                                                                                                            2⤵
                                                                                                              PID:1541
                                                                                                              • /usr/bin/cut
                                                                                                                cut "-d " -f1
                                                                                                                3⤵
                                                                                                                  PID:1546
                                                                                                                • /usr/bin/sort
                                                                                                                  sort -k2 -nr
                                                                                                                  3⤵
                                                                                                                    PID:1544
                                                                                                                  • /usr/bin/tail
                                                                                                                    tail -n +2
                                                                                                                    3⤵
                                                                                                                      PID:1545
                                                                                                                    • /usr/bin/tr
                                                                                                                      tr -s " "
                                                                                                                      3⤵
                                                                                                                        PID:1543
                                                                                                                      • /bin/ps
                                                                                                                        ps -o "pid=,pcpu=" -C 16
                                                                                                                        3⤵
                                                                                                                        • Reads CPU attributes
                                                                                                                        • Reads runtime system information
                                                                                                                        PID:1548
                                                                                                                    • /bin/sh
                                                                                                                      sh -c "pkill -9 -f '.b0s'; pkill -9 -f 'b0s'; pkill -9 -f 'yum.log'; pkill -9 -f 'apt.log'; rm -f \"\$HOME/.bash_history\" /var/tmp/apt.log /var/tmp/yum.log"
                                                                                                                      2⤵
                                                                                                                        PID:1578
                                                                                                                        • /usr/bin/pkill
                                                                                                                          pkill -9 -f .b0s
                                                                                                                          3⤵
                                                                                                                          • Reads CPU attributes
                                                                                                                          • Reads runtime system information
                                                                                                                          PID:1580
                                                                                                                      • /bin/sh
                                                                                                                        sh -c "crontab -l 2>/dev/null"
                                                                                                                        2⤵
                                                                                                                          PID:1579
                                                                                                                          • /usr/bin/crontab
                                                                                                                            crontab -l
                                                                                                                            3⤵
                                                                                                                              PID:1581
                                                                                                                          • /bin/sh
                                                                                                                            sh -c "crontab -"
                                                                                                                            2⤵
                                                                                                                              PID:1582
                                                                                                                              • /usr/bin/crontab
                                                                                                                                crontab -
                                                                                                                                3⤵
                                                                                                                                • Creates/modifies Cron job
                                                                                                                                PID:1584
                                                                                                                            • /usr/local/sbin/ssh-session-gate
                                                                                                                              /usr/local/sbin/ssh-session-gate
                                                                                                                              2⤵
                                                                                                                                PID:1583
                                                                                                                              • /bin/sh
                                                                                                                                sh -c "crontab -l 2>/dev/null"
                                                                                                                                2⤵
                                                                                                                                  PID:1597
                                                                                                                                  • /usr/bin/crontab
                                                                                                                                    crontab -l
                                                                                                                                    3⤵
                                                                                                                                      PID:1605
                                                                                                                                  • /bin/sh
                                                                                                                                    sh -c "crontab -l 2>/dev/null"
                                                                                                                                    2⤵
                                                                                                                                      PID:1606
                                                                                                                                      • /usr/bin/crontab
                                                                                                                                        crontab -l
                                                                                                                                        3⤵
                                                                                                                                          PID:1607

                                                                                                                                    Network

                                                                                                                                          MITRE ATT&CK Enterprise v16

                                                                                                                                          Replay Monitor

                                                                                                                                          Loading Replay Monitor...

                                                                                                                                          Downloads

                                                                                                                                          .bashrc

                                                                                                                                          • Path /.bashrc
                                                                                                                                          • Size 788B
                                                                                                                                          • SHA256 26ff9857819dd6f3da3326916f5d0ef75106dcf07166d642174aa878f4ca9955
                                                                                                                                          • MD5 SHA1 SHA512 TLSH

                                                                                                                                          libbase.sh.tmp.1524

                                                                                                                                          • Path /etc/profile.d/libbase.sh.tmp.1524
                                                                                                                                          • Size 342B
                                                                                                                                          • SHA256 9ef11ca1cb146c1b5b4d29c9323cda12db0237789edad23800785593b4255d16
                                                                                                                                          • MD5 SHA1 SHA512 TLSH

                                                                                                                                          libcommon.csh.tmp.1524

                                                                                                                                          • Path /etc/profile.d/libcommon.csh.tmp.1524
                                                                                                                                          • Size 233B
                                                                                                                                          • SHA256 da2befb53522da339f178c8272d9a0c74d5f329065744294c49b52009d168d9a
                                                                                                                                          • MD5 SHA1 SHA512 TLSH

                                                                                                                                          libcommon.so

                                                                                                                                          • Path /usr/local/lib/libcommon.so
                                                                                                                                          • Size 4KB
                                                                                                                                          • SHA256 b3fe320e07b51495b14f97843ec9f0402310e794df16853a1abe534a40c9f977
                                                                                                                                          • MD5 SHA1 SHA512 SSDEEP TLSH

                                                                                                                                          libbase.sh.tmp.1524

                                                                                                                                          • Path /usr/local/libexec/libbase.sh.tmp.1524
                                                                                                                                          • Size 1.6MB
                                                                                                                                          • SHA256 1c3927345a28a8c7b0a7d161ccf6831e1407a50493eb0185c578939c0382ca29
                                                                                                                                          • MD5 SHA1 SHA512 SSDEEP TLSH

                                                                                                                                          tmp.6PBflv

                                                                                                                                          • Path /var/spool/cron/crontabs/tmp.6PBflv
                                                                                                                                          • Size 625B
                                                                                                                                          • SHA256 a5e4a03bf647d5018aeae0de5801d45d669e477d39c93b6df2093d94f8b6120b
                                                                                                                                          • MD5 SHA1 SHA512 TLSH