ts-bn-proto (npm) · Malicious Code
Affects ts-bn-protoSource GCVE Database
Malicious package : remove ts-bn-proto and rotate any secrets on hosts that installed it.
Data as of 30 Jul 2026, 09:20 UTC
Malicious package
Published to npm · OSV MAL-2026-6695
What to do
Remove ts-bn-proto from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmts-bn-proto | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.