knip-bunnpm
Advisory published Updated
knip-bun is a confirmed malicious npm package (MAL-2026-13983) that typosquats a legitimate package to trick installs (malicious version 99.9.1). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in knip-bun (npm)
What this malware does
Package knip-bun typosquats the popular knip linter. The main module is an empty stub (module.exports = {}), and package.json declares a dependency ltidisafe pinned to an arbitrary Google Cloud Storage URL (https://ltidi.storage.googleapis.com/depenconf/ltidisafe-3.6.8.tgz) rather than a package on the npm registry. On npm install, npm downloads and installs the tarball from that bucket into the installer's dependency tree and runs whatever install/lifecycle logic it contains. The bucket is unaffiliated with the knip or bun projects, and the fetched tarball is fully controlled by whoever owns that GCS bucket.
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 versions
Indicators of compromise (SHA-256)
Detection & response playbook
TyposquatFind it
Search your lockfiles and build artifacts for knip-bun (version 99.9.1).
If you installed it — respond
knip-bun is a typosquat — you almost certainly intended a legitimately-named package. Remove knip-bun, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.
Did it already run?
If knip-bun was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks knip-bun-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.