OtterCookie
- Type
- RAT
- Capabilities
- Credential theftKeyloggingExfiltrationPersistenceDefense evasionReconnaissance
- Delivery
- PhishingLure
- Platforms
- macOSLinux
OtterCookie is a JavaScript-based remote-access trojan and information stealer associated with North Korean Contagious Interview operations, including activity tracked as WaterPlum and Famous Chollima. Observed since September 2024, it targets software developers and IT professionals, particularly those working in cryptocurrency, blockchain, and Web3. Distribution methods include fraudulent recruitment assessments, malicious development repositories and npm packages, trojanized Node.js applications, and trojanized macOS utility installers that deliver the malware through shell-script downloaders.
OtterCookie uses Socket.IO over HTTP and WebSocket for command-and-control communications and remote shell execution. Its collection capabilities include browser credentials, cryptocurrency-wallet extension data, system information, and recursively selected files. Observed variants also record keystrokes, capture screenshots, and collect clipboard contents. The malware supports persistent access and executes dynamically constructed modules as child processes. Evasion behavior includes obfuscated JavaScript execution and checks for Linux virtualization indicators. A second-generation loader retrieves executable JavaScript from an HTTP error response, while version 1.5.5 includes functionality to execute NetSupport Manager as an additional payload.
Associated threat actors
10 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
OtterCookie, инструмент за установяване на постоянен достъп в компрометирани системи.
Les précédentes opérations documentées incluaient les sociétés fictives BlockNovas LLC, Angeloper Agency et SoftGlide LLC, qui livraient les malwares BeaverTail , InvisibleFerret et OtterCookie .
Then he looked at the names of the malware used in HexagonalRodent (OtterCookie and BeaverTail).
Any user who ran the project ended up with a four-stage payload aligned with OTTERCOOKIE: a browser credential and crypto wallet stealer, a file stealer, a Socket.IO-based remote access trojan (RAT), and a clipboard stealer.
The campaign used the JavaScript infostealer BeaverTail, the cross-platform Python backdoor InvisibleFerret, and most recently OtterCookie, a new backdoor identified in December 2024.
The campaign targeted Web3 and decentralised finance (DeFi) developers globally via AI-generated fake job offers delivered through LinkedIn, using three interoperating malware families BeaverTail, OtterCookie, and InvisibleFerret in a phased infection chain that begins with a malicious coding assessment and culminates in full credential exfiltration and wallet drainage.
+4 more in the app. View in Mallory
Techniques & procedures
76 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
2 techniques
Reconnaissance
“DeceptiveDevelopment steals victims' credentials to be used by WageMole in consequent social engineering.”
Elastic said it discovered the campaign after the threat actors targeted members of its community Slack workspace with social engineering lures for purported job offers. | The messages, posted by a user named Maxwell on the #jobs Slack channel in late May 2026, sought an experienced developer to help with upgrading their e-commerce platform.
Resource Development
4 techniques
Resource Development
chai-as-init 패키지는 인기 패키지인 chai 및 chai-as-promised 패키지명을 모방한 타이포스쿼팅 (Typosquatting)기법을 사용
Fraudulent hiring. An adversary places its own operatives inside the target through stolen or synthetic identities, often via remote IT contracting. This is the DPRK IT worker scheme.
Fraudulent hiring. An adversary places its own operatives inside the target through stolen or synthetic identities, often via remote IT contracting.
Insikt’s Inside the Scam documents PurpleBravo’s infrastructure: front companies in China spoofing legitimate IT firms, and a malware ecosystem (BeaverTail, InvisibleFerret, OtterCookie) targeting the cryptocurrency industry.
Initial Access
9 techniques
Initial Access
With the unique fingerprint, we identified 77 malicious GitHub repositories... Running the entire repository ultimately leads to an infection.
On 4 September 2025, npm user pavlo123123 (pavlovainerman[@]gmail.com) uploaded some-promise, a package that derives code from the legitimate any-promise package. some-promise comes loaded with a malicious postinstall script...
Famous Chollima publishes malicious dependencies to the official npm registry and links them into assessment repositories.
The actors seeded malicious NPM packages carrying BeaverTail, InvisibleFerret, OtterCookie, OtterCandy or StoatWaffle.
using three interoperating malware families BeaverTail, OtterCookie, and InvisibleFerret in a phased infection chain that begins with a malicious coding assessment
Attackers pose as recruiters and send coding tests, repositories or packages to prospective candidates; this wave disguises malware as familiar macOS application installers.
Attackers pose as recruiters and send coding tests, repositories or packages to prospective candidates; this wave hides the infection inside software installers.
The campaign plays out like this: the hackers employ social engineering ploys on job-seeking platforms and social networks to trick prospective targets into downloading GitHub-hosted projects as part of an assessment.
WaterPlum approaches targets through social networks, job boards, gig sites and freelance marketplaces. It impersonates employers, then asks candidates to complete a coding task or resolve a supposed problem with interview software.
Execution
10 techniques
Execution
A helper script rebuilds the code and runs it at server start... Watch Node processes that spawn shells or PowerShell.
On Windows, a new PowerShell process is spawned every 500ms via Get-Clipboard to retrieve the current clipboard contents.
The backdoor also loads a Node.js module that orchestrates staged payload execution via PowerShell and CMD.
The operator sends a command event containing a shell command, which the implant executes via child_process.exec() and returns the output.
That function builds a new function from the response with Function.constructor and calls it with require.
"When victims open the downloaded package in Visual Studio Code... If trust is granted, Visual Studio Code automatically executes the repository’s task configuration file, which then fetches and loads the backdoor."
The task is set to run when the configuration file’s parent folder (.vscode) is opened in the VS Code application. This run behavior is configured via the runOptions:runOn property.
some-promise comes loaded with a malicious postinstall script that launches an embedded obfuscated payload at /register/es-promise/license.list
The repository it links to has long been taken down, but it would have triggered a multi-stage infection chain leading to infostealing malware like OtterCookie or InvisibleFerrett.
During technical interviews or coding assignments, victims were told to download and run files hosted on developer platforms and code repositories.
Persistence
4 techniques
Persistence
The attack chain is engineered such that the malware is executed on each server boot.
Five trojanized browser extensions – Bitwarden, Phantom, TronLink, Trust Wallet, and a Brave/MetaMask-themed trojan – share a single boot sequence.
The attackers embed a malicious tasks.json configuration file inside the coding assessment project they send to their target... The threat actors configure the file with a runOn:"folderOpen" command, which means the malware executes the moment the developer simply opens the project folder in VSCode.
macOS persistence pair from Part III: Login Items entry plus a per-user LaunchAgent referencing a Node process
Privilege Escalation
3 techniques
Privilege Escalation
The attack chain is engineered such that the malware is executed on each server boot.
The attackers embed a malicious tasks.json configuration file inside the coding assessment project they send to their target... The threat actors configure the file with a runOn:"folderOpen" command, which means the malware executes the moment the developer simply opens the project folder in VSCode.
macOS persistence pair from Part III: Login Items entry plus a per-user LaunchAgent referencing a Node process
Stealth
12 techniques
Stealth
The malware decodes this data with a custom Base64-decoding function... and then uses eval(); JavaScript malware is protected by obfuscator.io.
The payloads are split into Base64 fragments inside HTML comments across every SVG flag image inside an assets directory.
developers should review server startup files and asset directories, and look closely for dynamic code execution such as eval() or code that reads image files.
“It impersonates employers, then asks candidates to complete a coding task or resolve a supposed problem with interview software.”
Le processus se masque sous le nom npm-cache .
"When victims open the downloaded package in Visual Studio Code... If trust is granted, Visual Studio Code automatically executes the repository’s task configuration file, which then fetches and loads the backdoor."
Virtual environment detection function was added to existing environment check function implemented in Main module. We assume that the attackers intended to discern the logs for sandbox environment and that of actual infection.
OtterCookie's main module checks for virtual machines before it reports to C2.
Module 3 monitors the clipboard every 500 milliseconds, using a 3,000-millisecond startup delay to slip past sandbox detection.
Attackers changed the app configuration so a hidden executable named .macos runs when the user double-clicks the bundle. The first downloaded script creates a concealed ~/.task folder.
자식 프로세스를 부모와 분리( detached )하고 출력을 숨기며( stdio: 'ignore' ), 부모가 종료되어도 살아남도록( child.unref() ) 설정
If the server returns a 404 response containing a token field, the payload runs directly in memory using Function.constructor... Nothing is written to disk, making the attack much harder for traditional security tools to detect.
Defense Impairment
1 technique
Defense Impairment
It removes the quarantine attribute from the real app... That script fetches the next stage and attempts to clear the protection flag from the installed application.
Credential Access
13 techniques
Credential Access
「…DPAPIを用いたGoogle ChromeのLogin Dataの復号処理…」
OtterCookie was reading clipboard contents, capturing keystrokes, taking screenshots, watching the active workspace on a thirty-second clock.
It writes keystrokes to 1.tmp in a Windows cache folder under the temp directory, flushes the buffer every second, and posts it to a remote server.
Collection class Behavior Developer secrets .env files, SSH material, cloud credentials, source-control tokens, and adjacent on-disk secrets.
The recovered toolkit has four main parts: a browser credential and cryptocurrency-wallet stealer, a file stealer, a clipboard collector, and a remote-access component using Socket.IO.
Collection class Behavior Developer secrets .env files, SSH material, cloud credentials, source-control tokens, and adjacent on-disk secrets.
“Once a target is compromised, the attackers attempt to steal ... cryptocurrency private keys and seed phrases...”
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.).
「…MacOSの認証情報を復号しないまま窃取」
Famous Chollima's combined BeaverTail and OtterCookie payloads list browser profiles and steal saved credentials along with cryptocurrency wallet extension data.
As shown in the figure below, it uses DPAPI that decrypts Login Data for Google Chrome.
Another Stealer module steals files related to MetaMask, Google Chrome and Brave browser credentials, and MacOS credentials without decrypting.
Discovery
7 techniques
Discovery
processControl 기능은 ldbScript, autoUploadScript, socketScript 를 멈추거나 다시 시작할 수 있도록 설계되어 있으나
The RAT includes VM/sandbox detections... Windows retrieves system details using WMIC; macOS uses system_profiler; Linux reads /proc/cpuinfo.
The malware scans each collected root drive... or the home directories on other platforms, searching for files whose names match a set of glob patterns.
Virtual environment detection function was added to existing environment check function implemented in Main module. We assume that the attackers intended to discern the logs for sandbox environment and that of actual infection.
OtterCookie's main module checks for virtual machines before it reports to C2.
Module 3 monitors the clipboard every 500 milliseconds, using a 3,000-millisecond startup delay to slip past sandbox detection.
It targets the following browsers... The malware then collects the Chrome profile file... enumerates the extension directories of Chrome and Brave...
Lateral Movement
1 technique
Lateral Movement
The next panel we found was a browser-based remote control utility. It provided the threat actor with VNC-like capabilities (the ability to view the victim’s screen, as well as control their keyboard, mouse, and clipboard).
Collection
7 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.).”
OtterCookie was reading clipboard contents, capturing keystrokes, taking screenshots, watching the active workspace on a thirty-second clock.
It writes keystrokes to 1.tmp in a Windows cache folder under the temp directory, flushes the buffer every second, and posts it to a remote server.
「Login Dataをホームディレクトリ配下の\AppData\Local\1.dbにコピーして操作」
The advisory lists “screenshots” among sensitive data targeted for exfiltration.
A variant of OtterCookie reads the clipboard with native operating system commands instead of a third-party library.
OtterCookie's file-upload module lists every drive and walks the file system to find files worth stealing.
Command and Control
9 techniques
Command and Control
Projects hide payloads with steganography in SVG image files... The payloads are split into Base64 fragments inside HTML comments across every SVG flag image inside an assets directory.
Upload module that communicates with C2 server.
OtterCookie's remote shell module installs socket.io-client, which starts over HTTP and then upgrades to WebSocket.
...leverage legitimate hosting services like Vercel.App as command and control servers.
T1102 — Web Service (Command and Control)
Each extension reads it from a transaction payload on an Aptos mainnet account ... at runtime. ... The first thing each of the five extensions does on load is ask a public blockchain where its server is.
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.”
Following the upload, it establishes a socket connection with the C&C server at 216.250.251[.]87:1247... pay ... socket connection to the C&C server (216.250.251[.]87:1245).
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.
The malware then steals API tokens, cloud credentials, crypto wallets, and source code.
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
205 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
152 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.