On November 4, Sonatype reported concealed loaders in 12 npm releases across 10 hijacked 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 lists every affected version. Sonatype calls the packages hijacked but does not say how the releases were published.
The mechanism, per Sonatype:
- 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. - Hidden loader. Six releases hide the loader behind Base64 and
eval. The other six rebuild it from shuffled characters with the JavaScriptFunctionconstructor. - 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.
- 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 detachednode -iprocesses 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 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):
- 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 -iprocesses with piped stdin, and for plain HTTP requests on port 443 to the paths/0x/clsor/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
InstanceCredentialExfiltrationandResourceCredentialExfiltrationfindings, 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.