ts-bn-lint-helper (npm) · Malicious Code
Affects ts-bn-lint-helperSource GCVE Database
Malicious package : remove ts-bn-lint-helper and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 14:37 UTC
Malicious package
Published to npm · OSV MAL-2026-6318
What to do
Remove ts-bn-lint-helper 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-lint-helper | 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-lint-helper masquerades as a TypeScript lint helper but contains malicious code that harvests sensitive files and shell history from the user's environment. It recursively searches the current working directory for configuration and credential files and exfiltrates them, along with shell history files, to an attacker-controlled server. The package uses base64 encoding to hide the exfiltration URL and target file patterns. Execution of the from_str() function or running npm test triggers the data theft. The package metadata is minimal and deceptive, mimicking legitimate tooling to avoid detection.