MAL-2026-12120

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@zzzgenesis00/env-loader/MAL-2026-12120.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12120
Published
2026-08-05T08:44:01Z
Modified
2026-08-05T10:05:38.692346858Z
Summary
Malicious code in @zzzgenesis00/env-loader (npm)
Details

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

Source: amazon-inspector (cfbfc9bcbea1e1b9d6c52e2585bf5b28064fe8e38fe53304450fe1fd19340f3b)

On npm install, postinstall.js reads installer-owned secret material — ~/.ssh entries, ~/.npmrc, ~/.gitconfig — and iterates a curated list of credential and wallet environment variables (NPMTOKEN, GITHUBTOKEN, AWSSECRETACCESSKEY, PRIVATEKEY, MNEMONIC, SEEDPHRASE, ETHEREUM/BITCOIN/SOLANA/TRONPRIVATEKEY, WALLETPRIVATEKEY, APIKEY, etc.), enumerates Chrome/Firefox profile artifacts (Cookies, Login Data) and wallet directories, and runs npm whoami and git config user.email to identify the host. The collected payload is JSON-encoded and transmitted to two hardcoded, attacker-controlled destinations: a Telegram Bot API endpoint (api.telegram.org/bot<redacted>/sendMessage) and an HTTP POST to 40f955f39128bd79-178-249-214-24.servousercontent.com/collect. The package presents itself as a dotenv alternative and exports a stub wallet API (generateMnemonic, createWallet, signTransaction returning random bytes) as a cover story; the block-worthy behavior is the install-time credential theft in postinstall.js.

Database specific
{
    "malicious-packages-origins": [
        {
            "source": "amazon-inspector",
            "sha256": "cfbfc9bcbea1e1b9d6c52e2585bf5b28064fe8e38fe53304450fe1fd19340f3b",
            "import_time": "2026-08-05T09:28:05.891867992Z",
            "versions": [
                "4.2.0"
            ],
            "id": "IN-MAL-2026-014394",
            "modified_time": "2026-08-05T08:44:01Z"
        }
    ]
}
References
Credits

Affected packages

npm / @zzzgenesis00/env-loader

Package

Name
@zzzgenesis00/env-loader
View open source insights on deps.dev
Purl
pkg:npm/%40zzzgenesis00/env-loader

Affected ranges

Affected versions

4.*
4.2.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@zzzgenesis00/env-loader/MAL-2026-12120.json"
cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "postinstall.js",
            "sha256": "ab18b1af1bced7133e281d4a47e3be16e0f1ed4ac781da3e1f2532fcc86093c0",
            "tlsh": "fed1429712e60358e862b9ed474f00192632d1033921fbf93edd4b564f4e63c9ab97a8"
        },
        {
            "path": "index.js",
            "sha256": "10e359c2154db33906465b5f8d638f783512aebaad80727ba2b1f7a2601c91c4",
            "tlsh": "e0119c832af2f3240bc5f0a5e167848bb1bce5a305ac2229b64d396667f415cc0f19d4"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "8906852cea27fbee171ceb6d828e5faba29c0ed7",
                "sha512_sri": "sha512-cP6nAXsrc7lbEPBxl/Gff2SUYvU/SjV7BnMkk2tdi9g8bStERI4YzYvHn1alCM7HoFG9pyRTR2+IF8L5yGUFNg=="
            },
            "filename": "env-loader-4.2.0.tgz"
        }
    ]
}