GHSA-598x-fw8p-3jm8
Malicious code in @zzzcrypto/bitcoin-lib (npm)
Auswirkung
## Source: amazon-inspector (f9d633d3efb27db376be57d77ebbd808db458d088503adebe2f7ad7501281dd1) On require(), index.js serializes process.env together with hostname, username, homedir, platform, cwd, and a timestamp, base64-encodes the JSON, and sends it via HTTPS GET to api.telegram.org using a hardcoded bot token and chat_id. A tmp flag file gates re-execution to reduce noise. The package name @zzzcrypto/bitcoin-lib and its README present it as a drop-in for bitcoinjs-lib, and the code attempts require('bitcoinjs-lib') to transparently proxy the real library's API when present so callers observe normal behavior; the internal identifier in the exfil payload is @wethenorth12/bitcoin-lib, and identifier names in the harvester are scrambled (kffr, xqyv, qzph, _h). Environment variables in developer and CI processes routinely contain credentials, API tokens, and cloud keys, so this constitutes credential and host-identity theft against any process that imports the package. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/7a679fd5edc3e2ed705b5a123e342a2da922e3ba/osv/malicious/npm/@zzzcrypto/bitcoin-lib/MAL-2026-13211.json))
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | @zzzcrypto/bitcoin-lib | = 6.1.7 | nicht erfasst |
Schwachstellenklasse
Referenzen
- GitHub-Advisory
- https://github.com/advisories/GHSA-598x-fw8p-3jm8
- https://github.com/ossf/malicious-packages/blob/7a679fd5edc3e2ed705b5a123e342a2da922e3ba/osv/malicious/npm/@zzzcrypto/bitcoin-lib/MAL-2026-13211.json
- https://www.npmjs.com/package/@zzzcrypto/bitcoin-lib/v/6.1.7
- https://github.com/ossf/malicious-packages/blob/fab7a1742d58ad342ae3b3e018b6b545cdb9c4f8/osv/malicious/npm/@zzzcrypto/bitcoin-lib/MAL-2026-13211.json
- https://github.com/ossf/malicious-packages/blob/5d4b3da3177e0aef279e52c6f96e99e7cc135d05/osv/malicious/npm/@zzzcrypto/bitcoin-lib/MAL-2026-13211.json