Skip to main content

TensorLake npm SDK Compromised in ChainDrop Shai-Hulud Credential-Stealing Attack

0
Medium
Published: 10/08/2026 (10/08/2026, 07:08:15 UTC)
Source: AlienVault OTX General

Description

The TensorLake npm SDK version 0.5.144 was compromised in a supply chain attack involving ChainDrop/Shai-Hulud malware. The malicious package, downloaded approximately 12,000 times weekly, contains obfuscated code that steals credentials from various sources such as npm tokens, GitHub tokens, AWS credentials, HashiCorp Vault, Kubernetes configs, SSH keys, and AI development tools. It executes via a preinstall hook, establishes persistence through scheduled tasks, and supports remote code execution. The attack uses an Ethereum contract for command-and-control and includes a dead-man switch that triggers destructive actions if stolen GitHub tokens are revoked. The malware can self-propagate by republishing compromised versions to other npm packages linked to the victim's publishing identity, spreading across the npm ecosystem.

Affected software

Affected versions
=0.5.144

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/08/2026, 08:18:27 UTC

Technical Analysis

This campaign targets the TensorLake npm SDK version 0.5.144 by injecting obfuscated malicious code into the package. The payload activates during installation via a preinstall hook, harvesting a wide range of credentials including npm and GitHub tokens, AWS credentials, HashiCorp Vault secrets, Kubernetes configurations, SSH keys, and AI development tool credentials. Persistence is maintained through scheduled tasks, and the malware supports remote code execution. Command-and-control endpoints are resolved via an Ethereum smart contract, and a dead-man switch monitors stolen GitHub tokens to trigger destructive actions if tokens are revoked. The malware also propagates by republishing compromised package versions to other npm packages associated with the victim's publishing identity, effectively creating a worm that spreads through the npm ecosystem.

Potential Impact

The attack compromises developer credentials and secrets across multiple platforms and services, potentially allowing attackers to access and control affected cloud resources, repositories, and infrastructure. The persistence and remote code execution capabilities increase the risk of prolonged unauthorized access. The dead-man switch mechanism can cause destructive outcomes if stolen tokens are revoked, and the worm-like propagation can rapidly extend the compromise across the npm ecosystem, affecting multiple projects and developers.

Defensive Guidance

No official patch or remediation guidance is provided in the available data. Users should immediately stop using TensorLake npm SDK version 0.5.144 and audit their environments for compromised credentials. Rotate all potentially exposed tokens and keys, including npm, GitHub, AWS, HashiCorp Vault, Kubernetes, and SSH credentials. Monitor for suspicious scheduled tasks and unusual package republishing activity. Review and restrict publishing permissions in npm to prevent further propagation. Check the vendor advisory or official sources for updates and remediation instructions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Author
AlienVault
Tlp
white
References
["https://socket.dev/blog/tensorlake-compromise"]
Pulse Id
6ac7415f2754c1b2193c9737

Indicators of Compromise

Hash

ValueDescriptionCopy
hash25a0735d0db7dc40e5d45ce42d9c106067e6a66e184d967cfecfab17c3bcb5ef
—
hashb50a00900399ba99fb6ce1fc151519cb99d44320ef2a631f2237e1aea0ad6fec
—

Threat ID: 6ac74e5f2cdf04f656fcc26a

Added to database: 10/08/2026, 08:03:43 UTC

Last enriched: 10/08/2026, 08:18:27 UTC

Last updated: 10/08/2026, 18:48:07 UTC

Views: 20

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

External Links

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses