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

defi-threat-scannernpm

Malicious code in defi-threat-scanner (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-4205
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall defi-threat-scanner

What this malware does

A coordinated supply-chain attack comprising 10 npm packages published by maintainer ddjidd5640 ([email protected]) within a 48-hour window (2026-05-19T03:55Z – 2026-05-21T04:31Z). All packages masquerade as legitimate Web3/DeFi developer security tools (MCP servers) while silently exfiltrating credentials, wallet keys, shell history, SSH keys, and environment variables on install and on every MCP tool invocation. The postinstall hook fetches a dynamic C2 webhook URL from https://ddjidd564.github.io/defi-security-best-practices/config.json (hardcoded fallback: https://webhook.site/8d334534-1c63-4f4f-a0d7-95c446c8b233). At runtime, scanner.js performs a recursive credential sweep on every MCP tool call targeting cryptocurrency wallets (~/.ethereum, ~/.bitcoin, ~/.solana), SSH keys, dotfiles, and environment variables. MCP tool handlers in index.js are named to solicit private key material directly from the user or AI agent (e.g., verify_key_format: “Private key or key material to validate”).

defi-threat-scanner presents itself as a DeFi threat scanning MCP server. No clean prior version is known; version 2.1.2 carries the malicious postinstall hook and scanner.js payload from first publication.

Package presents as a DeFi security/MCP scanner but on npm install the postinstall hook executes an inline Node script that reads up to 200 bytes from ~/.ssh, ~/.ethereum, ~/.bitcoin, ~/.env, ~/.bash_history, ~/.zsh_history, and /.git-credentials, packages them with hostname/user/cwd, fetches a dynamic webhook URL from https://ddjidd564.github.io/defi-security-best-practices/config.json, and POSTs the bundle there. scanner.js exposes _activeScan which recursively walks crypto-wallet directories (/.ethereum, ~/.bitcoin, ~/.solana, %APPDATA%, ~/Library/Application Support) and matches files such as keystore, wallet.json, wallet.dat, seed.txt, metamask, phantom, rabby, trust-wallet, coinbase against private-key (0x[a-fA-F0-9]{64}) and BIP-39 mnemonic regexes, then exfiltrates matches plus ~/.npmrc, ~/.gitconfig, ~/.git-credentials, and any process.env entry whose key contains key/secret/token/password/private/mnemonic/wallet/seed. index.js additionally beacons hostname, user, homedir, and boolean flags for PRIVATE_KEY/MNEMONIC/WALLET_KEY env-var presence on every MCP tool invocation. The C2 endpoint is resolved at runtime from the GitHub Pages config (with a webhook.site fallback), letting the attacker rotate destinations without republishing. Cover-story branding ("DeFi Security Alliance") targets crypto developers specifically.

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

14 flagged
2.1.12.1.22.1.33.1.03.1.13.1.23.1.33.2.03.2.13.2.33.2.53.2.63.2.73.2.8

Indicators of compromise (SHA-256)

9196c3bcee0c1a3df8d36c637bd8174d348ddec21c2267de43448d95ad46071a
ccb8922ffca4caa8f3b0ab76b88d6b92c3d365ce2cf69713530d001f5b4f158d
d42eda5d29415939afa12cdd313aa475eef0e5c4104ce84fb58a1ff9758c78c8
d77eecc2140f0b4c8a0770dbab541c1126c084cbe2f9a536258cb5016038a3e8
e5cc46f591de0d7741e258f7e60650e8f7d3c3d6a271993e878a666d3bae3ba0
e5fef366d140d9c9c7d2475c2e42da2dae1e61064983dc9255c0b8b8fcf87fb6
1bfb0eabcb7c3d5e5a0d9f7a8b7d6b79c40843db96955132f682bf8df000c178
21f51f39b55ee445a04dc15636bb691a18f2cb27c198d5024408ac71692b0472
2f32c7d24bb2b9e411d3b2b0a757ce72d78832e82548a294f24b647d4b48f09a
37439f85e80fc0d42427e42e581700b54f446354e9b23830888a30b05eb989a3
20c12cd11478591979898e687894c3df8c93e8df43f693bd7b42b858309c2554
47852eb343d3a58719d900a257850b0855f9612f2c7fe9e7dc5142c6959cb7b9
537d9252f107fffa702eab36674e2f9e222c0a15b26e883d59ef1332e17a15bf
6d6a11f20a166b437712d6face0973cd8bb8429d671ee2ec575004d6e6ba879e
6e3a42d9c0571963308b7492689b22f81fee9cbc9ae1147b3762e265be494b87
7485d96f5d9474d562c3312181ddedcef703769dcc41468ee6b0f65ed8f8cdd4
be97b729fe124de16959d4cae0c9aacff70fc7358c387001b9206e6ab2052ef3
ce824351517f5954c17e045bbf787dc7874cbdeeba119703090eb99c07f4cd53
5c4703bd34b7a12c94eb99510b62a9a79c1c9be4d58a9169821df767eb434d0d
d27335f16964c7f1a06c1dcd353d55ddc426badcda24850c8107b9ce36812ec2
da0deb5c459974c0410abcff9ef97ae26a8db92d5ebebdd13bd2b28a9f5ef7af
0e0272fba71a3e93dfaddba9ad2385a81bb2937dc92f4dd6835e9d19c9c6a8e2
2ca7b078736e318e0a23ea31d93c0d73c33ab69c85318269974483e544bb86d7
ccb13e9abcc10395505678ea78773ed11d916fd9d63796012e10b34a280f1521

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 defi-threat-scanner (14 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging defi-threat-scanner across your stack and pipelines.

  2. If you installed it — respond

    defi-threat-scanner 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 defi-threat-scanner 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 defi-threat-scanner 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. defi-threat-scanner on npm has been identified as a malicious package (versions 2.1.1, 2.1.2, 2.1.3, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0, and 6 more flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-q896-rx3q-5794IN-MAL-2026-003961IN-MAL-2026-003915IN-MAL-2026-003955IN-MAL-2026-003940IN-MAL-2026-003886IN-MAL-2026-003848IN-MAL-2026-003969IN-MAL-2026-003941IN-MAL-2026-004070IN-MAL-2026-003708IN-MAL-2026-003728IN-MAL-2026-003830IN-MAL-2026-004040IN-MAL-2026-003847IN-MAL-2026-004001IN-MAL-2026-004053IN-MAL-2026-003727IN-MAL-2026-003914IN-MAL-2026-004000IN-MAL-2026-003887IN-MAL-2026-004084IN-MAL-2026-003968IN-MAL-2026-003829

References

Credits

  • Amazon Inspector · finder
  • SafeDep · finder

Detect & block this

O3 blocks defi-threat-scanner-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

defi-threat-scanner (npm) malicious package — MAL-2026-4205 | O3 Security