Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in ts-bn-proto (npm)

0
Critical
Published: 06/30/2026 (06/30/2026, 00:00:00 UTC)
Source: GCVE Database
Product: ts-bn-proto

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

npmghsa
ts-bn-proto
Affected versions
=5.8.1

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

AILast updated: 07/30/2026, 09:20:14 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses