Tensorlake npm v0.5.144 Spreads Shai-Hulud Worm Stealing AI Credentials

Tensorlake npm v0.5.144 Spreads Shai-Hulud Worm Stealing AI Credentials
Key Takeaways

  • Version 0.5.144 of the tensorlake npm package was compromised on October 8, 2026, delivering a Shai-Hulud worm that targeted Anthropic Claude configs, Kubernetes secrets and AWS credentials before being pulled from the registry.
  • The worm installs a gh-token-monitor service that triggers full home-directory deletion if stolen GitHub tokens are revoked, meaning the standard incident response order (revoke first, clean up second) will destroy data on infected hosts.
  • The worm propagates by generating valid Sigstore provenance attestations and republishing compromised packages under the victim’s own identity, meaning a single compromised maintainer account can seed dozens of downstream packages before detection.

Any machine that installed tensorlake@0.5.144 on October 8, 2026 should be treated as fully compromised, and the normal incident response order will make things worse. The malicious version was live for only a few hours, but the Shai-Hulud worm it carried includes a dead-man’s switch that wipes the host the moment you revoke the stolen tokens.

What Got Targeted

The Shai-Hulud worm first appeared in August 2026 as part of the broader ChainDrop campaign, which hit hundreds of npm packages with a lighter “Mini Shai-Hulud” variant. The tensorlake version is more focused. It goes after the credential stores that AI developers actually use: configuration files for Anthropic Claude, Cursor, Kiro, Windsurf and Zed, alongside CI environment variables, Kubernetes cluster secrets and HashiCorp Vault instances. The targeting is deliberate, not a generic credential sweep, but a map of the tools sitting open on a typical AI developer’s machine.

How the Infection Runs

Installing version 0.5.144 triggers a preinstall hook that launches a heavily obfuscated JavaScript loader at package/lib/setup.mjs. That loader executes the main payload, package/lib/Math_Symbol.js, via the Bun runtime. From there the worm searches local files, CI environments, Kubernetes clusters and Vault instances for anything credential-shaped, then exfiltrates what it finds. Strings in the malware also reference a “fake Copilot/Dependabot workflow,” suggesting it attempts to plant malicious GitHub Actions workflows inside the victim’s pipelines for longer-term access.

Self-Propagation via Sigstore

After stealing the victim’s npm publishing credentials, the worm enumerates other packages that identity owns. It then generates cryptographically valid Sigstore provenance attestations for those packages and republishes compromised versions under the victim’s name. From the registry’s perspective, the packages look legitimate: signed, attested, published by a known maintainer. That trust chain is exactly what the attack exploits, and it means a single compromised maintainer account can seed dozens of downstream packages before anyone notices. The worm also establishes persistence on infected hosts and supports remotely supplied code execution, giving attackers ongoing access well after the initial infection.

The Dead-Man’s Switch

The most operationally dangerous feature is the background service the worm installs: gh-token-monitor. It watches whether the stolen GitHub tokens remain valid. If it detects revocation, the natural first step in most incident response playbooks, it fires a destructive routine. On Linux that means rm -rf ~/; on Windows, Remove-Item $env:USERPROFILE -Recurse -Force. The correct sequence is to isolate the host, terminate gh-token-monitor and restore from backup before touching any tokens. Revoke first and you lose the host.

A Commoditised Attack on AI Infrastructure

The tensorlake compromise is a direct consequence of how accessible this attack tooling has become. The target (AI developer credentials) is high-value. The entry point (an open-source SDK with a modest but real install base) is exactly the soft spot supply chain attacks are built for. The Sigstore propagation mechanism is the sharpest part: it turns the registry’s own trust infrastructure against downstream consumers, and the pattern of exploiting developer toolchain trust is showing up with increasing regularity across the npm ecosystem.

What to Do Now

Socket and StepSecurity both advise treating any machine that installed tensorlake@0.5.144 as fully compromised. Isolate the host from the network first, then kill the gh-token-monitor service. Only after that should you begin rotating credentials: npm tokens, GitHub tokens, AWS IAM credentials, Kubernetes secrets, HashiCorp Vault tokens and SSH keys. Audit any project that lists tensorlake as a dependency and roll back to 0.5.143 or forward to the patched 0.5.145. For teams not yet affected, the practical prevention is straightforward: add a registry integrity checker to your build pipeline so obfuscated preinstall hooks get flagged before they execute, and enforce hardware MFA on every npm maintainer account in your organisation.

Riley Cross
Riley Cross

Riley covers AI agents, workflow automation, and the tools building the autonomous future of work. With a focus on practical deployment, Riley helps builders and operators understand which agentic frameworks and platforms are actually worth using.

📰 Journalists welcome — cite Auton AI News with attribution. Press & Media → | press@autonainews.com