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

目标: 1000 元 · 已筹: 1336

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

@weirdorg/dotenv

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

Summary

Malicious code in @weirdorg/dotenv (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
10
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@weirdorg/dotenv*
npm@weirdorg/dotenv1.0.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-4467","published":"2026-05-20T07:11:29Z","modified":"2026-08-13T22:13:34.760200834Z","aliases":["GHSA-p44j-chjm-p4wj"],"summary":"Malicious code in @weirdorg/dotenv (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (dce94a089c58246a54a1e4496d323c92bb46dac654e1a1403e875292be94b198)\nPackage is a near-verbatim republication of the popular `dotenv` library (same README, API, and file layout) under the `@weirdorg/dotenv` name. The only material divergence from upstream `dotenv` is in `lib/main.js`: line 5 adds `const vconfig = require('@weirdorg/config')`, and line 253 inserts `vconfig.loadConfig();` at the top of `configDotenv()` — the function reached through the public `config()` entry point and through `require('@weirdorg/dotenv/config')`. `@weirdorg/config` is declared as a runtime dependency but is not mentioned in the README, is not part of the upstream `dotenv` API surface, and serves no documented purpose. Any installer who substitutes this package for `dotenv` (whether by typo, lockfile confusion, or scope-bait) and calls the advertised API will silently execute arbitrary code from `@weirdorg/config`, a sibling package controlled by the same publisher. This is the canonical namespace-abuse / dependency-smuggling shape: the visible package looks identical to a trusted library, while the actual payload lives in an undocumented sibling pulled in transparently through `dependencies`.\n\n## Source: ghsa-malware (0f263ea0c8e72fd9a9983e6e1c8685d08479dd2b1725ca1cb3bae0ea1564bdfb)\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":"@weirdorg/dotenv","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.4"],"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"}],"indicators":{"evidence_files":[{"path":"lib/main.js","sha256":"02c013e5ce8b27f8aa30fee569076bea1ad59d493bc98203b787feca926024fa","tlsh":"5d5274045616b61246f3bbe2d61b5008efbb423776248180b69ca7c82f69e64c1e7fdd"}],"package_integrity":[{"filename":"dotenv-1.0.4.tgz","hashes":{"sha1":"8691312244a0100f99265d8ba5f681cec5621703","sha512_sri":"sha512-6174oyD0eFW6+KgYw6dXsrR3APclH9yZSSSAYplp8CCZbuHJcdF5q6NPhmiLEagOIORZnlVrvek+qVwbZp/dXQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@weirdorg/dotenv/v/1.0.4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-p44j-chjm-p4wj"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-003482","import_time":"2026-05-26T05:50:43.481199213Z","modified_time":"2026-05-20T07:11:29Z","sha256":"dce94a089c58246a54a1e4496d323c92bb46dac654e1a1403e875292be94b198","source":"amazon-inspector","versions":["1.0.4"]},{"id":"GHSA-p44j-chjm-p4wj","import_time":"2026-08-13T22:11:44.629072104Z","modified_time":"2026-08-13T17:10:29Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"0f263ea0c8e72fd9a9983e6e1c8685d08479dd2b1725ca1cb3bae0ea1564bdfb","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}

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