nobiztoblut-bot@1.2.4
Malicious code in nobiztoblut-bot (npm)
Analysis
This package is a republished copy of the WhatsApp Web (Baileys) client library with an injected payload that runs when the library is loaded. The code is in lib/Socket/newsletter.js (lines 102-122), which is pulled in via lib/Socket/messages-send.js, so it executes at module load for any application that requires the package rather than only when a caller invokes an API. On load it starts two 90-second timers; each timer issues a newsletter-follow request (the internal newsletterWMexQuery(..., QueryIds.FOLLOW) call that backs the public newsletterFollow API) and schedules a second follow 5 seconds later, for four follows at t+90s and t+95s. The target channel identifiers are stored base64-encoded in the source and decoded at runtime, and the calls are wrapped in try/catch that swallows every error, so the action is invisible to the host application. The result is that the WhatsApp account running this library is silently subscribed to four channels the package author controls: 120363425000320171@newsletter, 120363420757607688@newsletter, 120363400738305381@newsletter and 120363423837510800@newsletter. Upstream Baileys contains no such block and no public API is needed to trigger it. The package also ships an additional non-upstream module, lib/Socket/luxu.js (an "imup" message-content builder required from lib/Socket/messages-send.js). The preinstall hook, engine-requirements.js, only checks for Node.js >= 20. There is no credential or token harvesting, no environment/file exfiltration and no network destination other than WhatsApp's own servers; the payload's effect is unauthorized modification of the installing account, not data theft. Network IOC: requests are sent over the WhatsApp WebSocket to wss://web[.]whatsapp[.]com/ws/chat.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:50 AM
- analyzed
- Nov 16, 2026, 12:27 AM
- weekly installs
- 409
Related advisories
- @zeppeliorg/wbails@1.1.2
- @shurainc/baileys@3.0.2
- yuliawhh@2.0.0
- @kyuu2nd/baileys@2.0.0
- @devil-fight/baileys@1.0.5
- raiden-baileys@2.2.7
- raiden-baileys@2.2.3
- @risacakep/risayap@7.0.0-rc25.13
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.