Malicious code in ts-bn-proto (npm)
The npm package ts-bn-proto version 5.8.1 contains malicious code embedding an infostealer payload executed at install time. This payload exfiltrates sensitive data including cryptocurrency wallet vaults, browser cookies, credentials, SSH keys, AWS credentials, developer secrets, and password manager databases to an attacker-controlled server. The package uses a postinstall hook to run this code and includes suspicious shell execution commands. Any system with this package installed should be considered fully compromised, and all secrets should be rotated from a different machine.
AI Analysis
Technical Summary
The ts-bn-proto npm package version 5.8.1 is part of a coordinated DeFi-themed infostealer campaign. It embeds a base64-encoded command and control (C2) address in its index.js file and executes a malicious payload during installation via a postinstall hook. The payload harvests a wide range of sensitive information including cryptocurrency wallets (MetaMask, Phantom, Solflare, OKX, Coinbase, TrustWallet, Backpack, TronLink), browser cookies, credentials, SSH keys, AWS credentials, developer secrets, and password manager databases, then exfiltrates this data to the attacker-controlled domain data-stream.space. The package's index.js also contains Node.js child_process execSync calls that spawn bash and zsh shells, potentially enabling arbitrary command execution. Due to the severity and nature of the payload, any system with this package installed should be treated as fully compromised.
Potential Impact
Systems with ts-bn-proto version 5.8.1 installed are at critical risk of data theft, including cryptocurrency wallets, credentials, SSH keys, AWS credentials, and password manager data. The attacker gains full access to sensitive secrets and potentially full control over the compromised system. This can lead to financial loss, identity theft, and further compromise of connected systems and accounts.
Mitigation Recommendations
No official patch or fix is available for this malicious package. The package should be immediately removed from all systems. Because the package executes code at install time and may have granted the attacker full control, all secrets and keys stored on the affected systems must be rotated immediately from a separate, trusted machine. Manual review of the package's code is recommended before allowing its use in any build environment. Monitor for and block this package in supply chain security controls.
Malicious code in ts-bn-proto (npm)
Description
The npm package ts-bn-proto version 5.8.1 contains malicious code embedding an infostealer payload executed at install time. This payload exfiltrates sensitive data including cryptocurrency wallet vaults, browser cookies, credentials, SSH keys, AWS credentials, developer secrets, and password manager databases to an attacker-controlled server. The package uses a postinstall hook to run this code and includes suspicious shell execution commands. Any system with this package installed should be considered fully compromised, and all secrets should be rotated from a different machine.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The ts-bn-proto npm package version 5.8.1 is part of a coordinated DeFi-themed infostealer campaign. It embeds a base64-encoded command and control (C2) address in its index.js file and executes a malicious payload during installation via a postinstall hook. The payload harvests a wide range of sensitive information including cryptocurrency wallets (MetaMask, Phantom, Solflare, OKX, Coinbase, TrustWallet, Backpack, TronLink), browser cookies, credentials, SSH keys, AWS credentials, developer secrets, and password manager databases, then exfiltrates this data to the attacker-controlled domain data-stream.space. The package's index.js also contains Node.js child_process execSync calls that spawn bash and zsh shells, potentially enabling arbitrary command execution. Due to the severity and nature of the payload, any system with this package installed should be treated as fully compromised.
Potential Impact
Systems with ts-bn-proto version 5.8.1 installed are at critical risk of data theft, including cryptocurrency wallets, credentials, SSH keys, AWS credentials, and password manager data. The attacker gains full access to sensitive secrets and potentially full control over the compromised system. This can lead to financial loss, identity theft, and further compromise of connected systems and accounts.
Mitigation Recommendations
No official patch or fix is available for this malicious package. The package should be immediately removed from all systems. Because the package executes code at install time and may have granted the attacker full control, all secrets and keys stored on the affected systems must be rotated immediately from a separate, trusted machine. Manual review of the package's code is recommended before allowing its use in any build environment. Monitor for and block this package in supply chain security controls.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6695
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba8f68715ace435821f8
Added to database: 07/10/2026, 09:25:35 UTC
Last enriched: 07/30/2026, 09:20:14 UTC
Last updated: 07/31/2026, 08:13:37 UTC
Views: 128
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.