habinger (npm) · Malicious Code
Affects habingerSource GCVE Database
Malicious package : remove habinger and rotate any secrets on hosts that installed it.
Data as of 22 Jul 2026, 23:43 UTC
Malicious package
Published to npm · OSV MAL-2026-11002
What to do
Remove habinger 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 |
|---|---|---|
| npmhabinger | 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 'habinger' version 2.1.6 contains malicious code executed during its postinstall script. On Linux systems, it adds an attacker-controlled SSH public key to the authorized_keys file and modifies firewall rules to allow SSH access, enabling persistent remote access. Additionally, it searches for sensitive files such as Solana CLI keypairs and environment configuration files, uploading them to an attacker-controlled server. It also downloads scanning patterns to recursively search and exfiltrate matching files from the user's home directory or all logical drives on Windows. This behavior compromises system confidentiality and integrity.