web3-terminal (npm) · Malicious Code
Affects web3-terminalSource GCVE Database
Malicious package : remove web3-terminal 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-11007
What to do
Remove web3-terminal 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 |
|---|---|---|
| npmweb3-terminal | 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 'web3-terminal' version 2.1.6 contains malicious code that executes during installation. It collects sensitive files such as Solana keypairs and environment configurations from the user's system and exfiltrates them to attacker-controlled servers. Additionally, it downloads scanning and blocking patterns to recursively scan and upload matched files from the user's home directory or drives. On Linux systems, it adds an attacker-controlled SSH public key to authorized_keys and modifies firewall rules to allow inbound SSH access, potentially enabling persistent unauthorized access. The package masquerades as legitimate Web3 tooling but has empty metadata, indicating low attribution and targeting of Solana/Web3 developers.