Executive Summary
OX Research has identified a persistent malicious campaign named PhantomSub involving at least 101 npm packages, primarily forks of the open-source 'Baileys' WhatsApp API. These packages are designed to silently add victims' authenticated WhatsApp accounts to various spam channels and groups without consent. With over 490,000 total downloads, the campaign focuses on inflating follower counts for Indonesian-based channels that sell social media accounts, bot scripts, and mobile game resources.
The technical implementation involves three primary variants: fetching channel IDs remotely from GitHub, hardcoding IDs in cleartext, or using obfuscated/Base64-encoded IDs within the package source. While not directly targeting credentials or cryptocurrency, the campaign abuses the npm ecosystem to provide 'social proof' for illegal or fraudulent marketplaces, exposing developers to high-risk environments and potential secondary scams.
Impact is significant for developers utilizing unofficial WhatsApp API implementations, as the malware often mutes hijacked channels to remain undetected. Organizations should audit their supply chain for these specific Baileys forks and monitor for unusual network activity toward raw.githubusercontent.com and specific WhatsApp newsletter JIDs.
