Ethereum Smart Contracts Used to Hide Malware in npm Packages

Malicious npm Packages Used Ethereum Smart Contracts to Evade Detection and Spread Downloader Malware Targeting Developers

  • Researchers found two harmful npm packages using Ethereum smart contracts to hide malicious activity.
  • The packages installed downloader Malware and targeted developers on both npm and GitHub.
  • Attackers used reputable-looking GitHub projects to trick users into downloading the malware.
  • These actions are linked to a broader scheme known as Stargazers Ghost Network, which inflates the popularity of fake repositories.
  • Experts advise thorough vetting of libraries and maintainers before including packages in projects.

Cybersecurity researchers have identified two malicious packages posted to the npm registry in July 2025. These packages used Ethereum blockchain smart contracts to carry out hidden attacks on affected systems. The packages focused on distributing malware and were designed to avoid detection by common security tools.

- Advertisement -

According to a report by ReversingLabs researcher Lucija Valentić, the npm packages contained commands that downloaded harmful software to the victim’s system. The packages were removed from npm and were also linked to a larger campaign targeting both npm and GitHub. The attackers made related GitHub projects appear legitimate to persuade developers to use them.

“The two npm packages abused smart contracts to conceal malicious commands that installed downloader malware on compromised systems,” Valentić said in a report. The campaign employed a technique similar to EtherHiding, where Ethereum smart contracts provided URLs for downloading the malware. This method helped attackers avoid detection, as the location of malicious files was not hardcoded in the package.

Further investigation revealed that these packages were referenced in several GitHub repositories, such as “solana-trading-bot-v2,” which promised automatic trading using real-time blockchain data. The main GitHub account connected to this repository has since been removed.

Researchers suggest the campaign is part of the Stargazers Ghost Network, a distribution-as-a-service setup. This group creates fake GitHub accounts to star, fork, and commit to harmful repositories, making them look popular and trustworthy. Other repositories involved include “ethereum-mev-bot-v2,” “arbitrage-bot,” and “hyperliquid-trading-bot.”

- Advertisement -

The naming and content of these repositories show that cryptocurrency developers and users were the main targets, using tactics like social engineering to spread malware. Valentić emphasized the importance for developers to check both the open-source packages and their maintainers carefully: “It is critical for developers to assess each library they are considering implementing before deciding to include it in their development cycle.”

✅ Follow BITNEWSBOT on Telegram, Facebook, LinkedIn, X.com, and Google News for instant updates.

Previous Articles:

- Advertisement -

Latest News

Betterment warns: disregard unauthorized crypto promotion now

Betterment warned customers to ignore an unauthorized crypto promotion message sent via a third-party...

34 arrested in Spain in Black Axe transnational operation EU

Law enforcement arrested 34 people in Spain linked to the transnational group Black Axe.Authorities...

Bitdeer Sells BTC, Faces SEAL04 Chip Class-Action Suit Today

Bitdeer sold 99.1 BTC during the week, leaving 1,900.9 BTC on its balance sheet.The...

MuddyWater deploys RustyWater Rust RAT in Middle East attack

MuddyWater has deployed a Rust-based implant called RustyWater against Middle East diplomatic, maritime, financial,...

BRICS Gold-Backed Unit Pilot Launches as Dollar Alternatives

The pilot BRICS Gold Unit launched on October 31, 2025, as a digital settlement...
- Advertisement -

Must Read

Top 8 Best Anonymous Web Hosting Companies That Accept Crypto

Nowadays, there is plenty of information about people online, and malicious people use them to carry out inappropriate activities. If you want to keep...
Bitcoin (BTC) $ 90,470.00 0.16%
Ethereum (ETH) $ 3,088.86 0.23%
XRP (XRP) $ 2.09 0.21%
Bittensor (TAO) $ 283.45 0.58%
Polkadot (DOT) $ 2.12 2.90%
Cardano (ADA) $ 0.389134 0.56%
Chainlink (LINK) $ 13.18 0.45%
Hyperliquid (HYPE) $ 24.45 4.02%
Monero (XMR) $ 461.03 1.08%
Hedera (HBAR) $ 0.11994 0.79%
Toncoin (TON) $ 1.78 1.88%