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

目标: 1000 元 · 已筹: 1336

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

javas-crypto

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

Summary

Malicious code in javas-crypto (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmjavas-crypto2.0.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-05T15:41:58Z","published":"2026-08-05T15:41:58Z","schema_version":"1.7.4","id":"MAL-2026-13347","summary":"Malicious code in javas-crypto (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (eb8d6c5cf1104be2efdc1b3e6ff2e6dbc19f8b5036f87f6edaf99116216c0c53)\njavas-crypto ships a postinstall hook (package.json line 11: \"postinstall\": \"node setup.js\") and a top-level autoExecute() in index.js that both enumerate the full process.env (minus a small shell-variable allowlist) and POST every captured key=value pair, along with hostname and CI job/project/commit identifiers, to an HTTP backend read from environment variables, package.json,.crypto-config.json, or.env. In the advertised CI/CD context, process.env contains credentials such as AWS_SECRET_ACCESS_KEY, GITHUB_TOKEN, GITLAB_TOKEN, and registry publish tokens, all of which are transmitted in plaintext form to the configured endpoint. The exfiltration path fires automatically on npm install (via the postinstall hook) and again on any require/import of the package. Package metadata frames the behavior as a \"Secure environment variable handler for GitLab CI/CD pipelines\" by author \"DevSecOps\" with placeholder repository gitlab.com/example/js-crypto.git, and the package name javas-crypto resembles js-crypto. Function names such as SecretsHandler, sendToBackend, and formatPayload present bulk secret harvesting as a security feature. Errors during transmission are silently swallowed so the victim sees no failure.\n","affected":[{"package":{"ecosystem":"npm","name":"javas-crypto"},"versions":["2.0.4"],"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":"setup.js","sha256":"fee2025c686373d93d0e8ad23deb2e27d9b6eca290b81c8bdc45177c47ef802b","tlsh":"69b1970645fd64020b63565d67af6212bb75f5032e08fe54bbcd23062f5a22d87f26ec"},{"path":"index.js","sha256":"bff36808e1f67efa2d0633861a0673a5f0da627dcb3095d1c79c7a9b967642d8","tlsh":"60e1a609a5fe64028ba3615e3bdf7202b635e9071e08fe54bacc13455f4a12d8bf17e8"},{"path":"package.json","sha256":"809f8d161a035e4b37d475badb264bfeb70e913fa8bf50149085d956c74fce4a","tlsh":"50f04c24c8346c2336c85b959d7a0441a4308e174e487c0d73a3522c8f9e26f24fe7ad"}],"package_integrity":[{"filename":"javas-crypto-2.0.4.tgz","hashes":{"sha1":"7c98879f95822f2da59598cb5ea16b7477417d6e","sha512_sri":"sha512-EtKTtCPWrM8h3EU73dSzy8RhAgxplYXU1HEWOVn7l9d//WytYemFOcz4ImM6hCfGVPzgt585aT4HxE4k1+wNOg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/javas-crypto/v/2.0.4"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015798","import_time":"2026-08-05T16:13:46.49104035Z","modified_time":"2026-08-05T15:41:58Z","sha256":"eb8d6c5cf1104be2efdc1b3e6ff2e6dbc19f8b5036f87f6edaf99116216c0c53","source":"amazon-inspector","versions":["2.0.4"]}]}}

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