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

目标: 1000 元 · 已筹: 1359 元

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

cdp-core

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

Summary

Malicious code in cdp-core (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmcdp-core1.0.4
npmcdp-core1.0.6
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-05-15T07:39:05Z","published":"2026-05-15T03:08:53Z","schema_version":"1.7.4","id":"MAL-2026-3752","summary":"Malicious code in cdp-core (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (dbf55b093e3a93e8d3f536101e62e09cf7e86636cd42813d02f518138cbcb8ed)\nThe package ships cdp_inject.js, which combines child_process, fs, http/https, and base64 encoding to gather system information and exfiltrate it over the network. The file imports http, https, fs, and child_process at the top, reads process.env.USER and other environment data, executes shell utilities (including ping for host reconnaissance), reads files via fs.readFileSync, base64-encodes the collected content (toString('base64') at L205 and L209), and posts it out via https.request/http.get with a hardcoded hostname and POST body. This is the canonical sysinfo+filesystem credential-stealer shape: the package's only on-load effect is to harvest installer-side data and ship it to a network destination. The package name (\"cdp-core\") and absence of any legitimate library functionality consistent with this code further indicate the file's purpose is exfiltration rather than a documented feature.\n","affected":[{"package":{"ecosystem":"npm","name":"cdp-core"},"versions":["1.0.6","1.0.4"],"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":"cdp_inject.js","sha256":"40ffbf5006c5dd3c7977b4c8cf9dda01f978643f79fa86744faf5fbce669295a","tlsh":"6c42a48aa5fb203584b7b0755b5ba8477239d013b140cea47e4c83951fc6dbc92b2bed"}],"package_integrity":[{"filename":"cdp-core-1.0.6.tgz","hashes":{"sha1":"b9b0fda4d3f5e30caab94fb86ea20aa3dbf0563e","sha512_sri":"sha512-0sqZnup28jHgkVjrKUhw1KqpqX6URgwwx/R5yHWDEG9liuA4spcYYM9/UU1MZNRZkGyXWr+dE8G9jq9qpGMjLw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/cdp-core/v/1.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/cdp-core/v/1.0.4"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-002809","import_time":"2026-05-15T07:37:20.311931409Z","modified_time":"2026-05-15T03:08:53Z","sha256":"c7363417d8658ee8f5fe919dca59c63eedf84d4b9b1023dffad3e9e7bf8e45f0","source":"amazon-inspector","versions":["1.0.6"]},{"id":"IN-MAL-2026-002812","import_time":"2026-05-15T07:37:20.506605512Z","modified_time":"2026-05-15T03:11:53Z","sha256":"dbf55b093e3a93e8d3f536101e62e09cf7e86636cd42813d02f518138cbcb8ed","source":"amazon-inspector","versions":["1.0.4"]}]}}

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