WSHRAT is a script-based remote access Trojan targeting Windows systems, with VBScript and JScript implementations. It provides remote-access functionality, keylogging, RDP access, and reverse-proxy capabilities. Analyzed JScript variants implement these functions by decoding and executing embedded Base64-encoded .NET executables rather than relying solely on script logic. Their multistage execution chain uses encoded string arrays, placeholder substitution, and runtime evaluation to conceal executable code and hinder analysis. UAC bypass behavior has also been identified.
WSHRAT has been distributed through malicious email campaigns, including targeted spearphishing, and through the RATDispenser JavaScript loader. Discord-hosted payloads have also been used for its delivery. The financially motivated OPERA1ER threat actor deployed WSHRAT alongside other off-the-shelf remote access Trojans during campaigns in 2019–2020. Those campaigns primarily targeted African banks and financial services organizations, with mobile banking and telecommunications companies also among the group's targets.
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“We were able to observe the following payload families through campaigns in 2019 and 2020: NanoCore, H-Worm (Houdini Worm), WSH Rat, Remcos, Adwind or QNodeJS.”
11 distinct techniques documented for this family, organized by ATT&CK tactic.
Attackers are looking to spread ransomware via these rooms and use the platforms to spread traditional malspam lures used to infect victims.
Malicious Attachments – Crafting deceptive messages to circumvent security measures.
Use of Malicious Scripts – Executing scripts (e.g., ‘.vbs’, ‘.msi’) to establish persistence.
Afterwards, the VBScript file runs, which in turn downloads the malware payload.
JavaScript in Malware – Leveraged for execution and persistence.
figure 9 - UAC bypass and defense evasion technique
Nowadays it is really a common thing for a malware to have a crypter packer, obfuscation and encryption to hide its code from analyst, evade AV detections , bypassed emulation and so on.
Once we replaced all the needed strings specially in variable "Array.prototype.tp_l1nk" which is base 64 encoded string of the next stager, we can decode it with our tool of choice.
I know there are so many way to de-obfuscate or analyze a malicious script like using the browser as a debugger, using AMSI technology , wscript.exe to trigger a debug mode "/X" to a target script file
After having the output of my script I understand some its feature function like RDP (), keylogger() and reverseproxy() better.
After having the output of my script I understand some its feature function like RDP (), keylogger() and reverseproxy() better.
The final malware in this instance was Remcos, a commercially available RAT that is frequently used by attackers to gain unauthorized access to systems.
4 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.