@langitdeveloper/baileys@2.2.1
Malicious code in @langitdeveloper/baileys (npm)
Analysis
This package is a WhatsApp client library fork that covertly manipulates the account it is instantiated for. In lib/Socket/newsletter.js the channel identifier 120363426930096454@newsletter is hardcoded and a 90-second timer issues a newsletter FOLLOW query for it over the user's authenticated WhatsApp connection; the hook runs on ordinary socket creation (lib/Socket/socket.js, lib/Socket/messages-send.js), is not exposed as a configuration option, and gives the account owner no indication that their account was enrolled as a follower. The delayed timer means the enrolment happens well after startup. lib/Socket/dugong.js carries a second hardcoded channel identifier, 120363430179804706@newsletter, used to attach spoofed "forwarded newsletter" attribution (newsletterName "shenvn.") to generated messages. lib/Utils/bot-toolkit.js also ships an aiMahiru() helper that POSTs to hxxps://api[.]anthropic[.]com/v1/messages using an ANTHROPIC_API_KEY supplied by the caller or the environment; that is the only environment variable read in the package, and no npm, GitHub, cloud or wallet credentials are collected or transmitted.
- analyzed by
- Leitwacht
- first seen
- Nov 9, 2026, 11:56 PM
- analyzed
- Nov 9, 2026, 11:57 PM
Related advisories
- @langitdeveloper/baileys@2.1.1 same package
- @langitdeveloper/baileys@2.1.9 same package
- @langitdeveloper/baileys@2.2.0 same package
- @langitdeveloper/baileys@2.1.0 same package
- @langitdeveloper/baileys@2.0.7 same package
- @daffadevv/baileys@1.0.0
- @arkanhahaha/baileys@1.0.0
- @alzx7z/baileys@2.0.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.