cop3-rc@5.0.0
Malicious code in cop3-rc (npm)
Analysis
cop3-rc@5.0.0 presents itself as a didactic Colombian crypto-network library and ships three JavaScript files — c-rc-3-cop3.js, cop3-rc-3-1.js and cp-3-rc-2.js — that are JavaScript-obfuscator output: an encoded string table of hex-escaped entries resolving to encrypted blobs (e.g. "W53cS1SGW41PWPZdI8o+WRNcPgJdH30"), control-flow flattening, and a runtime decoder built with new Function(). Host names, URLs and SQL strings live inside that encoded table. The public API is built around wallet secrets: createAccount() returns {privateAddress, privateKey}, generateTemporaryPublicAddress, deactivateTemporaryPublicAddress, transfer and getBalance each take privateAddress and privateKey arguments, and the README tells users to paste a GASFEE_PRIVATEKEY into the entry file. Inside the bundle the code requires mysql2 and dotenv and assembles the MySQL connection settings from the encoded string table, so key-bearing account and transaction records are written to a remote database defined only inside the obfuscated data. There is no child_process use and no install or postinstall hook; the plaintext URL published with the package is the faucet at hxxp://faucet-cop3-rc[.]hstn[.]me/.
- analyzed by
- Leitwacht
- first seen
- Nov 23, 2026, 12:22 AM
- analyzed
- Nov 23, 2026, 12:27 AM
Related advisories
- cop3-rc@5.0.4 same package
- cop3-rc@5.0.1 same package
- fable-csp-poc@1.0.0
- env-helper-friend@0.2.0
- node-bs58.js@3.0.0
- @yuanjielab/cli@0.10.2
- kaspacore-lib@1.1.1
- character-ai-sdk@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.