InvisibleFerret Malware Steals Browser Credentials and Crypto Wallets

North Korea-aligned threat actors are setting sophisticated traps for software developers.

Operating under the name Void Dokkaebi (also known as Famous Chollima), this intrusion set targets professionals managing cryptocurrency wallets and continuous integration/continuous delivery (CI/CD) pipelines.

Posing as tech recruiters, the hackers lure victims into executing malicious code during fabricated job interviews, initiating a devastating infection chain.

InvisibleFerret Steals Crypto Credentials

At the core of this campaign lies InvisibleFerret, a Python-based malware family that has adopted a powerful new cloaking mechanism.

Threat actors now use Cython to translate their Python code into C/C++ source code, which is then compiled into native binaries.

Instead of deploying readable Python scripts, InvisibleFerret arrives as .pyd extension modules on Windows and .so shared libraries on macOS.

Infection chain of the Void Dokkaebi intrusion set that abuses Cython to obfuscate its InvisibleFerret malware (Source: trendmicro)
Infection chain of the Void Dokkaebi intrusion set that abuses Cython to obfuscate its InvisibleFerret malware (Source: trendmicro)

This shift effectively blinds traditional detection rules that rely on identifying malicious Python scripts. However, these binaries cannot execute on their own.

They require a lightweight Python script to load them into the CPython runtime. This dynamic execution script passes command-and-control (C&C) IP addresses and port numbers as command-line arguments.

Because the script can override hardcoded values, defenders cannot determine the actual C&C destination solely by analyzing the binary.

Code snippet showing a shuffled array function using IIFE (Source: trendmicro)
Code snippet showing a shuffled array function using IIFE (Source: trendmicro)

Despite these advanced evasion tactics, the malware leaves behind critical forensic artifacts. Defenders analyzing the Cython-generated binaries can still extract:

  • Build environment paths: Object file paths revealing user directories (e.g., py_module_work/build/).
  • Initialization functions: Export tables containing module names like PyInit_mod.
  • Compressed string constants: Zlib-compressed string tables hidden in binary sections that reveal XOR-encoded IP addresses.

Because the core deobfuscation logic mirrors older versions of InvisibleFerret, security teams can reverse-engineer Base64-encoded strings and Zlib-compressed data to extract the underlying Python payloads.

Code snippet showing the split-and-swap technique (Source: trendmicro)
Code snippet showing the split-and-swap technique (Source: trendmicro)

According to Trendmicro research, a JavaScript-based malware that has evolved into a highly complex, multi-stage threat.

Initially just a simple downloader and information stealer, BeaverTail now mirrors many of InvisibleFerret’s capabilities. It deploys heavy obfuscation to hide its activities.

Malware ComponentPrimary FunctionTarget Environment
BeaverTail (zjs)Steals crypto wallets, seed phrases, private keys, and developer credentials.Cross-platform browsers
InvisibleFerret (pad)Acts as a backdoor; logs keystrokes, monitors clipboards, and gathers geolocation data.Windows / macOS
InvisibleFerret (mc)Downgrades Chrome and installs trojanized crypto wallet extensions.macOS

BeaverTail now drops specialized InvisibleFerret modules to execute targeted attacks: the most alarming module, mc. It executes a direct assault on modern browser security.

To ensure its trojanized extensions function properly, this module actively downgrades the Google Chrome browser on macOS.

By reverting Chrome to an older version that supports the Manifest V2 framework, the attackers bypass new security restrictions.

This deep browser access allows them to manipulate and drain crypto wallets like MetaMask, Coinbase Wallet, and Phantom.

Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google.

Varshini
Varshini
Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies..

Trending News

Related Stories