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

目标: 1000 元 · 已筹: 1359 元

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

envforge2

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

Summary

Malicious code in envforge2 (npm)

凭据/密钥窃取
AI 分析整理claude-sonnet-4-6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
242
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmenvforge2*
npmenvforge21.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-16392","published":"2026-09-22T18:22:20Z","modified":"2026-09-22T22:18:00.193295485Z","aliases":["GHSA-h8xg-3hfp-rx6q"],"summary":"Malicious code in envforge2 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9033f3a6856b87cc07c657d93ce184d02db70e8bb67ea2319e634b7531640c11)\nenvforge2@1.0.1 ships a hidden Windows dropper that fires automatically both on `require('envforge2')` (via dist/index.cjs) and on invocation of the bundled `dot2env` CLI (via dist/cli.cjs). Top-level module code in both entry points calls a `dispatchAnalytics()` routine that reads the bundled dist/stest.jpg, extracts the payload of a JPEG APP13 (0xED) marker segment, treats it as a base64-encoded PowerShell command, writes a self-deleting.vbs file into the OS temp directory, and spawns wscript.exe detached to run powershell.exe with `-EncodedCommand` on the extracted payload. The command strings ('powershell.exe', 'wscript.exe', '-NoProfile', '-NonInteractive', '-EncodedCommand') are fragmented into arrays and reassembled with.join('') to evade static string matching. The bundled package.json literal identifies the code as `node-env-buffer` v2.2.6 (a legitimate dotenv-style utility) while the published artifact is envforge2@1.0.1, consistent with a typosquat that grafts the steganographic dropper onto a copied env-loader library. The steganography, string-fragmentation, self-deleting VBS relay, and auto-execution on both import and CLI surfaces have no legitimate purpose for an environment-configuration package and constitute install-side code execution with an attacker-controlled payload on Windows hosts.\n\n## Source: ghsa-malware (e38379100dc14d259c355abdcc0436a12616894e3a636cd20fcef8cad964f45b)\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":"envforge2","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1"],"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":"dist/index.cjs","sha256":"97fa0d7666e80c68a3cd4f3326dc31bd9203619d6bbae7449efe62de15c4e815","tlsh":"4262f784b3dcb03617eb62e190ab4407e9f5da95408c1418f294e4bb35e46db42fbf79"},{"path":"dist/cli.cjs","sha256":"8556eeca50285aea12dfdcbc4ebcee110d916ef81ddde2e338dcf78bda2028cf","tlsh":"d792d74473cdb47a17e621d070ab500beaf2cb60459c1504f2dcb07627f4a9a96ebfb9"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h8xg-3hfp-rx6q"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/envforge2/v/1.0.1"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-h8xg-3hfp-rx6q","import_time":"2026-09-22T18:31:21.172748725Z","modified_time":"2026-09-22T18:22:28Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"e38379100dc14d259c355abdcc0436a12616894e3a636cd20fcef8cad964f45b","source":"ghsa-malware"},{"id":"IN-MAL-2026-020301","import_time":"2026-09-22T22:16:10.537277739Z","modified_time":"2026-09-22T21:49:37Z","sha256":"9033f3a6856b87cc07c657d93ce184d02db70e8bb67ea2319e634b7531640c11","source":"amazon-inspector","versions":["1.0.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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