Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

@solana-labs/etherjsnpm

Malicious code in @solana-labs/etherjs (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-5362
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @solana-labs/etherjs

What this malware does

Package is published as @solana-labs/etherjs but its README documents itself as @solana-labs/web3.js and instructs consumers to import { Connection, PublicKey, Keypair } from '@solana-labs/web3.js' — the legitimate Solana SDK is @solana/web3.js (no -labs). Developers who copy the README install line land on this package instead. The Node CommonJS and ESM bundles (lib/index.cjs.js, lib/index.esm.js) are a fork of solana-web3.js with an injected payload that, on require()/import, reads process.env (lines 11365-11366, 11448, 11453, 11542, 11547 in the CJS bundle) and POSTs the harvested data to a hardcoded bare IP http://104.239.66.223:8899 (line 11384) and to https://api.telegram.org/bot.../sendMessage with a fixed chat_id (lines 11415-11417). The same blocks repeatedly require('child_process') (lines 11441, 11466, 11479, 11495, 11535) and invoke curl, enabling attacker-influenced shell execution on the installer host. The browser/native bundles omit the payload, confirming it is gated to Node consumers. Both attacker destinations are hardcoded with no opt-out.

The OpenSSF Package Analysis project identified '@solana-labs/etherjs' @ 1.0.0 (npm) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.

  • The package executes one or more commands associated with malicious behavior.

Malicious versions

8 flagged
1.0.01.0.51.0.61.0.71.0.81.0.101.98.1111.98.112

Indicators of compromise (SHA-256)

f3c9e260b3ed97dca42969f7b7836399ce071c4708cffd473bd6b3cf62925401
5c086a8d2c3022bc55743fdca944c8810b997ec203e8742606bf14cccee721db
87969d62ce8c5d296289915afecd9628f33ba83360c4b120ffca330e91c91cdf
dedfddcfb304a9fb1ef7feb17cd25b5cfa0583bcd67b1e634734df250cde357f
f524609953350400e7b91186b24cfe6c963a4d056bf2095924e735589d988c5b
10bffd4cf9af4c8810a38b392490f26a2ef2e8f2934676f269387346c9faecaf
77ffb0e1cfca0e83eba3bde60175625c5d9db1dc2ab2b0ed7c36e371ce65bf7b
80dbb609794f06305e091b2be9cc04f38e1d00703b686c006c8ba0297fc6d94c
83a814b3dbc6b71ab3b64b1444224ff6cef32e405795d1b2c62a2f4a52c5d1d0
8af8ac56e711c03e9a4ea0df7cfc05d9971ba5ab772857bb997008dabf578a78

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for @solana-labs/etherjs (8 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging @solana-labs/etherjs across your stack and pipelines.

  2. If you installed it — respond

    @solana-labs/etherjs is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If @solana-labs/etherjs was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks @solana-labs/etherjs before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. @solana-labs/etherjs on npm has been identified as a malicious package (versions 1.0.0, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.10, 1.98.111, 1.98.112 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-005453IN-MAL-2026-005443IN-MAL-2026-006095IN-MAL-2026-006098IN-MAL-2026-006096IN-MAL-2026-006094IN-MAL-2026-006092IN-MAL-2026-006093IN-MAL-2026-006097

References

Credits

  • Amazon Inspector · finder
  • OpenSSF: Package Analysis · finder

Detect & block this

O3 blocks @solana-labs/etherjs-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

@solana-labs/etherjs (npm) malicious package — MAL-2026-5362 | O3 Security