Socket’s Threat Research Team has uncovered two malicious npm packages—naya-flore and nvlore-hsc—designed to target developers building WhatsApp integrations. Far from mere spyware or adware, these packages hide a remote-controlled kill switch capable of wiping entire systems—all triggered by the developer’s phone number.
“The packages have accumulated over 1,110 downloads in a month and remain active on the npm registry,” reports Socket.
With over 200 million businesses using the WhatsApp Business API, there’s a vibrant ecosystem of tools, libraries, and automation bots built around it. These malicious packages were crafted to masquerade as legitimate WhatsApp socket libraries, promising features similar to popular projects like whatsapp-web.js and baileys.
But hidden beneath the surface is a hidden risk—if your phone number isn’t on the attacker’s whitelist, the library silently wipes your system.
The core of the attack is found in the seemingly innocuous function:
“The logic is simple: if the phone number exists in the remote database, the package continues normal operation. If not found… it executes rm -rf *, which recursively deletes all files in the current directory.”
The remote phone number list is pulled from a Base64-obfuscated URL hosted on GitHub:
This kill logic is stealthily buried under legitimate-looking WhatsApp setup functions, making it nearly impossible to detect unless you read every line of the package code.
Interestingly, the packages also contain dormant data exfiltration functions, including this one:
“The commented exfiltration likely reflects a strategic decision… since the kill switch executes rm -rf * immediately… any subsequent exfiltration attempt would fail on the destroyed system.”
Socket’s researchers also uncovered a hardcoded GitHub Personal Access Token:
While the token wasn’t used in the code sample, its presence raises concern about backdoor access to repositories or configuration management scripts.
The kill switch uses a whitelist of Indonesian mobile numbers, implying a geo-targeted operation. Developers outside the intended scope are wiped instantly, while “friendly” or internal users remain untouched.
“This approach allows attackers to selectively destroy systems while maintaining operational security by preserving ‘friendly’ targets.”
Socket also warns of other packages by the same author (nayflore), including:
- nouku-search
- very-nay
- naya-clone
- node-smsk
- @veryflore/disc
While they appear benign, they may contain dormant or evolving attack logic and should be treated with extreme caution.
Related Posts:
- CVE-2025-47241: Critical Whitelist Bypass in Browser Use Exposes Internal Services
- Critical Kubernetes Image Builder Flaw: Default Credentials Grant Root Access to Windows Nodes
- Urgent Security Update: Guix System Patches Critical Vulnerability
Support Our Threat Intelligence
If you find our CVE report and cybersecurity news helpful, consider supporting our work.