Obfuscated JavaScript Email Loaders Spread RATs Including Houdini, STRRAT, and Formbook
Malware Intelligence · 4 sources · Updated 3mo ago · First seen Jul 17, 2021

Researchers reported that malicious email attachments disguised as JavaScript files were being used to deliver a broad set of remote access Trojans and stealers through heavily obfuscated loader chains. HP Wolf Security identified the activity as RATDispenser, a stealthy JavaScript loader that decodes itself, launches cmd.exe, writes a VBScript file into %TEMP%, and then either drops or downloads a second-stage payload. Analysis of 155 samples found that 94% acted as droppers rather than network downloaders, with STRRAT and WSHRAT making up 81% of observed payloads; other delivered malware included Formbook, Remcos, AdWind, Panda Stealer, GuLoader, and Ratty. The campaign’s low average detection rate and layered obfuscation indicated an effective distribution mechanism for commodity malware.
Separate analysis of a phishing campaign targeting European organizations showed a similar JavaScript-to-VBS infection pattern delivering H-Worm/Houdini after emails impersonating entities such as UNWTO and IATA. Lab52 attributed that operation to LazyScripter and found that the attackers’ obfuscated scripts had themselves been tampered with by the online service hackfree.org, which injected an additional njRAT downloader, creating a double-compromise scenario. Researchers linked the primary campaign to infrastructure including stub.ignorelist.com and securessl.fit, while the injected secondary activity used a PowerShell downloader that contacted 185.81.157.186 to retrieve content from /NDA/199.png, underscoring how obfuscated JavaScript loaders were being reused to distribute multiple RAT families through phishing.
Why it matters
Summary
Malicious email attachments disguised as JavaScript files are being used to deliver multiple commodity RAT and stealer families through heavily obfuscated loader chains. The activity affects Windows users across organizations that rely on email, with observed targeting of important European entities and broad applicability to any enterprise exposed to phishing.
Impact assessment
The operational impact is high because successful execution can lead to remote access, credential theft, keylogging, persistence, and follow-on malware delivery. The scope is mixed: RATDispenser appears broadly reusable for commodity malware distribution, while the LazyScripter/Houdini activity showed targeted phishing against European organizations impersonating UNWTO and IATA.
Supporting details
- Affected users and environments:
- Windows endpoints where users can open
.jsattachments. - Organizations exposed to phishing, especially email-heavy business workflows.
- European entities were specifically targeted in the LazyScripter campaign.
- Windows endpoints where users can open
- Severity drivers:
- Payloads included STRRAT, WSHRAT/Houdini, Formbook, Remcos, AdWind, Panda Stealer, GuLoader, Ratty, and injected njRAT activity.
- Payload capabilities include remote access, credential theft, keylogging, and information stealing.
- Persistence mechanisms were observed via Startup folder artifacts and Run registry keys.
- Scope and prevalence:
- HP analyzed 155 RATDispenser samples over three months.
- 94% of observed RATDispenser samples were droppers, reducing dependence on network retrieval and likely improving delivery success.
- STRRAT and WSHRAT accounted for 81% of observed payloads.
- HP reported an average detection rate of 11% for RATDispenser samples, indicating meaningful evasion.
- Exploitation in the wild:
- Yes. Both references describe active phishing-driven malware delivery campaigns observed in the wild.
- Lab52 documented a double-compromise scenario where scripts obfuscated through
hackfree.orgwere additionally infected with an njRAT downloader.


