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

目标: 1000 元 · 已筹: 1336

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

envfile-sync-cli

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

Summary

Malicious code in envfile-sync-cli (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
12
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.0.2unavailable
2.0.0archivedVIP 下载
3.0.0unavailable
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmenvfile-sync-cli*
npmenvfile-sync-cli1.0.2
npmenvfile-sync-cli2.0.0
npmenvfile-sync-cli3.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-6590","published":"2026-06-29T07:28:07Z","modified":"2026-08-18T00:21:55.991476348Z","aliases":["GHSA-7f8c-p7q8-mw86"],"summary":"Malicious code in envfile-sync-cli (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (097a9a647e6d99cd53b881cae4fdd747d03b319388107c946c70b8804d3d917b)\nOn every import of envfile-sync-cli, src/index.js calls process.dlopen on bin/native/parser.node — a 2.9MB Windows PE executable (sha256 b1aace6c70312a39ca39e6bba1d9abc6aaf9b23171089b1a548adc89f67f83c3) shipped in the tarball. The dlopen call uses the canonical load-for-side-effects shape (`process.dlopen({ exports: {} }, p)` with the exports object discarded), so the binary executes for its side effects rather than to provide a parser API. The native binary is functionally redundant: parse.js already implements the env-file parser in pure JavaScript, so there is no engineering reason for the.node file to exist. The package's documentation actively conceals this code: README states 'Zero dependencies. Installs instantly, nothing to audit' and 'No binary to install', the CHANGELOG only documents v1.0.0 (this version is 2.0.0), and the binary is referenced only obliquely via the `bin/native/` entry in package.json's `files` array. The package is also a name/brand mismatch: package.json's `name` is `envfile-sync-cli` while the README, npm badge link (npmjs.com/package/envsync), bin alias (`envsync`), and CHANGELOG all brand the package as `envsync` — the standard typosquat delivery vehicle where the README impersonates a legitimate package so users trust it, while the published name differs and ships the hidden payload. The combination — undocumented native binary, silent dlopen at import time, redundant with shipped JS, README that explicitly denies the binary's existence, and brand impersonation of a different package — removes any plausible benign explanation and is consistent with smuggling attacker-controlled native code onto Windows installer machines.\n\n## Source: ghsa-malware (be5d590e3748b0cb58d102771ab22f0801a89a1be777fc7544b62cb6176eacf5)\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":"envfile-sync-cli","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.0.0","3.0.0","1.0.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"}],"indicators":{"evidence_files":[{"path":"src/index.js","sha256":"ea187bf5969a68aadc4edd5cbfd5b5ff85b34f55f62884655afcc1dd21bdb6f6","tlsh":"12b1de5697f612a04ae1b36d024f2561bb3880123196cd9075dc234d3fc6626a5f3bfc"},{"path":"package.json","sha256":"bbd4e88317341d44754ccb008712fe26b602b0eb058c6d581855a49f656aee71","tlsh":"6a316823c6200c2326c4f995eca975866a65e8874f903c0d339a529c0f5e96f51fe6ff"},{"path":"README.md","sha256":"77c9691627ead789bf79e149f88180b0f3c84d23fc4a7c422d4cb074ea0e8d92","tlsh":"ffa1968f56c813351af136a2b0ad3363db77c04813d248da68ed9048a3e575683fbee1"}],"package_integrity":[{"filename":"envfile-sync-cli-2.0.0.tgz","hashes":{"sha1":"0827c002908e47e3806eb2bd9ae79292d3072b38","sha512_sri":"sha512-1oQKtYxIQjumJ/U4AjHsWP1hi/Vau5Ixd9sD0qFS3zsVguArkpUcNWcRO5KR4tNBOlI+NtMAwHFUwSyJNVsejA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/envfile-sync-cli/v/2.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/envfile-sync-cli/v/3.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/envfile-sync-cli/v/1.0.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7f8c-p7q8-mw86"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007775","import_time":"2026-06-29T09:10:16.735211414Z","modified_time":"2026-06-29T07:28:25Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"097a9a647e6d99cd53b881cae4fdd747d03b319388107c946c70b8804d3d917b","source":"amazon-inspector","versions":["2.0.0"]},{"id":"IN-MAL-2026-007773","import_time":"2026-06-29T09:10:16.49499727Z","modified_time":"2026-06-29T07:28:07Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"51eb2af138b221a6eb2501efddb654c6ee43dc751156b20ed3b31c937184a0f7","source":"amazon-inspector","versions":["3.0.0"]},{"id":"IN-MAL-2026-007774","import_time":"2026-06-29T09:10:16.616442714Z","modified_time":"2026-06-29T07:28:17Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"80994fef101428d1f5d5b331c1915027cf2731ac888b982736dd557c2778c684","source":"amazon-inspector","versions":["1.0.2"]},{"id":"GHSA-7f8c-p7q8-mw86","import_time":"2026-08-18T00:20:04.628661978Z","modified_time":"2026-08-17T11:52:02Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"be5d590e3748b0cb58d102771ab22f0801a89a1be777fc7544b62cb6176eacf5","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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