MAL-2026-12089

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@wethenorth12/crypto-config/MAL-2026-12089.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12089
Published
2026-08-05T06:25:24Z
Modified
2026-08-05T07:20:51.857487666Z
Summary
Malicious code in @wethenorth12/crypto-config (npm)
Details

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

Source: amazon-inspector (d56f2c55cacbd8d06b8d3b0f20b808262c42cd002441399d8e39a2f03c600f3c)

On require, index.js collects process.env, hostname, username, homedir, platform, and cwd, base64-encodes the blob, and POSTs it to api.telegram.org/bot<token>/sendMessage with a hardcoded bot token and chat_id 8969499041. A tmp marker file gates repeat sends. The package presents itself as a drop-in for the popular config package (typosquat), attempts to require('config') and re-exports it to preserve apparent functionality, and uses randomized variable names to obscure the exfiltration path.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-013453",
            "import_time": "2026-08-05T07:06:48.212879286Z",
            "sha256": "d56f2c55cacbd8d06b8d3b0f20b808262c42cd002441399d8e39a2f03c600f3c",
            "modified_time": "2026-08-05T06:25:24Z",
            "versions": [
                "2.0.1"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @wethenorth12/crypto-config

Package

Name
@wethenorth12/crypto-config
View open source insights on deps.dev
Purl
pkg:npm/%40wethenorth12/crypto-config

Affected ranges

Affected versions

2.*
2.0.1

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-wmcgRrxCD7NKc3oyGmNsh81uq/ldLF4nI3Yo7jAzBLVYiSD+xyeK3/GPJ/Fak5RefoGUOU6ExSP74935jvushg==",
                "sha1": "0248f952faa09587ba82986c2580e2a57f9bd344"
            },
            "filename": "crypto-config-2.0.1.tgz"
        }
    ],
    "evidence_files": [
        {
            "sha256": "5fd171b031ab8de17a165f545915dbe510d9915be901c7288b1bcac5c7b5f8c8",
            "path": "index.js",
            "tlsh": "fd2144c827f5f84f12766592a47f610bb3abcae20485e610d2a4e4872fb41cc8459398"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@wethenorth12/crypto-config/MAL-2026-12089.json"