AI Security AI安全 10h ago Updated 5h ago 更新于 5小时前 43

18 Malicious npm Packages Deliver Cross-Platform RAT to Alibaba Tool Users 18个恶意npm包向阿里巴巴工具用户投放跨平台远程访问木马

18 malicious npm packages were discovered delivering a cross-platform remote access trojan (RAT) targeting users of Alibaba Group developer tools in a sophisticated supply chain attack The attack uses a multi-layered dependency tree with top-layer lure packages impersonating private @ali-scoped packages, a middle-layer bridge ("smart-config-manager"), and low-layer packages containing the actual malicious loader logic The RAT leverages Node.js's vm module for OS-specific payload execution, with 攻击者通过18个恶意npm包发起针对阿里巴巴开发者工具的供应链攻击,投递跨平台远程访问木马(RAT) 攻击采用多层依赖树结构:顶层伪装包(如lib-mtop)诱骗安装,中间层桥接,底层执行恶意加载器 恶意载荷利用vm模块实现跨平台执行,针对Windows/Linux/macOS分别采取不同持久化策略 最终后门具备命令执行、文件上传下载、主机侦察、横向移动能力,并注入钉钉/悟空等协作应用 攻击目标明确指向使用阿里巴巴工具链的中国开发者,疑似以工业间谍为目的

62
Hot 热度
65
Quality 质量
55
Impact 影响力

Analysis 深度分析

TL;DR

  • 18 malicious npm packages were discovered delivering a cross-platform remote access trojan (RAT) targeting users of Alibaba Group developer tools in a sophisticated supply chain attack
  • The attack uses a multi-layered dependency tree with top-layer lure packages impersonating private @ali-scoped packages, a middle-layer bridge ("smart-config-manager"), and low-layer packages containing the actual malicious loader logic
  • The RAT leverages Node.js's vm module for OS-specific payload execution, with persistence mechanisms injected into enterprise apps like DingTalk, Wukong, and Qoder
  • The campaign appears designed for industrial espionage against Chinese-speaking developers, with secondary malware hosted on a domain masquerading as Alibaba infrastructure
  • This incident coincides with a separate attack on the mrmustard quantum computing library, highlighting a broader trend of targeted supply chain compromises

Why It Matters

This attack demonstrates how supply chain compromises can be weaponized for targeted industrial espionage by exploiting the trust developers place in package names that mirror private enterprise tools. For AI practitioners and security professionals, it underscores the critical importance of monitoring dependency trees, validating package provenance, and understanding that even seemingly innocuous utility packages can serve as vectors for sophisticated multi-stage malware.

Technical Details

  • Attack Architecture: The campaign uses a three-layer dependency structure—top-layer packages (e.g., lib-mtop, aone-kit) impersonate private @ali-scoped packages as decoys; "smart-config-manager" acts as a middle-layer bridge; low-layer packages contain the actual loader logic that fetches remote payloads via curl
  • Payload Execution: The rule engine uses Node.js's vm module to execute OS-specific payloads—on Windows it terminates and replaces Alilang enterprise security/VPN apps; on Linux it downloads binaries to /tmp and runs them as detached processes; on macOS it injects code into ~/.zshrc and creates Launch Agents
  • Persistence & Lateral Movement: The final backdoor supports command execution, file upload/download, host reconnaissance, and lateral movement, with persistence achieved by injecting malicious code into DingTalk, Wukong, and Qoder enterprise collaboration platforms
  • Infrastructure Evasion: Secondary malware is fetched from "aone-cli-next.oss-cn-beijing.aliyuncs.com," a domain designed to blend in with legitimate Alibaba cloud storage infrastructure
  • Related Incident: A separate attack poisoned mrmustard (0.7.4), a photonic quantum computing library, by breaching the maintainer's GitHub account through CI runner probing and secret exfiltration, deploying an information stealer targeting SSH keys, AWS credentials, and Kubernetes configs

Industry Insight

  • Organizations relying on npm packages should implement strict dependency auditing and verify package provenance, especially for packages with names mimicking internal or private enterprise tools
  • Security teams should monitor for unusual network connections from development environments and validate that packages are not fetching remote code during installation or import
  • The trend of targeting specific enterprise ecosystems (Alibaba, quantum computing research) suggests threat actors are increasingly pursuing high-value industrial espionage rather than broad credential harvesting, requiring more targeted defensive strategies

TL;DR

  • 攻击者通过18个恶意npm包发起针对阿里巴巴开发者工具的供应链攻击,投递跨平台远程访问木马(RAT)
  • 攻击采用多层依赖树结构:顶层伪装包(如lib-mtop)诱骗安装,中间层桥接,底层执行恶意加载器
  • 恶意载荷利用vm模块实现跨平台执行,针对Windows/Linux/macOS分别采取不同持久化策略
  • 最终后门具备命令执行、文件上传下载、主机侦察、横向移动能力,并注入钉钉/悟空等协作应用
  • 攻击目标明确指向使用阿里巴巴工具链的中国开发者,疑似以工业间谍为目的

为什么值得看

本文揭示了一起高度针对性的npm供应链攻击案例,展示了攻击者如何利用包名混淆、依赖树分层和跨平台载荷投递实现持久化渗透。对AI从业者而言,这警示了开源生态中依赖链安全的脆弱性,尤其是当攻击者专门针对特定企业工具链时,可能窃取敏感代码或研究成果。

技术解析

  • 包名混淆与依赖树分层:攻击者发布18个npm包,其中顶层包(如lib-mtop、aone-kit)与阿里巴巴内部@ali作用域包同名,作为诱饵触发安装;中间层smart-config-manager桥接顶层与底层恶意包;底层包(如cloud-config-fetcher)嵌入实际加载器逻辑。
  • 跨平台载荷执行机制:恶意加载器通过curl获取远程JavaScript载荷,利用Node.js的vm模块实现规则引擎,根据受害者操作系统分支执行:Windows下终止Alilang安全应用并替换核心代码;Linux下载二进制到/tmp后内存执行并删除文件;macOS修改.zshrc并设置Launch Agent。
  • 持久化与横向移动:最终后门具备命令执行、文件传输、主机侦察能力,并注入钉钉、悟空、Qoder等企业协作应用实现持久化;攻击者还通过GitHub仓库获取规则引擎配置,从伪装成阿里巴巴的OSS域名下载第二阶段恶意软件。
  • 攻击溯源线索:源码中包含中文注释,GitHub提交时间戳显示UTC+08:00偏移,表明攻击者可能为中文环境威胁行为体;维护者账户"ch4ce"已失效,但关联包仍通过依赖链传播恶意代码。

行业启示

  • 供应链安全需分层防御:企业应建立npm包依赖审计机制,特别关注与内部私有包同名的公开包,避免仅凭包名信任依赖;建议采用SBOM(软件物料清单)跟踪传递性依赖风险。
  • 针对特定工具链的定向攻击上升:攻击者专门针对阿里巴巴开发者工具,说明供应链攻击正从泛化转向精准化,AI从业者需警惕使用企业级开源工具时的潜在间谍风险,定期轮换凭证并审计系统。
  • 跨平台恶意载荷成为新常态:本次攻击同时覆盖Windows/Linux/macOS,并利用vm模块实现动态执行,表明恶意软件正适应多平台开发环境;安全团队需加强终端检测响应(EDR)对异常进程行为(如.zshrc修改、Launch Agent创建)的监控。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Open Source 开源 Research 科学研究 Programming 编程