Shai-Hulud Just Infected an AI Agent Platform's npm Package — What Self-Hosted n8n Builders Must Do Now
On October 8, 2026, the npm package tensorlake — the TypeScript SDK for Tensorlake's AI agent infrastructure — was compromised by a new Shai-Hulud worm variant. Version 0.5.144 shipped a preinstall hook that stole npm tokens, GitHub tokens, AWS keys, SSH keys, .env files, crypto wallets, and browser passwords from every machine that installed it. The version was pulled within minutes, but the…
On October 8, 2026, the npm package tensorlake, a TypeScript SDK for an AI agent infrastructure, became compromised by a new Shai-Hulud worm variant. This malicious version, 0.5.144, was introduced by a verified commit made under the identity of a maintainer within 20 hours of the legitimate commit. The package, which has over 12,000 weekly downloads, contained a preinstall hook that stealthily stole critical credentials like npm tokens, GitHub tokens, AWS keys, SSH keys, .env files, crypto wallet information, and browser passwords.
Once installed, the malware executed its payload using an obfuscated loader, stealing credentials from local files, CI environments, Kubernetes configurations, and Vault sources before dropping a binary to extract browser-stored credentials. The malware established persistence on the infected host and opened a channel for remotely supplied code execution, targeting not only API keys but also credentials for various services and even monitoring specific GitHub tokens for malicious purposes.
For self-hosted n8n builders, it's crucial to audit installed packages, disable default npm install scripts, and rotate compromised credentials immediately.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to