Poisoned Pipeline / Incidents / AS523

AS523 · 2026-11

A project's Hardhat configuration carried a loader past the right edge of its closing-brace line, so the project's own test command executed remote JavaScript whose download servers were named in Ethereum transactions

Git / GitHubnpmDeveloper workstation

CertiK published the finding on 17 November 2026, from a smart contract
audit: the contracts were not the problem, the tooling that tested them
was. The project's Hardhat configuration — compiler options, network
settings and a closing brace, the shape every Hardhat project has — also
carried an obfuscated loader, placed on the same line as the closing
brace and pushed out of sight by a long run of whitespace. With line
wrapping off, the visible configuration reads as complete; the only clue
in an ordinary editor is a horizontal scrollbar. The diff gives it away,
because what looks like a one-line configuration change is a line long
enough to hold an executable loader.

Hardhat loads its configuration as JavaScript, which is why the position
works as a trigger. Code after module.exports is evaluated when the file
is loaded, and the file is loaded by the commands developers run all day:
a test, a build, a deployment script. Nothing has to be imported, no
contract has to be deployed and no on-chain condition has to be met. The
attack runs in the same Node.js process as the developer's command, with
that process's permissions and its environment — and the configuration
loads the environment before the concealed script, so the deployment keys
a project keeps in .env were already in scope when the loader ran.

What CertiK recovered was a fetch-decode-execute chain. The loader finds
a download server, retrieves encoded JavaScript and decodes it locally;
one stage can run inside the existing Node.js process and further stages
were executed through a hidden detached Node.js process that can outlive
the command that started it. Errors from that path are suppressed, so a
failing remote stage does not surface as a failing test. The downloaded
code is not restricted to blockchain operations: whatever it is, it runs
with the development process's rights.

The address book is the part that outlives the repository. Download
server addresses were encoded in Ethereum transactions from a designated
wallet, and the loader read them from the chain rather than from the
infected file; it also carried alternative RPC endpoints and a fallback
lookup for when the first one failed. The operator can therefore move the
payload infrastructure with another transaction and the repository does
not change at all, so a review that finds nothing after the first clean-up
is not evidence that the loader is dead.

CertiK attributes the loader to PolinRider on two matching indicators: an
Ethereum resolver address already documented for the campaign and the
payload retrieval paths. AS45 covers the campaign itself — hijacked
maintainer accounts, loaders appended to config files, fake
.woff2 fonts and .vscode/tasks.json — and this finding is the same
operator reaching a different class of file. What is new here is where the
code sits rather than which project it sits in: a build tool that
executes its own configuration, and a concealment that depends on the
width of the editor rather than on a directory the reviewer skips.

CertiK's advice follows from that. Stop loading the configuration,
preserve the files and logs, treat the machine as potentially compromised
while the exposure is investigated, and rotate deployment keys and other
credentials from a clean system. Deleting the injected line does not undo
code that has already run, and disabling package installation scripts
does not help, because nothing here is an install script. The write-up is
careful about the limit of its own evidence: the recovered code
establishes the mechanism, and establishing which remote stages actually
ran, what they reached and whether keys left the host needs host or
network evidence that is not published.

Mapped techniques

supply-chain The configuration file in the repository

T0111 · Resource Development · Malicious code contribution to an open-source repository

The loader sat in the project's Hardhat configuration, a file that
is reviewed as configuration. CertiK's remediation asks for
repository access to be reviewed to establish how the change
entered the workflow, which is as far as the published account
goes: no commit, author, date or review state is given, and the
project is not named.

T0248 · Defense Evasion · Hide the loader past the right edge of the line the reviewer sees

The loader shares a line with the closing brace and is separated
from it by a long run of whitespace, so a reader with line wrapping
disabled sees a complete-looking configuration and an unexplained
horizontal scrollbar. The diff is where it shows, as one very long
line rather than as added code the reviewer would read as code.

post-supply-chain The project's own test command

T0159 · Execution · Malicious artifact execution

Hardhat evaluates hardhat.config.js as JavaScript, so any command
that loads the configuration — test, build, deploy — executes the
loader before the task itself begins. No contract deployment and no
on-chain exploit are needed, and a passing test says nothing about
the process that ran it.

T0238 · Defense Evasion · Resolve the payload server from a public blockchain transaction

Download server addresses were encoded in Ethereum transactions
from a designated wallet and read from the chain at execution time,
with alternative RPC endpoints and a fallback lookup. The operator
changes infrastructure by sending another transaction, leaving the
repository and its history untouched.

T0245 · Defense Evasion · Detach the payload so it outlives the job

One stage runs inside the existing Node.js process; further stages
were executed through a hidden detached Node.js process that can
outlive the development command that started it, with errors
suppressed so the command's own result stays normal.

post-supply-chain The deployment keys in the loaded environment

T0193 · Collection · Sensitive information in environment variables

The configuration loads .env before the concealed script, so the
deployment keys and other credentials a project keeps there were in
the process environment when the loader ran, and every other file
the process could read was reachable by the remote code. CertiK
records reachability, not theft: no exfiltration is reported, and
it says establishing what was taken needs host or network evidence.

Framework gaps noted

Sources