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.

Canary Capital Launches First US Spot TRX ETF With Staking

Canary Capital launched the Canary Staked TRX ETF on Cboe BZX under ticker TRXS on Sept. 9, 2026, offering direct TRX exposure and staking rewards.

5 Min Read
Anthropic Models 3 US Economic Scenarios Through 2030

Anthropic published a model outlining three scenarios for the U.S. economy through 2030, with its extreme scenario suggesting annual GDP growth could reach 15% alongside historically high unemployment.

7 Min Read
Robinhood CEO Says Companies Cannot Control Tokenization of Their Shares

In September 2026, Robinhood CEO Vlad Tenev said companies cannot prevent third-party products linked to their shares, defending 1:1 share-backed Stock Tokens after AMC CEO Adam Aron challenged their legality.

5 Min Read
Germany Will Change Crypto-Asset Tax Rules in 2027, Media Reports

Germany’s draft crypto tax reforms would from Jan. 1, 2027, tax profits on covered assets acquired after Dec. 31, 2026, regardless of holding period, while platforms would begin withholding tax…

5 Min Read
Vitalik Buterin Says Recursive STARKs Could Cut Ethereum Private, Post-Quantum Transaction Costs

On Sept. 9, Ethereum co-founder Vitalik Buterin explained EIP-8288, a proposal to aggregate STARK proofs and cryptographic signatures at the mempool level, potentially reducing costs without changing the EVM.

6 Min Read