cop3-rc@5.0.6
Malicious code in cop3-rc (npm)
Analysis
This package (cop3-rc@5.0.6, main entry c-rc-3-cop3.js) ships three heavily obfuscated CommonJS bundles — c-rc-3-cop3.js (30 KB), cop3-rc-3-1.js (95 KB) and cp-3-rc-2.js (343 KB) — despite being described as a simple didactic testnet blockchain helper. Every shipped module is javascript-obfuscator output: all identifiers and method names are written as \x-hex escapes (e.g. d['\x77\x70\x54'+'\x46\x78']), string literals are held in a base64-alphabet array decoded by an embedded RC4-style routine plus decodeURIComponent string-table unpacking, and control flow is flattened through rotating arrays inside a top-level while(!![]){...} dispatch loop. All three files assemble and execute code at runtime with Function(...)() built from decoded string-array fragments (at cop3-rc-3-1.js byte 93470, c-rc-3-cop3.js byte 18004 and inside cp-3-rc-2.js), so no library API is implemented in readable form. The package declares no install or lifecycle hooks, so nothing executes merely from installing it; the obfuscated payload runs when the module is required. Every string in the JavaScript is encoded, and no plaintext C2 host, IP, URL or path could be read out of the bundles; the only literal hosts anywhere in the tarball are four free-hosting subdomains in README.md — faucet-cop3-rc[.]hstn[.]me, cop3-rc-blockchain[.]hstn[.]me, wallet-cop3-rc[.]hstn[.]me and simulador-pagos-cop3-rc[.]hstn[.]me — presented as COP3 testnet faucet, chain, wallet and payment-simulator endpoints. Treat any host contacted by this module as untrusted.
- analyzed by
- Leitwacht
- first seen
- Nov 25, 2026, 11:36 PM
- analyzed
- Nov 25, 2026, 11:38 PM
Related advisories
- cop3-rc@6.0.0 same package
- cop3-rc@5.0.5 same package
- cop3-rc@5.0.4 same package
- cop3-rc@5.0.1 same package
- kampodra@0.8.16
- tello-huila-colombia-latinoamerica@3.0.0
- react-native-shbib-tools@2.0.73
- catwrestlinghuman@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.