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.
-= Per source details. Do not edit below this line.=-
The 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.
Any 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.
{
"malicious-packages-origins": [
{
"source": "amazon-inspector",
"import_time": "2026-07-09T16:20:49.385190479Z",
"sha256": "815835f44f5257a8dda47ca05ec01f05d4f4ead35850358445a644639ab00dd5",
"modified_time": "2026-07-09T15:41:03Z",
"id": "IN-MAL-2026-009187",
"versions": [
"5.8.1"
]
},
{
"modified_time": "2026-07-29T15:04:02Z",
"source": "ghsa-malware",
"sha256": "5a54a40adf51915413224d33240db940faf72bdc1efe4bde20be872278e5ebaf",
"import_time": "2026-07-30T03:51:56.570222Z",
"id": "GHSA-wxpc-r4jx-9jrw",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
]
}
]
}[
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
},
{
"cweId": "CWE-506",
"name": "Embedded Malicious Code",
"description": "The product contains code that appears to be malicious in nature."
}
]
{
"package_integrity": [
{
"filename": "ts-bn-proto-5.8.1.tgz",
"hashes": {
"sha512_sri": "sha512-HLQFQIWeya9CpaaEksj1m83ADFiuDceEGWms2ZD2JOpMYPxFFMHHFl1V+TOlN5UEGJnCMcnnVKFJA0pO9CG2Fw==",
"sha1": "dca82fa160d97535556402b1aa309557a737cea5"
}
}
],
"evidence_files": [
{
"tlsh": "6a72a89a15f7213242e373f8555f100a76a9c043360ade8977dc87582f9e528a2f6fec",
"sha256": "446e3d7176e00ff0b9cab68d546d7be7f08f79036d2eb38f7f820c10ab597299",
"path": "index.js"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ts-bn-proto/MAL-2026-6695.json"
{
"domains": [
"data-stream.space"
]
}