@lyyncode/lyyn-bailnpm
Advisory published Updated
@lyyncode/lyyn-bail is a confirmed malicious npm package (MAL-2026-20808) that executes malicious code on install (malicious versions 8.0.8, 8.0.9, 9.0.0…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @lyyncode/lyyn-bail (npm)
What this malware does
@lyyncode/lyyn-bail is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. lib/Utils/messages-media.js exports loadBase, which makeNewsletterSocket (lib/Socket/newsletter.js) calls on every socket creation as loadBase(newsletterWMexQuery, QueryIds). 80 seconds later it fetches a channel list from a URL stored as base64 and, 5 seconds apart, calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each entry with the victim's authenticated session, swallowing errors. Nothing is logged and the README does not mention it. 8.0.8 to 9.0.4: lib/Utils/messages-media.js sha256 657662b2ae2e8cc1808715d8219d4e7ca7182f6eacda8d79b1cee4b721c88939 (byte-identical to @rixxcodex/baileys 8.2.0), URL hxxps://raw[.]githubusercontent[.]com/skyzopedia/Screaper/refs/heads/main/idChannel.json (23 channel IDs on 2026-11-06). 9.0.5: sha256 810d8f9f6b369ba64a3760beea0c0ccfd449399da2d8aedb458d7ce168394963, URL hxxps://ch-lyyncode[.]vercel[.]app/lyyn. 9.0.6 to 9.0.8: sha256 20563d8117ea37b0df09bc579be38b153000c881022e62536b30b081a41712a4, URL hxxps://ch-rho[.]vercel[.]app/lyyn (1 channel ID on 2026-11-06). Same behaviour as the PhantomSub family (MAL-2026-17342). Amazon Inspector described the same loadBase loop in @rixxcodex/baileys (MAL-2026-16483).
Malicious versions
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for @lyyncode/lyyn-bail (11 malicious versions).
If you installed it — respond
Remove @lyyncode/lyyn-bail from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If @lyyncode/lyyn-bail was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
References
Credits
- CyberXYZ · finder
Detect & block this
O3 blocks @lyyncode/lyyn-bail-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.