Thursday, May 15, 2025
HomeCyber Security NewsHackers Weaponize npm Packages To Steal Solana Private Keys Via Gmail

Hackers Weaponize npm Packages To Steal Solana Private Keys Via Gmail

Published on

SIEM as a Service

Follow Us on Google News

Socket’s threat research team has identified a series of malicious npm packages specifically designed to steal private keys from Solana wallets.

The implicated packages—@async-mutex/mutex, dexscreener, solana-transaction-toolkit, and solana-stable-web-huks—typosquat on popular libraries, appearing to serve legitimate functions while covertly executing malware.

The threat actors behind these packages utilize overlapping techniques, employing similar code to intercept private keys during wallet interactions.

- Advertisement - Google News

These keys are then routed through Gmail’s SMTP servers, taking advantage of Gmail’s trusted status to evade detection by firewalls and other security systems.

At present, these malicious npm packages remain active, although Socket has petitioned for their removal and reported linked GitHub repositories that amplify their malicious activities.

The Deceptive Packages

The npm package @async-mutex/mutex has been identified as a typographical variant of the well-known package async-mutex, which has an impressive download count exceeding 93 million. In stark contrast, the malicious version has only garnered 240 downloads, raising significant concerns about its reliability.

weaponize npm packages
 “solana-web-stable-huks”

Similarly, it dexscreener presents itself as a library designed for accessing decentralized exchange (DEX) data; however, it exhibits the same malicious code characteristics as @async-mutex/mutex.

Furthermore, the packages solana-transaction-toolkit and solana-stable-web-huks have been found to not only steal private keys but also drain victims’ wallets, transferring as much as 98% of the funds to addresses controlled by attackers.

Technical Insights

Socket’s analysis reveals that these packages utilize hardcoded Gmail accounts for data exfiltration.

For instance, code snippets from the packages show functions that send stolen private keys directly to attacker-controlled email addresses like vision.high.ever@gmail.com and qadeerkhanr5@gmail.com.

The solana-transaction-toolkit employs an automated transaction process that siphons funds from victims’ wallets, leaving a small percentage behind to avoid arousing suspicion.

The threat actors have also leveraged GitHub to enhance the credibility of their operations, publishing repositories under misleading aliases that falsely advertise helpful Solana development tools.

weaponize npm packages
Images of the threat actor-controlled GitHub repositories

These repositories are used to spread the malicious packages further, increasing the risk of compromise for unsuspecting developers.

To mitigate the risks posed by these malicious packages, Socket advises developers to:

  • Verify Package Authenticity: Always check the download statistics and publisher history of npm packages.
  • Conduct Regular Audits: Regularly audit dependencies within codebases to identify and eliminate any malicious code.
  • Implement Strict Access Controls: Maintain tight controls around access to private keys to limit exposure.
  • Monitor Network Traffic: Keep an eye out for unusual outbound connections, particularly those utilizing SMTP services.
  • Utilize Security Tools: Leverage tools like the Socket GitHub app for early detection of malicious dependencies during development.

In a rapidly evolving digital landscape, staying informed and vigilant is essential to securing software supply chains and protecting sensitive data from malicious actors.

Investigate Real-World Malicious Links & Phishing Attacks With ANY.RUN Malware Sandbox - Try 14 Days Free Trial

Aman Mishra
Aman Mishra
Aman Mishra is a Security and privacy Reporter covering various data breach, cyber crime, malware, & vulnerability.

Latest articles

Critical BitLocker Flaw Exploited in Minutes: Bitpixie Vulnerability Proof of Concept Unveiled

Security researchers have demonstrated a non-invasive method to bypass Microsoft BitLocker encryption on Windows...

Google Chrome Zero-Day Vulnerability (CVE-2025-4664) Actively Exploited in The Wild

Google has rolled out a fresh Stable Channel update for the Chrome browser across...

Threat Actors Leverage Weaponized HTML Files to Deliver Horabot Malware

A recent discovery by FortiGuard Labs has unveiled a cunning phishing campaign orchestrated by...

TA406 Hackers Target Government Entities to Steal Login Credentials

The North Korean state-sponsored threat actor TA406, also tracked as Opal Sleet and Konni,...

Resilience at Scale

Why Application Security is Non-Negotiable

The resilience of your digital infrastructure directly impacts your ability to scale. And yet, application security remains a critical weak link for most organizations.

Application Security is no longer just a defensive play—it’s the cornerstone of cyber resilience and sustainable growth. In this webinar, Karthik Krishnamoorthy (CTO of Indusface) and Phani Deepak Akella (VP of Marketing – Indusface), will share how AI-powered application security can help organizations build resilience by

Discussion points


Protecting at internet scale using AI and behavioral-based DDoS & bot mitigation.
Autonomously discovering external assets and remediating vulnerabilities within 72 hours, enabling secure, confident scaling.
Ensuring 100% application availability through platforms architected for failure resilience.
Eliminating silos with real-time correlation between attack surface and active threats for rapid, accurate mitigation

More like this

Critical BitLocker Flaw Exploited in Minutes: Bitpixie Vulnerability Proof of Concept Unveiled

Security researchers have demonstrated a non-invasive method to bypass Microsoft BitLocker encryption on Windows...

Google Chrome Zero-Day Vulnerability (CVE-2025-4664) Actively Exploited in The Wild

Google has rolled out a fresh Stable Channel update for the Chrome browser across...

Threat Actors Leverage Weaponized HTML Files to Deliver Horabot Malware

A recent discovery by FortiGuard Labs has unveiled a cunning phishing campaign orchestrated by...