---
id: MAL-2026-12081
title: Malicious code in bitcoinlib-py (PyPI)
summary: Malicious code in bitcoinlib-py (PyPI)
severity: none
vendor: bitcoinlib-py
product: bitcoinlib-py
ecosystem: pip
affected:
  - bitcoinlib-py
published: '2026-08-05'
updated: '2026-08-05'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/MAL-2026-12081'
references:
  - url: 'https://bad-packages.kam193.eu/pypi/package/bitcoinlib-py'
tags:
  - osv
  - pip
ingestedAt: '2026-08-05T19:12:55.218Z'
---

## Overview


---
_-= Per source details. Do not edit below this line.=-_

## Source: kam193 (32582a69a108bf3ab34d8bd16122918dd29a56bff6f68a771b77c6c946bf9308)
During installation, the package exfiltrates sensitive env variables, browser data, crypto wallets files, ssh keys and other configuration files.


---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: 2026-08-bip39-py


Reasons (based on the campaign):


 - crypto-related


 - The package overrides the install command in setup.py to execute malicious code during installation.


 - exfiltration-crypto


 - exfiltration-browser-data


 - exfiltration-env-variables


 - exfiltration-ssh-keys


 - exfiltration-credentials


 - uses-telegram-bot


## Affected packages

- `bitcoinlib-py`

## Remediation

Refer to the advisory for the patched release.
