baileyssteam@7.0.0
Malicious code in baileyssteam (npm)
Analysis
baileyssteam@7.0.0 is a combosquat/impersonating clone of the baileys WhatsApp Web library that ships an injected, hidden remote-control routine in lib/Socket/newsletter.js. Inside makeNewsletterSocket() — which is instantiated unconditionally from lib/Socket/messages-send.js on every socket creation — the package schedules setTimeout(..., 120000) and after two minutes fetches a JSON array of WhatsApp channel IDs from hxxps://raw[.]githubusercontent[.]com/tskiofc/ChannelID/refs/heads/main/token[.]json, then calls its internal newsletter query with QueryIds.FOLLOW for each ID, recursing on an 11,000 ms timer and swallowing all errors with an empty catch. The effect is that any application using this package silently subscribes the authenticated user's WhatsApp account to an operator-controlled list of channels; the list is a remotely hosted file that can be changed at will without republishing the package, and the 120-second delay pushes the action past interactive startup. The package also fetches its "latest version" manifest from a third-party repository at hxxps://raw[.]githubusercontent[.]com/kiuur/bails/master/src/Defaults/baileys-version[.]json instead of upstream, and hardcodes WhatsApp channel 120363191779210764@newsletter with the display name "Starlights Team" (lib/Socket/dugong.js, lib/Utils/messages.js) which it stamps into forwardedNewsletterMessageInfo so outgoing messages appear forwarded from that channel. The declared repository points at the upstream baileys project it does not belong to. No credential, token or environment exfiltration was found in the package.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:06 AM
- analyzed
- Nov 15, 2026, 09:08 AM
- weekly installs
- 261
Related advisories
- @dinzid/bailstao@0.0.7
- amanexfujimiya-baileys@8.6.26
- @devil-fight/baileys@1.0.6
- @hanzzy/baileys-mod@8.0.2
- casper-baileys@2.0.0
- amiudmodz@4.1.2
- @hanzzy/baileys-mod@8.0.4
- amiudmodz@5.0.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.