Two malicious NPM packages posing as WhatsApp development tools have been discovered deploying destructive data-wiping code that recursively deletes files on a developer's computers. Two malicious NPM packages currently available in the registry target WhatsApp developers with destructive data-wiping code. The packages, discovered by researchers at Socket, masquerade as WhatsApp socket libraries and were downloaded over 1,100 times since their publication last month. Despite Socket having filed takedown requests and flagging the publisher, nayflore, both remain available at the time of writing. The names of the two malicious packages are naya-flore and nvlore-hsc, though the same publisher has submitted more on NPM, like nouku-search, very-nay, naya-clone, node-smsk, and @veryflore/disc. Although these additional five packages are not currently malicious, extreme caution is advised, as an update pushed at any time could inject dangerous code. All these packages mimic legitimate WhatsApp developer libraries used for building bots and automation tools around the WhatsApp Business API. Socket notes that these libraries have recently experienced a significant surge in demand, as more businesses utilize WhatsApp's Cloud API for customer communication. Both naya-flore and nvlore-hs contain a function called 'requestPairingCode,' that is supposed to handle WhatsApp pairing, but which retrieves a base64 JSON file from a GitHub address. The JSON file contains a list of Indonesian pho...
Fake WhatsApp developer libraries hide destructive data-wiping code
BleepingComputer
·Bill Toulas
·Published Aug 7, 2025
·Updated
Affected Software
7 affected components
npm naya-flore
npm nvlore-hsc
npm nouku-search
npm very-nay
npm naya-clone
npm node-smsk
npm @veryflore/disc
Frequently Asked Questions
1
What is the main topic of this article?
The article discusses the discovery of fake WhatsApp developer libraries that contain destructive code for wiping data.
2
What security implications are discussed in the article?
The implications include potential data loss and compromised systems for developers using the malicious NPM packages.
3
What products or software are affected by this security issue?
The affected products include NPM packages such as naya-flore, nvlore-hsc, and nouku-search.
4
How does the malicious code function in these developer libraries?
The malicious code recursively deletes files from the computers of developers who install the fake libraries.
5
What steps should developers take to protect themselves from this threat?
Developers should be cautious when installing packages, verify the source of NPM packages, and regularly backup their work to prevent data loss.