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

目标: 1000 元 · 已筹: 1359 元

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

ts-bn-proto

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

Summary

Malicious code in ts-bn-proto (npm)

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
142
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmts-bn-proto*
npmts-bn-proto5.8.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-30T04:16:45Z","published":"2026-06-30T00:00:00Z","schema_version":"1.7.4","id":"MAL-2026-6695","aliases":["GHSA-wxpc-r4jx-9jrw"],"summary":"Malicious code in ts-bn-proto (npm)","details":"Malicious npm package published as part of a coordinated DeFi-themed infostealer campaign. `ts-bn-proto` embeds an infostealer payload directly in `index.js` with a base64-encoded C2 address (`data-stream.space`), executed at install time via a `postinstall` hook. The payload harvests cryptocurrency wallet vaults (MetaMask, Phantom, Solflare, OKX, Coinbase, TrustWallet, Backpack, TronLink), browser cookies and credentials, SSH keys, AWS credentials, developer secrets, and password manager databases, then exfiltrates all data to the attacker-controlled C2.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (815835f44f5257a8dda47ca05ec01f05d4f4ead35850358445a644639ab00dd5)\nThe package's index.js requires Node's child_process module and contains execSync calls that spawn bash and zsh (around lines 301 and 317). Without further trace evidence, the intent and reachability of these shell invocations cannot be confirmed — they may be benign tooling or a path to executing arbitrary commands on the installer's machine. Given the presence of shell execution primitives in the main module, manual review of index.js around the cited lines is warranted before allowing this package into a build environment.\n\n## Source: ghsa-malware (5a54a40adf51915413224d33240db940faf72bdc1efe4bde20be872278e5ebaf)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"ecosystem":"npm","name":"ts-bn-proto"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["5.8.1"],"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"},{"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":"446e3d7176e00ff0b9cab68d546d7be7f08f79036d2eb38f7f820c10ab597299","tlsh":"6a72a89a15f7213242e373f8555f100a76a9c043360ade8977dc87582f9e528a2f6fec"}],"package_integrity":[{"filename":"ts-bn-proto-5.8.1.tgz","hashes":{"sha1":"dca82fa160d97535556402b1aa309557a737cea5","sha512_sri":"sha512-HLQFQIWeya9CpaaEksj1m83ADFiuDceEGWms2ZD2JOpMYPxFFMHHFl1V+TOlN5UEGJnCMcnnVKFJA0pO9CG2Fw=="}}]},"iocs":{"domains":["data-stream.space"]}}}],"references":[{"type":"REPORT","url":"https://safedep.io/defi-infostealer-fake-arbitrage-bot-npm/"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/ts-bn-proto/v/5.8.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wxpc-r4jx-9jrw"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]},{"name":"SafeDep","type":"FINDER","contact":["https://safedep.io"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"815835f44f5257a8dda47ca05ec01f05d4f4ead35850358445a644639ab00dd5","import_time":"2026-07-09T16:20:49.385190479Z","id":"IN-MAL-2026-009187","modified_time":"2026-07-09T15:41:03Z","versions":["5.8.1"]},{"source":"ghsa-malware","sha256":"5a54a40adf51915413224d33240db940faf72bdc1efe4bde20be872278e5ebaf","import_time":"2026-07-30T03:51:56.570222Z","id":"GHSA-wxpc-r4jx-9jrw","modified_time":"2026-07-29T15:04:02Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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