Malware / Outils # OTTERCOOKIE (stealer) BEAVERTAIL (loader) Socket.IO RAT (rat)
BeaverTail
BeaverTail is a JavaScript malware family associated with the DPRK-linked Contagious Interview activity cluster and related Lazarus-linked developer-targeting campaigns.
Profile source: Mallory opens in a new tabBeaverTail
Family profile
BeaverTail is a JavaScript malware family associated with the DPRK-linked Contagious Interview activity cluster and related Lazarus-linked developer-targeting campaigns. It is commonly used as an early-stage payload in social-engineering and software supply-chain operations aimed at software developers, especially those working in cryptocurrency, Web3, blockchain, and other high-value technical environments. BeaverTail has been delivered through fake job interviews and coding challenges, trojanized repositories, malicious npm packages, compromised GitHub projects, VS Code task abuse, and counterfeit developer applications built with cross-platform frameworks.
BeaverTail primarily functions as an infostealer and loader. Its theft capabilities include collection of browser-stored credentials, autofill data, browser profile information, cryptocurrency wallet extension data, and other sensitive files such as cloud credentials, SSH material, shell histories, environment files, and development-related secrets. Multiple reports also describe host profiling and system-information collection. In several observed chains, BeaverTail exfiltrates stolen data and then retrieves additional malware, most notably the Python-based InvisibleFerret backdoor; some campaigns instead branch to OTTERCOOKIE or use BeaverTail as part of a broader multi-stage toolkit.
The malware has been observed in cross-platform JavaScript execution chains affecting Windows, macOS, and Linux. Variants and adjacent delivery chains have used obfuscation, anti-tamper logic, steganographic payload hiding in repository assets, blockchain-based dead-drop resolution, and developer-tooling triggers such as automatic execution when a repository is opened or a local development server is started. Some BeaverTail-associated components also provide backdoor-style functionality, including command execution, file search and upload, and download-and-execute behavior, but BeaverTail is most consistently characterized as the initial stealer/loader stage preceding more persistent or feature-rich implants.
Operationally, BeaverTail is closely tied to campaigns in which threat actors impersonate recruiters or collaborators and lure victims into running malicious code during interviews, freelance engagements, or package installation. The malware’s repeated focus on browser sessions, wallet data, source code, tokens, and developer secrets makes it particularly dangerous on engineering workstations and build environments, where compromise can enable both direct financial theft and downstream supply-chain intrusion.
Capabilities
- Credential Theft
- Exfiltration
- Initial Access
- Post Exploitation
- Reconnaissance
Reported operators
Threat actors
9 named in public reportingThe PolinRider threat group was first detected this year when cybersecurity analysts identified hundreds of GitHub repositories with hidden JavaScript code that downloads an updated version of the BeaverTail malware.
This will eventually to either Ottercookie / Beavertail malware. Running the entire repository ultimately leads to an infection.
Instructional videos have also been found with what it looks like non-native English text, detailing how to set up a Beavertail malware command-and-control server and how to crack cryptocurrency wallet passwords.
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.
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.
The code in index.js implements the Node.js fetch API to send an HTTP request to that URL and retrieve BeaverTail malware.
"Tech Note - BeaverTail variant distributed via malicious repositories and ClickFix lure... DPRK’s BeaverTail malware"
MITRE ATT&CK
BeaverTail in ATT&CK
98 distinct techniquesTechniques
98 techniquesReporting
Research mentioning BeaverTail
Contagious Interview Hides Malware in Coding Tests
Elastic Security Labs reported a Contagious Interview intrusion tied to a DPRK-aligned threat cluster after suspicious activity targeted Elastic’s community Slack workspace. Using a fake recruiter persona named Maxwell, the operator posted a fraudulent job opportunity and coding challenge that directed victims to trojanized Next.js e-commerce repositories. The malicious code hid payload components inside SVG image files using steganography, embedding Base64 fragments in flag images that were reassembled by serverValidation.js and executed with eval() when the local development server started. The campaign matches the broader Contagious Interview tradecraft tracked in MITRE ATT&CK as G1052, which relies on fake hiring outreach, code-repository lures, and social engineering to infect developers across Windows, macOS, and Linux. Elastic said the infection chain deployed a browser credential and crypto-wallet stealer, a file stealer, a persistent Socket.IO RAT, and a clipboard stealer capable of fetching Windows PE payloads, while code similarities to OTTERCOOKIE and infrastructure overlaps previously documented by JFrog reinforced the attribution. MITRE also associates the cluster with malware such as BeaverTail and InvisibleFerret, along with credential theft, financial theft, persistence through platform-specific startup mechanisms, and exfiltration over C2 and cloud or messaging services.
North Korean Hackers Hide OTTERCOOKIE Malware in SVG Images to Backdoor Developers
New North Korean Campaign Uses Fake Coding Interviews to Steal Developer Credentials | Community Portal | Gurucul
Campagne Contagious Interview : malware DPRK caché dans des SVG via stéganographie | CyberVeille
How an Infostealer Infection Led to a Sophisticated ClickFix Campaign at Artlist | Community Portal | Gurucul
Attackers compromised the Artlist WordPress subdomain new-blog.artlist[.]io and used it to deliver a sophisticated ClickFix malware campaign that presented visitors with a fake CAPTCHA and tricked them into running PowerShell. The injected JavaScript used an EtherHiding technique, querying a Polygon smart contract to dynamically retrieve the next-stage host auth-code-check[.]info, then downloaded a multi-stage infection chain from the attacker-controlled backend. Researchers traced the intrusion to WordPress credentials stolen from an Israeli freelance developer whose machine had been infected by an infostealer after downloading a pirated copy of Adobe Acrobat Pro DC in 2023. The payload chain reportedly used a password-protected archive, a signed StruSoft/FEM-Design updater, and DLL side-loading to decode shellcode and load a final native RAT that supported encrypted and Tor-backed C2, browser credential theft, keylogging, clipboard and screen access, hidden desktop interaction, file transfer, shell and process control, SOCKS proxying, service installation, and in-memory PE delivery.