cop3-rc@5.0.5
Malicious code in cop3-rc (npm)
Analysis
cop3-rc ships a "COP3" blockchain/wallet library whose entire runtime — three JavaScript bundles, cp-3-rc-2.js (343 KB), cop3-rc-3-1.js (95 KB) and c-rc-3-cop3.js (30 KB, the package entry point) — is wrapped in a javascript-obfuscator build: a rotating string array encrypted with RC4, every method name written as hex escapes (486 escape-encoded runs in c-rc-3-cop3.js), a per-file numeric shuffle guard, and program code assembled at runtime with Function(decoder_output)(). Because all literals are encrypted in the string array, no URL, host, IP or command string is visible in the readable bytes. The package requires only 5 files (package.json, README plus the three bundles) with no lifecycle hooks, declares dotenv and mysql2 dependencies, and points users at hstn[.]me-hosted service endpoints for a "faucet", "blockchain" and "custodial wallet". The documented API is a private-key handling surface: createAccount() returns {privateAddress, privateKey}, and generateTemporaryPublicAddress(privateAddress, privateKey), deactivateTemporaryPublicAddress(privateAddress, privateKey, ...) and getBalance(privateAddress, privateKey, symbol, chainId) all take an installer-supplied wallet private key, which is then passed into the obfuscated, unreviewable bundle. No network IOC could be extracted from the shipped code; the C2 / exfiltration destination is derived at runtime by the encrypted string decoder and is not present as plaintext.
- analyzed by
- Leitwacht
- first seen
- Nov 25, 2026, 10:06 PM
- analyzed
- Nov 25, 2026, 10:08 PM
Related advisories
- cop3-rc@6.0.0 same package
- cop3-rc@5.0.6 same package
- cop3-rc@5.0.4 same package
- cop3-rc@5.0.1 same package
- abir-fca@0.0.25
- cop3-rc@5.0.0 same package
- fable-csp-poc@1.0.0
- env-helper-friend@0.2.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.