MAL-2026-18682

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@wanzforme/bails/MAL-2026-18682.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18682
Aliases
  • GHSA-wpq7-r76p-73cp
Published
2026-10-26T00:00:00Z
Modified
2026-11-19T07:15:08Z
Summary
Malicious code in @wanzforme/bails (npm)
Details

@wanzforme/bails 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. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363380357951328@newsletter (stored base64-encoded), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (24423e3b5883bd690c8cd8ee1bd60786bce4212836699f49d23057aca66bd2b6)

package.json declares "libsignal": "github:wanzchil/libsignal-node", resolving the dependency from the HEAD of a GitHub repository with no tag, commit SHA, or integrity hash. On npm install, npm fetches whatever that repository currently contains and executes any lifecycle scripts it defines, inside the installer's environment. The content at HEAD can be changed at any time by the repository owner, so the bytes executed on the installer are mutable and not verified against the published tarball. The repository is under the same author account as the package, but off-registry sourcing bypasses the registry's integrity and audit surface regardless of ownership. A a static rule also matched network/command tokens (ping, GET) in lib/Utils/generics.js, but those appear in ordinary utility code paths rather than an install-time exec sink; the install-time-rce exposure comes from the dependency source itself.

Source: ghsa-malware (e422e431ee98ecb27366e9e3ba34cc7bace15db1fd9045c5a3c545d9d88a42cf)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "iocs": {
        "domains": [],
        "files": [
            {
                "digests": {
                    "sha256": "8b1a056c480482cced3274cd351fbc3b910616fb907e63b6705928405c20c0e7"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            }
        ],
        "ips": [],
        "urls": []
    },
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-022676",
            "import_time": "2026-11-13T03:36:33.110440452Z",
            "modified_time": "2026-11-13T03:31:41Z",
            "sha256": "e337b29562d5e7ca7d92705684aacf47bf6b93ffb58741e146a0037b43aaf8e6",
            "source": "amazon-inspector",
            "versions": [
                "2.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-022675",
            "import_time": "2026-11-13T03:36:33.034578712Z",
            "modified_time": "2026-11-13T03:31:35Z",
            "sha256": "eb7a35c9bfb93ec9fd9055a984738b881a110a8991ee8c583965a369f7584221",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "GHSA-wpq7-r76p-73cp",
            "import_time": "2026-11-19T05:18:49.029018496Z",
            "modified_time": "2026-11-19T05:15:35Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "e422e431ee98ecb27366e9e3ba34cc7bace15db1fd9045c5a3c545d9d88a42cf",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-022845",
            "import_time": "2026-11-19T07:12:40.64723757Z",
            "modified_time": "2026-11-19T06:50:08Z",
            "sha256": "b569678f8daa1d46e3a92254fe393305c3facb45c8dc402baaeb12bc91a93fe5",
            "source": "amazon-inspector",
            "versions": [
                "3.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-022843",
            "import_time": "2026-11-19T07:12:40.468447634Z",
            "modified_time": "2026-11-19T06:49:56Z",
            "sha256": "c0f2ca783eb6d758d008398a63aafebfa3b972050697ee95bce422a10341510f",
            "source": "amazon-inspector",
            "versions": [
                "6.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-022847",
            "import_time": "2026-11-19T07:12:40.866379771Z",
            "modified_time": "2026-11-19T06:50:21Z",
            "sha256": "dab5cf179de1ca497d11d160cc5b41b1993243ce99d88f26a534c289b79e73af",
            "source": "amazon-inspector",
            "versions": [
                "5.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-022842",
            "import_time": "2026-11-19T07:12:40.386741581Z",
            "modified_time": "2026-11-19T06:49:48Z",
            "sha256": "1ed1ccdf384c4e49890d8a0fc3595d930286c632f14ef1fe24c672805ebdfa77",
            "source": "amazon-inspector",
            "versions": [
                "4.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-022844",
            "import_time": "2026-11-19T07:12:40.55766233Z",
            "modified_time": "2026-11-19T06:50:02Z",
            "sha256": "24423e3b5883bd690c8cd8ee1bd60786bce4212836699f49d23057aca66bd2b6",
            "source": "amazon-inspector",
            "versions": [
                "7.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @wanzforme/bails

Package

Name
@wanzforme/bails
View open source insights on deps.dev
Purl
pkg:npm/%40wanzforme/bails

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0
2.*
2.0.0
3.*
3.0.0
4.*
4.0.0
5.*
5.0.0
6.*
6.0.0
7.*
7.0.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "package.json",
            "sha256": "d9aee2fb7ba8c965d2c1a5d27fcbb0c64b9e8d2d9003e091001d39c1762395d3",
            "tlsh": "0081cc35cd18cea30a8626eda5bc414154a95413aec1f84cb31c47ac8f1d15f71b9f3d"
        }
    ],
    "package_integrity": [
        {
            "filename": "bails-2.0.0.tgz",
            "hashes": {
                "sha1": "cef43dec676e8de3a172267cbb768a970ffc5ba1",
                "sha512_sri": "sha512-35n2ky//Y6r71jO1jK1S0625NbzgrN+QaGBIboeETrUWUAcCdJVj/wzZk5Wvg+K9m5HqAsgh7ao/EEEDFVm1fA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@wanzforme/bails/MAL-2026-18682.json"