Fake npm Packages Pose as Alibaba Developer Tools, Drop Remote-Control Malware

Researchers found 18 booby-trapped packages on the npm registry aimed at Chinese-speaking developers, using a classic name-squatting trick to smuggle in a cross-platform remote access trojan.

ThreatVectr Newsdesk· 4 min read
Full-frame photoreal editorial shot of a developer's dark workstation at night, the glow of a large monitor showing abstract lines of code with a single line hi
Share

Key points

  • Researchers uncovered 18 malicious npm packages posing as internal Alibaba developer tools, one named lib-mtop to mimic a real private Alibaba package.
  • The packages install a cross-platform remote access trojan, a piece of malware that lets attackers take control of an infected computer.
  • The campaign targets Chinese-speaking developers and their workplaces, not ordinary consumers.
  • The attack is a textbook case of a software supply chain compromise, where the poison is planted in code that developers trust and reuse.
  • Developers pulling packages from npm should double-check names against their company's real internal package list before installing.

Security researchers have flagged a fresh batch of poisoned software packages on npm, the huge public library where JavaScript developers grab ready-made code to plug into their own projects. The 18 packages are aimed squarely at people who work with Alibaba's developer tools, and they carry a remote access trojan, malware that hands an outside attacker the keys to the infected machine.

The campaign was detailed by researchers and picked up by The Hacker News. It is narrow, targeted, and clearly built for Chinese-speaking engineering teams.

The headline package is called lib-mtop. That name is not random. Alibaba runs a private, internal package with the same name, meaning it exists only inside the company's own systems. The attackers registered the public version hoping a developer's setup would grab the poisoned public copy by mistake.

What is this attack, in plain English?

It is name-squatting on a code library, with malware attached. Think of npm as a giant shared pantry that developers dip into for pre-made ingredients. If someone slips a jar with the same label as your usual brand onto the shelf, and your kitchen picks it up by habit, you cook with poison.

Security people call this class of trick a dependency confusion attack. The idea is old, but it keeps working because build systems are lazy about telling public and private sources apart. Anyone who remembers the 2021 dependency confusion research by Alex Birsan will recognise the shape of it immediately.

What does the malware actually do?

It installs a remote access trojan, or RAT, that works on Windows, macOS and Linux. Once running, it lets the attacker read files, run commands, and generally sit inside the victim's machine as if they were at the keyboard.

For a developer, that is a very bad outcome. Developer laptops usually hold cloud credentials, source code, and access to production systems. A RAT on that machine is a RAT on the company.

Who is actually at risk?

Developers, not the general public. Specifically, engineers working with Alibaba tooling in Chinese-speaking environments, though nothing stops the same pattern being reused against other firms.

Ordinary Alibaba shoppers, Taobao users, or cloud customers are not the target here. This is an attack on the people who build software, meant to reach the companies behind them.

Detail What we know
Packages found 18 malicious npm packages
Notable name lib-mtop, mimicking a private Alibaba package
Payload Cross-platform remote access trojan
Platforms hit Windows, macOS, Linux
Target audience Chinese-speaking developers using Alibaba tools

What should teams do now?

Check what your build system pulled in recently. If any machine installed lib-mtop or other suspicious lookalikes from the public npm registry, treat that machine as compromised until proven otherwise.

Longer term, lock your package manager to your private registry for internal package names, and require a scoped prefix (like @yourcompany/) on anything internal. Public npm should never be able to answer a request for a name that belongs to you.

Common questions

Is my personal computer at risk from these packages?

Almost certainly not, unless you write software and install npm packages yourself. These are developer tools, not apps a normal person would run.

Has npm removed the packages?

Malicious packages flagged in reports like this are typically pulled from the registry quickly, but copies may already sit inside company build caches, which is why teams need to check their own systems rather than trust the cleanup alone.

© 2026 Threat Vectr