PhantomSub Malicious npm WhatsApp Spam Campaign
Score: 7/10

PhantomSub Malicious npm WhatsApp Spam Campaign

The PhantomSub campaign utilizes over 101 malicious npm packages to hijack authenticated WhatsApp sessions and force-subscribe users to spam and resource-selling channels.

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.

Key Details

Threat Name

PhantomSub npm Campaign

Affects

Code Runner VS Code Extension

Adversary

PhantomSub

MITRE Techniques

Malware/Tools

PhantomSub, cantarella-baileys, neuralwhatsapp, spencer-baileys, jexkcode

Report Score

7out of 10
Quality Score
Good
IOC Quality9
TTP Details8
Detection Guidance4
Enterprise Relevance6
Clarity & Structure9
Technical Depth7

Sources