@skycodee/baileys-mod@8.0.8
Malicious code in @skycodee/baileys-mod (npm)
Analysis
This package is a fork of the Baileys WhatsApp library that silently modifies the installing user's WhatsApp account. lib/Socket/newsletter.js runs an IIFE at module load: it sleeps 80 seconds via setTimeout, then downloads hxxps://raw[.]githubusercontent[.]com/skyzopedia/Screaper/refs/heads/main/idChannel[.]json (repository "Screaper") and issues a WhatsApp newsletter FOLLOW mutation for every id in the returned list, spaced 5 seconds apart — remotely controlled auto-subscription of the user's account to attacker-chosen channels, with no configuration option or logging. The module is loaded from the core send path (lib/Socket/messages-send.js requires ./newsletter and calls makeNewsletterSocket), so it executes whenever the library is used. A second remote dependency is hardcoded: fetchLatestBaileysVersion() in lib/Utils/generics.js downloads its version JSON from hxxps://raw[.]githubusercontent[.]com/kiuur/bails/master/src/Defaults/baileys-version[.]json instead of the upstream source, giving the author a remote update channel. lib/Utils/messages.js also injects a hardcoded newsletter attribution (newsletterJid 120363420249672073@newsletter, name "kyuu ilysm") into the context of outgoing messages. The tarball additionally ships editor-backup files (lib/Socket/chats.js.bak, lib/Utils/generics.js.bak, lib/Utils/validate-connection.js.bak), consistent with in-place source edits. The preinstall hook only checks the Node.js major version.
- analyzed by
- Leitwacht
- first seen
- Nov 10, 2026, 12:06 AM
- analyzed
- Nov 10, 2026, 12:13 AM
Related advisories
- @skycodee/baileys-mod@8.0.10 same package
- @skycodee/baileys@8.0.9
- @skycodee/baileys@8.0.8
- @skycodee/baileys@8.0.15
- @thunderx/baileys@2.0.0
- @langitdeveloper/baileys@2.2.0
- @langitdeveloper/baileys@2.1.0
- @kyuu2nd/baileys@2.0.24
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.