MAL-2026-20310

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@kropa/baileys/MAL-2026-20310.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20310
Published
2026-11-20T19:42:38Z
Modified
2026-11-20T20:15:05Z
Summary
Malicious code in @kropa/baileys (npm)
Details

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

Source: amazon-inspector (3923302c7a14f319107d525ed998ad0fd9f951f7d499649c2e890a4db465a14c)

This package is a fork of the Baileys WhatsApp library that adds two concerning components not present in upstream. lib/Utils/license-guard.js is a heavily obfuscated module (hex-prefixed identifiers, string-array indirection) whose intent is intentionally hidden from reviewers. lib/Socket/messages-send.js at lines 425 and 436 reconstructs an outbound HTTPS URL from a String.fromCharCode numeric array; decoding the character codes yields the host https://fiora.nixel.my.id/. The destination is assembled via char-code obfuscation rather than appearing as a plain string, so it will not surface in trivial source review, and the host is unrelated to any WhatsApp/Baileys infrastructure. The call sits inside the message-send path, meaning normal use of the library's advertised API (sending WhatsApp messages) triggers traffic to this third-party endpoint controlled by the fork's author. The combination of obfuscated identifier-guard code plus a char-code-hidden non-first-party destination on the message pipeline is the fingerprint of covert data relay / credential or message interception layered on top of a legitimate library.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-022965",
            "import_time": "2026-11-20T20:11:29.706177629Z",
            "modified_time": "2026-11-20T19:42:46Z",
            "sha256": "3923302c7a14f319107d525ed998ad0fd9f951f7d499649c2e890a4db465a14c",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-022968",
            "import_time": "2026-11-20T20:11:29.823757649Z",
            "modified_time": "2026-11-20T19:43:09Z",
            "sha256": "5698b6fbc4b6c4202f2c7c5da92cf2cb2ed97ba48851400bdcae5bdafc1da0ee",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "id": "IN-MAL-2026-022966",
            "import_time": "2026-11-20T20:11:29.743710922Z",
            "modified_time": "2026-11-20T19:42:53Z",
            "sha256": "6b5a3f48f575f979440f8a085158240915c66da5a26feedfc6899bcaf4a9cf4d",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        },
        {
            "id": "IN-MAL-2026-022964",
            "import_time": "2026-11-20T20:11:29.638742628Z",
            "modified_time": "2026-11-20T19:42:38Z",
            "sha256": "8cb49372c43a3009a5e2605ae10e17cbb47e5714dc159ed4bbca449331553ba6",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @kropa/baileys

Package

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

Affected ranges

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "lib/Socket/messages-send.js",
            "sha256": "a62ea8d3d1172824095369efa66412a189a70812354a8d5790b4e9d50004a376",
            "tlsh": "ee63926508fb192a4623b0b57e6bb401b134d0077148ec69ff8c86e85f8a464e6f7bdd"
        },
        {
            "path": "lib/Utils/license-guard.js",
            "sha256": "0ad5e08bfb7239dcc3227de43936237e2eef83df56934e47284edd22d0fdba4f",
            "tlsh": "3332d8056ec0a8c4679beff73112a1e4e6251caea6f31c4fb600b528ed5c915dac5b31"
        }
    ],
    "package_integrity": [
        {
            "filename": "baileys-1.0.0.tgz",
            "hashes": {
                "sha1": "a91d261e2efa44547653554a3fd733947021d11f",
                "sha512_sri": "sha512-XVs9mYCZ0NAIkzU7peuC7nJCYfUOMVJFqpIaBZUe8CWvLrFCsEtE+DZXmHJbpEvRXJsQ9t3ma/C+MWaTCUIKeg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@kropa/baileys/MAL-2026-20310.json"