GHSA-cq46-h4m6-992q
Malicious code in @zzzgenesis00/bitcoinjs-wallet (npm)
Auswirkung
## Source: amazon-inspector (bcabff22bb09847474002e52ef9e8101a847fe662fcf18eec0617fd6e9829e20) This package is a typosquat of the bitcoinjs-wallet ecosystem. Its index.js is a thin passthrough while the malicious behavior is in postinstall.js, which runs automatically on npm install. The postinstall script enumerates ~/.ssh, ~/.npmrc, ~/.gitconfig, Chrome/Chromium/Firefox profile paths (Cookies, Login Data, key4.db, logins.json), and a curated list of cryptocurrency wallet directories (.bitcoin,.ethereum,.metamask,.exodus,.electrum, and others). It also reads credential-shaped environment variables including NPM_TOKEN, NODE_AUTH_TOKEN, GITHUB_TOKEN, AWS_SECRET_ACCESS_KEY, PRIVATE_KEY, MNEMONIC, SEED_PHRASE, and ETHEREUM_PRIVATE_KEY. It shells out to `npm whoami` and `git config --global user.email` via child_process.execSync to tag the harvested data with the developer's identity. The collected profile is transmitted via two channels: a GET to api.telegram.org using a hardcoded bot token (7231970337) and chat_id, and a POST to /collect on the serveo tunnel host 40f955f39128bd79-178-249-214-24.serveousercontent.com. Exfiltration is delayed via setTimeout with a randomized 1500-3500 ms window and wrapped in an 'environment verification' cover-story comment to blend with normal install activity. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/fab7a1742d58ad342ae3b3e018b6b545cdb9c4f8/osv/malicious/npm/@zzzgenesis00/bitcoinjs-wallet/MAL-2026-12119.json))
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | @zzzgenesis00/bitcoinjs-wallet | = 5.4.2 | nicht erfasst |
Schwachstellenklasse
Referenzen
- GitHub-Advisory
- https://github.com/advisories/GHSA-cq46-h4m6-992q
- https://github.com/ossf/malicious-packages/blob/fab7a1742d58ad342ae3b3e018b6b545cdb9c4f8/osv/malicious/npm/@zzzgenesis00/bitcoinjs-wallet/MAL-2026-12119.json
- https://www.npmjs.com/package/@zzzgenesis00/bitcoinjs-wallet/v/5.4.2
- https://github.com/ossf/malicious-packages/blob/5d4b3da3177e0aef279e52c6f96e99e7cc135d05/osv/malicious/npm/@zzzgenesis00/bitcoinjs-wallet/MAL-2026-12119.json