-= Per source details. Do not edit below this line.=-
On require(), index.js reads the full process.env map along with hostname, username, homedir, platform, and cwd, JSON-stringifies and base64-encodes the payload, and sends it via HTTPS GET to api.telegram.org using a hardcoded bot token and chat_id 8969499041. A tmp flag file is used to suppress repeated sends. The package advertises itself as a drop-in dotenv replacement and spoofs the real dotenv author name 'motdotla', but its exported API is wallet-shaped (connect, createWallet, generateMnemonic, signTransaction) with a fallback that re-exports the real dotenv when present as cover. Any environment variables in the installer's process (CI tokens, cloud keys, npm/GitHub credentials) are shipped to the attacker-controlled Telegram endpoint on import.
{
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-013446",
"import_time": "2026-08-05T07:06:47.866166706Z",
"sha256": "de45cab34c84d02c802689caf5a6683df75d402bb17239fea95b395860942ac9",
"modified_time": "2026-08-05T06:24:22Z",
"source": "amazon-inspector",
"versions": [
"4.2.0"
]
}
]
}[
{
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code",
"cweId": "CWE-506"
}
]
{
"evidence_files": [
{
"path": "index.js",
"tlsh": "892171cc27f1f88e21339192a42f240b72bfcaa20848f720d598d1c72fb41cc8969788",
"sha256": "c1c97b444d4560364dc707c4af44af4450921e2be6b8f8d31c2325d5ad11a3f9"
}
],
"package_integrity": [
{
"filename": "env-loader-4.2.0.tgz",
"hashes": {
"sha512_sri": "sha512-pdB9CpzzSYioTk4MwautfYQTCJLtJNcskSAgq1DGkZCIUZubdgvemvk6VkIE22jW+cx/tGc40Ah69zDKmSPwcg==",
"sha1": "ed130aabe7f0091928a6ff0f00be6a75ba8d3b8e"
}
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@wethenorth12/env-loader/MAL-2026-12091.json"