# PolinRider in hijacked npm packages: the payload is whatever the role allows

> Sonatype found 12 malicious npm releases across 10 hijacked packages with a loader that finds its server through Ethereum transactions and runs remote JavaScript inside your app. Why the task or instance role decides the damage, and what to rotate.

Published November 17, 2026 by Antivenom · https://antivenom.ai/blog/polinrider-npm-ethereum

On November 4, Sonatype [reported concealed loaders in 12 npm releases across 10 hijacked packages](https://www.sonatype.com/blog/polinrider-loader-reappears-in-hijacked-npm-packages). The loaders have no install hooks. They run when your application loads the package, look up their server address in Ethereum transactions, then fetch JavaScript and run it inside your application's process.

That last part decides everything. The package does not carry a fixed payload. **Whatever the operator chooses to send runs with your process's permissions, so the real blast radius is the IAM role and the secrets that process can reach.**

## What Sonatype found

The affected releases are spread across a few names. Most sit under the `@adminide-stack` scope, plus `cdeops`, `server-hemera-mongo`, `@cdmbase/wiki-browser` and `@pubngo-stack/help-browser`. [Sonatype's post](https://www.sonatype.com/blog/polinrider-loader-reappears-in-hijacked-npm-packages) lists every affected version. Sonatype calls the packages hijacked but does not say how the releases were published.

![Diagram: an app loads a hijacked npm package. The loader reads a transaction from a fixed Ethereum wallet, decodes a server address from it, fetches JavaScript and runs it inside the app process and in detached node processes. That code inherits the task role, instance profile, environment secrets and CI secrets. Below, the controls that shrink each step.](/blog/polinrider-npm-ethereum.svg)

The mechanism, per Sonatype:

1. **No install hooks.** The package manifests have no install or postinstall scripts. The code runs when an affected entrypoint is loaded, or for `server-hemera-mongo`, when its bundled application starts.
2. **Hidden loader.** Six releases hide the loader behind Base64 and `eval`. The other six rebuild it from shuffled characters with the JavaScript `Function` constructor.
3. **A blockchain dead drop.** The loader queries public Ethereum RPC endpoints, with a Blockscout API as fallback, for a transaction sent from one hard-coded wallet. It reads bytes of the transaction's recipient address as the IP addresses of its payload servers. To move servers, the operator sends a new transaction. Blocking one server does not stop the loader from finding the next.
4. **Remote JavaScript.** It fetches XOR-encoded JavaScript over plain HTTP on TCP port 443, runs one payload inside the application process with `eval`, and pipes code into detached `node -i` processes that can keep running after the application exits.

Sonatype stresses the consequence: the operator can change the served JavaScript at any time without publishing a new npm release. Package versions alone will not tell you what ran.

## Where PolinRider comes from

The wallet is not new. Sonatype says the same address appears in GitGuardian's October 27 report as the resolver for PolinRider loaders hidden in compromised GitHub repositories, with the same server paths. Wiz separately saw victims of the Gheist token campaign [re-push PolinRider-linked commits](https://wiz.io/blog/gheist-attempted-scaled-abuse-of-stolen-github-tokens-stumbles) on October 19 and 20, with a loader appended to `vite.config.js` behind hundreds of whitespace characters.

Sonatype is careful about what this proves. It writes that the evidence does not definitively establish that PolinRider and the GhostAction campaign share an operator. Sonatype does not attribute these releases to any named actor, and neither do we.

## Why the role is the payload

Most advice about malicious packages focuses on install time: block postinstall scripts, review new dependencies, scan the tarball. Those are good habits. They miss this loader, because it does nothing at install. Turning off lifecycle scripts does not stop code that runs when your app imports the package.

Once it runs, it is your application. On AWS, that means:

- **On ECS or EKS**, it has the task role or pod role.
- **On EC2**, it can ask the metadata service for the instance profile credentials, like any process on the box.
- **On Lambda**, it has the execution role and the function's environment variables.
- **In CI**, it has every secret the job was given, often including publishing tokens and deploy roles.

None of that is specific to PolinRider. It is true for every dependency you ship. A service whose role can read one queue loses one queue. A service whose role has `secretsmanager:GetSecretValue` on `*` loses every secret in the account. **You cannot control what an attacker sends to a loader, but you fully control what the process it lands in can reach.**

## What to do this week

**Check for the affected releases** (steps from [Sonatype](https://www.sonatype.com/blog/polinrider-loader-reappears-in-hijacked-npm-packages)):

- Search lockfiles, internal npm mirrors, caches and build records for the affected versions, including transitive dependencies. Block them in your repository manager.
- A lockfile entry does not prove the code ran. Match entrypoint loads against process and network activity.
- Hunt for detached `node -i` processes with piped stdin, and for plain HTTP requests on port 443 to the paths `/0x/cls` or `/0x/ls`.
- If affected code ran, treat the host as compromised. Rotate what the process could reach: npm publishing tokens, source repository access, cloud keys and CI secrets.

**Shrink what the next one can reach:**

- Give each service its own role with only the actions and resources it uses. Start with roles that have wildcards on secrets, IAM or S3.
- Restrict egress. A typical API service has no reason to talk to public Ethereum RPC endpoints or to arbitrary IPs on port 443 over plain HTTP. An egress allowlist or DNS firewall turns that into a block, or at least an alert.
- Keep long-lived secrets out of environment variables where a role or a short-lived token can do the job.
- Turn on GuardDuty and watch the [`InstanceCredentialExfiltration` and `ResourceCredentialExfiltration` findings](https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_finding-types-iam.html), which flag EC2, ECS task and Lambda credentials used from outside the resource's account or outside AWS.
- Give CI jobs short-lived OIDC roles per repository instead of stored keys, so a poisoned build gets one narrow role, not the whole pipeline.

## The short version

A loader with no install hooks, a server address hidden in a public blockchain and a payload that can change any day: there is no signature to wait for. What you can know in advance is what your services could lose if one of their dependencies turned on them.

That is the question Antivenom is built to answer with proof. Our AI red team runs only against your own systems, with your permission, and maps what each workload's role can actually reach. The AI blue team narrows it, and the red team retests to confirm the path is closed. For why rotation is where most teams fall short after a leak, read [the leak isn't the breach, the years after it are](https://antivenom.ai/blog/leaked-secrets-rotation-gap).
