OSTAP is a JavaScript/JScript downloader used to retrieve and execute additional malware on Windows systems. It is closely associated with campaigns delivering TrickBot, also known as The Trick, and has also delivered Buer Loader as an intermediate stage before TrickBot installation. Its distribution has been associated with the financially motivated threat actor TA800.
OSTAP commonly arrives through malicious email attachments containing macro-enabled Microsoft Word documents. Campaigns have used penalty notices and coronavirus-themed medical guidance as lures, including messages targeting users in Italy and the Czech Republic. Opening the document and enabling macros initiates the downloader execution chain. Some documents conceal OSTAP code as white-colored text within the document body, making it difficult for users to notice while remaining accessible to macros.
OSTAP uses extensive JavaScript obfuscation, including character-code reconstruction, repeated functions, misleading instructions, and exception-driven control flow, to impede analysis and detection. One documented delivery technique abuses a hidden Microsoft Remote Desktop ActiveX control introduced with Windows 10. An intentionally induced DNS lookup failure triggers a macro event handler that constructs and launches the downloader through Windows Script Host. This technique abuses legitimate functionality rather than exploiting a software vulnerability. OSTAP serves as a delivery component; the credential theft and other downstream capabilities of TrickBot should not be attributed to OSTAP itself.
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
This threat actor attempts to deliver and install banking malware or malware loaders including The Trick, BazaLoader, Buer Loader, and Ostap.
"The group also uses Ostap, a malware downloader that uses JavaScript to hide itself from security sandbox analysis tools."
11 distinct techniques documented for this family, organized by ATT&CK tactic.
These access facilitators distribute their backdoors via malicious links and attachments sent via email.
On August 28, Proofpoint researchers observed malicious email messages that appear to reply to earlier legitimate email conversations. They contained Microsoft Word attachments that use Microsoft Office macros to download the next stage payload.
As soon as OSTAP is created in the form of a BAT file, this file is executed
They contained Microsoft Word attachments that use Microsoft Office macros to download the next stage payload.
During a recent investigation dealing with ransomware attack, CERT Intrinsec faced OSTAP loader... Figure 1 : Extract of the loader code (Javascript)
The Server field is empty in the script, which will later cause an error that the attackers will actually abuse to properly execute their own code.
If the recipient enables macros from the attachment... After downloading the malicious Excel document, if the recipient also enabled macros, the macros executed an embedded Get2 loader.
Examining the activeX control revealed the use of the MsRdpClient10NotSafeForScripting class
It uses high obfuscation techniques to prevent the code from being read and to bypass detection processes.
Then, it collects the indicators of compromise in the decoded payload using regular expressions. Extracted IOCs are IPs, URLs and User-Agents.
This loader is used to deliver other malwares (such as Trickbot) on an infected system.
29 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.