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

目标: 1000 元 · 已筹: 1359 元

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

envfile-sync

MAL-2026-6589
2026-06-29 07:32:58
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in envfile-sync (npm)

AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmenvfile-sync*
npmenvfile-sync1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-29T07:32:58Z","published":"2026-06-29T07:32:58Z","schema_version":"1.7.4","id":"MAL-2026-6589","summary":"Malicious code in envfile-sync (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (533d78538183c16b774f6e5783cc1059558ca712fd129da9666361088485e055)\nPackage name is 'envfile-sync' but every user-facing artifact (README title, bin name, homepage, repository, bugs URL, badges, keywords, CHANGELOG) brands the package as 'envsync', a lookalike of an unrelated existing npm package. The advertised JS API is non-functional: exported sync/check/validate/init in src/index.js return hardcoded placeholders ({ ok: true, missing: [],...opts }) and never set the fields (r.added, r.example, r.inSync, r.createdExample) that bin/cli.js consumes — the documented surface is a stub. On module load, src/index.js:21-25 resolves bin/native/parser.node and calls process.dlopen(module, p), executing arbitrary native code from a 2.9MB undocumented Windows PE ('!This program cannot be run in DOS mode.'). The README explicitly denies any binary exists ('zero dependencies', 'No binary to install, nothing to audit'), and no JS export ever calls into a native parser API, so the binary's behavior is hidden from auditors and contradicts the package's documentation. The combination — typosquat branding to attract installs, stub JS to satisfy a casual reader, opaque native PE dlopen'd on import as the only real code path — is the canonical hidden-native-payload shape. Any consumer who imports envfile-sync on Windows runs the unverifiable native code with the host process's privileges.\n","affected":[{"package":{"ecosystem":"npm","name":"envfile-sync"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"3e0ce25bb368284963c2c9bbc5080e8c8132f2515f8838e68ba5d1abc5b86b67","tlsh":"6e31d863c2604c2325d0e559a8a57182a96599830fd03c4c37e9029c0f8e9bf51fe6ed"},{"path":"src/index.js","sha256":"5b3ddf32bc5a5d1255776d28e74f400e88ee994b598b875391369c9d566d19de","tlsh":"180176c736e77320c521b35da89f812d7de8d180226e4ba085950af23be06a0866796a"}],"package_integrity":[{"filename":"envfile-sync-1.0.0.tgz","hashes":{"sha1":"dbb3acde0ec853925c24f6cf59039ebccd6b89cd","sha512_sri":"sha512-rAlupIj/BM/AKLEebh81DUKxZjPrQlC2z/AFzVHt/yqXE+wqnE29dFRs4njeypzJpd7u1La6Q6whDAqT7EH4FA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/envfile-sync/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007776","import_time":"2026-06-29T09:10:16.867241594Z","modified_time":"2026-06-29T07:32:58Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"533d78538183c16b774f6e5783cc1059558ca712fd129da9666361088485e055","source":"amazon-inspector","versions":["1.0.0"]}]}}

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