18 Malicious npm Packages Target Alibaba Tool Users With Cross-Platform RAT

· Original article ↗

Summary

Researchers describe malicious npm packages impersonating Alibaba private packages to deliver a cross-platform RAT to developers. The article also reports a poisoned mrmustard release capable of stealing developer and cloud credentials.

Key points

  • Malicious npm packages impersonated private Alibaba packages and used a layered dependency tree to deliver a payload; the packages’ maintainer and the campaign operator are unknown.
  • The RAT’s actions vary by OS: it replaces an Alilang application’s core code on Windows, runs a downloaded binary on Linux, and adds a background script and Launch Agent on macOS.
  • The backdoor supports command execution, file transfers, host reconnaissance, payload staging, lateral movement, and persistence in collaboration applications.
  • Researchers said the campaign may target Chinese-speaking developers and may support industrial espionage; the number of downloads was not significant, but its impact is unclear.
  • Users who installed the listed packages are advised to assume compromise, rotate sensitive credentials from a clean machine, and audit developer systems.
  • A separate poisoned mrmustard 0.7.4 release was reported to steal SSH keys, AWS credentials, and Kubernetes configurations; researchers said it also collected research and HPC environment data.

Article Details

Attack Vectors
  • Malicious npm packages impersonated Alibaba private packages and used layered dependencies to deliver a cross-platform RAT to developer environments.
  • A loader fetched and executed remote JavaScript; a rule engine selected OS-specific payload behavior.
  • On Windows, the payload terminated Alilang enterprise security, VPN, and office applications and replaced core code with a trojanized version.
  • On Linux, it ran a downloaded binary as a detached process and deleted the file after loading it into memory.
  • On macOS, it modified ~/.zshrc and set up a Launch Agent.
  • A separate poisoned mrmustard 0.7.4 release ran an information stealer on package import, harvesting SSH keys, AWS credentials, and Kubernetes configurations and exfiltrating them to an attacker server.
Defensive Notes
  • Users who installed any of the listed malicious packages should assume compromise.
  • Rotate sensitive credentials from a clean machine.
  • Audit developer systems for signs of suspicious activity.

Indicators of compromise

TypeIndicatorContext
DOMAINaone-cli-next[.]oss-cn-beijing[.]aliyuncs[.]comPayload-delivery domain masquerading as Alibaba infrastructure.
DOMAINmetrics[.]femboy[.]energyAttacker server identified as the destination for exfiltrated data from the poisoned mrmustard release.

MITRE ATT&CK

People

Vendors

Products

Industries

Related Articles