VYPR

pypi · Malicious package advisory

Malware

defi-sdk-py

GHSA-9grx-3x8q-5cwf

Malicious code in defi-sdk-py (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 2.5.1`

## Source: kam193 (b292686db581afeaaa7d53e2281a90d7d470fc71ab9e7d6156c49e2e99a44a30)
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

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49528970635b29847ebf5e3c46aca2dde1cb4681/osv/malicious/pypi/defi-sdk-py/MAL-2026-13361.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/defi-sdk-py
- https://github.com/ossf/malicious-packages/blob/49528970635b29847ebf5e3c46aca2dde1cb4681/osv/malicious/pypi/defi-sdk-py/MAL-2026-13361.json
- https://github.com/ossf/malicious-packages/blob/6a972618e39d8ff09404418e59be8c4051ea872d/osv/malicious/pypi/defi-sdk-py/MAL-2026-13361.json
- https://github.com/advisories/GHSA-9grx-3x8q-5cwf

Compromised versions (1)

  • = 2.5.1

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.