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

目标: 1000 元 · 已筹: 1359 元

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

pewter-constants

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

Summary

Malicious code in pewter-constants (npm)

安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmpewter-constants9999.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-05-23T17:41:32Z","published":"2026-05-23T17:41:32Z","schema_version":"1.7.4","id":"MAL-2026-4637","summary":"Malicious code in pewter-constants (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3c9f898fe8ed95b1d549bfff91d7c0dda0f75ada1c32a58af144940cf28b23c5)\nOn `npm install`, a preinstall hook in callback.js collects os.hostname(), os.userInfo().username, process.cwd(), the configured npm registry (`npm_config_registry`), and CI repo identifiers (GITHUB_REPOSITORY, CI_PROJECT_PATH, BUILD_REPOSITORY_NAME) and HTTP-GETs them to `http://75.119.137.232:31337/depconfuse`. The package is shaped as a dependency-confusion squat: version `9999.0.0` to win semver resolution against an internal package of the same name, an empty `index.js` (`module.exports = {}`), and placeholder author/description metadata (`Security Researcher`, `Security research placeholder`). Any build that resolves `pewter-constants` from the public registry will install this package and silently leak its internal registry URL, CI repo path, and host/user identity to a third-party operator over plain HTTP. The 'security research' framing in the metadata does not change the installer-side impact — internal infrastructure is fingerprinted and disclosed without consent.\n","affected":[{"package":{"ecosystem":"npm","name":"pewter-constants"},"versions":["9999.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":"callback.js","sha256":"681fd66df6380f3163de0c70cf621b81ada674401bd842b230dacd856933760a","tlsh":"1901bde9828858341cc313c4be956c1e98d7d3523283d4c2ab1d31e167531b486f65b9"},{"path":"package.json","sha256":"e9f0be861735561b1077eb4480e2423b803d53550cd916e30663e47342a2b1c6","tlsh":"f3e06814381468332cf686e504719256a065cd1f641a3c0ea746008ce38efdb82fb19e"}],"package_integrity":[{"filename":"pewter-constants-9999.0.0.tgz","hashes":{"sha1":"aa893fd3ec98b42fabdd658e5434d0029b6f8458","sha512_sri":"sha512-53NZh6fSnlnjnh8sr14zXFOJPp/I/eHg8J3jEpcDXaektjPfcLDo8wP9kSKG9wzKfSB9/AzbAujalxElFb75Hg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/pewter-constants/v/9999.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-004369","import_time":"2026-05-26T05:52:27.907183724Z","modified_time":"2026-05-23T17:41:32Z","sha256":"3c9f898fe8ed95b1d549bfff91d7c0dda0f75ada1c32a58af144940cf28b23c5","source":"amazon-inspector","versions":["9999.0.0"]}]}}

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