StoatWaffle
- Type
- RAT
- Capabilities
- Credential theftExfiltrationPersistenceLateral movementReconnaissance
- Delivery
- PhishingLure
- Platforms
- WindowsmacOSLinux
StoatWaffle is a modular Node.js malware family combining staged loaders, credential-stealing components, and a remote-access trojan. Used since approximately December 2025, it is associated with the North Korean threat actor WaterPlum, also tracked as Team 8, and the Contagious Interview campaign. It targets software developers and IT professionals, particularly those working in cryptocurrency, blockchain, and Web3, through fraudulent recruitment and technical-assessment lures.
Delivery commonly uses blockchain-themed repositories containing malicious Microsoft Visual Studio Code project configurations. Automatic tasks trigger execution after a victim opens and trusts the project folder. The infection chain checks for Node.js and installs it if necessary, then uses successive downloaders to retrieve and execute additional Node.js payloads from command-and-control infrastructure.
The information-stealing module collects stored credentials and selected extension data from Chromium-based browsers and Mozilla Firefox, along with installed-software information. On macOS, it also steals Keychain databases. It recognizes Windows Subsystem for Linux environments and can access Windows user data from within them. Collected information is staged locally and uploaded to attacker-controlled infrastructure.
The RAT module regularly communicates with command-and-control infrastructure and supports directory enumeration, file searches and uploads, working-directory changes, arbitrary shell commands, and Node.js code execution. These capabilities provide continued remote access and support persistence and pivoting across victim environments.
Associated threat actors
4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
StoatWaffle is a modular Node.js malware family combining a malware loader, credential harvesting components, and a RAT for persistence and pivoting across victim systems via malicious Microsoft Visual Studio Code (VS Code) projects.
The malware, dubbed StoatWaffle, has been attributed to a group tracked as WaterPlum, also known as Team 8, Moralis, or the Modilus family. The malware is a modular implant written in Node.js and includes capabilities for stealing credentials and providing remote access to compromised systems.
The malware, dubbed StoatWaffle, has been attributed to a group tracked as WaterPlum, also known as Team 8, Moralis, or the Modilus family. The malware is a modular implant written in Node.js and includes capabilities for stealing credentials and providing remote access to compromised systems.
The malware, dubbed StoatWaffle, has been attributed to a group tracked as WaterPlum, also known as Team 8, Moralis, or the Modilus family. The malware is a modular implant written in Node.js and includes capabilities for stealing credentials and providing remote access to compromised systems.
Techniques & procedures
37 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
WaterPlum actors upload malicious Node Package Manager (NPM) packages embedded with either BeaverTail, InvisibleFerret, OtterCookie, OtterCandy, or StoatWaffle malware.
The actors seeded malicious NPM packages carrying BeaverTail, InvisibleFerret, OtterCookie, OtterCandy or StoatWaffle.
Злоумышленники выдают себя за компании из сферы ИИ, криптовалют или NFT, выходят на разработчиков через соцсети, доски объявлений о вакансиях и фриланс-площадки, а затем назначают техническое собеседование или дают тестовое задание.
Execution
7 techniques
Execution
StoatWaffle can be hidden inside blockchain-themed projects and use a Visual Studio Code configuration to run code when a victim opens and trusts the folder. The IoC listed is .vscode/tasks.json.
This task downloads and executes a batch file from a web application hosted on Vercel.
Interestingly, the Stealer module checks whether executing environment is WSL or not. If so, it gets Windows user profile and converts it to Linux path with wslpath.
BeaverTail is JavaScript-based malware hidden inside Node Package Manager packages. OtterCookie is a JavaScript-based Remote Access Trojan and information-stealing malware.
This file uses the runOn: folderOpen option, which instructs VS Code to execute a defined task as soon as the folder is opened and trusted by the user.
Кандидатам предлагают скачать файлы с платформ для разработчиков якобы для выполнения задания или устранения технической неполадки во время видеозвонка.
“[StoatWaffle] embed[s] a malicious VS Code configuration file that triggers auto-run code execution when the folder is opened and trusted by the victim.”
Persistence
1 technique
Persistence
tasks.json file contains a key runOn in runOptions . The corresponding value for this key is folderOpen in this malicious repository and a designated task is executed as soon as opening this directory with VSCode.
Privilege Escalation
1 technique
Privilege Escalation
tasks.json file contains a key runOn in runOptions . The corresponding value for this key is folderOpen in this malicious repository and a designated task is executed as soon as opening this directory with VSCode.
Stealth
4 techniques
Stealth
Candidates are advised to inspect projects for unreadable or disguised content; advisory warning strings include base64, -enc, and hidden.
“It impersonates employers, then asks candidates to complete a coding task or resolve a supposed problem with interview software.”
The stealer can also detect if it is running in a Windows Subsystem for Linux (WSL) environment and access Windows user data from within the Linux instance.
“Researchers also observed the malware checking whether the victim environment was WSL and converting Windows user-profile paths for access from Node.js.”
Credential Access
7 techniques
Credential Access
“Other sensitive data targeted for exfiltration includes… Clipboard information, key-logs (recorded keystrokes), screenshots.”
Stealer Module: This component is designed to exfiltrate credentials and data from Chromium-based browsers and Mozilla Firefox. It also targets browser extension data.
The attackers obtained funds or account credentials from more than 7,000 cryptocurrency wallets... Stolen browser logins, wallet keys... can support further theft.
Other sensitive data targeted for exfiltration includes authentication data stored in web browsers (ID, password, etc.) and cryptocurrency-wallet data (private key, seed phrase, etc.).
If the victim OS was macOS, it also steals Keychain database.
Once inside, the actors used remote access trojans and infostealers to take browser credentials...
If the victim OS was macOS, it also steals Keychain database.
Discovery
6 techniques
Discovery
One module acts as a stealer, collecting credentials from browsers, extension data, installed software details...
The RAT Module... include[s] the ability to list files, execute shell commands, upload files, and run arbitrary Node.js code.
If the victim browser was Firefox, it steals browser extension data besides stored credentials. It reads extensions.json and gets the list of browser extension names, then checks whether the designated keyword is included.
The stealer can also detect if it is running in a Windows Subsystem for Linux (WSL) environment and access Windows user data from within the Linux instance.
“Researchers also observed the malware checking whether the victim environment was WSL and converting Windows user-profile paths for access from Node.js.”
This initial script checks if Node.js is installed on the victim’s system and, if not, downloads and installs it from the official website.
Collection
4 techniques
Collection
Targeted data includes “Any files or data of interest to the actors on a PC or in shared folders (ID pictures of driver’s licenses, passports, etc.).”
“Other sensitive data targeted for exfiltration includes… Clipboard information, key-logs (recorded keystrokes), screenshots.”
The advisory lists “screenshots” among sensitive data targeted for exfiltration.
The advisory identifies “Clipboard information” as data targeted for exfiltration.
Command and Control
5 techniques
Command and Control
It connects /api/errorMessage on C2 server every 5 seconds... The second downloader connects /api/handleErrors on same C2 server every 5 seconds.
The RAT module maintains regular communication with an attacker-controlled C2 server, executing commands to terminate its own process, change the working directory, list files and directories, navigate to the application directory, retrieve directory details, upload a file, execute Node.js code, and run arbitrary shell commands, among others.
env.nplは、StoatWaffleの1段目のダウンローダです。C2サーバの /api/errorMessage に対して5秒間隔で接続し... 2段目のダウンローダは、... /api/handleErrors というパスに対して5秒おきに接続します。... RATモジュールは、C2サーバと定期的に通信を行い、`/api/hsocketNext` からコマンドを受信した場合はそれを実行し、結果を /api/hsocketResult に送信します。
The multi-step infection chain leads to deployment of various malware families; backdoor access is abused to deliver remote access trojans.
The malware families are described as including one that “sets up a remote access trojan to move deeper into the machine.”
Exfiltration
2 techniques
Exfiltration
The actors use infostealers to exfiltrate the victim’s sensitive data and cryptocurrency to a Command-and-Control (C2) IP address.
newer mutations of the VS Code projects have eschewed Vercel-based domains for GitHub Gist-hosted scripts to download and execute next-stage payloads
Impact
1 technique
Impact
« Fonds ou identifiants volés depuis plus de 7 000 portefeuilles de cryptomonnaies » et « 10,71 millions USD de cryptoactifs exfiltrés vers la RPDC »
Observables
5 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
20 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.