Your npm install Just Shipped Malware: The October 2026 Supply Chain Attacks
On October 8, 2026, attackers published a poisoned tensorlake release carrying the Shai-Hulud worm, and researchers detailed MALFEX: 8 malicious npm packages with 40,767 downloads. What happened, what the malware steals, and the 5 checks to run before every install.
Amir Ali Liaqat · Founder & CEO, DesignsToDeploy

On October 8, 2026, attackers published a poisoned release of the tensorlake npm package, version 0.5.144. It carried a new variant of the Shai-Hulud supply-chain worm. Investigators traced the initial intrusion to the project's own repository: a day earlier, someone pushed verified commits under a maintainer identity, and the malicious package went live roughly 20 hours later. Tensorlake is a serverless sandbox platform for AI agents with over 100,000 lifetime installs. That trust is exactly what the attackers weaponized.
The part that should worry every team: the malware activated through a preinstall lifecycle hook. It ran the moment the package was installed, before any prompt or warning could appear. In the reported cases it downloaded the Bun runtime and executed an obfuscated second-stage payload. Your developer typed npm install. The package did the rest.
One Install, Full Access
According to the published research, the payload went straight for the credentials that run modern software teams: npm publishing tokens, GitHub credentials, SSH keys, cloud keys, CI/CD secrets, environment variables, Kubernetes configs, Terraform files, and Docker registry credentials. It also targeted 14 crypto browser extensions, going after IndexedDB and LevelDB wallet data, and downloaded a browser-data extraction utility from its command-and-control infrastructure.
Two details make this worse than an ordinary trojan. First, because it steals npm publishing tokens, the worm is self-replicating: a compromised developer's tokens can be used to publish poisoned versions of their own packages, turning every victim into a distributor. Second, researchers report the payload carries a dead-man's switch that can wipe infected systems if its embedded GitHub token is revoked. The report describes an earlier August Shai-Hulud campaign that reportedly affected 444 packages across 1,381 versions. This is a recurring playbook, not a one-off.
The Other Front: MALFEX
The same week, researchers detailed a second, separate campaign called MALFEX: 8 malicious npm packages (function-flag, function-color, cdn-img-fetch, img-to-native, native-runner, tlxbnhd, tldriver, mxdriver), with 4 additional benign packages serving as cover. The malicious set recorded 40,767 registry downloads by October 1, 2026, with more than 3,000 arriving in the final week. Three of the packages were still installable when researchers published: function-flag, function-color, and cdn-img-fetch.
MALFEX used three independent delivery paths. One dropped a Windows executable disguised as a PNG image at install time, unpacking the Overlord remote access trojan, an open-source Go-based backdoor, and injecting it into a system process. A second chain ran at package load time, decrypted a downloader hidden inside an image file, and installed movinlike, a Node.js credential stealer that targets Discord tokens, browser cookies and saved logins, Telegram session files, and cryptocurrency wallets, exfiltrating everything to a Discord webhook. The third hid its downloader inside an ASCII-art function called during postinstall. Persistence was established through a scheduled task running every five minutes.
5 Checks Before Every Install
Nobody is suggesting teams abandon npm. The ecosystem runs on it. The answer is discipline at the install step, the same step the attackers target. These are the five checks we recommend, and the ones we run on every client project we maintain:
1. Pin versions and commit lockfiles. Exact versions in package.json, and package-lock.json always committed. A floating version is an open door. 2. Audit on every pull request. Run npm audit behind a CI gate. But remember the MALFEX lesson: advisory coverage is incomplete, and fresh malware has no advisory yet, so auditing is necessary but not sufficient. 3. Use 2FA and rotate tokens. Publishing tokens should sit behind two-factor authentication, carry the least privilege they need, and rotate on a schedule. The tensorlake attack started with a compromised maintainer identity. 4. Diff every update. Two things in a package diff deserve your full attention: newly added dependencies and lifecycle scripts like preinstall and postinstall. Both were the entry points this week. 5. Sandbox your installs. Install and test dependencies in isolated CI runners before anything touches production systems or real credentials.
What This Means for Business Owners
If you run a website or a mobile app, your product is built on hundreds of dependencies you never wrote. This week's attacks show that the install pipeline is now a first-class attack surface, and the cost of a compromise is not just downtime: it is your cloud credentials, your repositories, and your customers' trust. Supply-chain auditing is no longer a nice-to-have for large enterprises. It is maintenance.
At DesignsToDeploy, dependency auditing is part of how we keep client projects shipping safely: pinned lockfiles, CI audit gates, token hygiene, and reviewed updates on every project we maintain. Ship code you can trust. We audit every dependency: www.designstodeploy.dev
1 / 6Keep reading

Top 5 Web Hosting Providers for 2026
The right hosting makes your website faster, safer, and more reliable. Here are five popular providers worth comparing in 2026 — plus what to look for before you buy.
Read article
AI Agents Now Write Half the Code: What the JetBrains 2026 Survey Means for Your Business
JetBrains surveyed 15,000+ professional developers and found 47% of code is now fully generated by AI agents. Here is what the agent-coding shift means for teams, tools, and your next project.
Read article
Vinext 1.0: Next.js Apps Can Now Run on Vite. What It Means for Your Team
Cloudflare shipped Vinext 1.0, a production-ready reimplementation of the Next.js API on Vite, freeing Next.js apps to deploy to Workers, Node, Vercel, Netlify, AWS, or Deno. What it supports, the honest fine print, and what we recommend.
Read article