RL Blog

Topics

All Blog PostsAppSec & Supply Chain SecurityDev & DevSecOpsProducts & TechnologySecurity OperationsThreat Research

Follow us

XX / TwitterLinkedInLinkedInFacebookFacebookInstagramInstagramYouTubeYouTubeblueskyBluesky

Subscribe

Get the best of RL Blog delivered to your in-box weekly. Stay up to date on key trends, analysis and best practices across threat intelligence and software supply chain security.

Spectra Assure Free Trial

Get your 14-day free trial of Spectra Assure for Software Supply Chain Security

Get Free TrialMore about Spectra Assure Free Trial
Blog
Events
About Us
Webinars
In the News
Careers
Demo Videos
Cybersecurity Glossary
Contact Us
reversinglabsReversingLabs: Home
Privacy PolicyCookiesImpressum
All rights reserved ReversingLabs © 2026
XX / TwitterLinkedInLinkedInFacebookFacebookInstagramInstagramYouTubeYouTubeblueskyBlueskyRSSRSS
Back to Top
ReversingLabs: The More Powerful, Cost-Effective Alternative to VirusTotalSee Why
Skip to main content
Contact UsSupportLoginBlogCommunity
reversinglabs
Threat ResearchDecember 5, 2024

Malware found in Solana npm library raises the bar for crypto security

Two recent versions of the Solana web3.js open source library were infected with code to steal private keys, putting crypto platforms and wallets at risk.

paul roberts headshot black and white
Paul Roberts, Director of Content and Editorial at RLPaul Roberts
FacebookFacebookXX / TwitterLinkedInLinkedInblueskyBlueskyEmail Us
gold bitcoin sticking out of leather wallet

Unknown malicious actors compromised an open source library affiliated with the Solana blockchain platform, putting untold numbers of cryptocurrency platforms and individual wallets at risk of theft.

The npm package, @solana/web3.js, is a Javascript API for use with the Solana blockchain platform. It ranks among the top 10,000 projects in the npm community, with more than 3,000 dependent projects generating 400,000 weekly downloads, and 51 million total recorded downloads.

Versions 1.95.6 and 1.95.7 of @solana/web3.js were discovered to contain malicious functions intended to steal sensitive information. A GitHub advisory published on Tuesday warned that “any computer that has this package installed or running should be considered fully compromised.” Developers should downgrade to Version 1.95.5 or upgrade to 1.95.8 of the @solana/web3.js library and rotate “all secrets and keys stored on that computer” immediately from a different, unaffected system. Given the nature of the compromise, it is possible that attackers will maintain a presence on the infected system even after the compromised library is removed, GitHub warned.

Differential analysis of Solana package finds malicious URLs

