@robihostingid/baileysnpm
Advisory published Updated
@robihostingid/baileys is a confirmed malicious npm package (MAL-2026-20811) 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 @robihostingid/baileys (npm)
What this malware does
@robihostingid/baileys 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. 8.0.8 and 9.0.0 use the loadBase loop: 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: 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. 9.0.0: sha256 3616c81fe6b723a3951ff05672859ac73853507e3ec717dd151e1dc1e4db37c5, URL hxxps://raw[.]githubusercontent[.]com/robihosting/Screaper/refs/heads/main/idChannel.json. 8.0.9 does the same from lib/Socket/newsletter.js (sha256 f8762cc88d6e58b9347eef75e5c0a8216a783cd47ec90001f13a93a40600bea9): 80 seconds after socket creation it fetches the robihosting/Screaper list (URL in plain text) and follows each id. 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 @robihostingid/baileys (3 malicious versions).
If you installed it — respond
Remove @robihostingid/baileys 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 @robihostingid/baileys 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 @robihostingid/baileys-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.