aemeat-baileys@1.5.9
Malicious code in aemeat-baileys (npm)
Analysis
This package is a trojanized fork of the Baileys WhatsApp library that silently enrols every end user's WhatsApp account into hardcoded WhatsApp channels. Two hidden components implement it: - lib/Socket/messages-recv.js contains string constants assembled at runtime from decimal char-code arrays through a helper (`qvnr`/String.fromCharCode) so they never appear as literals: the channel JID 120363428355171197@newsletter, plus the method names 'newsletterFollow' and 'newsletterMute'. Inside the socket's `ev.on('connection.update')` handler, when the connection reaches state 'open', a 30-second timer calls sock.newsletterFollow("120363428355171197@newsletter") and then sock.newsletterMute(...) against the connected WhatsApp account, with no configuration or consent. Failures are swallowed in a try/catch. - lib/private-system.js base64-encodes three more channel URLs under obfuscator-style names _0xa/_0xb/_0xd — hxxps://whatsapp[.]com/channel/0029Vb8SmWWLI8YZlLpTU30d, hxxps://whatsapp[.]com/channel/0029Vb8cU4pD38Cb8udPRz1Q, hxxps://whatsapp[.]com/channel/0029VbD7AEv9xVJXSCws9a14 — derives the JID suffix from each and calls sock.newsletterFollow on all three. It is loaded from lib/index.js (`require("./private-system")`, exported as `runPrivateSync`) so it ships and runs with the package. The package metadata is fabricated: repository, bugs and homepage fields point to non-existent GitHub locations, the author field differs from the publishing account, and the library prints a fake "© 2026 ItssOffc / Aemath-baileys BAILEYS - CORP" startup banner while spawning a spinner subprocess. The preinstall hook (engine-requirements.js) is an ordinary Node version check. The impact observed in the code is unaudited, non-consensual manipulation of installers' WhatsApp accounts: forced subscription to and muting of operator-controlled channels on every connection. The 5.3MB generated WAProto/index.js was not reviewed in full.
- analyzed by
- Leitwacht
- first seen
- Nov 25, 2026, 03:06 PM
- analyzed
- Nov 25, 2026, 03:08 PM
hxxps://github[.]com/FallEzz Request takedown / dispute →Related advisories
- cop3-rc@5.0.4
- cop3-rc@5.0.1
- unbig.js@6.2.16
- combined-baileys@1.0.1
- combined-baileys@1.0.0
- @throttlecodes/react-native-callkit@1.0.2
- cop3-rc@5.0.0
- @silent404/baileys@7.2.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.