Skip to main content

Malicious code in solana-web3-community (npm)

0
Critical
Published: 06/11/2026 (06/11/2026, 02:58:17 UTC)
Source: GCVE Database
Product: solana-web3-community

Description

The solana-web3-community npm package is a malicious package impersonating the official Solana SDK. It executes a credential-stealing payload that harvests sensitive files and environment variables containing secrets. The stolen data is exfiltrated to an attacker-controlled Telegram bot. Additionally, it hijacks the Solana CLI configuration to route transactions through a malicious RPC node and establishes a remote shell backdoor with persistence via crontab.

Affected software

npmghsa
solana-web3-community
Affected versions
=1.0.0=1.0.2=1.0.1=1.0.3=1.0.4=1.0.5

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

AILast updated: 09/08/2026, 14:08:33 UTC

Technical Analysis

The solana-web3-community package masquerades as the official @solana/web3.js SDK to deceive developers. Upon import, it executes code that steals credentials from common key files (~/.config/solana/id.json, ~/.ssh/id_rsa, ~/.aws/credentials, project.env) and environment variables with names indicative of secrets. This data is sent to a Telegram bot controlled by the attacker. The package also modifies the Solana CLI config to redirect RPC calls to an attacker-controlled node, enabling transaction hijacking. It provides a remote shell backdoor by polling the Telegram bot for commands and executing them on the victim's machine. Persistence is maintained by adding a cron job that relaunches the malicious code on system reboot. The affected versions are 1.0.0 through 1.0.5 inclusive.

Potential Impact

This malicious package compromises developer machines by stealing a wide range of sensitive credentials and secrets, including SSH keys, cloud credentials, and blockchain wallet keys. It enables attackers to intercept and manipulate Solana blockchain transactions by redirecting RPC calls. The remote shell backdoor allows full command execution on the victim's system, leading to complete system compromise and persistent access.

Defensive Guidance

No official patch or remediation is currently available. Users should immediately uninstall the solana-web3-community package if present. Avoid using packages that impersonate official SDKs and verify package authenticity before installation. Review and rotate any potentially compromised credentials and keys. Monitor for unauthorized cron jobs and remove any suspicious entries. Check Solana CLI configuration files for unauthorized modifications and restore them to trusted settings.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-5560
Osv Schema Version
1.7.4
Aliases
["GHSA-hrhj-mh9v-hvr8"]
Ecosystems
["npm"]

Threat ID: 6a96f317acd9273b49e493d6

Added to database: 09/01/2026, 15:45:27 UTC

Last enriched: 09/08/2026, 14:08:33 UTC

Last updated: 10/01/2026, 22:40:33 UTC

Views: 30

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses