npm

The Tensorlake npm Supply Chain Attack

Updated 19 Oct 2026 · Incident date 8 Oct 2026

tensorlake 0.5.144 on npm carried a credential-stealing worm that ran during install, found by Socket and Aikido on 8 October 2026.

Version 0.5.144 of the tensorlake npm package, the JavaScript SDK for Tensorlake, carried a credential-stealing worm. It runs during install, so a project that never imports the SDK still runs the malware.

What happened

A new tensorlake release went to npm with a hidden install hook.

  • Aikido reports that an actor made verified commits as a maintainer and added the malicious code in commit 41b38f0 on 7 October 2026.
  • The preinstall hook runs node lib/setup.mjs, an obfuscated loader.
  • The loader drops the Bun runtime and uses it to run lib/Math_Symbol.js, a scrambled Shai-Hulud worm.
  • The worm collects npm, GitHub, AWS, Vault, Kubernetes and SSH credentials, .env files, crypto wallets and AI assistant configs.
  • It republishes poisoned versions of the victim's own packages.

The release went to npm on 8 October 2026 at 01:12:07 UTC. Socket flagged it about 11 minutes later.

Affected versions

  • tensorlake 0.5.144: malicious. Published 8 October 2026 at 01:12:07 UTC.
  • npm no longer serves 0.5.144. The registry shows a 0.0.1-security placeholder.
  • The six tensorlake-native-* packages at 0.5.144 came from the same release run. Endor Labs found no payload in them but says to treat them as affected.
  • Endor Labs names 0.5.143 and earlier as clean.

Indicators of compromise

  • Package: tensorlake@0.5.144.
  • lib/setup.mjs SHA-256: 25a0735d0db7dc40e5d45ce42d9c106067e6a66e184d967cfecfab17c3bcb5ef.
  • lib/Math_Symbol.js SHA-256: b50a00900399ba99fb6ce1fc151519cb99d44320ef2a631f2237e1aea0ad6fec.
  • Server domain: iseekaigogo[.]com.
  • Ethereum address used to look up the server: 0xb614155Fd88114d40549b259457Bcf921Df091B9.
  • Ethereum wallet that updated the contract: 0x779f83aE56309682beDb04816c19d358c4B21040.
  • First malicious commit: e90c47bbb2.
  • Linux persistence: systemd user service gh-token-monitor.service and folder ~/.config/gh-token-monitor/.
  • File on disk: ~/.local/bin/gh-token-monitor.sh.
  • Files written into repos: .claude/settings.json and .vscode/tasks.json.
  • GitHub commit author: claude@users.noreply.github.com.
  • GitHub repo description: "Shai-Hulud: Here We Go Again".
  • macOS persistence: ~/Library/LaunchAgents/com.user.gh-token-monitor.plist.
  • Windows persistence: ONLOGON scheduled task that runs monitor.ps1.
  • String in the payload: IfYouRevokeThisTokenItWillWipeTheComputerOfTheOwner.
  • A process that polls api.github.com/user with a GitHub token (Socket).

How to check

List the installed version in each project and search the lockfiles. These commands only read files.

npm ls tensorlake --all
grep -rn --include=package-lock.json -A2 '"node_modules/tensorlake"' .

If a copy is in node_modules, compare its loader hash with the value above.

shasum -a 256 node_modules/tensorlake/lib/setup.mjs

What to do now

  1. Block tensorlake@0.5.144 and pin your projects to a clean version.
  2. Isolate any machine or CI runner that installed 0.5.144 with install scripts on. Removing the package does not remove the implant.
  3. Stop and delete the token monitor before you revoke any GitHub token. Socket and Aikido both tie token revocation to a wipe of the host.
  4. Rotate npm, GitHub, cloud, Vault, Kubernetes and SSH credentials from a clean machine. Audit your npm and GitHub accounts for unexpected publishes and new workflows.

What Vigilance would show

These examples show an install hold and the corresponding owner report.

Example install message

Vigilance blocked `tensorlake` 0.5.144. This version is too new or changed in a way Vigilance must check first.

Example owner report

Bad update

tensorlake 0.5.144

An AI company's software kit gained the ability to steal passwords and access keys during install, then spread itself through the victim's own packages.

See what to do now.

No security team? See who reads the alert.

Frequently asked questions

Does the malware run if I never import the SDK?

Yes. The preinstall hook runs during npm install, where install scripts are allowed.

Is the tensorlake Python package affected?

Aikido reports no sign that the actor published to PyPI or Cargo.

Why stop the monitor before I revoke the token?

Socket reports that the monitor runs an attacker handler when the token is revoked, and that this can wipe the home directory.

Sources

  1. socket.dev/blog/tensorlake-compromise
  2. aikido.dev/blog/tensorlake-npm-package-compromised
  3. endorlabs.com/learn/tensorlake-npm-package-compromised-by-shai-hulud-in-latest-software-supply-chain-attack
  4. stepsecurity.io/blog/tensorlake-npm-compromised-hostage-token-worm
  5. registry.npmjs.org/tensorlake

Send this page to the person who looks after AI at your company.

Email it

More supply chain attacks

All 179 attacks in the library · npm supply chain attacks · How to prevent supply chain attacks

Check the next update before you install it

Vigilance compares the version you trust with the new one. It names the one file that gained a power the old version did not have.

Start the free 14-day trialBrowse the attack library