Analysis of the affected packages using ReversingLabs Spectra Assure found clear evidence of a compromise including malicious behaviors like stealing and sending private keys to an external source (hxxps[:]//sol-rpc[.]xyz/api/rpc/queue). Spectra Assure’s differential analysis found new file content in both 1.95.6 and .7, compared with previous, non-malicious versions of @solana/web3.js that contained the URLs pointing to suspicious top-level domains (see RL threat hunting policy TH17118).

differential analysis between different versions of @solana/web3.js

Figure 1: Differential analysis between different versions of @solana/web3.js

Analysis of the affected @solana/web3.js packages by Christophe Tafani-Dereeper, a researcher working for the firm Datadog identified backdoor code inserted in v1.95.7 that adds a function, "addToQueue," that is designed to exfiltrate private keys using legitimate-seeming CloudFlare headers. Calls to the “addToQueue” function were inserted in locations that are used to access the private key, he wrote.

RL's differential analysis of the @solana/web3.js package detected fourteen files in the modified packages that contained URLs with a suspicious top level domain: sol-rpc[.]xyz. Further research by Tafani-Dereeper determined that the domain was first registered in late November and was hosted by Cloudflare.

Differential analysis shows presence of URLs that use suspicious top-level domains

Figure 2: Differential analysis shows presence of URLs that use suspicious top-level domains

Compromised account to blame for supply chain hack?

How the malicious actors gained control over the @solana/web3.js npm library was still a mystery as of late Wednesday. However, there is evidence that the compromise of a @solana/web3.js maintainer account may be to blame. A social media post by Anza, a Solana-focused R&D firm late Tuesday claimed that a publish-access account was compromised by the malicious actors, giving them access to private keys and possibly enabling them to drain funds from crypto bots and other decentralized apps (dapps) that manage private keys directly during transactions.

However, non-automated apps would not be affected by the compromise. And only dapps that updated their @solana/web3.js library between roughly 3 PM (UTC) Tuesday afternoon (December 2nd) and 8:30 PM Tuesday evening would be affected - the narrow window during which the malicious code was undetected.

Crypto (and Solana) a common supply chain target

Code and infrastructure linked to cryptocurrencies are a frequent target of sophisticated cyber attacks, including Solana. In August, the firm Sonatype reported a typosquatting campaign targeting the Solana blockchain platform that played on a discrepancy between the package names for the Solana Python API project on GitHub (“solana-py”) and PyPI (simply "solana"). In that incident, a threat actor published a malicious "solana-py" project on PyPI reproduced code from the legitimate solana package, while also adding malicious features to steal secrets.

In another, recent crypto-focused supply chain campaign in March 2024, RL researcher Karlo Zanki exposed BipClip, a malicious PyPI campaign targeting developers working on projects related to generating and securing cryptocurrency wallets. The attackers sought to fool developers looking to implement the Bitcoin Improvement Proposal 39, or BIP39, a list of 2,048 easy-to-remember words that are used to generate a binary seed that creates deterministic BitCoin wallets (or "HD Wallets").

But the compromise of the @solana/web3.js library is of a higher magnitude of order than typosquatting campaigns that rely on developer error, said RL co--founder and Chief Software Architect Tomislav Peričin. He said the majority of supply chain attacks that target the open source ecosystem rely on social engineering tactics for success. Such attacks have a tiny blast radius, affecting only a few developers before they get discovered and are taken down.

Peričin said this incident is much more than yet another malicious package found in npm. Compromise of a trusted, and widely used library like @solana/web3.js is much more devastating for the community, he stressed.

With millions of downloads and thousands of library dependents the likely blast radius widens to thousands of developers, and a yet to be determined number of users. This attack is a stark reminder that the trust in software integrity is at an all time low, and that open source security is a far greater challenge than keeping up with the news and filtering out newly published or untrusted packages.

Tomislav Peričin

Peričin said the intense focus of malicious actors on cryptocurrency applications and infrastructure raises the bar for development organizations and end users alike. The threat demands increased attention be paid to supply chain risk to respond to such threats, he said.

Keep learning

  • Get up to speed on the state of software security with RL's Software Supply Chain Security Report 2026. Plus: See the the webinar to discussing the findings.
  • Learn why binary analysis is a must-have in the Gartner® CISO Playbook for Commercial Software Supply Chain Security.
  • Take action on securing AI/ML with our report: AI Is the Supply Chain. Plus: See RL's research on nullifAI and watch how RL discovered the novel threat.
  • Get the report: Go Beyond the SBOM. Plus: See the CycloneDX xBOM webinar.

Explore RL's Spectra suite: Spectra Assure for software supply chain security, Spectra Detect for scalable file analysis, Spectra Analyze for malware analysis and threat hunting, and Spectra Intelligence for reputation data and intelligence.

Tags:Threat ResearchCrypto Attack

More Blog Posts

ReversingLabs: Home
Solutions
Secure Software OnboardingSecure Build & ReleaseProtect Virtual MachinesIntegrate Safe Open SourceGo Beyond the SBOM
Increase Email Threat ResilienceDetect Malware in File Shares & StorageAdvanced Malware Analysis SuiteICAP Enabled Solutions
Scalable File AnalysisHigh-Fidelity Threat IntelligenceCurated Ransomware FeedAutomate Malware Analysis Workflows
Products & Technology
Spectra Assure®Software Supply Chain SecuritySpectra DetectHigh-Speed, High-Volume, Large File AnalysisSpectra AnalyzeIn-Depth Malware Analysis & Hunting for the SOCSpectra IntelligenceAuthoritative Reputation Data & Intelligence
Spectra CoreIntegrations
Industry
Energy & UtilitiesFinanceHealthcareHigh TechPublic Sector
Partners
Become a PartnerValue-Added PartnersTechnology PartnersMarketplacesOEM Partners
Alliances
Resources
BlogContent LibraryCybersecurity GlossaryConversingLabs PodcastEvents & WebinarsLearning with ReversingLabsWeekly Insights Newsletter
Customer StoriesDemo VideosDocumentationOpenSource YARA Rules
Company
About UsLeadershipCareersSeries B Investment
EventsRL at RSAC
Press ReleasesIn the News
Pricing
Software Supply Chain SecurityMalware Analysis and Threat Hunting
Request a demo
Menu

'Copy Fail' Flaw: 5 YARA Rules for Detection

Here’s what you need to know about the Linux kernel privilege escalation — and how to use YARA rules to get on top of it.

Learn More about 'Copy Fail' Flaw: 5 YARA Rules for Detection
'Copy Fail' Flaw: 5 YARA Rules for Detection

Claude adds malware to crypto agent

PromptMink has evolved into a malicious dependency in a package that allows access to crypto wallets and funds.

Learn More about Claude adds malware to crypto agent
Claude adds malware to crypto agent

Graphalgo fake recruiter campaign returns

An attack targeting crypto developers has been respawned — with an LLC and new techniques.

Learn More about Graphalgo fake recruiter campaign returns
Graphalgo fake recruiter campaign returns
TeamPCP supply chain attack

The TeamPCP supply chain attack evolves

The malicious campaign started with Trivy and Checkmarx and has shifted to LiteLLM — and now telnix. Here's how.

Learn More about The TeamPCP supply chain attack evolves
The TeamPCP supply chain attack evolves
Copy Fail Linux yara rules
Claude AI adds PromptMink malware to crypto trading agent
Graphalgo supply chain campaign respawned.