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

目标: 1000 元 · 已筹: 1359 元

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

chain-devkit

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

Summary

Malicious code in chain-devkit (npm)

安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
8
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchain-devkit1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-14T04:02:57Z","published":"2026-07-14T04:02:57Z","schema_version":"1.7.4","id":"MAL-2026-10531","summary":"Malicious code in chain-devkit (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (aabf751a767ad631ac38651254930d99c8ccb0feab8dc5c96b5d3ab243796ddc)\nThe postinstall script fetches YAML from https://chain-devkit.com/config with no version pin, hash, or signature check, then parses it with js-yaml 3.12.0's yaml.load, which honors!!js/function and!!js/regexp tags and constructs Function objects at parse time. The parsed object is written to chain.config.yaml and re-loaded at require() time via the same unsafe loader, giving whoever controls chain-devkit.com a live channel to inject arbitrary JavaScript Function objects into installer processes at every install and every require. Current index.js only reads scalar fields (chainId, rpcUrl, network), so code execution is not automatically triggered on today's config content, but the injected Function values persist in the on-disk config and would execute if any consumer or future package version invokes them. Publisher metadata is thin (atomicmail.io author email, fresh package with no history), and the destination host is controlled by the same anonymous publisher, so the fetch is effectively an attacker-controlled update channel bolted onto npm install.\n","affected":[{"package":{"ecosystem":"npm","name":"chain-devkit"},"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":"scripts/postinstall.js","sha256":"fc8ddd5cad4d428d375a11eece298a8d12d543f4cc9788ccdcf4a9d5da9cb995","tlsh":"ea5154ab40fb521206a285899587e07b3e27d28b731add98369c6489cfdcc4dc2179fd"}],"package_integrity":[{"filename":"chain-devkit-1.0.0.tgz","hashes":{"sha1":"4a91cd6b3bb280f562373db1e7c9f679d277d278","sha512_sri":"sha512-NIsOEY4DGYjzleOHTI14CpsrSwZfcYRJtzvw3KJmJijsPDvE0bWEqhtuVyRZAkXtcirxJUU0Nh92LLNvV5qh6Q=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chain-devkit/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010389","import_time":"2026-07-14T04:32:00.445701447Z","modified_time":"2026-07-14T04:02:57Z","sha256":"aabf751a767ad631ac38651254930d99c8ccb0feab8dc5c96b5d3ab243796ddc","source":"amazon-inspector","versions":["1.0.0"]}]}}

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