0x4d959af54d95…4d959af2

ConfirmedSecurity467 vB85 sat/vB2 min decode

CertiK Finds PolinRider-Linked Loader Hidden in Hardhat Config

CertiK found a PolinRider-linked malware loader hidden in a Hardhat config, capable of exposing Node.js credentials during routine builds, it said Nov. 17.

CertiK Finds PolinRider-Linked Malware in Hardhat Configuration
WitnessCertiK Finds PolinRider-Linked Malware in Hardhat ConfigurationBoskampi / pixabay

Outputs

  1. CertiK published findings on Nov. 17 identifying a malware loader hidden in a Hardhat configuration file.

  2. The loader links to the PolinRider campaign via a shared Ethereum resolver address and matching payload retrieval paths.

  3. The code could run during routine tests or builds and access deployment keys held by the Node.js process.

  4. CertiK did not confirm credential theft and did not identify the affected project or exposure scope.

CertiK has uncovered a concealed malware loader inside the Hardhat configuration of a smart contract project, linking the code to the PolinRider campaign through a shared Ethereum resolver address. The security firm published its findings on Nov. 17.

The loader hid beyond the visible portion of the configuration file behind a long stretch of whitespace. Because Hardhat loads its configuration as JavaScript, ordinary project commands can execute code attached to the file. A developer running routine tests or builds could trigger the loader without deploying a contract or producing any on-chain exploit.

How did the loader find its server?

Ethereum transaction data supplied the loader with a remote server address. The transactions pointed to the infrastructure rather than carrying the scripts themselves. The loader then downloaded and decoded scripts from that server.

A separate transaction could redirect the loader to a different server without any change to the repository. This design gives operators a switching mechanism that leaves no visible trace in the codebase. The payload could run inside the existing Node.js process or launch a detached Node.js process.

The configuration loaded environment variables before the concealed script executed. That ordering meant remotely supplied code could potentially access deployment keys and other credentials available to the Node.js process. CertiK stressed that it did not confirm credential theft.

What connects it to PolinRider?

CertiK tied the loader to the PolinRider campaign through two technical matches: a shared Ethereum resolver address and matching payload retrieval paths. The resolver address doubles as the campaign's command-and-control lookup mechanism and its link to on-chain infrastructure.

The firm identified neither the affected project nor any estimate of exposed repositories, developers or machines. Host or network evidence would be needed to determine whether later payloads ran or credentials were actually stolen.

"The recovered code establishes the malicious execution mechanism," CertiK said in its published analysis.

How does this differ from earlier warnings?

The finding diverges from a previous alert involving the sol-live GitHub project, which targeted crypto wallet data. SlowMist reported that sol-live hid a malicious command inside VS Code workspace settings and required a developer to start a configured terminal before the code ran.

The Hardhat loader required no such user action. It could execute during standard development commands, lowering the bar for compromise. A build command, in this case, carried the same risk as running an unknown script.

The operational consequence for development teams is direct: configuration files that load as executable JavaScript can serve as an attack surface, and environment variables loaded before hidden code can expose deployment keys to remotely retrieved payloads. Teams building with Hardhat face a practical need to audit configuration files in full, including whitespace-hidden segments, before running local builds in environments that hold production credentials.

via tokenpost.com (Source)

More from Tom Whitfield

Tom Whitfield

Show full bio

News editor covering technology and product news in crypto and web3 industry at Mempool Brief.

1,374 articles