A newly uncovered campaign shows just how easily open-source trust can be weaponized. Researchers have traced over 100 npm packages that silently hijacked developers' WhatsApp accounts, forcing them into groups and channels the developers never agreed to join. The operation, now named PhantomSub, built its success entirely on impersonating a legitimate and widely used tool.

Riding on a Trusted Library's Reputation

At the center of this campaign sits Baileys, a genuinely popular open-source library that developers use to build WhatsApp automation tools. Attackers did not attack Baileys itself. Instead, they created dozens of near-identical forks and clones of the library, then published them under different names and different developer accounts on npm.

Once installed, these packages quietly triggered the same hidden behavior. They subscribed the developer's own WhatsApp session to groups and channels controlled entirely by the attackers, all without any visible warning or consent prompt. Collectively, these packages attracted close to half a million downloads, and a striking portion of that traffic, over 100,000 downloads, arrived within just the past month alone. This signals the campaign is still spreading actively rather than winding down.

A Pattern Researchers Had Already Started Noticing

This campaign did not appear out of nowhere. Security researchers had already flagged similar behavior in Baileys forks weeks earlier, including packages that forced accounts to follow attacker-owned channels and inserted promotional links into outgoing media automatically. Another separate fork was found doing much the same thing shortly after. PhantomSub represents a significant scale-up of this same tactic, executed across many more packages simultaneously.

Different Tricks, Same Underlying Playbook

Researchers separated the malicious packages into three distinct technical approaches. Some pulled their target channel lists live from GitHub each time they ran, making the list easy to update remotely. Others hardcoded their targets directly into the package, in plainly readable text. A smaller group disguised their targets using obfuscation, making the malicious behavior harder to spot during a routine code review.

Despite these different techniques, investigators found the packages were far from independent of one another. Many shared the exact same channel IDs, the same remote configuration lists, and even the same GitHub publishing accounts, despite appearing under completely different package names. This overlap reveals a small, coordinated group sitting behind a much larger web of disposable-looking packages, all funneling unwitting developers toward the same destinations.

Who Actually Gains From This

The channels benefiting from this scheme are mostly small online marketplaces, heavily concentrated in Indonesia, that sell bot-building services, modified app files, and social media growth packages. For these sellers, a large follower count functions as a marketing tool. It makes their offerings look far more established and trustworthy than they genuinely are, and every hijacked developer account adds directly to that illusion.

The Takeaway for Developers

This campaign is a clear reminder that popularity alone does not guarantee a package is safe, especially when that popularity comes from cloning a well-known project's name. Developers should check whether their WhatsApp account has quietly joined any unfamiliar groups and exit immediately if so. Beyond that, treating any package that demands a personal WhatsApp connection as a serious risk, and verifying a package's true publisher before installing it, remains the most effective defense against this entire category of attack