Malicious code in solana-web3-fork (npm)
Description
The solana-web3-fork npm package is a fork or imitation of the popular @solana/web3.js library. Its bundled files contain suspicious patterns such as usage of child_process, network fetch calls, and shell utilities like curl and ping within minified bundles. While these patterns are concerning and unusual for a typical Solana SDK, no explicit malicious behaviors such as hardcoded command-and-control endpoints or credential theft mechanisms have been confirmed. Manual review is recommended before use due to the potential risk associated with name collision and suspicious code patterns.
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-web3-fork package on npm mimics the well-known Solana SDK @solana/web3.js. Analysis of its bundled files (lib/index.cjs.js and lib/index.esm.js) reveals co-occurring usage of child_process, fetch/POST/GET network calls, and shell utilities (curl, ping) within the same minified bundles. These combined patterns are unusual and raise suspicion, although they cannot be definitively distinguished from legitimate SDK behavior such as RPC calls or build tooling without deeper semantic analysis. No direct evidence of malicious payloads like attacker C2 endpoints, credential theft paths, or install-time hooks has been identified. The package version 1.0.0 is affected.
Potential Impact
Potential risk exists due to the presence of suspicious code patterns that could enable remote code execution or unauthorized network communications if malicious intent is confirmed. However, no confirmed exploitation or explicit malicious functionality has been documented. The package could be used to deceive users expecting the legitimate Solana SDK, possibly leading to supply chain risks if installed without verification.
Mitigation Recommendations
Manual code review and semantic analysis of the package are recommended before installation or use. Avoid using solana-web3-fork version 1.0.0 unless its legitimacy and safety are verified. Prefer the official @solana/web3.js package from trusted sources. Monitor for vendor advisories or community reports for any updates or confirmed malicious behavior. Patch status is not yet confirmed — check vendor or community advisories for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10900
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-rf7g-mf44-5m44"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f317acd9273b49e493d2
Added to database: 09/01/2026, 15:45:27 UTC
Last enriched: 09/08/2026, 14:08:47 UTC
Last updated: 10/01/2026, 22:40:33 UTC
Views: 28
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.