Skip to content
supplychainattack.orgSupply chain attack incident catalog
containedcritical

Malicious code in @zzzgenesis00/bip39-mnemonic (npm)

The npm package @zzzgenesis00/bip39-mnemonic contained malicious postinstall code that impersonated the legitimate bitcoinjs/bip39 project and exfiltrated sensitive credentials, environment variables, SSH keys, and wallet artifacts to attacker-controlled endpoints via Telegram Bot API and a hardcoded URL.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any developer or CI/CD system that installed @zzzgenesis00/bip39-mnemonic via npm; potential exposure of credentials, tokens, SSH keys, and wallet secrets.
Ecosystems
Attack vectors
Affected entities
  • @zzzgenesis00/bip39-mnemonicMalicious npm package impersonating bitcoinjs/bip39

The @zzzgenesis00/bip39-mnemonic npm package was published with malicious intent, impersonating the legitimate bitcoinjs/bip39 project by setting the author field to 'bitcoinjs-lib'. Upon installation, a postinstall.js script executes automatically and performs extensive reconnaissance and credential harvesting.\n\nThe malicious script collects host and user identifiers, enumerates sensitive environment variables (NPM_TOKEN, NODE_AUTH_TOKEN, GITHUB_TOKEN, AWS_* keys, and wallet-related secrets like PRIVATE_KEY, MNEMONIC, and SEED_PHRASE), reads configuration files (~/.npmrc, ~/.gitconfig), probes cryptocurrency wallet directories, and enumerates SSH keys. It also executes npm whoami and git config to gather additional context.\n\nCollected data is exfiltrated to two hardcoded destinations: a Telegram Bot API endpoint (with embedded bot token and chat ID 7231970337) and a POST request to 40f955f39128bd79-178-249-214-24.serveousercontent.com/collect. Exfiltration is delayed by a randomized timeout (1500–3500 ms) to evade detection. The module re-exports ./index.js to maintain a veneer of legitimacy.\n\nThe incident was identified and credited to the OpenSSF malicious-packages repository (MAL-2026-12030).

Indicators of compromise

Packages
  • @zzzgenesis00/bip39-mnemonic
Domains
  • 40f955f39128bd79-178-249-214-24.serveousercontent.com

Remediation

  • Immediately uninstall @zzzgenesis00/bip39-mnemonic from all environments
  • Rotate all credentials and tokens that may have been exposed (NPM_TOKEN, GITHUB_TOKEN, AWS keys, SSH keys, wallet seeds/mnemonics)
  • Audit npm install logs and CI/CD pipelines for evidence of installation
  • Review ~/.npmrc, ~/.gitconfig, and SSH key access logs for unauthorized activity
  • Monitor Telegram Bot API and the hardcoded exfiltration endpoint for data breaches
  • Use npm audit and supply chain security tools to detect similar typosquatting or impersonation packages
  • Implement package verification and allowlisting policies in npm installations

Sources

  1. GitHub Advisory GHSA-cf5w-8hr5-cpff · GitHub Advisory Database

Cite this entry

"Malicious code in @zzzgenesis00/bip39-mnemonic (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 5, 2026; last updated August 5, 2026. https://supplychainattack.org/incident/malicious-code-in-zzzgenesis00-bip39-mnemonic-npm-lhnjwm

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. resolvedcritical

    Malicious code in express-chai (npm)

    express-chai, a malicious npm package impersonating the pino logger middleware, contained obfuscated code that fetches and executes arbitrary code from a remote server (https://gray-dyane-31.tiiny.site/index.json) at middleware initialization time, granting full Node.js process access to an attacker.

    npmCompromised packageTyposquatting
  2. resolvedcritical

    Malicious code in helmet-pro (npm)

    helmet-pro@10.0.4 is a typosquat of the legitimate helmet package that executes malicious code during npm install via a postinstall hook. The malicious code fetches and executes arbitrary JavaScript from a remote attacker-controlled endpoint, enabling remote code execution on the installer's machine.

    npmTyposquattingCompromised package
  3. resolvedcritical

    Malicious code in tailwindcss-hide-scrollbar (npm)

    The npm package tailwindcss-hide-scrollbar contains malicious code that executes on import/require. The package is a typosquat of the legitimate tailwind-scrollbar-hide plugin and includes obfuscated code that attempts to interact with Ethereum blockchain nodes and RPC endpoints.

    npmTyposquattingCompromised package
  4. containedcritical

    Malicious code in @atom8n/inspector (npm)

    The npm package @atom8n/inspector contained malicious code that impersonated Anthropic's official Model Context Protocol (MCP) inspector while intentionally disabling security protections. The package exposed developers to arbitrary remote code execution via a localhost proxy that accepted commands from any web origin.

    npmModel hubCompromised packageTyposquatting