Hijacked npm packages that read their next address from Ethereum
On 10 August 2026, Sonatype reported six npm packages carrying the same loader. Three were existing packages taken over by the attacker. Instead of a hard-coded server, the loader read its server addresses out of an Ethereum transaction.
What happened
Sonatype listed three hijacked packages (@kolbo/mcp@1.57.1, agentgui@1.0.1127 and godot-kit@1.0.1786316795) and three newly published ones (envpack-conf@1.0.1, postcss-initial-provider@3.0.4 and tailwindcss-motion-advanced@1.0.1). The new packages contained real-looking configuration and PostCSS code, with the loader tucked into a file like utils.min.js.
All six used an Ethereum wallet that researchers had already linked to “Contagious Interview”, a North Korea-linked campaign associated with the Lazarus group.
How it worked
- A blockchain dead drop. The loader looked up an outgoing transaction from the attacker’s wallet and decoded two IPv4 addresses from the transaction’s recipient field, a technique called “NullReceiver”. To move to new servers, the operators only need to send a new transaction; no package update is required, and there is no domain to take down.
- Resilient lookups. It queried several Ethereum RPC providers in parallel and fell back to a block-explorer API.
- Staged payloads. It downloaded further stages from the servers, decoded them and ran them with
eval()or as detached Node.js processes. What the final stages did is not described in the public analysis.
What to do
- Check your dependency trees for the six package versions above and remove them.
- If one was installed or imported, investigate the machine for follow-up JavaScript execution and rotate credentials it could reach.
- Watch for build or developer machines making unexpected calls to public Ethereum RPC endpoints.
Lessons
- Hijacked packages are harder to spot than new fake ones, because developers already trust the name.
- Blocking known malicious domains does not help when the address lives on a blockchain.
Where DepSentinel fits. The three newly published packages are what DepSentinel’s new-package and fresh-release signals are for, and together they mark a package SUSPICIOUS. For the hijacked ones, a release by an account that wasn’t a maintainer of the previous version (publisher-changed) or that lost the previous version’s provenance (provenance-dropped) adds to the score. When advisories for these versions reach OSV, they are shown as MALICIOUS.
Am I affected?
Check whether any of the six packages is in your dependency tree:
npm ls @kolbo/mcp agentgui godot-kit envpack-conf postcss-initial-provider tailwindcss-motion-advanced --all
For other package managers, and what to do if you find a match, see how to check your project for malicious or compromised packages.
Sources
- Sonatype: six npm packages use Ethereum transactions to retrieve malicious payloads
- Hackread: DPRK-linked hackers use Ethereum dead drops in malicious npm packages
Details come from the public reports above and may change as investigations continue. Package names and versions are listed so you can check your own projects; verify them against the original sources before acting.
Related
- Shai-Hulud: from the first npm worm to the TanStack compromise
- Red Hat’s npm packages backdoored: how the “Miasma” worm got in
- Fake Paysafe, Skrill and Neteller SDKs: a credential stealer that looks like a payment library
Catch the next one in your editor. DepSentinel is a free VS Code extension that checks every dependency, including sub-dependencies, for known vulnerabilities and signs of a supply-chain attack. No account, no API key.