Hackers Hide Malware in Ethereum Smart Contracts

3 Min Read Tags:

  • Two malicious NPM packages were discovered using Ethereum smart contracts to conceal commands.
  • This method circumvents traditional scanning tools, complicating threat detection.
  • The campaign was part of a broader social engineering scheme via GitHub.

Hackers Learn to Hide Malware in Ethereum Smart Contracts

In a groundbreaking development, researchers from ReversingLabs have unearthed a novel method of spreading malware using Ethereum smart contracts. These contracts are employed for the covert delivery of commands and links, posing a significant challenge to standard cybersecurity tools. According to the researchers, hackers embedded infected packages into public repositories, exploiting blockchain features to dodge typical protective measures.

Technical Breakdown: How It Works

Users who downloaded two malicious packages—colortoolsv2 and mimelib2—from NPM, the largest JavaScript library repository, found themselves at risk. Published in July 2025, these packages did not contain direct links to control servers. Instead, they retrieved these links from Ethereum smart contracts, making network traffic appear legitimate and complicating detection efforts.
Upon installation, the packages connected to the blockchain to extract server addresses and download the second phase of malware. This mechanism effectively turned standard smart contracts into tools for URL camouflage, helping attackers bypass automated security checks.

A New Frontier in Cyber Attacks

ReversingLabs highlights that while using blockchain in attacks is not new—previously seen with groups like Lazarus—the current approach stands out because Ethereum contracts aren’t used for file distribution but for hosting control links. This represents an unprecedented evolution in evasion techniques.
The malicious packages were part of a larger social engineering campaign where attackers created fake GitHub repositories masquerading as crypto trading bots. They added fake commits and multiple observer accounts while publishing professionally crafted documentation to mimic real developer activity.

Broader Implications on Open Source Security

Attacks on open repositories are becoming more prevalent. In 2024 alone, there were at least 23 campaigns related to digital assets targeting various ecosystems beyond Ethereum. For instance, a fake bot targeting Solana was spread online in April, stealing cryptocurrency wallets. Similar attacks previously targeted Bitcoinlib—a popular Python library for Bitcoin.
Experts see this blend of blockchain technology with social engineering as a testament to hackers’ growing ingenuity. Such methods bypass traditional defenses and pose an escalating threat to developers and users of open-source software.
As noted earlier this year in August 2025, losses from hacker attacks exceeded $163 million industry-wide—highlighting the severe impact these sophisticated strategies can have on the crypto market and beyond.
This article serves as both a warning and insight into the evolving landscape of cyber threats within cryptocurrency ecosystems. It is crucial for stakeholders across industries engaging with digital currencies and open-source projects to remain vigilant against such advanced attack methodologies.

Argentine Court Drops LIBRA Criminal Case Against Javier Milei, 10 Others

An Argentine federal court dismissed the criminal case against President Javier Milei, his sister Karina Milei and nine others over LIBRA’s collapse, finding insufficient evidence of fraud, corruption or other…

5 Min Read
Bitcoin Hits $79,500 Target as Ethereum Faces Pressure Before Fed Meeting

An unnamed trader said a Bitcoin short reached its final $79,500 target, while an October close below $80,000 could open a decline toward $72,500 and $70,000.

6 Min Read
Bank of Israel Criticizes Netanyahu’s Plan to Bypass Sanctions With Cryptocurrencies

Israel’s central bank and opposition politicians criticized Prime Minister Benjamin Netanyahu’s proposal to develop an alternative economic system, potentially using cryptocurrencies, to avoid possible banking sanctions.

3 Min Read
Hong Kong Approves 24/7 Trading of Tokenized Investment Funds

Hong Kong’s SFC approved the world’s first secondary trading of tokenized public investment funds on a licensed virtual asset platform, where PantherTrade began trading two ChinaAMC funds on October 15,…

3 Min Read
BNB Chain Plans New Layer 1 Network Launch in Early 2027

BNB Chain plans a separate high-performance Layer 1 network complementing BNB Smart Chain, using BNB for fees, staking and governance, with a public testnet targeted by end-2026 and mainnet in…

3 Min Read