A recent discovery has uncovered a malicious campaign targeting developers through npm and GitHub repositories, utilizing Ethereum smart contracts to conceal command-and-control (C2) infrastructure. The campaign was first brought to light in early July by ReversingLabs researcher Karlo Zanki, who identified a package named “colortoolsv2” on npm. Although the package was swiftly removed, attackers persisted by releasing a duplicate package, “mimelib2,” both of which deployed a second-stage malware payload through blockchain infrastructure.
What sets this campaign apart is the use of Ethereum smart contracts to store and deliver the URLs used for fetching the second-stage malware. This method of hiding malicious infrastructure within blockchain code rather than package files makes detection significantly more challenging. According to RL researchers, this tactic represents a new evolution in detection evasion strategies by malicious actors targeting open-source repositories and developers.
In addition to the npm packages, ReversingLabs investigators also uncovered a broader campaign across GitHub. Fake repositories posing as cryptocurrency trading bots were found, appearing legitimate with thousands of commits, multiple maintainers, and active watchers. However, further investigation revealed that much of this activity was fabricated, with fake accounts created in July contributing to the illusion of popularity.
One notable example was the repository “solana-trading-bot-v2,” which included the malicious npm package. Despite its appearance as a legitimate project, closer inspection revealed the network of fake accounts supporting it. These findings contribute to a growing trend of software supply chain attacks targeting crypto-focused developers.
According to ReversingLabs’s “2025 Software Supply Chain Security” report, there were 23 such campaigns in 2024 alone, including the compromise of the PyPI package ultralytics in December, which delivered a coin miner. These incidents underscore the importance of vigilance and thorough vetting of libraries and maintainers by developers. Looking beyond surface metrics like stars or downloads is crucial to safeguarding digital assets and development environments.
In conclusion, the discovery of this malicious campaign highlights the evolving tactics of attackers exploiting open-source repositories and blockchain technology. Developers must remain vigilant and utilize stronger package assessment tools to protect themselves from such threats. It is essential to prioritize security measures in order to safeguard digital assets and ensure the integrity of development environments.
