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

目标: 1000 元 · 已筹: 1359 元

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

ts-bn-lint

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

Summary

Malicious code in ts-bn-lint (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmts-bn-lint3.1.19
npmts-bn-lint5.8.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-23T16:56:09Z","published":"2026-06-23T16:11:21Z","schema_version":"1.7.4","id":"MAL-2026-6317","summary":"Malicious code in ts-bn-lint (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e591f0b407bc22e3abe20da9207df2d2922f75d98ab97aaa62557ca88b8fc349)\nts-bn-lint@3.1.19 is a credential harvester disguised as a TypeScript/lint utility. index.js defines `decodeStr` which base64-decodes all operationally sensitive strings, including the C2 endpoint `https://data-stream.space/api/v1` (index.js:32) and the target filename patterns `.env`, `config.toml`, `Config.toml`, `config.json`, `id.json`, and `env` (index.js:13-18). The exported `from_str` function recursively walks `process.cwd()` collecting files matching those patterns, then gathers shell histories by invoking `execSync(\"bash -c history\")` and `execSync(\"zsh -c 'fc -l -1000'\")` (index.js:101, 117), tagging each upload with the local username and IP for victim correlation before POSTing to the C2 endpoint. The `id.json` target is the standard Solana CLI keypair file; `.env` and `config.*` typically contain API keys and database credentials. The package's own `test.js` calls `from_str()` unconditionally, so `npm test` triggers exfiltration; any consumer who requires the package and calls the exported function does the same. Package metadata is empty (no author, no description) and the name impersonates the TypeScript/lint tooling namespace.\n","affected":[{"package":{"ecosystem":"npm","name":"ts-bn-lint"},"versions":["5.8.0","3.1.19"],"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":"big.js","sha256":"96307f0ca4a0914857019add5e6da267f10f3c278fa82e50e02787b2ca200eea","tlsh":"73c2658c3ac67579593363788f465088eb38525712c8b186b4ae63b46f78cb107b5fdc"},{"path":"package.json","sha256":"6c0e820b07fea88509abfa39be963df1f4baae6604c636101d9d71439ccda091","tlsh":"66210463c9a19da70af85b94bc6c43aaf2161b2f41a05c57b07b130c5f3355b2096bbd"}],"package_integrity":[{"filename":"ts-bn-lint-5.8.0.tgz","hashes":{"sha1":"d7e02f1c1ce21b3a5ce1a954c19c38de4cb445b3","sha512_sri":"sha512-ZHB6JWwY4HKnFANqFqbdqDsnUuicEvoR6joQlyvAXJ95RzKpl0JgoaIBMOSeGtpuKqUua2HcQtCbzVeYc3wpeg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/ts-bn-lint/v/5.8.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/ts-bn-lint/v/3.1.19"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007263","import_time":"2026-06-23T16:54:12.753171106Z","modified_time":"2026-06-23T16:11:21Z","sha256":"86ac26ab369f912cd3ec3498348b0182ff37868633087294b69c1cc583e184f6","source":"amazon-inspector","versions":["5.8.0"]},{"id":"IN-MAL-2026-007272","import_time":"2026-06-23T16:54:13.577464342Z","modified_time":"2026-06-23T16:11:28Z","sha256":"e591f0b407bc22e3abe20da9207df2d2922f75d98ab97aaa62557ca88b8fc349","source":"amazon-inspector","versions":["3.1.19"]}]}}

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