NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

eth-codergennpm

Advisory published Updated

eth-codergen is a confirmed malicious npm package (MAL-2026-11033) that executes malicious code on install (malicious versions 1.0.0, 1.0.1, 1.0.2). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in eth-codergen (npm)

MAL-2026-11033
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall eth-codergen

What this malware does

The package is advertised as an Ethereum ABI code generator but its index.js is a verbatim copy of the unrelated mongoose-lean-hooks plugin. Appended to the same line as module.exports = leanhooksPlugin; (padded with whitespace to push it off-screen) is a top-level Function("tQ4eR5v",...) call whose body is a custom hex/XOR-mixer decoder (constants 0x9e3779b9, 0x243f6a88, 0x6a09e667) that reconstructs an opaque payload from an encoded byte array and executes it. The obfuscated loader runs automatically whenever a consumer calls require('eth-codergen'), giving the publisher arbitrary code execution in the consumer's Node.js process. The package name differs by one letter from the legitimate eth-codegen package, and the README even instructs npm install --save-dev eth-codegen, indicating the package is positioned to catch developers who mistype the real package name. No Ethereum/ABI codegen functionality is present in the shipped code.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Malicious versions

3 flagged
1.0.01.0.11.0.2

Indicators of compromise (SHA-256)

69eee48bc43bf04d3a35021657809e8e2615ae84250ee1e7b229175969807a25
dda2a0fbfa98304482ef90da4f137c863775959e107fccd495311fcba4fd185c
f10eded6dcf01b6124157b32fa2341e4dab71dbac8292322433793df23fd0106
ff0a11feb828f0a0d4f2baf885ad43b74dc4fb8ed2223c9cb3bbcc8ceeba53a9

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for eth-codergen (3 malicious versions).

  2. If you installed it — respond

    Remove eth-codergen from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If eth-codergen was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. eth-codergen on npm has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.2 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-87w3-vjw9-8h4wIN-MAL-2026-011156IN-MAL-2026-011194IN-MAL-2026-011193

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks eth-codergen-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

eth-codergen (npm) malicious package — MAL-2026-11033 | O3 Security