目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

dotenv-precheck

MAL-2026-17304
2026-10-01 05:46:22
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in dotenv-precheck (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
463
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmdotenv-precheck1.0.0
npmdotenv-precheck1.1.0
npmdotenv-precheck1.1.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17304","published":"2026-09-29T14:09:20Z","modified":"2026-10-01T05:46:21.894716961Z","summary":"Malicious code in dotenv-precheck (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (446a8483dbc9e696506f44c6777b7c086b1b919b2585b5e5c99ca5f6e2e19a8e)\ndotenv-precheck@1.0.0 is a credential-stealing package disguised as a dotenv preflight utility. package.json wires index.js as a postinstall script, so it runs automatically on npm install. index.js is heavily obfuscated (obfuscator.io-style hex identifiers, a rotated string array with debugger/toString self-defense, and base64-decoded literals) to hide its runtime strings, which reconstruct at runtime to an api.telegram.org bot endpoint together with a hardcoded bot token and chat ID. On execution the script recursively walks the installer's home directory, including Desktop, Documents, and Downloads, reads text files up to 2MB, and extracts values matching wallet and secret patterns: environment-style entries whose names contain KEY, SECRET, TOKEN, PASSWORD, SEED, MNEMONIC, or WALLET; 0x-prefixed 64-hex Ethereum private keys; Base58 WIF keys; 64-integer Solana key arrays; and BIP-39 mnemonic phrases validated against the BIP-39 word list and SHA-256 checksum. Collected material is uploaded to the attacker's Telegram bot via a sendDocument multipart request to api.telegram.org. No functionality corresponding to the package's stated dotenv-preflight purpose is present.\n\n## Source: ossf-package-analysis (48661f26d5e6181f87722c1e3c5bc997d1cc874999624c83504e0bec3029ff6c)\nThe OpenSSF Package Analysis project identified 'dotenv-precheck' @ 1.1.1 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","affected":[{"package":{"name":"dotenv-precheck","ecosystem":"npm"},"versions":["1.1.1","1.0.0","1.1.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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"d309a636d30fc5bce05090b91d212c9da4e438fc0abcb544ed7dd5a9672abc70","tlsh":"f2f2e9193bc4a905270f2d3ff51b30f8c69b14ea39840ec9e324f88426a665ab7ddd75"}],"package_integrity":[{"filename":"dotenv-precheck-1.1.1.tgz","hashes":{"sha1":"1cd82cd572dc29f25b3011d4768927705cc89267","sha512_sri":"sha512-yeXpZKhwFamy+71N0QDET0oilFNDtZJiLH7oNL6RB5eH6Zn4z2xj3WQGqafRTDUHvuIqVzvJMHJN00I+PLEN9w=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/dotenv-precheck/v/1.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/dotenv-precheck/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/dotenv-precheck/v/1.1.0"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020781","import_time":"2026-09-30T01:36:51.094689353Z","modified_time":"2026-09-30T01:26:38Z","sha256":"35af933c31e666f3477cb0235667345c54756cb7d84b0f9391f4efbd7948fc7b","source":"amazon-inspector","versions":["1.1.1"]},{"id":"IN-MAL-2026-020780","import_time":"2026-09-30T01:36:51.014019094Z","modified_time":"2026-09-30T01:26:29Z","sha256":"446a8483dbc9e696506f44c6777b7c086b1b919b2585b5e5c99ca5f6e2e19a8e","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-020782","import_time":"2026-09-30T01:36:51.189108739Z","modified_time":"2026-09-30T01:26:48Z","sha256":"c1c5b7562cf0887a1f863686169e3a87e15ff324ef2e962028bd4c304893a7a4","source":"amazon-inspector","versions":["1.1.0"]},{"import_time":"2026-10-01T05:44:25.752806603Z","modified_time":"2026-09-29T14:35:45Z","sha256":"48661f26d5e6181f87722c1e3c5bc997d1cc874999624c83504e0bec3029ff6c","source":"ossf-package-analysis","versions":["1.1.1"]},{"import_time":"2026-10-01T05:44:25.878813673Z","modified_time":"2026-09-29T14:09:20Z","sha256":"9e535435fbe09f85fc62a230c5c0a6462ce6d2d207e8e426f978ed00428bd8fc","source":"ossf-package-analysis","versions":["1.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}

数据来源:OpenSSF Malicious Packages · Apache-2.0