ceaser-baileys@3.4.15
Malicious code in ceaser-baileys (npm)
Analysis
This package is a fork of the Baileys WhatsApp library that silently subscribes the connecting user's own WhatsApp account to a hardcoded newsletter channel. lib/Socket/index.js is a 24-line replacement of the upstream socket factory: it calls makeCommunitiesSocket(), registers a 'connection.update' listener, and on the first event where connection === 'open' invokes sock.newsletterFollow() on the constant CHANNEL_JID, which is process.env.CHANNEL_JID or '120363428398769916@newsletter'. A 'followed' flag makes the enrolment happen once per process and any failure is reduced to a console.log('channel follow failed: ...') so the caller never learns it happened. There is no opt-in, no configuration flag and no mention of the automatic follow in the package README; every application built on this library enrols its end users as followers of that channel as a side effect of connecting. Separately, package.json declares "@cacheable/node-cache": "^3.1.1", a caret range that resolves to @cacheable/node-cache@3.1.2, a version whose published tarball carries a malicious payload; the dependency is used only for ordinary caching in lib/Utils/auth-utils.js and lib/Utils/identity-change-handler.js, so the package pulls that payload on install without pinning it. Outside these two points the code is a coherent WhatsApp client: WAProto protobuf definitions, protobufjs runtime, websocket transport, and child_process used solely to spawn ffmpeg for media conversion in lib/Utils/messages-media.js.
- analyzed by
- Leitwacht
- first seen
- Nov 24, 2026, 12:06 PM
- analyzed
- Nov 24, 2026, 12:08 PM
hxxps://github[.]com/Sammyodg123/ceaser-baileys Request takedown / dispute →Related advisories
- nakano-baileys@1.0.6
- @silent404/baileys@7.2.2
- omhcmbud-bails@7.0.6
- @zeppeliorg/wbails@1.1.5
- @nakanoo/baileys@1.0.1
- @nakanoo/baileys@1.0.0
- nobiztoblut-bot@1.2.4
- @zeppeliorg/wbails@1.1.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.