Malicious code in solana-dev-tools (npm)
Description
The solana-dev-tools npm package version 1.0.0 contains malicious code that executes during installation. It steals sensitive credentials and environment secrets from the victim's machine and exfiltrates them via Telegram. The malware attempts to transfer Solana cryptocurrency balances to an attacker-controlled address and establishes persistence via a cron job. It includes sandbox evasion techniques to avoid detection in analysis environments. The package impersonates legitimate Solana developer tools as a cover.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The solana-dev-tools package (npm, version 1.0.0) contains a postinstall script that performs a multi-stage attack. Upon installation, it reads sensitive files such as Solana keypairs, SSH private keys, AWS credentials, and environment variables containing secrets. These are exfiltrated to a Telegram bot endpoint controlled by the attacker. If a Solana keypair is recovered, the script reconstructs it, queries the mainnet-beta balance, and transfers nearly all funds to a hardcoded attacker public key. Persistence is achieved by installing a cron job that reruns the malicious script on reboot. The malware includes sandbox evasion checks to detect containerized or analysis environments and suppress persistence in those cases. The package masquerades as legitimate Solana development CLI tools to deceive users.
Potential Impact
Sensitive credentials and secrets are stolen from the victim's machine, including Solana wallet keys, SSH keys, AWS credentials, and various environment secrets. The attacker can drain Solana cryptocurrency balances from compromised wallets. Persistence on the infected system is established via a cron job, enabling repeated exfiltration and theft. The malicious package poses a significant risk to confidentiality and financial assets of developers using this tooling.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing solana-dev-tools version 1.0.0 from untrusted sources. Remove the package and any related cron jobs if already installed. Monitor for suspicious network traffic to Telegram endpoints and unauthorized Solana transfers. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates. Consider using verified and trusted Solana development tools only.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5559
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-85ph-3qr8-3q2q"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f317acd9273b49e493e0
Added to database: 09/01/2026, 15:45:27 UTC
Last enriched: 09/08/2026, 14:08:03 UTC
Last updated: 10/04/2026, 05:59:01 UTC
Views: 24
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.