安全
Shai-Hulud蠕虫通过Tensorlake漏洞入侵AI基础设施
凭证窃取恶意软件在npm发布后数分钟内被检测到,但影响范围尚不明确
这款窃取凭证的Shai-Hulud蠕虫再次作案,此次它潜入了一个流行的AI智能体平台SDK。
多名安全研究人员周四报告称,他们检测到了Tensorlake SDK版本0.5.144的最新npm包中存在Shai-Hulud感染。该包的周下载量约为12,000次,其GitHub仓库拥有超过一千个星标,表明它相当受欢迎,且任何安装了恶意版本的人都可能面临严重风险。
对恶意发布的分析表明,它与研究人员称为ChainDrop的Shai-Hulud变体共享代码和技术,该变体曾在8月用于入侵npm依赖项,包括keyv和flat-cache。与其他Shai-Hulud变体一样,该蠕虫旨在窃取凭证并自我传播。
根据供应链安全公司SafeDep的说法,这个特定版本旨在窃取一切,从加密钱包到浏览器密码、GitHub Actions密钥、云凭证、服务账户令牌,以及它能获取的任何其他东西。它会外泄这些数据,并保持与C2基础设施的开放连接,以等待进一步指令。
更糟糕的是,这个Shai-Hulud变体会监控某些被盗的GitHub令牌,如果其中一个被撤销,在特定条件下会触发删除感染用户的主目录,使得清除工作变得棘手。Socket建议在被恢复访问密钥之前,从可信来源重建受感染的系统,而研究人员警告称,应在撤销受影响的凭证之前禁用恶意令牌监控器。
对于那些不熟悉的人,Tensorlake是一个用于运行隔离AI智能体和不受信任的AI生成代码的云原生平台。被感染的npm SDK用于创建和管理Tensorlake环境。Socket警告称,恶意SDK的安装脚本可以在开发人员的机器或构建服务器上执行,位于Tensorlake的沙箱保护之外,可能在任何AI生成的代码运行之前就危及主机。
“团队可能会在开发人员工作站、应用程序服务器或具有部署凭证和其他密钥访问权限的构建运行器上安装智能体生成代码时隔离该代码,”Socket指出。“在此安装期间执行的代码继承了安装进程的权限。”
这听起来很糟糕,但值得注意的是,恶意版本存在的时间并不长——根据安全公司Socket的说法,受感染的版本于当天早些时候(UTC时间)发布到npm,并在发布后11分钟被其引擎标记。npm已移除该版本,Tensorlake也已撤回该软件包,并将版本更新为0.5.145。如果您是Tensorlake用户,最好检查一下以确保您没有安装恶意版本。®
security
Shai-Hulud worm makes jump to AI infrastructure with Tensorlake compromise
Credential-stealing malware detected within minutes of npm release, but impact remains unknown
The credential-hijacking Shai-Hulud worm has struck again, this time burrowing its way into a popular AI agent platform SDK.
Multiple security researchers reported Thursday that they had detected Shai-Hulud infection in a recent release of the npm package for version 0.5.144 of Tensorlake’s SDK. That package has somewhere in the neighborhood of 12,000 downloads per week, while its GitHub repository has more than a thousand stars, suggesting it’s quite popular and that the infection could pose a serious risk to anyone who installed the malicious version.
Analysis of the malicious release suggests it shares code and techniques with the Shai-Hulud variant dubbed ChainDrop by researchers, which was used in August to compromise npm dependencies including keyv and flat-cache. Like other variants of Shai-Hulud, the worm is designed to steal credentials and self-propagate.
This particular version, according to supply chain security firm SafeDep, is designed to steal everything from crypto wallets to browser passwords, GitHub Actions secrets, cloud credentials, service-account tokens, and whatever else it can get its hands on. It exfiltrates that data and keeps an open line to its C2 infrastructure to await further instructions.
To make matters worse, this Shai-Hulud variant monitors certain stolen GitHub tokens and, if one is revoked, can trigger the deletion of the infected user's home directory under specific conditions, making removal tricky. Socket recommends rebuilding compromised systems from a trusted source before restoring access to secrets, while researchers warn that the malicious token monitor should be disabled before revoking affected credentials.
Tensorlake, for those unfamiliar, is a cloud-native platform for running isolated AI agents and untrusted AI-authored code. The infected npm SDK is used to create and manage Tensorlake environments. Socket warns that the malicious SDK's installation script can execute on the developer's machine or build server, outside Tensorlake's sandbox protections, potentially compromising the host before any AI-generated code is run.
“Teams may isolate an agent’s generated code while installing its SDK on a developer workstation, application server, or build runner with access to deployment credentials and other secrets,” Socket noted. “Code executed during that installation inherits the permissions of the installing process.”
That may sound bad, but it’s worth noting the malicious version wasn’t up for long - according to security firm Socket, the infected version was published to npm earlier this morning, UTC, and was flagged by its engine 11 minutes after publication. Npm removed the version, and Tensorlake has pulled the package as well, updating the version to 0.5.145. Best check to be sure you haven't installed the malicious version if you're a Tensorlake user. ®
首次收录 · 2026-10-09 · 8.69 分