wertybailz@1.0.13
Malicious code in wertybailz (npm)
Analysis
This package is a modified copy of the Baileys WhatsApp Web library, distributed under a lookalike name, that silently enrols the WhatsApp account running it into an operator-controlled channel and stamps that channel into the user's outgoing messages. In lib/Socket/newsletter.js the channel JID 120363426748858626@newsletter is stored base64-encoded, and the connection.update handler sends a FOLLOW mutation for it via the newsletter MEX endpoint every time the socket opens — up to 3 attempts with a 15 second delay before the first try and 10 seconds between retries, with no configuration option and no user consent. A second channel, 120363421563597486@newsletter (newsletterName "D | 7eppeli-Exloration"), is hardcoded in lib/Socket/luxu.js and injected as forwardedNewsletterMessageInfo into the context info of every event message and poll-result snapshot the library sends, while supportPayload carries {is_ai_message: true, should_show_system_message: true} so recipients see the messages attributed as AI/system messages. lib/Socket/luxu.js is imported and its handler instantiated unconditionally inside sendMessage in lib/Socket/messages-send.js, so the injection applies to ordinary message sending. The package installs a preinstall hook (node ./engine-requirements.js) that only enforces Node.js 20+, and declares a non-upstream dependency on the GitHub repository tenka-san/libsignal-node instead of the library's original signal implementation. No credential, environment-variable or file exfiltration is present: the package contacts only WhatsApp endpoints, and the only obfuscation is the base64-wrapped channel identifier.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:33 AM
- analyzed
- Nov 16, 2026, 12:07 AM
- weekly installs
- 1,105
Related advisories
- wertybailz@1.0.6 same package
- wertybailz@1.0.8 same package
- wertybailz@1.0.11 same package
- wertybailz@1.0.10 same package
- mid-baileys@0.7.30
- @kurtucoben/cstm-bail@1.0.0
- @nakano-cjs/baileys@1.0.2
- @liamcuy/lymmai@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.