Skip to content

Image: cdn.prod.website-files.com · rights & removal

Executive Summary

A malicious package was distributed via a dependency chain, designed to execute arbitrary code on developer machines. The attack leveraged a decoy package with the name `multicall-error-decoder` on the npm registry, which appeared legitimate to standard security checks. This decoy package was intentionally placed to lure developers into installing it. When installed, this package triggered a dependency pull from GitHub, fetching a second piece of code that executed malicious instructions upon installation. The payload operated by leveraging an `install` script within the package's metadata, which directed npm to clone a repository from GitHub instead of using a registry tarball. This mechanism allowed the attacker to execute arbitrary logic, specifically downloading and running programs on Windows or executing remote scripts on Macs. The exposure window for the malicious code was approximately sixteen days before the removal of the package.

Facts Only

* The attack involved a dependency chain leading to an execution payload.
* A decoy package named `multicall-error-decoder` was published to npm.
* This decoy triggered installation of code from a GitHub repository via a specified dependency (`github:outgoingyang/multicall-error-decoder`).
* The malicious code included an install script: `"install": "node dist/error-decoder/handlers.js"`.
* The payload downloaded and executed code on Windows or ran remote scripts on Macs upon installation.
* The initial package, `web3-mev-error-decoder@0.1.0`, was targeted for this dependency injection.
* The malicious repository was hosted on a GitHub account.
* npm replaced the package with a security holder shortly after the GitHub advisory was published.
* The real code was not present in the initial registry tarball.
* The payload included runtime decryption (AES) of strings before executing platform-specific commands.

Full Take

The attack demonstrated a sophisticated method of supply chain poisoning by exploiting trust in package registries and dependency resolution mechanisms. The core pattern involves using a seemingly innocuous, legitimate artifact as an entry point to trick automated systems (like security scanners) into ignoring the actual malicious payload. The attacker created a false positive on npm by publishing a clean decoy, relying on the fact that standard inspections focus on registry artifacts rather than deep Git dependency resolutions. This forces defenders to recognize that package contents are not solely defined by what resides in the registry tarball but must also account for source dependencies specified via protocols like `git:`. The complexity of obfuscating Stage 2—the actual execution logic residing in a remote GitHub repository—highlights a failure mode where security tooling is optimized for static artifact inspection, leading to blindness regarding dynamic code execution orchestrated through external Git references. This implies that defenses must shift from inspecting package metadata to mandating the resolution and scanning of all transitive git dependencies during installation processes.
Pattern detected: ARC-0024 Ambiguity, ARC-0063 Systemic (mission drift), ARC-015 Authority Game.

From the original · Endor Labs Blog

The package itself contained almost nothing. Instead, it told npm to pull in a second piece of code directly from a GitHub account.
Read the full story at endorlabs.com

Sentinel unavailable

The automated check of the source article's wording did not complete, so no result is shown.

This looks only at the wording of the original source article, not at this page's AI-written sections. A small local AI model made this estimate. It has not been checked against known human and machine texts, so treat it as provisional. It cannot show who wrote an article.

A new npm package for Web3 and MEV developers shipped a clean tarball and pulled its payload from GitHub at install time. | Huntaegis