@dcloude/baileys is a modified copy of the Baileys WhatsApp Web library (@whiskeysockets/baileys) that silently subscribes the user's WhatsApp account to dozens of channels chosen by its author. When an application that imports it creates a socket with makeWASocket, lib/Socket/newsletter.js sends the newsletter FOLLOW query on the user's authenticated session for every channel ID in a hardcoded list: on the first connection in 0.0.8 to 0.1.2 (41 to 53 IDs from DEFAULT_AUTO_FOLLOW_CHANNELS), and 150 seconds after the socket is created in 0.1.3 and 0.1.4 (57 IDs, with no way to turn it off). The code comments call this a transparent auto-follow of "this library's own channel" documented in the README and a LITERACY.md file, but the README does not mention it and the package has no LITERACY.md, and a bundled "channel-follow guard" blocks other code's follow calls while allowing the author's list.
{
"iocs": {
"files": [
{
"digests": {
"sha256": "bb5c4cbb2cc54e2d3f2c507171808bdf3b57666f99e51f9e2f9c95234ec6ebfe"
},
"note": "0.0.8-0.1.2: follows every DEFAULT_AUTO_FOLLOW_CHANNELS entry on first connection open; follow guard allowlists them.",
"paths": [
"lib/Socket/newsletter.js"
],
"source": "PACKAGE_ARCHIVE"
},
{
"digests": {
"sha256": "7d9a5be34c5b1d7e147df7523729490523dcf37f91ec73277f691fa882bff3e2"
},
"note": "0.1.3-0.1.4: follows 57 hardcoded channels 150 s after socket creation, no opt-out.",
"paths": [
"lib/Socket/newsletter.js"
],
"source": "PACKAGE_ARCHIVE"
},
{
"digests": {
"sha256": "5074e5946e9f26d11dce03f78ade1223910438a96a89c3aeaa53018044f9da82"
},
"note": "0.0.8: DEFAULT_AUTO_FOLLOW_CHANNELS with 41 channel IDs.",
"paths": [
"lib/Defaults/index.js"
],
"source": "PACKAGE_ARCHIVE"
},
{
"digests": {
"sha256": "35fe6247091cd40ac668e1362c489037db96be69a632e097aace08d07d637258"
},
"note": "0.0.9: DEFAULT_AUTO_FOLLOW_CHANNELS with 47 channel IDs.",
"paths": [
"lib/Defaults/index.js"
],
"source": "PACKAGE_ARCHIVE"
},
{
"digests": {
"sha256": "ba0325df3d6330d3208ada465cff0b7c698fdf8fa60cf8f2d977420d55f30185"
},
"note": "0.1.1-0.1.2: DEFAULT_AUTO_FOLLOW_CHANNELS with 53 channel IDs.",
"paths": [
"lib/Defaults/index.js"
],
"source": "PACKAGE_ARCHIVE"
}
]
}
}