18 Malicious npm Packages Deliver Cross-Platform RAT to Alibaba Tool Users
Cybersecurity researchers have discovered a new set of malicious npm packages that target users of Alibaba developer tools with a cross-platform remote access trojan (RAT) as part of a sophisticated, targeted software supply chain attack targeting Chinese-speaking environ…
Intelligence analysis by Llama

A set of malicious npm packages has been discovered that target users of Alibaba developer tools with a cross-platform remote access trojan (RAT). The packages were designed to fetch a remote JavaScript payload and execute it, allowing the attackers to gain access to the victim's system.
Imagine you're a developer working on a project, and you install a package that seems harmless. But unbeknownst to you, that package contains a malicious script that can access your system and steal your data. This is what happened with the malicious npm packages that were discovered recently. The packages were designed to target users of Alibaba developer tools, and they contained a cross-platform remote access trojan (RAT) that allowed the attackers to gain access to the victim's system.
Analysis
A Sophisticated Software Supply Chain Attack
The discovery of the malicious npm packages highlights the importance of software supply chain security. The packages were designed to target users of Alibaba developer tools, which suggests that the attackers were specifically targeting Chinese-speaking developers. The use of a cross-platform remote access trojan (RAT) allows the attackers to gain access to the victim's system, which can be used for a variety of malicious purposes, including data theft and lateral movement.
The Attackers' Modus Operandi
The attackers used a sophisticated approach to deliver the malware. They created a set of packages that were designed to fetch a remote JavaScript payload and execute it. The payload was then used to download and execute a malicious binary, which was designed to persist on the victim's system. The attackers also used a rule engine to implement the final phase of the attack, which was designed to perform the payload download depending on the victim's operating system.
The Impact of the Attack
The impact of the attack is difficult to evaluate, given the targeted nature and lateral-spread capabilities of the final-stage payload. However, the presence of Chinese language comments in the source code, combined with the fact that GitHub commits are timestamped with the UTC+08:00 offset, suggests that it is possibly the work of a Chinese-speaking threat actor. The goal of the campaign seems to be industrial espionage, with the attackers targeting developers who are likely working in companies that are part of the Alibaba Group.
Conclusion
The discovery of the malicious npm packages highlights the importance of software supply chain security. Developers should be cautious when using untrusted packages in their development environments, and should regularly audit their systems for signs of suspicious activity.
Key points
- A set of malicious npm packages has been discovered that target users of Alibaba developer tools with a cross-platform remote access trojan (RAT).
- The packages were designed to fetch a remote JavaScript payload and execute it, allowing the attackers to gain access to the victim's system.
- The attackers used a sophisticated approach to deliver the malware, including a rule engine to implement the final phase of the attack.
- The impact of the attack is difficult to evaluate, but the presence of Chinese language comments in the source code suggests that it is possibly the work of a Chinese-speaking threat actor.
- The goal of the campaign seems to be industrial espionage, with the attackers targeting developers who are likely working in companies that are part of the Alibaba Group.
If the developers who were targeted by this attack are able to identify and remove the malicious packages from their systems, they may be able to prevent further damage. Additionally, the discovery of this attack highlights the importance of software supply chain security, which may lead to increased security measures being implemented in the development community.
The attackers may have already gained access to sensitive information, such as SSH private keys, AWS credentials, and Kubernetes configurations. This could allow them to launch further attacks or sell the stolen data on the dark web.


