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

目标: 1000 元 · 已筹: 1359 元

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

dotenv-express

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

Summary

Malicious code in dotenv-express (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
7
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmdotenv-express17.4.2
npmdotenv-express17.4.3
npmdotenv-express17.4.4
npmdotenv-express17.4.5
npmdotenv-express17.4.6
npmdotenv-express2.5.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-2350","published":"2026-03-24T15:43:15Z","modified":"2026-09-01T11:20:25.878682556Z","aliases":["GHSA-hmr7-9h9c-5m6q"],"summary":"Malicious code in dotenv-express (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (87c063897212774df4e13b1d7bf70cc74a98ac1ca824d2bb1f1e8c60d0662b5e)\nPackage impersonates the popular `dotenv` package: `package.json` points its repository field to `git://github.com/motdotla/dotenv.git` and homepage to `https://github.com/motdotla/dotenv#readme`, neither of which the author owns. The library code is a near-verbatim copy of dotenv but adds `const gate = require('environment-gate')` at the top of `lib/main.js`, and the documented `config()` entry point begins with `gate.gate()` — so any consumer calling the standard dotenv API (`require('dotenv-express').config()`) executes code from `environment-gate`, an unrelated third-party dependency with no env-file-loading purpose, on every load. The package additionally ships `skills/dotenv/SKILL.md` and `skills/dotenvx/SKILL.md` whose frontmatter declares `name: dotenv`, `author: motdotla`, `source: https://github.com/motdotla/dotenv`, and instructs `npm install dotenv` — identity-spoofing metadata designed to trick AI coding agents into treating this package as the genuine dotenv. The combination of impersonated repo/homepage/skill metadata, a name one token away from `dotenv`, and a forced transitive dependency that runs on the documented API call is deliberate namespace abuse rather than a typo, and the harm to installers is whatever `environment-gate` does at require-time on every `.config()` invocation.\n\n## Source: ghsa-malware (03c0fed624e7f4adac4d6d6f75a5d7074900b15daf2009781445e6edd0b01f87)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"dotenv-express","ecosystem":"npm","purl":"pkg:npm/dotenv-express"},"versions":["2.5.5","17.4.4","17.4.5","17.4.3","17.4.6","17.4.2"],"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"lib/main.js","sha256":"e9ee2df1dc7bf9a9482ee12fb2e329f367b409ab24ef544667e7c18352397630","tlsh":"5a428208a9f5761147c3b2d2914f5009a9bac217361c9f907a8cb3d86f49e78c5e37ed"}],"package_integrity":[{"filename":"dotenv-express-17.4.4.tgz","hashes":{"sha1":"bbf7ae337d0f74ad1bf5dd9774dddc01c9d38900","sha512_sri":"sha512-HRlvUEUxmAoB4pTtud/GtDiPEpRIrUbc/ndVk2dOW6jDY/LVMWczGyJY3OjX/J9g4mFfCtbVI/J3Cf5DvQwRqA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/dotenv-express/v/17.4.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/dotenv-express/v/17.4.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/dotenv-express/v/17.4.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hmr7-9h9c-5m6q"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/dotenv-express/v/17.4.2"}],"database_specific":{"malicious-packages-origins":[{"id":"RLMA-2026-01743","import_time":"2026-04-01T12:26:07.75022583Z","modified_time":"2026-03-24T15:43:15Z","sha256":"5ea08e37c8d0d7664606e811be640da27372585c408c2cf5987b8903ad6dd493","source":"reversing-labs","versions":["2.5.5"]},{"import_time":"2026-04-07T14:39:16.66911359Z","modified_time":"2026-04-07T14:24:50Z","sha256":"4a2a64c0b295657e6373168223a6131c966f09e6c0b7a1e150b7deba779b75be","source":"amazon-inspector","versions":["2.5.5"]},{"id":"IN-MAL-2026-006690","import_time":"2026-06-15T20:14:28.11109398Z","modified_time":"2026-06-15T19:52:13Z","sha256":"4130b63199807afa74453827b83d0ce23da273ea2f4df80b31860c360239d7f8","source":"amazon-inspector","versions":["17.4.4"]},{"id":"IN-MAL-2026-006689","import_time":"2026-06-15T20:14:28.034548168Z","modified_time":"2026-06-15T19:52:10Z","sha256":"87c063897212774df4e13b1d7bf70cc74a98ac1ca824d2bb1f1e8c60d0662b5e","source":"amazon-inspector","versions":["17.4.5"]},{"id":"IN-MAL-2026-006691","import_time":"2026-06-15T20:14:28.227212941Z","modified_time":"2026-06-15T19:52:13Z","sha256":"b2550d2da2fa62332dfdc22a952773e11cfd7b97d2dbbaab70697eff6321c54f","source":"amazon-inspector","versions":["17.4.3"]},{"id":"GHSA-hmr7-9h9c-5m6q","import_time":"2026-07-06T18:54:03.59858665Z","modified_time":"2026-07-06T18:53:09Z","sha256":"03c0fed624e7f4adac4d6d6f75a5d7074900b15daf2009781445e6edd0b01f87","source":"ghsa-malware","versions":["17.4.6","17.4.5","17.4.4","17.4.3","17.4.2"]},{"id":"IN-MAL-2026-008994","import_time":"2026-07-08T23:27:58.076672045Z","modified_time":"2026-07-08T23:03:19Z","sha256":"92f1b1d09c90ea6261b274ee3f1aa6720f36c96ec9b32b6f2a0ef7f05ddcef59","source":"amazon-inspector","versions":["17.4.2"]},{"id":"RLUA-2026-05529","import_time":"2026-07-20T13:15:01.640230176Z","modified_time":"2026-07-20T10:40:25Z","sha256":"c93b3b07d5885e933de83dadbe787cb87929204b60176a8093a0b5287929cae2","source":"reversing-labs"},{"id":"RLUA-2026-06177","import_time":"2026-09-01T11:18:01.863666674Z","modified_time":"2026-08-24T16:47:44Z","sha256":"7ca0a55483d0167fa11024754cae23847d971a219d49e3ad5b12f7bede01858d","source":"reversing-labs","versions":["17.4.5","17.4.3","17.4.4"]}]},"credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com","inspector-research@amazon.com"],"type":"FINDER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}

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