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

目标: 1000 元 · 已筹: 1359 元

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

selfcerts

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

Summary

Malicious code in selfcerts (npm)

文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
133
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.0.0archived——VIP 下载
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmselfcerts1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-09-09T00:48:17Z","published":"2026-09-09T00:48:17Z","schema_version":"1.7.4","id":"MAL-2026-16060","summary":"Malicious code in selfcerts (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ef5688e6ff2ef3728556e4e455154ad9a8f6c44670eee611d55adb3cba250536)\nindex.js reads sample/cert.pem, strips the BEGIN/END CERTIFICATE header and footer, base64-decodes the body, and eval()s the result. The decoded bytes are a JavaScript IIFE that base64-decodes a hardcoded URL (http://144.172.104.211/settings/privacy.php), fetches its response over plain HTTP, and pipes the body into a detached python3 process via stdin, executing whatever the remote host returns. The loader (loadSampleCertificate) is invoked unconditionally at the top of the exported generateCertificates() API, so any consumer that uses the package as advertised triggers remote code execution on the installer's host. Presenting an executable payload as a PEM certificate and nesting the C2 URL under a second base64 layer is deliberate obfuscation with no legitimate role in a certificate-generation library.\n","affected":[{"package":{"ecosystem":"npm","name":"selfcerts"},"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":"index.js","sha256":"573f647718e2574c7581ba4df8a9614f969d01dea2a38907822180e2fd242854","tlsh":"2e51138569e2b9a204e79674450b9010b42cd143f70afcab769e87d06f16e6cd17eecc"},{"path":"sample/cert.pem","sha256":"010bda5b6c0fe7050d10b3b864fddc1276e44eb83da83861418bd288acff91e2","tlsh":"971144035e620ccf4390e4be2adc82c304ae43d6248262fd458f47adbabc10605fc2a0"}],"package_integrity":[{"filename":"selfcerts-1.0.0.tgz","hashes":{"sha1":"2af18f35c6ce01d177f1ea8ee0ed1bda2accf1af","sha512_sri":"sha512-9JTatE1kDNcGK6K1SaEOFyLvLfU1SEQTlbXxFBv15Gwmhn08d1tI8Mzr/aCd2cfDGfw/fNyYsC+uDN8vSHht0w=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/selfcerts/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-019732","import_time":"2026-09-09T01:28:58.470487366Z","modified_time":"2026-09-09T00:48:17Z","sha256":"ef5688e6ff2ef3728556e4e455154ad9a8f6c44670eee611d55adb3cba250536","source":"amazon-inspector","versions":["1.0.0"]}]}}

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