cop3-rc@6.0.0
Malicious code in cop3-rc (npm)
Analysis
This package ships three heavily obfuscated CommonJS bundles as its entire executable surface: c-rc-3-cop3.js (package "main", ~30 KB), cop3-rc-3-1.js (~95 KB) and cp-3-rc-2.js (~343 KB). All three are javascript-obfuscator-shaped output — hex/unicode-escaped string tables, an embedded base64 decoding routine, and generated numeric alias dispatchers (a0f/a5/a9/ad/ag) — so no string, import or destination in them is readable in the shipped bytes. c-rc-3-cop3.js constructs and runs code with the Function constructor from a decoder-resolved source string (`f=Function(a[...](...),');'))()`), which is why the module graph is also hidden: modules are pulled in through decoder-resolved paths (e.g. require(a0be(0x6b6, ...) + 'op3' + ...)) rather than literals. On startup the code loads a .env / process-environment configuration through a "dotenv" require that package.json never declares (package.json declares only mysql2), and cp-3-rc-2.js carries a bundled MySQL client that connects on TCP port 3306 and exports initDB/run/get/all/transaction/testConnection helpers, with table/column names such as "_deposit" kept in the encoded string table. package.json has no install/preinstall/postinstall hook, and the JavaScript contains no HTTP, HTTPS or webhook URL of its own — the only URLs in the tarball are documentation links in README.md — so the static network destination is the MySQL server whose address is resolved at runtime through the decoder. A "didactic Colombian cryptocurrency network for Termux" needs none of that: the concealment, the hidden module resolution and the environment/.env harvesting are the observable behaviour.
- analyzed by
- Leitwacht
- first seen
- Nov 28, 2026, 08:51 PM
- analyzed
- Nov 28, 2026, 08:53 PM
Related advisories
- cop3-rc@5.0.6 same package
- cop3-rc@5.0.5 same package
- cop3-rc@5.0.4 same package
- cop3-rc@5.0.1 same package
- @fadeldev/baileys-mod@8.0.3
- fast-baileys@2.0.8
- @fadeldev/baileys-mod@8.0.5
- fast-baileys@2.0.9
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.