MAL-2026-20805

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@dyyxyzz/baileys-mod/MAL-2026-20805.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20805
Published
2026-11-06T00:00:00Z
Modified
2026-12-01T09:15:05Z
Summary
Malicious code in @dyyxyzz/baileys-mod (npm)
Details

@dyyxyzz/baileys-mod is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. Every form below sits in makeNewsletterSocket and runs on every socket creation, with errors swallowed and nothing logged. 6.0.24 (lib/Socket/newsletter.js sha256 463aacffe1a88ba06c13a41480406dc3727a926ea4bcbdccc34ef62d814be214): 70 seconds after creation it follows two hard-coded channels, and 5 seconds later nine more, with newsletterWMexQuery(jid, QueryIds.FOLLOW). 6.0.26 (713e645eb8c67e99ea4cf33bcb76a4cfcefea6d578e319e2136c26d8024e3af8): follows 120363421160571057@newsletter and 120363384627502211@newsletter 5 seconds after creation. 6.0.27 (9fa1e152f5c3e79ba124c01dacce68e92cb7cc73d1095965794059e225092f0b): 80 seconds after creation fetches hxxps://raw[.]githubusercontent[.]com/skyzopedia/Screaper/refs/heads/main/idChannel.json and follows each id. 6.0.28, 6.0.32 and 6.0.33 (6f7d318d07dc834bb7da04905aa919f43ec554e8830c66f59e092994a7c9e088): both of the last two. 6.0.34 to 6.0.54 (dc59b3e3bd172b777e587ccb94762ff750dbb281d4241e3b6acd75edfea4cfe7): follows 120363384627502211@newsletter after 5 seconds, then after 80 seconds every id in hxxps://raw[.]githubusercontent[.]com/DyyEuuee/Nani/refs/heads/main/codes/bailwa.json. 7.0.5 and 7.0.6 (c04aa44aee3441eb6a1d35b8dbb6ebac128461b346274a76cb8546258d8653da): the same, with the list URL changed to hxxps://github[.]com/DyyEuuee/Nani/blob/main/codes/bailwa.json (an HTML page, so only the hard-coded channel is followed in practice). 7.0.7 and 7.0.8 use the loadBase loop: lib/Utils/messages-media.js exports loadBase, which makeNewsletterSocket (lib/Socket/newsletter.js) calls on every socket creation as loadBase(newsletterWMexQuery, QueryIds). 80 seconds later it fetches a channel list from a URL stored as base64 and, 5 seconds apart, calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each entry with the victim's authenticated session, swallowing errors. Nothing is logged and the README does not mention it. lib/Utils/messages-media.js sha256 1c38d186f020e01b3332b614be5ef3718b9c88789f2ada7bfe88ffa1a090e610; the URL decodes to the DyyEuuee/Nani raw list above (4 channel IDs on 2026-11-06). 6.0.25 and 7.0.4 are not listed: their lib/Socket/newsletter.js does not parse, so the library cannot load. Same behaviour as the PhantomSub family (MAL-2026-17342). Amazon Inspector described the same loadBase loop in @rixxcodex/baileys (MAL-2026-16483).

Database specific
{
    "iocs":  {
        "domains":  [
            "github.com",
            "raw.githubusercontent.com"
        ],
        "files":  [
            {
                "digests":  {
                    "sha256":  "463aacffe1a88ba06c13a41480406dc3727a926ea4bcbdccc34ef62d814be214"
                },
                "paths":  [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests":  {
                    "sha256":  "713e645eb8c67e99ea4cf33bcb76a4cfcefea6d578e319e2136c26d8024e3af8"
                },
                "paths":  [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests":  {
                    "sha256":  "9fa1e152f5c3e79ba124c01dacce68e92cb7cc73d1095965794059e225092f0b"
                },
                "paths":  [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests":  {
                    "sha256":  "6f7d318d07dc834bb7da04905aa919f43ec554e8830c66f59e092994a7c9e088"
                },
                "paths":  [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests":  {
                    "sha256":  "dc59b3e3bd172b777e587ccb94762ff750dbb281d4241e3b6acd75edfea4cfe7"
                },
                "paths":  [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests":  {
                    "sha256":  "c04aa44aee3441eb6a1d35b8dbb6ebac128461b346274a76cb8546258d8653da"
                },
                "paths":  [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests":  {
                    "sha256":  "1c38d186f020e01b3332b614be5ef3718b9c88789f2ada7bfe88ffa1a090e610"
                },
                "paths":  [
                    "lib/Utils/messages-media.js"
                ]
            }
        ],
        "ips":  [],
        "urls":  [
            "https://raw.githubusercontent.com/skyzopedia/Screaper/refs/heads/main/idChannel.json",
            "https://raw.githubusercontent.com/DyyEuuee/Nani/refs/heads/main/codes/bailwa.json",
            "https://github.com/DyyEuuee/Nani/blob/main/codes/bailwa.json"
        ]
    }
}
References
Credits

Affected packages

npm / @dyyxyzz/baileys-mod

Package

Name
@dyyxyzz/baileys-mod
View open source insights on deps.dev
Purl
pkg:npm/%40dyyxyzz/baileys-mod

Affected ranges

Affected versions

6.*
6.0.24
6.0.26
6.0.27
6.0.28
6.0.32
6.0.33
6.0.34
6.0.36
6.0.37
6.0.40
6.0.41
6.0.42
6.0.43
6.0.44
6.0.45
6.0.46
6.0.48
6.0.49
6.0.50
6.0.51
6.0.52
6.0.53
6.0.54
7.*
7.0.5
7.0.6
7.0.7
7.0.8

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@dyyxyzz/baileys-mod/MAL-2026-20805.json"