The package itself contained almost nothing. Instead, it told npm to pull in a second piece of code directly from a GitHub account. When a developer installed the package, their computer quietly downloaded that code from GitHub and ran it automatically. According to the security advisory, that code unlocked hidden instructions, then downloaded and launched a program on Windows machines or ran a remote script on Macs. In practice, that gives an attacker the ability to run whatever they want on the developer's computer.
What makes this case notable is the misdirection. Two days earlier, the attacker published a clean package named multicall-error-decoder to the npm registry. Anyone checking the dependency by name, and any security scanner that only inspects packages stored on npm, would find a normal, legitimate library. The harmful code never appeared on npm at all.
GitHub published GHSA-hvqj-jrfw-r9mh on November 25 at 16:13 UTC, and npm replaced the package with a security holder one minute later. The exposure window was about 16 days. The GitHub account and the code it hosted have since been deleted, so the second-stage program it downloaded could not be recovered or analyzed.
If you installed web3-mev-error-decoder@0.1.0, treat the machine as compromised. Rotate every secret on it from a different machine.
Affected packages
The 0.1.0 tarball of web3-mev-error-decoder is gone from the registry (404), and npm now owns the package. deps.dev reports no registry dependents, so exposure comes from direct installs.
Timeline
The decoy went up two days before the malicious package, and the malicious package was live for 16 days. Times are UTC.
How it was delivered
The payload sat one hop away from the package anyone would inspect. web3-mev-error-decoder was purpose-built for this attack: the name had no history before November 9, and its tarball held nothing malicious, as the review below confirms. Its only job was this dependency, as recorded by Kitsunox:
"multicall-error-decoder": "github:outgoingyang/multicall-error-decoder"
A github: specifier tells npm to fetch the repository rather than a registry tarball. npm clones it, runs prepare (and the other git-only lifecycle scripts) when there is something to build, packs the result, installs that pack and then runs its preinstall, install and postinstall hooks. The repository's package.json carried this hook:
"install": "node dist/error-decoder/handlers.js"
The decoy closes the loop. A package called multicall-error-decoder exists on the npm registry, with a credible README and working code, so the dependency reads as an ordinary library on review. Registry-only scans pass it too.
The effect on detection is concrete. Kitsunox, the scanner that recorded this sample, at first raised a single MEDIUM finding on the non-registry specifier. Its deeper stages read the release's tarball and never saw the dependency's code. Kitsunox's maintainers added git-dependency resolution afterward, and the same release then scored 12 on the install hook and install-script findings.
The registry metadata from before the takedown names the publisher: npm account slimfituseless (pxu23197@gmail[.]com). The decoy came from slimfituser (fussmilana@gmail[.]com). Two accounts with near-identical names publishing the two halves of one attack points to a single operator.
Inside web3-mev-error-decoder@0.1.0
The package is the decoy's code with a new name, a rewritten README and one added dependency. I reviewed a copy of the 0.1.0 tarball that the registry no longer serves. Nothing from it was installed or run.
This copy is the tarball npm served. Its SHA-1 and SHA-512 match the shasum and integrity in the pre-takedown registry metadata, and npm's registry signature over that integrity value verifies against npm's current signing key, SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U. The metadata also records 72 files and the publish at 13:35:00 UTC on November 9. The tarball's SHA-256 is 05d193d87e03221b68cac57c7048c45c82cb55a43e9c56f600ca973add67c8ed.
- The code is the decoy's. All 70 files under dist/, JavaScript, type definitions and source maps, are byte-identical to multicall-error-decoder@0.1.0. Only package.json and README.md differ.
- Nothing runs on install. The scripts are the decoy's four (build, typecheck, test, smoke). There is no child_process, eval, crypto, filesystem, environment or network code anywhere in the tarball.
- The dependency is never used. No file under dist/ imports multicall-error-decoder. The package declares it and never touches it. Its only effect is that npm installs it, and installing it is what runs the GitHub copy's install hook.
- No provenance. The manifest has no repository field and declares the MIT license and node >=20.
The manifest change is a single block:
"dependencies": {
"multicall-error-decoder": "github:outgoingyang/multicall-error-decoder"
}
The rest of the effort went into discovery. The manifest carries 49 keywords, including mev bot, sniper bot, arbitrage bot, trading bot and telegram bot. The README was rewritten for the same audience. It names MEV, sniper and arbitrage bots throughout, adds npm badges, and drops the decoy's acknowledgments of the projects its code was ported from.
The new README also describes code the package does not contain. It documents a Multicaller export, a timeoutMs option and an ErrorDecoder constructor that takes an options object. The real exports are multicall, a timeout option and a constructor that takes an array of interfaces. It advertises "zero runtime bloat" with only peer dependencies, in the same package that declares the runtime git dependency carrying the payload.
What the install code does
Everything known about stage 1 comes from Kitsunox's records of the repository at commit 240aa9b685e2. I could not fetch the code myself: the repository, that commit, the GitHub archive endpoint and the owning account all return 404, and our earlier search found no Wayback Machine or Software Heritage copy.
Kitsunox describes handlers.js as a downloader that decrypts its strings with AES at runtime, then branches by platform. On Windows it downloads an archive and starts the executable inside it. On macOS it pipes a remote script into the shell. Linux behavior is not described.
Its proposal records these lines in dist/error-decoder/handlers.js:
Kitsunox also notes filesystem and OS-information use, consistent with the per-platform branching. The detached: true spawn lets the dropped executable outlive the npm install process.
The file name is part of the disguise. In the registry decoy, dist/error-decoder/handlers.js is a 130-line ethers v6 revert and panic decoder. The GitHub copy runs to at least 361 lines at the same path, so a reviewer comparing file lists between the two sees nothing out of place.
The AES key, the decrypted URLs and every later stage are unrecovered. Kitsunox's test fixture for this case reproduces the code's shape, but its own comment marks the values as inert placeholders, so it says nothing about the real key or IV.
The decoy
The registry copy of multicall-error-decoder@0.1.0 is clean. I pulled the tarball with lifecycle scripts disabled and reviewed all 72 files. Its job is to be believable.
- No install-time execution. There are no lifecycle hooks. The scripts are
build, typecheck, test and smoke, and thescripts/directory thatsmokecalls is not in the tarball, so the author's working tree held more than the registry copy. - Nothing dangerous in the code. There is no
child_process,eval or Function, no crypto, no filesystem or environment access and no fetch. The only URL in the JavaScript is the Multicall3 reference,https://github.com/mds1/multicall, and the only hardcoded address is the canonical Multicall3 deployment,0xcA11bde05977b3631167028862bE2a173976CA11. - Side-effect free. The package is ESM with
"files": ["dist"] and "sideEffects": false. Its only external imports are its ethers and viem peer dependencies. - Real utility. The README credits ports of
ethers-decode-error(dethcrypto) andethers-v6-fallback-provider(wighawag). The wallet helpers pass the caller's transaction to the signer unchanged, with no recipient swap, added approval or key access. - Few build traces. Source maps carry no sourcesContent, only relative
../../src/*.tspaths. The manifest has nogitHeadand no repository field, and records Node 24.0.2 and npm 11.18.0.
The tarball's SHA-256 is 62405e794b8cb35d52589f783ffda8eb758e04263ab5aa6eef803a8a348457d9. The package is harmless to install. It is still attacker-controlled, and its publisher could ship a malicious version at any time.
A possible lure
This section is inference. The same GitHub account, outgoingyang (user ID 210461119), owned a repository called solana-sniping-bot, and a sniper bot that users clone and npm install fits the audience for an "MEV error decoder" well. I could not confirm that the bot depended on web3-mev-error-decoder, because the repository now returns 404.
The repository's recorded metadata is real and fits a promotion pattern. It was created on November 2 at 20:59 UTC and last pushed 21 minutes later. It showed 22 stars. It appears in the encoreshao/github-trending snapshots for both the nodejs and blockchain topics on November 4, 6, 7 and 8. The archive holds no snapshot for November 5. Its description is a string of search keywords:
solana sniper bot, raydium liquidity sniper, solana jito bundle sniper, raydium cpmm sniper bot, pump fun sniper bot, anti rugpull solana bot, orca whirlpool sniper bot
If the bot did pull in the package, real installs came from people cloning a trending repository, and npm search played little part.
Impact
The headline download number is almost certainly fake, and the real install count is probably in the low tens of thousands at most. npm's downloads API, as reported in our earlier pull, shows 10,167,449 downloads over 30 days. 9,735,029 of them land on a single day, November 11, against roughly 60 to 4,089 a day on every other day. I could not reach the downloads API from my environment to recheck these figures.
A spike that size on a two-week-old package reads as count inflation, used to make the package look established. The more useful figure is 11,218 downloads of 0.1.0 in the last week before takedown, and even that may include mirrors and scanners. deps.dev shows no registry dependents, so every install was a direct one.
The severity depends on whose machine ran the hook. These packages target Web3 and MEV developers, whose machines often hold hot-wallet keys, seed phrases, deployer keys and RPC credentials. On one of those machines a successful run can mean direct loss of funds. On a CI runner with no secrets it means an attacker-controlled executable on a build host. That framing is inference: stage 2 was never recovered, so its actual behavior is unknown.
Indicators of compromise
Packages and accounts
Files
On the host
- A
node_modules/multicall-error-decoder/package.jsonthat has aninstallscript, withresolvedpointing atgithub:outgoingyang/... or git+ssh://git@github.com/outgoingyang/multicall-error-decoder.git#<sha>. The registry decoy has no install script. node dist/error-decoder/handlers.jsspawned by npm during an install.- On Windows, an executable started from a freshly extracted archive. The path is unknown.
- On macOS, sh or bash launched by a node parent with a remote script on stdin.
Not an indicator: 0.0.0-stage
Each package has a 0.0.0-stage version. On multicall-error-decoder it was published 76 seconds before 0.1.0, and npmmirror sync data put the one on web3-mev-error-decoder about a minute before its 0.1.0 as well. That timing invites a tradecraft reading, but the stubs do not support it. Both tarballs are identical registry stubs whose manifest reads "stub": true and "description": "Temporary package placeholder for staged publishing". On web3-mev-error-decoder, the registry now attributes the stub to the npm account, dated about a minute before the security holder. That points to npm's staged-publishing flow, and matching on it would flag legitimate packages.
Detection
Start with lockfiles, because they record the GitHub source even where the decoy shares the name. These queries find projects that resolved the package or the git dependency, and installed trees that hold either one:
# any project that resolved the package or the git dependency
grep -rlE '"web3-mev-error-decoder"|outgoingyang/multicall-error-decoder' --include=package-lock.json --include=npm-shrinkwrap.json --include=yarn.lock --include=pnpm-lock.yaml .
# installed trees
find / -path '*/node_modules/web3-mev-error-decoder/package.json' 2>/dev/null
find / -path '*/node_modules/multicall-error-decoder/package.json' -exec grep -l '"install"' {} + 2>/dev/null
The last query separates the two copies of multicall-error-decoder: the GitHub copy has an install script, and the registry decoy does not.
This YARA rule sweeps registry tarballs and node_modules for the manifest side. A stage-1 rule needs a sample.
rule npm_web3_mev_error_decoder_gitdep
{
meta:
description = "npm manifest pulling the outgoingyang/multicall-error-decoder git dependency"
reference = "GHSA-hvqj-jrfw-r9mh"
strings:
$a = "outgoingyang/multicall-error-decoder" ascii
$b = "web3-mev-error-decoder" ascii
condition:
$a or ($b and filesize < 20KB)
}For EDR, look for node under an npm parent running dist/error-decoder/handlers.js, followed by sh or bash reading from a pipe on macOS, or a newly written executable under %TEMP% on Windows.
The broader lesson is for scanners. A tool that reads only the registry tarball of the top-level package misses this class of attack by construction. Resolve git, GitHub and URL dependencies, then scan the code npm will run: the install hooks, plus prepare and the other git-only lifecycle scripts for git sources.
Remediation
- Search. Run the lockfile and node_modules queries above across developer machines, CI runners and repositories.
- Treat any hit as compromised. GitHub's advisory is explicit: any computer that installed or ran the package should be considered fully compromised, and removing the package does not guarantee removing what it installed.
- Rotate from a clean machine. Move funds out of any wallet whose keys or seed phrase were on the host, then rotate deployer and signer keys, RPC and API keys, cloud and CI credentials, npm and GitHub tokens, SSH keys and browser sessions.
- Reimage. Stage 2 and any persistence are unknown, so cleaning in place cannot be verified.
- Block the source. Deny github:outgoingyang/* and the decoy multicall-error-decoder in registry proxies and package policy.
- Close the class. Consider npm config set ignore-scripts true as the default for local development, and require an allowlist for git dependencies.
MITRE ATT&CK mapping
Rows marked Reported depend on Kitsunox's description of stage 1. The others rest on artifacts I checked.
References
- GHSA-hvqj-jrfw-r9mh (GitHub Advisory Database)
- MAL-2026-20610 (OSV)
- MAL-2026-20610 source record (OpenSSF malicious-packages)
- Decision 0020: Read the install code of git dependencies (Kitsunox)
- Round 10, agent G: the install code of git dependencies, source of the line-level evidence (Kitsunox)
- github-trending snapshot archive (encoreshao)
- web3-mev-error-decoder (deps.dev)
- web3-mev-error-decoder, now a security holder (npm)
- multicall-error-decoder, the decoy (npm)
What's next?
When you're ready to take the next step in securing your software supply chain, here are 3 ways Endor Labs can help:







.png)