nminer@3.0.0
Malicious code in nminer (npm)
Analysis
nminer is a RandomX (Monero) CPU-mining library for Node.js that mines to a wallet baked into the shipped code. The package declares no install or postinstall hook, but the exported NMiner class in index.js sets `pool = "stratum+tcp://pool[.]supportxmr[.]com:3333"` and `address = "49ofeDTjSQXJQDUaaFYZm4fF7zG7v1GN5LkJKLj1vkH5FXh2ipReU3SMkSB4ERTAeiiQpYragiKmS8VY5KmRXxqkSfNH73T"` as its field defaults, so any code path that instantiates it without supplying its own pool and wallet starts hashing to that built-in address. Hashing is performed by opaque prebuilt native addons shipped for four platforms (bin/nminer-linux-x64.node, bin/nminer-linux-arm64.node, bin/nminer-win32-x64.node, bin/nminer-win32-arm64.node) which make up the bulk of the tarball and have no source in the package. A `stealth` option randomises the first pool connection over 0-60000 ms, and its documented toggles disable JIT, huge pages and thread pinning for the stated purpose of hiding runtime behaviour from EDR and telemetry agents; a `throttle` option duty-cycles the mining threads, and src/js/fleet.js forks a supervised pool of worker processes to run many mining sessions in parallel. Stratum links are kept open with periodic keepalive messages. No credential, token, environment or file collection is present, and all network destinations are either this hardcoded pool or supplied by the caller. IOC: monero stratum endpoint pool[.]supportxmr[.]com:3333; payout wallet 49ofeDTjSQXJQDUaaFYZm4fF7zG7v1GN5LkJKLj1vkH5FXh2ipReU3SMkSB4ERTAeiiQpYragiKmS8VY5KmRXxqkSfNH73T.
- analyzed by
- Leitwacht
- first seen
- Nov 4, 2026, 09:35 PM
- analyzed
- Nov 5, 2026, 12:01 AM
- weekly installs
- 479
Related advisories
- moidevz@1.0.0
- shadxino@1.0.7
- character-ai-sdk@1.0.0
- hydration-vli-ui@1.0.0
- dim-hydration-ui@1.0.0
- @wizloft/harness-context@0.1.1-alpha.3
- tailwind-custom-templates@0.7.2
- bnpl-blocks-mobile-bnpl-faq@35.5.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.